contactService.vue 3.6 KB

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