优化页面
This commit is contained in:
@ -83,8 +83,8 @@
|
||||
<view class="bottom-bar">
|
||||
<!-- 两个按钮并排显示的情况 -->
|
||||
<view class="btn-group" v-if="result && result.status == 1 && id == result.group_id && info.order && info.order.id">
|
||||
<view class="btn-submit btn-half btn-secondary" @click="hanldeTakePhoto">人脸信息</view>
|
||||
<view class="btn-submit btn-half" @click="handleSubmit">立即续费</view>
|
||||
<view class="btn-submit btn-half btn-secondary" @click="hanldeTakePhoto">人脸信息</view>
|
||||
</view>
|
||||
|
||||
<!-- 单个按钮显示的情况 -->
|
||||
@ -121,7 +121,7 @@
|
||||
<text style="font-size: 24rpx; margin-right: 4rpx;">¥</text>
|
||||
<text>{{ info.month_price }}</text>
|
||||
</view>
|
||||
<view class="plan-desc">指导价{{ info.m_price }}元/月</view>
|
||||
<view class="plan-desc" v-if="info.m_price && info.m_price > 0">指导价{{ info.m_price }}元/月</view>
|
||||
<view class="check-mark"></view>
|
||||
</view>
|
||||
<view class="plan-item" :class="{ active: selectedPlan === 2 }" @click="selectPlan(2)">
|
||||
@ -130,7 +130,7 @@
|
||||
<text style="font-size: 24rpx; margin-right: 4rpx;">¥</text>
|
||||
<text>{{ info.seasonal_price }}</text>
|
||||
</view>
|
||||
<view class="plan-desc">指导价{{ info.s_price }}元/季</view>
|
||||
<view class="plan-desc" v-if="info.s_price && info.s_price > 0">指导价{{ info.s_price }}元/季</view>
|
||||
<view class="check-mark"></view>
|
||||
</view>
|
||||
</view>
|
||||
@ -247,6 +247,26 @@ export default {
|
||||
return false;
|
||||
}
|
||||
|
||||
const birthDate = new Date(self.result.both);
|
||||
const today = new Date();
|
||||
let age = today.getFullYear() - birthDate.getFullYear();
|
||||
const m = today.getMonth() - birthDate.getMonth();
|
||||
if (m < 0 || (m === 0 && today.getDate() < birthDate.getDate())) {
|
||||
age--;
|
||||
}
|
||||
|
||||
if (self.result && self.result.group_id == 1 && age >= 18) {
|
||||
// 没有填写过信息,弹出完善信息提示弹窗
|
||||
self.showInfoModal = true;
|
||||
return false;
|
||||
}
|
||||
|
||||
if (self.result && (self.result.group_id == 3 || self.result.group_id == 4) && age >= 18) {
|
||||
// 没有填写过信息,弹出完善信息提示弹窗
|
||||
self.showInfoModal = true;
|
||||
return false;
|
||||
}
|
||||
|
||||
if (self.result.status == 0) {
|
||||
setTimeout(() => {
|
||||
uni.showToast({ title: '信息审核中,请耐心等待', icon: 'none' });
|
||||
|
||||
Reference in New Issue
Block a user