123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164 |
- <template>
- <view class="content">
- <view class="collection-box">
- <view class="collection-item" @click="navTo('/pages/collection/bank')">
- <view class="left">
- <view class="img">
- <image src="../../static/user/bank.png" mode=""></image>
- </view>
- <view class="bank">
- 银行卡
- </view>
- </view>
- <view class="gg">
- <view class="status" v-if="bankData.fullname!= null">
- {{bankData.fullname}}
- </view>
- <view class="status" v-else>
- 未添加
- </view>
-
- <view class="img1" >
- <image src="../../static/user/right.png" mode=""></image>
- </view>
- </view>
- </view>
- <view class="collection-item" @click="navTo('/pages/collection/zfb')">
- <view class="left">
- <view class="img">
- <image src="../../static/user/zfb.png" mode=""></image>
- </view>
-
- <view class="bank" >
- 支付宝
- </view>
-
- </view>
- <view class="gg">
- <view class="status" v-if="aliData.fullname !=null">{{aliData.fullname}}
-
- </view>
- <view class="status" v-else>
- 未添加
- </view>
- <view class="img1">
- <image src="../../static/user/right.png" mode=""></image>
- </view>
- </view>
- </view>
- <!-- <view class="collection-item" @click="navTo('/pages/collection/wx')">
- <view class="left">
- <view class="img">
- <image src="../../static/user/wx.png" mode=""></image>
- </view>
- <view class="bank">
- 微信
- </view>
- </view>
- <view class="gg">
- <view class="status">
- 未添加
- </view>
- <view class="img1">
- <image src="../../static/user/right.png" mode=""></image>
- </view>
- </view>
- </view> -->
- </view>
- </view>
- </template>
- <script>
- import { mapState, mapMutations } from 'vuex';
- export default {
- data() {
- return {
- bankData:{fullname:'',bank:'',bankno:''},
- aliData:{fullname:'',alino:''},
- wxData:{wxname:'',wxImg:''}
- }},
- computed:{
- ...mapState('user',['userInfo','orderInfo','hasLogin'])
- },
- onShow(){
- console.log(this.userInfo)
- this.bankData.fullname = this.userInfo.bank_user_name;
- this.aliData.fullname = this.userInfo.alipay_name
- },
- methods:{
- navTo(url){
- console.log(url);
- uni.navigateTo({
- url
- })
- }
- }
- }
- </script>
- <style lang="scss">
- page,
- .content {
- height: 100%;
- margin: 0;
- height: 0;
- }
- .collection-box {
- background: #FFFFFF;
- margin: 50rpx 20rpx;
- width: 710rpx;
- display: flex;
- flex-direction: column;
- .collection-item {
- margin: 35rpx 30rpx;
- display: flex;
- justify-content: space-between;
- .left {
- display: flex;
- .img {
- height: 40rpx;
- width: 40rpx;
- image {
- height: 100%;
- width: 100%;
- }
- }
- .bank {
- margin-left: 25rpx;
- font-size: 26rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #333333;
- }
- }
- .gg {
- display: flex;
- .status {
- font-size: 26rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #999999;
- margin-right: 20rpx;
- }
- .img1 {
- width: 15rpx;
- height: 25rpx;
- image {
- width: 100%;
- height: 100%;
- }
- }
- }
- }
- }
- </style>
|