diff --git a/pages/cooperate/index.vue b/pages/cooperate/index.vue
index c6a8fc2..5a5b761 100644
--- a/pages/cooperate/index.vue
+++ b/pages/cooperate/index.vue
@@ -9,7 +9,7 @@
点击申请
- 城市合伙人
+ 申请合作技师
点击申请
diff --git a/pages/my/hehuo.vue b/pages/my/hehuo.vue
index bab9786..dba4abb 100644
--- a/pages/my/hehuo.vue
+++ b/pages/my/hehuo.vue
@@ -1,7 +1,7 @@
- 应聘技师
+ 申请合作技师
-
+
+ 上传身份证反面
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 上传图片
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 上传资格证书(可多张)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 上传图片
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
提交申请
@@ -109,7 +179,9 @@
userName: '',
phone: '',
age: '',
- headImg: [],
+ front: '',
+ back:'',
+ certification:[],
bb:'1',
cityData:''
}
@@ -190,9 +262,17 @@
this.loadAreas(this.cityArr[1][e.detail.value].AreaId);
}
},
- // 本人近期照删除
- headImgremove(index) {
- this.headImg = ''
+ // 身份证正面删除
+ frontremove(index) {
+ this.front = ''
+ },
+ // 身份证反面删除
+ frontremoves(index) {
+ this.back = ''
+ },
+ // 资质证书删除
+ frontremoveC(index) {
+ this.certification = []
},
getChannel() {
let userId = this.$queue.getData('userId');
@@ -204,11 +284,13 @@
this.bb = res.data.status;
this.city = res.data.city;
this.age = res.data.age;
- this.headImg = res.data.img;
+ this.front = res.data.front;
this.userName = res.data.name;
this.phone = res.data.phone;
+ this.back=res.data.back;
+ this.certification = res.data.certification.split(',')
+ console.log('111111111',this.certification)
}
- console.log(this.bb)
// this.auditContent = res.data.auditContent;
}
});
@@ -253,10 +335,15 @@
this.$queue.showToast('请输入年龄')
return;
}
- if (this.headImg == '') {
- this.$queue.showToast('请上传头像')
+ if (this.front == '') {
+ this.$queue.showToast('请上身份证正面')
return;
}
+ if (this.back == '') {
+ this.$queue.showToast('请上身份证反面')
+ return;
+ }
+ this.certification = this.certification.toString();
let userId = this.$queue.getData('userId');
let data = {
userId: userId,
@@ -264,7 +351,9 @@
phone: this.phone,
age: this.age,
city: this.cityData,
- img: this.headImg,
+ front: this.front,
+ back:this.back,
+ certification:this.certification
}
this.$Request.postJson('/app/artificer/insertAgency', data).then(res => {
if (res.code == 0) {
@@ -279,6 +368,75 @@
}
});
},
+ addImageC() {
+ let that = this
+ uni.chooseImage({
+ count: 4,
+ sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认两者都有
+ sourceType: ['album', 'camera'],
+ success: res => {
+ that.$queue.showLoading("上传中...");
+ for (let i = 0; i < res.tempFilePaths.length; i++) {
+ var tempFilePaths=res.tempFilePaths[i]
+ console.log("tempFilePaths----",res)
+ that.checkImageSize(tempFilePaths, (isValid) => {
+ if (isValid) {
+ uni.uploadFile({ // 上传接口
+ url: websocketUtils.uploadFileUrl(), //真实的接口地址
+ filePath: tempFilePaths,
+ name: 'file',
+ success: (uploadFileRes) => {
+ console.log(uploadFileRes.data)
+ that.certification.push(JSON.parse(uploadFileRes.data)
+ .data)
+ // that.certification = JSON.parse(uploadFileRes.data).data
+ console.log(that.certification)
+ uni.hideLoading();
+ }
+ });
+ // 图片校验通过后的逻辑
+ console.log('图片校验通过,可以上传');
+ } else {
+ console.log('图片超出大小限制,请重新选择');
+ }
+ });
+ }
+
+ }
+ })
+ },
+ addImageBack() {
+ let that = this
+ uni.chooseImage({
+ count: 1,
+ sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认两者都有
+ sourceType: ['album', 'camera'],
+ success: res => {
+ that.$queue.showLoading("上传中...");
+ var tempFilePaths=res.tempFilePaths[0]
+ console.log("tempFilePaths----",res)
+ that.checkImageSize(tempFilePaths, (isValid) => {
+ if (isValid) {
+ uni.uploadFile({ // 上传接口
+ url: websocketUtils.uploadFileUrl(), //真实的接口地址
+ filePath: res.tempFilePaths[0],
+ name: 'file',
+ success: (uploadFileRes) => {
+ console.log(uploadFileRes.data)
+ that.back = JSON.parse(uploadFileRes.data).data
+ console.log(that.back)
+ uni.hideLoading();
+ }
+ });
+ // 图片校验通过后的逻辑
+ console.log('图片校验通过,可以上传');
+ } else {
+ console.log('图片超出大小限制,请重新选择');
+ }
+ });
+ }
+ })
+ },
addImage() {
let that = this
uni.chooseImage({
@@ -292,6 +450,17 @@
that.checkImageSize(tempFilePaths, (isValid) => {
if (isValid) {
// 图片校验通过后的逻辑
+ uni.uploadFile({ // 上传接口
+ url: websocketUtils.uploadFileUrl(), //真实的接口地址
+ filePath: res.tempFilePaths[0],
+ name: 'file',
+ success: (uploadFileRes) => {
+ console.log(uploadFileRes.data)
+ that.front = JSON.parse(uploadFileRes.data).data
+ console.log(that.front)
+ uni.hideLoading();
+ }
+ });
console.log('图片校验通过,可以上传');
} else {
console.log('图片超出大小限制,请重新选择');
@@ -316,7 +485,6 @@
callback(false);
} else {
// 图片小于等于2MB
- this.uploadImage(filePath)
callback(true);
}
},
@@ -325,21 +493,6 @@
}
});
},
- // 上传图片
- uploadImage(filePath) {
- let that = this
- uni.uploadFile({ // 上传接口
- url: websocketUtils.uploadFileUrl(), //真实的接口地址
- filePath: filePath,
- name: 'file',
- success: (uploadFileRes) => {
- console.log(uploadFileRes.data)
- that.headImg = JSON.parse(uploadFileRes.data).data
- console.log(that.headImg)
- uni.hideLoading();
- }
- });
- }
}
}
diff --git a/pages/my/index.vue b/pages/my/index.vue
index f306299..d181966 100644
--- a/pages/my/index.vue
+++ b/pages/my/index.vue
@@ -147,7 +147,7 @@
- 应聘技师
+ 申请合作技师
diff --git a/pages/therapist/therapist.vue b/pages/therapist/therapist.vue
index e26673c..0e87dd5 100644
--- a/pages/therapist/therapist.vue
+++ b/pages/therapist/therapist.vue
@@ -100,128 +100,90 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ getOrderByCurrentMarkerIndex().artificerName }}
-
-
-
-
-
- 可服务
- {{getOrderByCurrentMarkerIndex().time}}
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ getOrderByCurrentMarkerIndex().artificerName }}
+
+
- 休息中
+ 可服务
+ {{getOrderByCurrentMarkerIndex().time}}
+
+
+
+ 休息中
-
-
- {{getOrderByCurrentMarkerIndex().content}}
-
-
-
-
-
- 评论
-
- {{ getOrderByCurrentMarkerIndex().commentCount ? getOrderByCurrentMarkerIndex().commentCount : 0 }}
-
-
-
-
-
- 收藏
-
- {{ getOrderByCurrentMarkerIndex().collectCount ? getOrderByCurrentMarkerIndex().collectCount : 0 }}
-
+
+
+ {{getOrderByCurrentMarkerIndex().content}}
+
+
+
+
+
+ 评论
+
+ {{ getOrderByCurrentMarkerIndex().commentCount ? getOrderByCurrentMarkerIndex().commentCount : 0 }}
-
-
-
-
- {{ getOrderByCurrentMarkerIndex().distance }}
-
-
-
-
- {{getOrderByCurrentMarkerIndex().consortiaName}}
+
+
+
+ 收藏
+
+ {{ getOrderByCurrentMarkerIndex().collectCount ? getOrderByCurrentMarkerIndex().collectCount : 0 }}
-
-
- 立即预约
-
- 立即预约
+
+
+ {{getOrderByCurrentMarkerIndex().consortiaName}}
-
-
+
+
+ 立即预约
+
+
+ 立即预约
-
-
-
-
-
-
- {{
- tpCount }}人已投票
- 投票
- 已投票
-
-
+
+