Commit 24ef26cc by zhangzhen

细节优化

parent 6405d2c3
......@@ -92,8 +92,7 @@
<text class="text-3">{{equityAmountList.length? equityAmountList[1]:'00'}}</text>
</view>
<view class="cu-btn-box" @tap="onSubmit">
<button class="cu-btn"
:class="consumerMemberStatus?'bg-gray':'bg-pink'">立即开通</button>
<button class="cu-btn bg-pink">立即开通</button>
</view>
</view>
</view>
......@@ -219,9 +218,10 @@
</view>
</view>
<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">
<text>{{equityAmountList[0].requiredAmount}}</text>
<text>{{list[0].requiredAmount}}</text>
</view>
<view class="flex-row">
<text class="text-3">可享权益:</text>
......@@ -279,6 +279,7 @@
checked: false,
assetsPath: config.assetsPath,
list: [],
userInfo:{},
rechargeConfList: [],
tabIndex: 1,
rechargeIndex: 0,
......@@ -396,6 +397,7 @@
onGetUserInfo() {
getUserInfo().then(res => {
if (res.data.code == 200) {
this.userInfo = res.data.data;
if (res.data.data.consumerMember && res.data.data.consumerMember.memberType == 2) {
let expirationDate = moment(res.data.data.consumerMember.expirationDate).valueOf();
......@@ -463,7 +465,6 @@
},
onSubmit() {
if(this.consumerMemberStatus) return;
if (!this.checked) {
uni.showToast({
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