|
@@ -57,10 +57,21 @@
|
|
|
<image class="upload-close" src="../../static/pages/images/close3.png" @click.stop="wechatCode=''"></image>
|
|
<image class="upload-close" src="../../static/pages/images/close3.png" @click.stop="wechatCode=''"></image>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+ <view class="li dflex">
|
|
|
|
|
+ <view class="label">企微二维码</view>
|
|
|
|
|
+ <view v-if="!wechatCompanyCode" class="upload-box ddflex" @tap="uploadWechatCompanyCode()">
|
|
|
|
|
+ <image src="../static/images/pic.png"></image>
|
|
|
|
|
+ <view>点击上传</view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view v-else class="upload-box-image ddflex" @tap="uploadWechatCompanyCode()">
|
|
|
|
|
+ <image class="upload-image" :src="wechatCompanyCode"></image>
|
|
|
|
|
+ <image class="upload-close" src="../../static/pages/images/close3.png" @click.stop="wechatCompanyCode=''"></image>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
<view class="form">
|
|
<view class="form">
|
|
|
- <view class="li dflex">
|
|
|
|
|
|
|
+ <!-- <view class="li dflex">
|
|
|
<view class="label">所获荣誉</view>
|
|
<view class="label">所获荣誉</view>
|
|
|
<view class="ddflex upload-group flex">
|
|
<view class="ddflex upload-group flex">
|
|
|
<view class="upload-box-image ddflex" v-for="item,index in honorImgUrls" @click="uploadHonor('change',index)">
|
|
<view class="upload-box-image ddflex" v-for="item,index in honorImgUrls" @click="uploadHonor('change',index)">
|
|
@@ -72,7 +83,7 @@
|
|
|
<view>点击上传</view>
|
|
<view>点击上传</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
- </view>
|
|
|
|
|
|
|
+ </view> -->
|
|
|
<view class="li dflex">
|
|
<view class="li dflex">
|
|
|
<view class="label">个人风采</view>
|
|
<view class="label">个人风采</view>
|
|
|
<view class="ddflex upload-group flex">
|
|
<view class="ddflex upload-group flex">
|
|
@@ -159,6 +170,7 @@ export default {
|
|
|
jobNumber:'',
|
|
jobNumber:'',
|
|
|
wechat: '',
|
|
wechat: '',
|
|
|
wechatCode:'',
|
|
wechatCode:'',
|
|
|
|
|
+ wechatCompanyCode:'',
|
|
|
email: '',
|
|
email: '',
|
|
|
companyName: '',
|
|
companyName: '',
|
|
|
job:'',//职业
|
|
job:'',//职业
|
|
@@ -278,6 +290,7 @@ export default {
|
|
|
this.phone = res.phone;
|
|
this.phone = res.phone;
|
|
|
this.wechat = res.wechat;
|
|
this.wechat = res.wechat;
|
|
|
this.wechatCode = res.wechatCode;
|
|
this.wechatCode = res.wechatCode;
|
|
|
|
|
+ this.wechatCompanyCode = res.wechatCompanyCode;
|
|
|
this.email = res.email;
|
|
this.email = res.email;
|
|
|
this.companyName = res.companyName;
|
|
this.companyName = res.companyName;
|
|
|
this.companyIntroduction = res.companyIntroduction?res.companyIntroduction:''
|
|
this.companyIntroduction = res.companyIntroduction?res.companyIntroduction:''
|
|
@@ -386,6 +399,39 @@ export default {
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
|
|
+ uploadWechatCompanyCode() {
|
|
|
|
|
+ let that = this;
|
|
|
|
|
+ uni.chooseImage({
|
|
|
|
|
+ count: 1,
|
|
|
|
|
+ sizeType: ['original', 'compressed'],
|
|
|
|
|
+ sourceType: ['album', 'camera'],
|
|
|
|
|
+ success: function({ tempFilePaths }) {
|
|
|
|
|
+ uni.showLoading({
|
|
|
|
|
+ title:'上传中'
|
|
|
|
|
+ })
|
|
|
|
|
+ var promise = Promise.all(
|
|
|
|
|
+ tempFilePaths.map(tempFilePath => {
|
|
|
|
|
+ return new Promise(function(resolve, reject) {
|
|
|
|
|
+ req.uploadFile('/api/nocheck/upload', tempFilePath, res => {
|
|
|
|
|
+ that.wechatCompanyCode = res.src;
|
|
|
|
|
+ resolve()
|
|
|
|
|
+ });
|
|
|
|
|
+ });
|
|
|
|
|
+ })
|
|
|
|
|
+ );
|
|
|
|
|
+ promise
|
|
|
|
|
+ .then(function(results) {
|
|
|
|
|
+ console.log(results);
|
|
|
|
|
+ uni.hideLoading()
|
|
|
|
|
+ })
|
|
|
|
|
+ .catch(function(err) {
|
|
|
|
|
+ console.log(err);
|
|
|
|
|
+ uni.hideLoading()
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
|
|
|
uploadHonor(type,index){
|
|
uploadHonor(type,index){
|
|
|
let that = this;
|
|
let that = this;
|
|
@@ -562,6 +608,7 @@ export default {
|
|
|
dataP.phone = this.phone;
|
|
dataP.phone = this.phone;
|
|
|
dataP.wechat = this.wechat;
|
|
dataP.wechat = this.wechat;
|
|
|
dataP.wechatCode = this.wechatCode;
|
|
dataP.wechatCode = this.wechatCode;
|
|
|
|
|
+ dataP.wechatCompanyCode = this.wechatCompanyCode;
|
|
|
dataP.companyName = this.companyName;
|
|
dataP.companyName = this.companyName;
|
|
|
dataP.companyIntroduction = this.companyIntroduction;
|
|
dataP.companyIntroduction = this.companyIntroduction;
|
|
|
dataP.job = this.employmentInfo.actrank;
|
|
dataP.job = this.employmentInfo.actrank;
|