cell.vue 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. <template>
  2. <view class="cu-list menu menuBox">
  3. <view
  4. class="cu-item arrow"
  5. v-for="item in list"
  6. :key="item.title"
  7. @click="showNext(item.type)"
  8. >
  9. <view class="content">
  10. <image :src="item.icon" class="png" mode="aspectFit"></image>
  11. <text class="text">{{ item.title }}</text>
  12. </view>
  13. </view>
  14. </view>
  15. </template>
  16. <script>
  17. import ossurl from '@/utils/ossurl'
  18. export default {
  19. props: {
  20. title: {
  21. type: String,
  22. default: ''
  23. }
  24. },
  25. data() {
  26. return {
  27. ossurl,
  28. list: [
  29. {
  30. icon: ossurl.mine.customerService,
  31. title: '联系客服',
  32. tip: '10:00 ~ 18:00',
  33. type: '4_4'
  34. },
  35. {
  36. icon: ossurl.mine.address,
  37. title: '地址',
  38. type: '4_3'
  39. },
  40. {
  41. icon: ossurl.mine.opinion,
  42. title: '意见反馈',
  43. type: '4_9'
  44. },
  45. {
  46. icon: ossurl.mine.setting,
  47. title: '设置',
  48. type: '4_5'
  49. }
  50. ]
  51. }
  52. },
  53. methods: {
  54. showNext(type) {
  55. switch (type) {
  56. case '1_1':
  57. this.$router.pushCheck('wallet')
  58. break
  59. case '1_2':
  60. this.$router.pushCheck('coupon')
  61. break
  62. case '1_3':
  63. this.$router.pushCheck('magic')
  64. break
  65. case '2_1':
  66. this.$router.pushCheck('order_product', { active: 1 })
  67. break
  68. case '2_2':
  69. this.$router.pushCheck('order_product', { active: 4 })
  70. break
  71. case '2_3':
  72. this.$router.pushCheck('order_product', { active: 5 })
  73. break
  74. case '2_4':
  75. this.$router.pushCheck('order_product', { active: 6 })
  76. break
  77. case '3_1':
  78. this.$router.pushCheck('order_award')
  79. break
  80. case '3_2':
  81. this.$router.pushCheck('order_award', { active: 1 })
  82. break
  83. case '3_3':
  84. this.$router.pushCheck('store')
  85. break
  86. case '4_1':
  87. this.$router.pushCheck('message')
  88. break
  89. case '4_2':
  90. this.$message.alert('敬请期待')
  91. break
  92. case '4_3':
  93. this.$router.pushCheck('address')
  94. break
  95. case '4_4':
  96. this.$common.showKefu()
  97. break
  98. case '4_5':
  99. this.$router.push('setting')
  100. break
  101. case '4_6':
  102. const url =
  103. 'https://mp.weixin.qq.com/s?__biz=MzkzMTU2ODM4MQ==&mid=2247483660&idx=1&sn=8bcb7472d42f0b18740049b90d575280&chksm=c2684e9ef51fc78843380380135f6f780c63352ee0f455c48ceef489e538d78dc58f57cbcca9#rd'
  104. this.$router.web(url, '领福利')
  105. break
  106. case '4_7':
  107. this.$emit('showVip')
  108. break
  109. case '4_8':
  110. this.$router.push('sell')
  111. break
  112. case '4_9':
  113. this.$router.pushCheck('feedback')
  114. break
  115. case '5_0':
  116. this.$router.pushCheck('pull_new_user')
  117. break
  118. }
  119. }
  120. }
  121. }
  122. </script>
  123. <style lang="scss" scoped>
  124. .menuBox {
  125. padding: 12rpx 0;
  126. border-radius: 16rpx;
  127. background-color: #fff;
  128. margin-top: 20rpx;
  129. }
  130. .cu-list {
  131. .cu-item {
  132. min-height: 96rpx;
  133. &::after {
  134. border-color: rgba(0, 0, 0, 0.05);
  135. }
  136. .content {
  137. display: flex;
  138. align-items: center;
  139. width: 30rpx;
  140. font-size: 28rpx;
  141. .text {
  142. font-size: 28rpx;
  143. font-family: Source Han Sans, Source Han Sans;
  144. font-weight: 350;
  145. color: #000000;
  146. }
  147. .png {
  148. height: 48rpx;
  149. width: 48rpx;
  150. margin-right: 16rpx;
  151. }
  152. }
  153. }
  154. }
  155. </style>