调整修复一些问题

This commit is contained in:
唐明明
2022-12-27 09:17:32 +08:00
parent 1f3f6b230a
commit 8344496487
16 changed files with 484 additions and 101 deletions

View File

@@ -116,14 +116,12 @@
data() {
return {
loding : true,
orderId : '',
baseInfo : {},
cityPicker : [],
isCheck : false
};
},
created() {
this.orderId = this.$Route.query.orderId
uni.showLoading({
title: '加载中...',
mask : true
@@ -141,17 +139,10 @@
methods: {
// 获取用户基础信息
getPerfectBase(){
perfectBase(this.orderId).then(res => {
perfectBase(this.$Route.query.orderId).then(res => {
let { base, province } = res;
console.log(res)
console.log(base.check_params.toString() != '')
this.baseInfo = base;
this.isCheck = base.check_params.toString() != ''
console.log(base.check_params)
this.loding = false;
uni.hideLoading()
}).catch(err => {
@@ -181,20 +172,35 @@
city_id : this.baseInfo.city_id,
district_id : this.baseInfo.province_id
}
updPerfectBase(this.orderId, data).then(res => {
uni.showModal({
title : '提示',
content : '资料已保存',
showCancel : false,
success : ModalRes => {
this.$Router.back()
uni.showModal({
title : '提示',
content : '请确认资料无误,提交后在审核期间不可更改',
cancelText : '稍后',
confirmText : '确认无误',
success : ModalRes => {
if(ModalRes.confirm){
uni.showLoading({
title: '提交中...',
mask : true
})
updPerfectBase(this.baseInfo.business_order_user_id, data).then(res => {
uni.hideLoading()
uni.showModal({
title : '提示',
content : '资料已保存',
showCancel : false,
success : ModalRes => {
this.$Router.back()
}
})
}).catch(err => {
uni.showToast({
title: err.message,
icon : 'none'
})
})
}
})
}).catch(err => {
uni.showToast({
title: err.message,
icon : 'none'
})
}
})
},
// 修改提示信息