diff --git a/bundle/combo/combo-list.vue b/bundle/combo/combo-list.vue index db296f2..06e05ae 100644 --- a/bundle/combo/combo-list.vue +++ b/bundle/combo/combo-list.vue @@ -30,7 +30,7 @@ export default { list: [], } }, - onLoad() { + onShow() { this.handleGetList(); }, methods: { diff --git a/bundle/combo/details.vue b/bundle/combo/details.vue index cff4c4a..a361f5a 100644 --- a/bundle/combo/details.vue +++ b/bundle/combo/details.vue @@ -83,8 +83,8 @@ - 人脸信息 立即续费 + 人脸信息 @@ -121,7 +121,7 @@ {{ info.month_price }} - 指导价{{ info.m_price }}元/月 + 指导价{{ info.m_price }}元/月 @@ -130,7 +130,7 @@ {{ info.seasonal_price }} - 指导价{{ info.s_price }}元/季 + 指导价{{ info.s_price }}元/季 @@ -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' }); diff --git a/bundle/combo/face-list.vue b/bundle/combo/face-list.vue index 545fea8..d848223 100644 --- a/bundle/combo/face-list.vue +++ b/bundle/combo/face-list.vue @@ -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)