index.vue 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <template>
  2. <view class="list-box">
  3. <view class="list-content" v-for="item in helpList" :key='item.id' @click="goHelpDetail(item.id)">
  4. <text class="margin-left5">{{item.question}}</text>
  5. <view class="apply-box">
  6. <text style="color: #999;visibility: hidden;">点击申请</text>
  7. <image src="/static/arrow-right2.png" mode=""></image>
  8. </view>
  9. </view>
  10. </view>
  11. </template>
  12. <script>
  13. export default {
  14. data() {
  15. return {
  16. helpList:[
  17. {
  18. id:1,
  19. question:'如何分销?'
  20. },
  21. {
  22. id:2,
  23. question:'如何通过分销获得奖励?'
  24. },
  25. {
  26. id:3,
  27. question:'分销奖励能提现吗?'
  28. },
  29. {
  30. id:4,
  31. question:'如何提现?'
  32. },
  33. {
  34. id:5,
  35. question:'奖励什么时候到账?'
  36. },
  37. ]
  38. }
  39. },
  40. onLoad() {
  41. },
  42. methods: {
  43. goHelpDetail(id){
  44. uni.navigateTo({
  45. url: '/pages/selfCenter/helpPage/helpDetail/index?qId='+id,
  46. success: res => {},
  47. fail: () => {},
  48. complete: () => {}
  49. });
  50. },
  51. }
  52. }
  53. </script>
  54. <style>
  55. .list-box {
  56. width: 100%;
  57. font-size: 30rpx;
  58. }
  59. .list-content {
  60. background: #fff;
  61. display: flex;
  62. justify-content: space-between;
  63. align-items: center;
  64. height: 100rpx;
  65. border-bottom: 1px solid #dbdbdb;
  66. }
  67. .apply-box {
  68. display: flex;
  69. align-items: center;
  70. width: 180rpx;
  71. }
  72. .apply-box image {
  73. width: 50rpx;
  74. height: 50rpx;
  75. margin-right: 5%;
  76. }
  77. .margin-left5 {
  78. margin-left: 5%;
  79. }
  80. </style>