help-center.vue 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. <template>
  2. <view class="help-center">
  3. <custom-nav :title="title"></custom-nav>
  4. <view class="content">
  5. <view class="time">
  6. <text class="cuIcon-service"></text>
  7. <view class="title">在线客服</view>
  8. <view class="time1">客服服务时间:9:00-21:00</view>
  9. <view class="time2">双休、节假日:10:00-17:30</view>
  10. <view class="connect" @tap="call">联系客服</view>
  11. </view>
  12. <view class="q-a" v-for="(item, index) in list" :key="index" @tap="detail(index)" :class="{ open: activeDetail === index, close: activedDetail === index }">
  13. <view class="app-item q">
  14. <text>{{ item.q }}</text>
  15. <text class="cuIcon-right"></text>
  16. </view>
  17. <view class="a">
  18. {{ item.a }}
  19. </view>
  20. </view>
  21. </view>
  22. </view>
  23. </template>
  24. <script>
  25. export default {
  26. data() {
  27. return {
  28. title: '问题帮助',
  29. activeDetail: -1,
  30. activedDetail: -1,
  31. list: [
  32. {
  33. q: '如何绑定手机号?',
  34. a: '在“我的”页面里点击“实名认证”,在弹出的页面中填写详细的 用户信息资料,填写完毕好点击提交按钮即可认证完成。'
  35. },
  36. {
  37. q: '如何进行实名认证?',
  38. a: '在“我的”页面里点击“实名认证”,在弹出的页面中填写详细的 用户信息资料,填写完毕好点击提交按钮即可认证完成。'
  39. },
  40. {
  41. q: '如何订货下单?',
  42. a: '在“我的”页面里点击“实名认证”,在弹出的页面中填写详细的 用户信息资料,填写完毕好点击提交按钮即可认证完成。在“我的”页面里点击“实名认证”,在弹出的页面中填写详细的 用户信息资料,填写完毕好点击提交按钮即可认证完成。在“我的”页面里点击“实名认证”,在弹出的页面中填写详细的 用户信息资料,填写完毕好点击提交按钮即可认证完成。在“我的”页面里点击“实名认证”,在弹出的页面中填写详细的 用户信息资料,填写完毕好点击提交按钮即可认证完成。在“我的”页面里点击“实名认证”,在弹出的页面中填写详细的 用户信息资料,填写完毕好点击提交按钮即可认证完成。在“我的”页面里点击“实名认证”,在弹出的页面中填写详细的 用户信息资料,填写完毕好点击提交按钮即可认证完成。'
  43. },
  44. {
  45. q: '如何分享邀请链接?',
  46. a: '在“我的”页面里点击“实名认证”,在弹出的页面中填写详细的 用户信息资料,填写完毕好点击提交按钮即可认证完成。'
  47. },
  48. {
  49. q: '如何查看授权书?',
  50. a: '在“我的”页面里点击“实名认证”,在弹出的页面中填写详细的 用户信息资料,填写完毕好点击提交按钮即可认证完成。'
  51. },
  52. {
  53. q: '如何转上级发货?',
  54. a: '在“我的”页面里点击“实名认证”,在弹出的页面中填写详细的 用户信息资料,填写完毕好点击提交按钮即可认证完成。'
  55. }
  56. ]
  57. }
  58. },
  59. methods: {
  60. call() {
  61. uni.makePhoneCall({
  62. phoneNumber: '18338112210'
  63. })
  64. },
  65. detail(index) {
  66. this.activedDetail = this.activeDetail
  67. this.activeDetail = index
  68. }
  69. }
  70. }
  71. </script>
  72. <style lang="scss">
  73. .help-center {
  74. @include page();
  75. .content {
  76. .time {
  77. @include flex(column);
  78. height: 270rpx;
  79. padding: 30rpx;
  80. color: #FFFFFF;
  81. position: relative;
  82. box-sizing: border-box;
  83. align-items: flex-start;
  84. background: $app-base-color;
  85. justify-content: space-between;
  86. .cuIcon-service {
  87. right: 0;
  88. bottom: 0;
  89. opacity: 0.15;
  90. font-size: 250rpx;
  91. position: absolute;
  92. }
  93. .title {
  94. font-size: 40rpx;
  95. }
  96. .time1, .time2 {
  97. font-size: 30rpx;
  98. }
  99. .connect {
  100. @include flex();
  101. width: 144rpx;
  102. height: 46rpx;
  103. font-size: 24rpx;
  104. border-radius: 6rpx;
  105. border:2px solid #FFFFFF;
  106. }
  107. }
  108. .q-a {
  109. &.open {
  110. .q {
  111. color: $app-base-color;
  112. .cuIcon-right {
  113. animation: rotate-right .3s;
  114. animation-fill-mode: forwards;
  115. }
  116. }
  117. .a {
  118. animation: a-show .3s;
  119. animation-fill-mode: forwards;
  120. }
  121. }
  122. &.close {
  123. .q {
  124. .cuIcon-right {
  125. animation: rotate-left .3s;
  126. animation-fill-mode: forwards;
  127. }
  128. }
  129. .a {
  130. animation: a-hide .3s;
  131. animation-fill-mode: forwards;
  132. }
  133. }
  134. .a {
  135. height: 0;
  136. overflow: auto;
  137. padding: 0 30rpx;
  138. font-size: 26rpx;
  139. line-height: 46rpx;
  140. box-sizing: border-box;
  141. color: $app-sec-text-color;
  142. }
  143. }
  144. }
  145. }
  146. @keyframes rotate-right {
  147. 0% {
  148. transform: rotateZ(0);
  149. }
  150. 100% {
  151. transform: rotateZ(90deg);
  152. }
  153. }
  154. @keyframes rotate-left {
  155. 0% {
  156. transform: rotateZ(90deg);
  157. }
  158. 100% {
  159. transform: rotateZ(0);
  160. }
  161. }
  162. @keyframes a-show {
  163. 0% {
  164. height: 0;
  165. }
  166. 100% {
  167. height: 184rpx;
  168. }
  169. }
  170. @keyframes a-hide {
  171. 0% {
  172. height: 184rpx;
  173. }
  174. 100% {
  175. height: 0;
  176. }
  177. }
  178. </style>