contactService.vue 3.6 KB

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