| | |
| | | <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> |
| | | <view class="buylist"> |
| | | <view v-for="(item, index) in BuyCardData" class="buylists"> |
| | | <view >{{item.productName}}</view> |
| | | <view >{{item.buyTotal}}/{{item.surplus}}</view> |
| | | <view >{{item.endDate}}</view> |
| | | <view >{{item.status==0?'待生效':item.status==1?'生效':'废弃'}}</view> |
| | | </view> |
| | | </view> |
| | | <!-- <u-swipe-action> |
| | | <u-cell-group :border="false"> |
| | | <u-swipe-action-item :options="options1" |
| | | v-for="(item, index) in BuyCardData" |
| | | :key="item.userId" |
| | | :name="item.productName"> |
| | | <u-cell :title="item.productName" |
| | | :value="item.status==0?'待生效':item.status==1?'生效':'废弃'" |
| | | :value=" |
| | | > |
| | | <u-icon name="arrow-right" |
| | | color="#999999" |
| | | size="30" |
| | | slot="right-icon"></u-icon> |
| | | </u-cell> |
| | | </u-swipe-action-item> |
| | | </u-cell-group> |
| | | </u-swipe-action> |
| | | </u-swipe-action> --> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | }, |
| | | 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; |
| | | }); |
| | |
| | | justify-content: space-between; |
| | | align-items: center; |
| | | } |
| | | |
| | | .buylist{ |
| | | width: 100%; |
| | | height: 80%; |
| | | } |
| | | .buylists { |
| | | position: relative; |
| | | overflow: hidden; |
| | | @include flex; |
| | | align-items: center; |
| | | font-size: 15px; |
| | | height: 80rpx; |
| | | border-bottom: 1rpx solid rgb(220, 223, 230); |
| | | } |
| | | .utils-button { |
| | | margin-top: vww(35); |
| | | |
| | |
| | | border: 1rpx solid rgb(220, 223, 230); |
| | | } |
| | | } |
| | | .chage{ |
| | | width: 280rpx; |
| | | height: 50rpx; |
| | | display: flex; |
| | | justify-content: space-between; |
| | | align-items: center; |
| | | } |
| | | </style> |