collection.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. <template>
  2. <view class="content">
  3. <view class="collection-box">
  4. <view class="collection-item" @click="navTo('/pages/collection/bank')">
  5. <view class="left">
  6. <view class="img">
  7. <image src="../../static/user/bank.png" mode=""></image>
  8. </view>
  9. <view class="bank">
  10. 银行卡
  11. </view>
  12. </view>
  13. <view class="gg">
  14. <view class="status" v-if="bankData.fullname!= null">
  15. {{bankData.fullname}}
  16. </view>
  17. <view class="status" v-else>
  18. 未添加
  19. </view>
  20. <view class="img1" >
  21. <image src="../../static/user/right.png" mode=""></image>
  22. </view>
  23. </view>
  24. </view>
  25. <view class="collection-item" @click="navTo('/pages/collection/zfb')">
  26. <view class="left">
  27. <view class="img">
  28. <image src="../../static/user/zfb.png" mode=""></image>
  29. </view>
  30. <view class="bank">
  31. 支付宝
  32. </view>
  33. </view>
  34. <view class="gg">
  35. <view class="status">
  36. 未添加
  37. </view>
  38. <view class="img1">
  39. <image src="../../static/user/right.png" mode=""></image>
  40. </view>
  41. </view>
  42. </view>
  43. <view class="collection-item" @click="navTo('/pages/collection/wx')">
  44. <view class="left">
  45. <view class="img">
  46. <image src="../../static/user/wx.png" mode=""></image>
  47. </view>
  48. <view class="bank">
  49. 微信
  50. </view>
  51. </view>
  52. <view class="gg">
  53. <view class="status">
  54. 未添加
  55. </view>
  56. <view class="img1">
  57. <image src="../../static/user/right.png" mode=""></image>
  58. </view>
  59. </view>
  60. </view>
  61. </view>
  62. </view>
  63. </template>
  64. <script>
  65. import { mapState, mapMutations } from 'vuex';
  66. export default {
  67. data() {
  68. return {
  69. bankData:{fullname:'',bank:'',bankno:''}
  70. };
  71. },
  72. computed:{
  73. ...mapState('user',['userInfo','orderInfo','hasLogin'])
  74. },
  75. onShow(){
  76. console.log(this.userInfo)
  77. this.bankData.fullname = this.userInfo.bank_user_name;
  78. },
  79. methods:{
  80. navTo(url){
  81. console.log(url);
  82. uni.navigateTo({
  83. url
  84. })
  85. }
  86. }
  87. }
  88. </script>
  89. <style lang="scss">
  90. page,
  91. .content {
  92. height: 100%;
  93. margin: 0;
  94. height: 0;
  95. }
  96. .collection-box {
  97. background: #FFFFFF;
  98. margin: 50rpx 20rpx;
  99. width: 710rpx;
  100. display: flex;
  101. flex-direction: column;
  102. .collection-item {
  103. margin: 35rpx 30rpx;
  104. display: flex;
  105. justify-content: space-between;
  106. .left {
  107. display: flex;
  108. .img {
  109. height: 40rpx;
  110. width: 40rpx;
  111. image {
  112. height: 100%;
  113. width: 100%;
  114. }
  115. }
  116. .bank {
  117. margin-left: 25rpx;
  118. font-size: 26rpx;
  119. font-family: PingFang SC;
  120. font-weight: 500;
  121. color: #333333;
  122. }
  123. }
  124. .gg {
  125. display: flex;
  126. .status {
  127. font-size: 26rpx;
  128. font-family: PingFang SC;
  129. font-weight: 500;
  130. color: #999999;
  131. margin-right: 20rpx;
  132. }
  133. .img1 {
  134. width: 15rpx;
  135. height: 25rpx;
  136. image {
  137. width: 100%;
  138. height: 100%;
  139. }
  140. }
  141. }
  142. }
  143. }
  144. </style>