xzdl.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. <template>
  2. <view class="content">
  3. <view class="flex item" v-if="type == 1" v-for="item in navList" @click="navto('/pages/user/yjzz?type=' + item.type)" >
  4. <image :src="item.img" mode="" class="logo"></image>
  5. <view class="name">
  6. {{item.name}}
  7. </view>
  8. <view class="" class="tit">
  9. 去转账
  10. </view>
  11. <image src="../../static/img/back.png" mode="" class="go"></image>
  12. </view>
  13. <view class="flex item" v-if="type == 2" v-for="item in navListt" @click="navto('/pages/user/yjzye?type=' + item.type)" >
  14. <image :src="item.img" mode="" class="logo"></image>
  15. <view class="name">
  16. {{item.name}}
  17. </view>
  18. <view class="" class="tit">
  19. 去转账
  20. </view>
  21. <image src="../../static/img/back.png" mode="" class="go"></image>
  22. </view>
  23. </view>
  24. </template>
  25. <script>
  26. export default {
  27. data() {
  28. return {
  29. type: 1,
  30. navList: [
  31. {
  32. name: '佣金转账',
  33. type: 0,
  34. img: '../../static/icon/yjz.png',
  35. },
  36. {
  37. name: '消费积分转账',
  38. type: 1,
  39. img: '../../static/icon/xc1.png',
  40. }
  41. ],
  42. navListt: [
  43. {
  44. name: '佣金兑换消费积分',
  45. type: 1,
  46. img: '../../static/icon/yzy.png',
  47. },
  48. {
  49. name: '佣金兑换复投积分',
  50. type: 2,
  51. img: '../../static/icon/yzft.png',
  52. }
  53. ]
  54. }
  55. },
  56. onLoad(opt) {
  57. if(opt.type) {
  58. this.type = opt.type
  59. if(this.type == 2) {
  60. uni.setNavigationBarTitle({
  61. title:'互转'
  62. })
  63. }
  64. }
  65. },
  66. onShow() {
  67. },
  68. onReachBottom() {
  69. },
  70. onReady() {
  71. },
  72. methods: {
  73. navto(url) {
  74. uni.navigateTo({
  75. url,
  76. fail() {
  77. uni.switchTab({
  78. url
  79. })
  80. }
  81. })
  82. },
  83. }
  84. }
  85. </script>
  86. <style lang="scss">
  87. .item {
  88. width: 710rpx;
  89. height: 110rpx;
  90. background: #FFFFFF;
  91. box-shadow: 0rpx 0rpx 20rpx 0rpx rgba(50,50,52,0.06);
  92. border-radius: 15rpx;
  93. font-size: 30rpx;
  94. font-weight: 500;
  95. color: #333333;
  96. margin:20rpx auto;
  97. padding: 0 30rpx;
  98. .logo {
  99. width: 40rpx;
  100. height: 40rpx;
  101. }
  102. .name {
  103. margin-left: 18rpx;
  104. flex-grow: 1;
  105. }
  106. .tit {
  107. font-size: 26rpx;
  108. font-weight: 500;
  109. color: #999999;
  110. }
  111. .go {
  112. margin-left: 18rpx;
  113. width: 15rpx;
  114. height: 25rpx;
  115. }
  116. }
  117. </style>