index.vue 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. <template>
  2. <view class="container">
  3. <view class="title">
  4. 常见问题
  5. </view>
  6. <view class="item-box issue-box">
  7. <view class="item" v-for="item of 4">
  8. <view class="item-l">
  9. <img class="img" src="@/static/logo.png" alt="">
  10. </view>
  11. <view class="item-r">
  12. 如何注销账户?
  13. </view>
  14. </view>
  15. </view>
  16. <view class="title">
  17. 热门问题
  18. </view>
  19. <view class="item-box hote-box">
  20. <view class="item" v-for="item of 4">
  21. <view class="item-l">
  22. <img class="img" src="@/static/logo.png" alt="">
  23. </view>
  24. <view class="item-r">
  25. 如何注销账户?
  26. </view>
  27. </view>
  28. </view>
  29. <view class="title">
  30. 在线客服
  31. </view>
  32. <view class=" cust-box">
  33. <view class="item" v-for="item of 3">
  34. <view class="item-l">
  35. <img class="cust-img" src="@/static/logo.png" alt="">
  36. </view>
  37. <view class="item-r">
  38. <view class="r-title">客服小姐姐</view>
  39. <view class="r-text">在线</view>
  40. </view>
  41. </view>
  42. </view>
  43. <u-button class="contact-btn" @click="handlerCallService">联系客服</u-button>
  44. <view class="footer-item">
  45. <view class="item" v-for="item of footerList">
  46. <view class="item-l">
  47. {{ item.name }}
  48. </view>
  49. <view class="item-r">
  50. <img class="cust-img" :src="item.imgs" alt="">
  51. <span class="r-span">{{ item.text }}</span>
  52. </view>
  53. </view>
  54. </view>
  55. <button class="feedback-btn" @click="handlerSubmitFeedback">提交反馈</button>
  56. </view>
  57. </template>
  58. <script>
  59. export default{
  60. data(){
  61. return{
  62. footerList:[
  63. {
  64. name:'反馈建议',
  65. imgs:'../../../static/logo.png',
  66. text:'客服热线:888-8888-8888'
  67. },
  68. {
  69. name:'反馈内容',
  70. imgs:'../../../static/logo.png',
  71. text:'客服邮箱:kefu@xxx.com'
  72. },
  73. {
  74. name:'联系方式',
  75. imgs:'../../../static/logo.png',
  76. text:'客服时间:周一至周五9:00-20:00'
  77. }
  78. ]
  79. }
  80. },
  81. methods:{
  82. // 点击联系客服
  83. handlerCallService(){
  84. uni.showToast({
  85. title:'嘟...',
  86. icon:'none'
  87. })
  88. },
  89. // 点击提交反馈
  90. handlerSubmitFeedback(){
  91. uni.showToast({
  92. title:'不给提',
  93. icon:'none'
  94. })
  95. },
  96. }
  97. }
  98. </script>
  99. <style scoped lang="scss">
  100. .container{
  101. padding: 40rpx;
  102. .title{
  103. font-size: 32rpx;
  104. font-weight: bold;
  105. color: #000;
  106. margin-top: 20rpx;
  107. }
  108. .item-box{
  109. display: flex;
  110. justify-content: space-between;
  111. flex-wrap: wrap;
  112. }
  113. .issue-box{
  114. .item{
  115. display: flex;
  116. align-items: center;
  117. padding: 20rpx 10rpx;
  118. background-color: #F3F4F6;
  119. border-radius: 20rpx;
  120. width: 42%;
  121. margin: 20rpx 10rpx;
  122. .item-l{
  123. .img{
  124. width: 50rpx;
  125. height: 50rpx;
  126. border-radius: 50rpx;
  127. }
  128. }
  129. .item-r{
  130. margin-left: 20rpx;
  131. }
  132. }
  133. }
  134. .hote-box{
  135. .item{
  136. display: flex;
  137. align-items: center;
  138. padding: 20rpx 10rpx;
  139. background-color: #F3F4F6;
  140. border-radius: 20rpx;
  141. margin: 10rpx;
  142. width: 100%;
  143. .item-l{
  144. .img{
  145. width: 50rpx;
  146. height: 50rpx;
  147. border-radius: 50rpx;
  148. }
  149. }
  150. .item-r{
  151. margin-left: 20rpx;
  152. }
  153. }
  154. }
  155. .cust-box{
  156. .item{
  157. display: flex;
  158. align-items: center;
  159. margin: 20rpx 10rpx;
  160. .item-l{
  161. .cust-img{
  162. width: 80rpx;
  163. height: 80rpx;
  164. border-radius: 80rpx;
  165. }
  166. }
  167. .item-r{
  168. margin-left: 20rpx;
  169. .r-title{
  170. font-size:28rpx;
  171. font-weight: bold;
  172. color: #000;
  173. }
  174. .r-text{
  175. font-size: 28rpx;
  176. color: #8A909A;
  177. }
  178. }
  179. }
  180. }
  181. .footer-item{
  182. margin: 40rpx 0;
  183. .item{
  184. display: flex;
  185. justify-content: space-between;
  186. align-items: center;
  187. margin: 20rpx 0;
  188. .item-l{
  189. font-size: 32rpx;
  190. font-weight: bold;
  191. color: #000;
  192. }
  193. .item-r{
  194. display: flex;
  195. align-items: center;
  196. .cust-img{
  197. width: 30rpx;
  198. height: 30rpx;
  199. }
  200. .r-span{
  201. color: #2D3643;
  202. font-size: 28rpx;
  203. margin-left: 20rpx;
  204. }
  205. }
  206. }
  207. }
  208. .contact-btn{
  209. font-size: 28rpx;
  210. }
  211. .feedback-btn{
  212. background-color: #5992BB;
  213. color: #fff;
  214. font-size: 28rpx;
  215. margin-top: 20rpx;
  216. }
  217. }
  218. </style>