Commit 24ef26cc by zhangzhen

细节优化

parent 6405d2c3
...@@ -92,8 +92,7 @@ ...@@ -92,8 +92,7 @@
<text class="text-3">{{equityAmountList.length? equityAmountList[1]:'00'}}</text> <text class="text-3">{{equityAmountList.length? equityAmountList[1]:'00'}}</text>
</view> </view>
<view class="cu-btn-box" @tap="onSubmit"> <view class="cu-btn-box" @tap="onSubmit">
<button class="cu-btn" <button class="cu-btn bg-pink">立即开通</button>
:class="consumerMemberStatus?'bg-gray':'bg-pink'">立即开通</button>
</view> </view>
</view> </view>
</view> </view>
...@@ -219,9 +218,10 @@ ...@@ -219,9 +218,10 @@
</view> </view>
</view> </view>
<view v-else-if="tabIndex ==2" class="recharge-content"> <view v-else-if="tabIndex ==2" class="recharge-content">
<text class="text-1">购买权益,优惠享不停,待支付:</text> <text v-if="consumerMemberStatus" class="text-1">权益续期,<text class="text-pink">{{userInfo.consumerMember.expirationDate}}</text> 过期,优惠享不停,待支付:</text>
<text v-else class="text-1">购买权益,优惠享不停,待支付:</text>
<view class="payfee-text"> <view class="payfee-text">
<text>{{equityAmountList[0].requiredAmount}}</text> <text>{{list[0].requiredAmount}}</text>
</view> </view>
<view class="flex-row"> <view class="flex-row">
<text class="text-3">可享权益:</text> <text class="text-3">可享权益:</text>
...@@ -279,6 +279,7 @@ ...@@ -279,6 +279,7 @@
checked: false, checked: false,
assetsPath: config.assetsPath, assetsPath: config.assetsPath,
list: [], list: [],
userInfo:{},
rechargeConfList: [], rechargeConfList: [],
tabIndex: 1, tabIndex: 1,
rechargeIndex: 0, rechargeIndex: 0,
...@@ -396,6 +397,7 @@ ...@@ -396,6 +397,7 @@
onGetUserInfo() { onGetUserInfo() {
getUserInfo().then(res => { getUserInfo().then(res => {
if (res.data.code == 200) { if (res.data.code == 200) {
this.userInfo = res.data.data;
if (res.data.data.consumerMember && res.data.data.consumerMember.memberType == 2) { if (res.data.data.consumerMember && res.data.data.consumerMember.memberType == 2) {
let expirationDate = moment(res.data.data.consumerMember.expirationDate).valueOf(); let expirationDate = moment(res.data.data.consumerMember.expirationDate).valueOf();
...@@ -463,7 +465,6 @@ ...@@ -463,7 +465,6 @@
}, },
onSubmit() { onSubmit() {
if(this.consumerMemberStatus) return;
if (!this.checked) { if (!this.checked) {
uni.showToast({ uni.showToast({
icon: "none", icon: "none",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment