|
|
@@ -367,11 +367,11 @@
|
|
|
// 选择学历
|
|
|
changeEducation(res) {
|
|
|
this.updata.education = this.educationList[res.detail.value];
|
|
|
- console.log(res);
|
|
|
+ // console.log(res);
|
|
|
},
|
|
|
changeAreaList(res) {
|
|
|
this.updata.is_wm = this.areaList[res.detail.value];
|
|
|
- console.log(res);
|
|
|
+ // console.log(res);
|
|
|
},
|
|
|
// 初始化
|
|
|
init() {
|
|
|
@@ -412,7 +412,7 @@
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- console.log(res, '服务');
|
|
|
+ // console.log(res, '服务');
|
|
|
}
|
|
|
).catch(
|
|
|
(res) => {
|
|
|
@@ -421,7 +421,7 @@
|
|
|
)
|
|
|
getUserWorkTypeList().then(
|
|
|
(res) => {
|
|
|
- console.log(res);
|
|
|
+ // console.log(res);
|
|
|
that.workTypeList = res.data.list
|
|
|
if (that.type == 0) {
|
|
|
that.updata.word = that.workTypeList[0];
|
|
|
@@ -465,7 +465,7 @@
|
|
|
}
|
|
|
}
|
|
|
)
|
|
|
- console.log(that.updata);
|
|
|
+ // console.log(that.updata);
|
|
|
let data = {
|
|
|
is_china: that.updata.is_wm == '是'?0:1,
|
|
|
name: that.updata.name,
|
|
|
@@ -494,7 +494,7 @@
|
|
|
user_work_type_title: that.updata.word.title,
|
|
|
service_count: that.updata.service_count
|
|
|
}
|
|
|
- console.log('baocun',data);
|
|
|
+ // console.log('baocun',data);
|
|
|
uni.setStorageSync('modeldata', data)
|
|
|
uni.navigateTo({
|
|
|
url: '/pages/user/model/model?mtype=' + that.modelid + '&type=1'
|
|
|
@@ -507,7 +507,7 @@
|
|
|
getUserCardInfo().then(
|
|
|
(data) => {
|
|
|
const res = data.data;
|
|
|
- console.log(res, '返回');
|
|
|
+ // console.log(res, '返回');
|
|
|
// 存储返回用户数据
|
|
|
that.userModelData = res;
|
|
|
that.updata = Object.assign(that.updata, {
|
|
|
@@ -538,7 +538,7 @@
|
|
|
no: res.no,
|
|
|
service_count: res.service_count
|
|
|
})
|
|
|
- console.log(that.updata, 'that.updata');
|
|
|
+ // console.log(that.updata, 'that.updata');
|
|
|
resolve('初始化数据成功')
|
|
|
}
|
|
|
).catch(
|
|
|
@@ -552,12 +552,12 @@
|
|
|
// 选中的服务类型
|
|
|
checkTypeChange(type) {
|
|
|
this.updata.checkedType = type.detail.value;
|
|
|
- console.log(type)
|
|
|
+ // console.log(type)
|
|
|
},
|
|
|
// 选中的工作类型
|
|
|
changeWorkType(type) {
|
|
|
this.updata.word = this.workTypeList[type.detail.value];
|
|
|
- console.log(this.updata.word)
|
|
|
+ // console.log(this.updata.word)
|
|
|
},
|
|
|
// 选择时间类型
|
|
|
changetimetype(res) {
|
|
|
@@ -566,7 +566,7 @@
|
|
|
// 时间选择
|
|
|
changetime(time) {
|
|
|
this.updata.time = time.detail.value;
|
|
|
- console.log(time);
|
|
|
+ // console.log(time);
|
|
|
},
|
|
|
// 选择籍贯
|
|
|
changeAncestralPlace(val) {
|
|
|
@@ -581,7 +581,7 @@
|
|
|
address.city = data[1];
|
|
|
address.district = data[2];
|
|
|
this.updata.onCity.push(address)
|
|
|
- console.log(this.onCity, 'cs');
|
|
|
+ // console.log(this.onCity, 'cs');
|
|
|
},
|
|
|
upLoad(path) {
|
|
|
// #ifdef H5
|
|
|
@@ -693,7 +693,30 @@
|
|
|
return new Promise((ok, error) => {
|
|
|
// 从相册/相机选择
|
|
|
// 如需直接开相机或直接选相册,请只使用一个选项
|
|
|
- const sourceType = index === 0 ? ['camera'] : ['album']
|
|
|
+ const sourceType = index === 0 ? ['camera'] : ['album'];
|
|
|
+ // #ifdef MP
|
|
|
+ uni.chooseMedia({
|
|
|
+ count: 1,
|
|
|
+ mediaType:['image'],
|
|
|
+ sizeType: ['compressed'], //可以指定是原图还是压缩图,默认二者都有
|
|
|
+ sourceType: sourceType,
|
|
|
+ success(res) {
|
|
|
+ console.log(res);
|
|
|
+ // 缓存文件路径
|
|
|
+ ok(res.tempFiles[0])
|
|
|
+ },
|
|
|
+ fail(err) {
|
|
|
+ console.log(err,'’1111')
|
|
|
+ uni.showModal({
|
|
|
+ title: '文件打开错误',
|
|
|
+ content: '请设置授权文件存储权限',
|
|
|
+ showCancel: false,
|
|
|
+ });
|
|
|
+ error(e)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ // #endif
|
|
|
+ // #ifndef MP
|
|
|
uni.chooseImage({
|
|
|
count: 1, //默认9
|
|
|
sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有
|
|
|
@@ -710,6 +733,8 @@
|
|
|
error(e)
|
|
|
}
|
|
|
});
|
|
|
+ // #endif
|
|
|
+
|
|
|
})
|
|
|
},
|
|
|
// 实名认证
|