|
|
@@ -13,12 +13,13 @@
|
|
|
<image mode="aspectFit" class="gift-img" :src="item.imgUrl"></image>
|
|
|
<view class="gift-name">{{item.name}}</view>
|
|
|
</view>
|
|
|
- <view style="color: #999999;font-size: 20rpx;text-align: center;padding-top: 10rpx;">剩余免费次数</view>
|
|
|
+ <view style="color: #999999;font-size: 20rpx;text-align: center;padding-top: 10rpx;">{{item.activeVote==0? '剩余免费次数':'剩余次数'}} {{item.remainCount}}</view>
|
|
|
</view>
|
|
|
</scroll-view>
|
|
|
|
|
|
<view class="handle-bar">
|
|
|
- <view class="text-center padding-bottom-20" style="color: #0A9FEF;font-size: 28rpx;">您目前的移动积分</view>
|
|
|
+ <view v-if="pointNum>=0" class="text-center padding-bottom-20" style="color: #0A9FEF;">您目前的移动积分 {{pointNum}}</view>
|
|
|
+ <view v-else class="text-center padding-bottom-20" style="color: #0A9FEF;">您目前的移动积分 <u-loading style="margin: 10rpx;" mode="circle"></u-loading></view>
|
|
|
<view class="button-bar">
|
|
|
<view class="button-r">
|
|
|
<u-count-to v-if="show" color="#E72226" start-val="0" :end-val="gitfs[selected].point" :duration="500"></u-count-to>
|
|
|
@@ -43,24 +44,26 @@
|
|
|
show: false,
|
|
|
selected: 0,
|
|
|
count: 1000,
|
|
|
+ pointNum: -1,
|
|
|
gitfs: [],
|
|
|
};
|
|
|
},
|
|
|
+
|
|
|
methods: {
|
|
|
- async showVote(){
|
|
|
- let params = {
|
|
|
- mobile: '15016450036'
|
|
|
- }
|
|
|
+ async showVote(mobile){
|
|
|
+ let params = {mobile}
|
|
|
const queryRes = (await this.$api.CMCC.queryCmccPoint(this.$u.queryParams(params)));
|
|
|
if(queryRes.data.data.resultCode == '0001' ){
|
|
|
this.$refs.pointAuth.showAuth(queryRes.data.data.data);
|
|
|
return;
|
|
|
}
|
|
|
+ const pointDetail = JSON.parse(queryRes.data.data.data);
|
|
|
+ this.pointNum = pointDetail['points'];
|
|
|
const res = await this.$api.activity.getGiftList({userId: 1,current: 1,size: 99});
|
|
|
this.gitfs = res.data.data.records;
|
|
|
this.show = true;
|
|
|
},
|
|
|
- hideVote(){
|
|
|
+ hideVote(){
|
|
|
this.show = false;
|
|
|
}
|
|
|
}
|