contactService.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. <template>
  2. <view>
  3. <u-navbar title="联系客服" title-color="#101010" ></u-navbar>
  4. <view class="background">
  5. <view class="common-problem">
  6. <view class="headline">
  7. 常见问题
  8. </view>
  9. <!-- 标签 -->
  10. <view class="tabs">
  11. <u-tabs :list="list" font-size="28" :is-scroll="false" :current="current" @change="change"></u-tabs>
  12. </view>
  13. <!-- 问题 -->
  14. <view class="problems">
  15. <u-collapse accordion="false">
  16. <u-collapse-item :title="item.head" v-for="(item, index) in itemList" :open="item.open" :key="index">
  17. {{item.body}}
  18. </u-collapse-item>
  19. </u-collapse>
  20. </view>
  21. </view>
  22. </view>
  23. <!-- 底部 -->
  24. <view class="bottom">
  25. <button class="service">
  26. <view>
  27. <image class="img" src="@/assets/img/riFill-customer-service-2-fill 1.svg" mode=""></image>
  28. </view>
  29. 客服电话(7:00-24:00)
  30. </button>
  31. </view>
  32. </view>
  33. </template>
  34. <script>
  35. export default {
  36. data() {
  37. return {
  38. list: [{
  39. name: '软件使用'
  40. }, {
  41. name: '设备状态及参数'
  42. }, {
  43. name: '工单相关',
  44. }],
  45. itemList: [{
  46. head: "常见问题1",
  47. body: "只要我们正确择取一个合适的参照物乃至稍降一格去看待他人,值得赏识的东西便会扑面而来",
  48. open: true,
  49. },{
  50. head: "常见问题2",
  51. body: "学会欣赏,实际是一种积极生活的态度,是生活的调味品,会在欣赏中发现生活的美",
  52. open: false,
  53. },{
  54. head: "常见问题3",
  55. body: "但是据说雕刻大卫像所用的这块大理石,曾被多位雕刻家批评得一无是处,有些人认为这块大理石采凿得不好,有些人嫌它的纹路不够美",
  56. open: false,
  57. }],
  58. current: 0
  59. }
  60. },
  61. methods: {
  62. change(index) {
  63. this.current = index;
  64. }
  65. }
  66. }
  67. </script>
  68. <style lang="scss" scoped>
  69. .background{
  70. position: relative;
  71. height: 200px;
  72. background: linear-gradient(180deg, rgba(203,234,255,1) 0%,rgba(203,234,255,0) 100%);
  73. .common-problem{
  74. position: absolute; top: 24rpx; left: 32rpx; right: 32rpx; background-color: #fff; border-radius: 8px; padding: 40rpx 32rpx; .headline{
  75. color: rgba(16,16,16,1);
  76. font-size: 36rpx;
  77. }
  78. // 标签
  79. .tabs{
  80. border-top: 1px solid rgba(232,232,232,1);
  81. margin-top: 28rpx;
  82. width: 522rpx;
  83. /deep/.u-tab-item{
  84. font-size: 24rpx !important;
  85. }
  86. }
  87. .problems{
  88. margin-top: 8rpx;
  89. }
  90. }
  91. }
  92. // 底部
  93. .bottom{
  94. background-color: #fff;
  95. position: fixed;
  96. bottom: 0;
  97. left: 0;
  98. right: 0;
  99. padding: 24rpx 32rpx;
  100. .service{
  101. display: flex;
  102. justify-content: center;
  103. align-items: center;
  104. color: rgba(255,255,255,1);
  105. font-size: 32rpx;
  106. border-radius: 50px;
  107. background: linear-gradient(-88.46deg, rgba(34,109,198,1) 2.59%,rgba(9,158,237,1) 97.02%);
  108. }
  109. .img{
  110. width: 40rpx;
  111. height: 40rpx;
  112. vertical-align: middle;
  113. margin-right: 16rpx;
  114. }
  115. }
  116. </style>