|
@@ -306,12 +306,12 @@
|
|
|
};
|
|
|
},
|
|
|
async onLoad(options) {
|
|
|
+ this.modelid = options.modelid
|
|
|
if (options.type == 1) {
|
|
|
this.type = 1;
|
|
|
await this.getUserCardInfo()
|
|
|
} else if (options.type == 2) {
|
|
|
this.type = 2
|
|
|
- this.modelid = options.modelid
|
|
|
}
|
|
|
this.init()
|
|
|
},
|
|
@@ -436,6 +436,9 @@
|
|
|
is_type_audit: 1
|
|
|
}
|
|
|
uni.setStorageSync('modeldata',data)
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
uni.navigateTo({
|
|
|
url: '/pages/user/model/model?mtype=' + that.modelid + '&look=2'
|
|
|
})
|
|
@@ -643,11 +646,47 @@
|
|
|
}
|
|
|
});
|
|
|
})
|
|
|
-
|
|
|
},
|
|
|
-
|
|
|
// 实名认证
|
|
|
confirm(e) {
|
|
|
+ const that = this;
|
|
|
+ if(!that.rendl()){
|
|
|
+ return
|
|
|
+ }
|
|
|
+ that.loding = true;
|
|
|
+ subInfoAudit({
|
|
|
+ avatar: that.updata.avatar,
|
|
|
+ name: that.updata.name,
|
|
|
+ mobile: that.updata.phone,
|
|
|
+ idcard: that.updata.cardId,
|
|
|
+ service_type: that.updata.timetype.code,
|
|
|
+ service_min_price: that.updata.minMoney,
|
|
|
+ service_max_price: that.updata.maxMoney,
|
|
|
+ service_area: that.updata.onCity.map((arr) => {
|
|
|
+ return arr.district
|
|
|
+ }),
|
|
|
+ service_project: that.updata.checkedType,
|
|
|
+ service_intro_content: that.updata.mymask,
|
|
|
+ service_intro_imgs: that.updata.imageList,
|
|
|
+ work_year: that.updata.work_year,
|
|
|
+ ancestral_place: that.updata.ancestral_place,
|
|
|
+ education: that.updata.education,
|
|
|
+ minority: that.updata.minority,
|
|
|
+ service_audit_imgs: that.updata.service_audit_imgs,
|
|
|
+ service_imgs: that.updata.service_imgs,
|
|
|
+ user_work_type_id: that.updata.word.id,
|
|
|
+ })
|
|
|
+ .then((e) => {
|
|
|
+ that.loding = false;
|
|
|
+ this.$api.msg(e.msg);
|
|
|
+ })
|
|
|
+ .catch(err => {
|
|
|
+ this.loding = false;
|
|
|
+ console.log(err);
|
|
|
+ });
|
|
|
+ },
|
|
|
+ // 认证
|
|
|
+ rendl(){
|
|
|
const that = this;
|
|
|
if (!that.updata.avatar) {
|
|
|
uni.showModal({
|
|
@@ -655,16 +694,16 @@
|
|
|
content: '请上传头像',
|
|
|
showCancel: false,
|
|
|
});
|
|
|
- return
|
|
|
+ return false
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
if (!that.updata.name) {
|
|
|
uni.showModal({
|
|
|
title: '错误',
|
|
|
content: '请填写姓名',
|
|
|
showCancel: false,
|
|
|
});
|
|
|
- return
|
|
|
+ return false
|
|
|
}
|
|
|
if (!that.updata.cardId) {
|
|
|
uni.showModal({
|
|
@@ -679,7 +718,7 @@
|
|
|
content: '请填写正确的身份证号',
|
|
|
showCancel: false,
|
|
|
});
|
|
|
- return
|
|
|
+ return false
|
|
|
}
|
|
|
if (!that.updata.phone) {
|
|
|
uni.showModal({
|
|
@@ -687,7 +726,7 @@
|
|
|
content: '请填写手机号',
|
|
|
showCancel: false,
|
|
|
});
|
|
|
- return
|
|
|
+ return false
|
|
|
}
|
|
|
if (!that.updata.timetype.code) {
|
|
|
uni.showModal({
|
|
@@ -695,7 +734,7 @@
|
|
|
content: '请选择收费时间类型',
|
|
|
showCancel: false,
|
|
|
});
|
|
|
- return
|
|
|
+ return false
|
|
|
}
|
|
|
if (!that.updata.minMoney) {
|
|
|
uni.showModal({
|
|
@@ -703,7 +742,7 @@
|
|
|
content: '请填写最低收费价',
|
|
|
showCancel: false,
|
|
|
});
|
|
|
- return
|
|
|
+ return false
|
|
|
}
|
|
|
if (!that.updata.maxMoney) {
|
|
|
uni.showModal({
|
|
@@ -711,7 +750,7 @@
|
|
|
content: '请填写最高收费价',
|
|
|
showCancel: false,
|
|
|
});
|
|
|
- return
|
|
|
+ return false
|
|
|
}
|
|
|
if (that.updata.onCity.length == 0) {
|
|
|
uni.showModal({
|
|
@@ -719,7 +758,7 @@
|
|
|
content: '请选择服务区域',
|
|
|
showCancel: false,
|
|
|
});
|
|
|
- return
|
|
|
+ return false
|
|
|
}
|
|
|
if (that.updata.checkedType.length == 0) {
|
|
|
uni.showModal({
|
|
@@ -727,39 +766,9 @@
|
|
|
content: '请选择服务内容',
|
|
|
showCancel: false,
|
|
|
});
|
|
|
- return
|
|
|
+ return false
|
|
|
}
|
|
|
- that.loding = true;
|
|
|
- subInfoAudit({
|
|
|
- avatar: that.updata.avatar,
|
|
|
- name: that.updata.name,
|
|
|
- mobile: that.updata.phone,
|
|
|
- idcard: that.updata.cardId,
|
|
|
- service_type: that.updata.timetype.code,
|
|
|
- service_min_price: that.updata.minMoney,
|
|
|
- service_max_price: that.updata.maxMoney,
|
|
|
- service_area: that.updata.onCity.map((arr) => {
|
|
|
- return arr.district
|
|
|
- }),
|
|
|
- service_project: that.updata.checkedType,
|
|
|
- service_intro_content: that.updata.mymask,
|
|
|
- service_intro_imgs: that.updata.imageList,
|
|
|
- work_year: that.updata.work_year,
|
|
|
- ancestral_place: that.updata.ancestral_place,
|
|
|
- education: that.updata.education,
|
|
|
- minority: that.updata.minority,
|
|
|
- service_audit_imgs: that.updata.service_audit_imgs,
|
|
|
- service_imgs: that.updata.service_imgs,
|
|
|
- user_work_type_id: that.updata.word.id,
|
|
|
- })
|
|
|
- .then((e) => {
|
|
|
- that.loding = false;
|
|
|
- this.$api.msg(e.msg);
|
|
|
- })
|
|
|
- .catch(err => {
|
|
|
- this.loding = false;
|
|
|
- console.log(err);
|
|
|
- });
|
|
|
+ return true
|
|
|
}
|
|
|
}
|
|
|
};
|