优化页面

This commit is contained in:
wangxiaowei
2026-04-12 15:04:01 +08:00
parent 74aa8d8ac4
commit f8ac363bcd
3 changed files with 25 additions and 4 deletions

View File

@ -30,7 +30,7 @@ export default {
list: [],
}
},
onLoad() {
onShow() {
this.handleGetList();
},
methods: {

View File

@ -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' });

View File

@ -200,6 +200,7 @@
app_id: self.getAppId(),
face_url: result.data.file_path,
order_id: self.order_id,
group_id: self.id,
},
function(res) {
console.log("🚀 ~ res:", res)