|
|
@@ -7,7 +7,7 @@
|
|
|
个人职业成长定制服务!
|
|
|
</view>
|
|
|
<view style="display: flex;align-items: center;">
|
|
|
- <view class="btn" v-if="form.certified === 0" style="margin-right: 5rpx;" @click="certification">认证</view>
|
|
|
+ <view class="btn" v-if="form.certified === 0" style="margin-right: 5rpx;" @click="certification">认证</view>
|
|
|
<view class="btn">编辑</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -62,12 +62,10 @@
|
|
|
>
|
|
|
<template v-slot:addBtn>
|
|
|
<image :src="form.oneInchPhotos ? $method.splitImgHost('/' + form.oneInchPhotos) : '/static/info_1.png'" style="width: 120rpx; height: 169rpx;"></image>
|
|
|
-
|
|
|
- <image src="/static/info_1.png" style="width: 120rpx; height: 169rpx;"></image>
|
|
|
</template>
|
|
|
</u-upload>
|
|
|
</u-form-item>
|
|
|
- <u-form-item label="身份证人像面" :label-width="auto" label-position="top">
|
|
|
+ <!-- <u-form-item label="身份证人像面" :label-width="auto" label-position="top">
|
|
|
<u-upload
|
|
|
:auto-upload="false"
|
|
|
custom-btn="true"
|
|
|
@@ -100,7 +98,7 @@
|
|
|
<image src="/static/info_3.png" style="width: 120rpx; height: 82rpx;"></image>
|
|
|
</template>
|
|
|
</u-upload>
|
|
|
- </u-form-item>
|
|
|
+ </u-form-item> -->
|
|
|
</u-form>
|
|
|
</view>
|
|
|
<u-button type="success" @click="resultForm">提交</u-button>
|
|
|
@@ -161,7 +159,9 @@ export default {
|
|
|
// 可以单个或者同时写两个触发验证方式
|
|
|
trigger: 'blur'
|
|
|
}
|
|
|
- ]
|
|
|
+ ],
|
|
|
+ width: 0,
|
|
|
+ height: 0
|
|
|
}
|
|
|
};
|
|
|
},
|
|
|
@@ -173,9 +173,6 @@ export default {
|
|
|
Verify.init();
|
|
|
this.getUserInfos();
|
|
|
},
|
|
|
- mounted() {
|
|
|
- console.log(this.$method.splitImgHost('/' + this.form.oneInchPhotos));
|
|
|
- },
|
|
|
methods: {
|
|
|
getUserInfos() {
|
|
|
this.$api.getInfo().then(res => {
|
|
|
@@ -204,7 +201,7 @@ export default {
|
|
|
},
|
|
|
success: result => {
|
|
|
setTimeout(() => {
|
|
|
- self.getUserInfos()
|
|
|
+ self.getUserInfos();
|
|
|
}, 500);
|
|
|
},
|
|
|
fail: err => {
|
|
|
@@ -221,7 +218,7 @@ export default {
|
|
|
async submitForm() {
|
|
|
var self = this;
|
|
|
if (this.fileList.length > 0) {
|
|
|
- const waitUpload = await this.uploadFile(this.fileList, 0);
|
|
|
+ const waitUpload = await self.uploadFile(this.fileList[0].url, 0);
|
|
|
}
|
|
|
var data = {
|
|
|
userId: this.form.userId,
|
|
|
@@ -258,11 +255,12 @@ export default {
|
|
|
imageStatus: int
|
|
|
};
|
|
|
this.$api.aliyunpolicy(data).then(res => {
|
|
|
+ console.log(res);
|
|
|
var ossToken = res.data.data.resultContent;
|
|
|
uni.uploadFile({
|
|
|
url: ossToken.host,
|
|
|
name: 'file',
|
|
|
- filePath: options[0].file.path,
|
|
|
+ filePath: options,
|
|
|
fileType: 'image',
|
|
|
header: {
|
|
|
AuthorizationToken: 'WX ' + self.$store.state.token
|
|
|
@@ -273,7 +271,7 @@ export default {
|
|
|
policy: ossToken.policy,
|
|
|
Signature: ossToken.signature,
|
|
|
callback: ossToken.callback,
|
|
|
- success_action_status: 200,
|
|
|
+ success_action_status: 200
|
|
|
},
|
|
|
success: result => {
|
|
|
if (result.statusCode === 200) {
|