contactService.vue 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  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; top: 24rpx; left: 32rpx; right: 32rpx; background-color: #fff; border-radius: 8px; padding: 40rpx 32rpx; .headline{
  89. color: rgba(16,16,16,1);
  90. font-size: 36rpx;
  91. }
  92. // 标签
  93. .tabs{
  94. width: 524rpx;
  95. border-top: 1px solid rgba(232,232,232,1);
  96. margin-top: 28rpx;
  97. }
  98. .problems{
  99. margin-top: 8rpx;
  100. }
  101. }
  102. }
  103. // 底部
  104. .bottom{
  105. background-color: #fff;
  106. position: fixed;
  107. bottom: 0;
  108. left: 0;
  109. right: 0;
  110. padding: 24rpx 32rpx;
  111. .service{
  112. display: flex;
  113. justify-content: center;
  114. align-items: center;
  115. color: rgba(255,255,255,1);
  116. font-size: 32rpx;
  117. border-radius: 50px;
  118. background: linear-gradient(-88.46deg, rgba(34,109,198,1) 2.59%,rgba(9,158,237,1) 97.02%);
  119. }
  120. .img{
  121. width: 40rpx;
  122. height: 40rpx;
  123. vertical-align: middle;
  124. margin-right: 16rpx;
  125. }
  126. }
  127. </style>