| | |
| | | <view class="navgation">我的</view> |
| | | </view> |
| | | <view class="personal-information"> |
| | | <view class="personal-information-block" v-if="userInfo.isBuyFlag==1?true:false"> |
| | | <view class="personal-information-block" v-if="userInfo.isBuyFlag=='1'?true:false"> |
| | | <view class="block-main"> |
| | | <view class="huodai"> |
| | | <combined-title title="我的购买证" |
| | |
| | | <text>添加</text> |
| | | </template> |
| | | </combined-title> |
| | | <view class="chage"> |
| | | <u-tag text="待生效" |
| | | :type="radio==0?'primary':'info'" |
| | | plain |
| | | size="mini" |
| | | class="tags" |
| | | @click="checkRadio(0)"></u-tag> |
| | | <u-tag text="生效" |
| | | :type="radio==1?'primary':'info'" |
| | | plain |
| | | size="mini" |
| | | class="tags" |
| | | @click="checkRadio(1)"></u-tag> |
| | | <u-tag text="过期" |
| | | :type="radio==2?'primary':'info'" |
| | | plain |
| | | size="mini" |
| | | class="tags" |
| | | @click="checkRadio(2)"></u-tag> |
| | | </view> |
| | | <view class="huodai-list"> |
| | | <u-swipe-action> |
| | | <u-cell-group :border="false"> |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | radio:'1', |
| | | userInfo: {}, |
| | | huoDaiData: [], |
| | | BuyCardData:[], |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | checkRadio(e){ |
| | | this.radio=e |
| | | this.getBuyCardList() |
| | | }, |
| | | init() { |
| | | this.getAllHuoDaiByCustomerId(); |
| | | this.getFleet(); |
| | |
| | | uni.showLoading({ |
| | | title: '加载中...' |
| | | }); |
| | | this.$reqGet('getBuyCardList',{customerId: this.userInfo.customerid}).then(res => { |
| | | this.$reqGet('getBuyCardList',{customerId: this.userInfo.customerid,status:this.radio}).then(res => { |
| | | uni.hideLoading(); |
| | | this.BuyCardData = res.data; |
| | | }); |
| | |
| | | border: 1rpx solid rgb(220, 223, 230); |
| | | } |
| | | } |
| | | .chage{ |
| | | width: 280rpx; |
| | | height: 50rpx; |
| | | display: flex; |
| | | justify-content: space-between; |
| | | align-items: center; |
| | | } |
| | | </style> |