|
|
@@ -26,7 +26,7 @@
|
|
|
<u-form-item label="邮箱" prop="email" :label-width="auto"><u-input v-model="form.email" /></u-form-item>
|
|
|
<u-form-item label="出生日期" prop="userBirth" :label-width="auto">
|
|
|
<picker mode="date" :value="form.userBirth" @change="bindDateChange">
|
|
|
- <view class="picker">{{ form.userBirth }}</view>
|
|
|
+ <view class="picker">{{ form.userBirth?form.userBirth:'未知' }}</view>
|
|
|
</picker>
|
|
|
</u-form-item>
|
|
|
<!-- <u-form-item label="身份"></u-form-item> -->
|
|
|
@@ -62,9 +62,10 @@
|
|
|
size-type="['compressed']"
|
|
|
max-count="1"
|
|
|
@on-list-change="changePhotoListHeader"
|
|
|
+ @on-remove="onRemovePic"
|
|
|
>
|
|
|
<template v-slot:addBtn>
|
|
|
- <image :src="form.oneInchPhotos ? $method.splitImgHost( form.oneInchPhotos) : '/static/info_1.png'" style="width: 120rpx; height: 169rpx;"></image>
|
|
|
+ <image :src="form.oneInchPhotos ? $method.splitImgHost( form.oneInchPhotos) : '/static/info_1.png'" style="width: 120rpx; height: 169rpx;"></image>
|
|
|
</template>
|
|
|
</u-upload>
|
|
|
</u-form-item>
|
|
|
@@ -199,6 +200,9 @@ export default {
|
|
|
this.array_politic = this.$store.state.dictObj['politic_status']
|
|
|
},
|
|
|
methods: {
|
|
|
+ onRemovePic(){
|
|
|
+ this.form.oneInchPhotos = null
|
|
|
+ },
|
|
|
getUserInfos(){
|
|
|
var self = this
|
|
|
this.$api.getInfo().then(res => {
|
|
|
@@ -278,9 +282,10 @@ export default {
|
|
|
},
|
|
|
async submitForm() {
|
|
|
var self = this;
|
|
|
- if (this.fileList.length > 0) {
|
|
|
- const waitYS = await this.imageInfos();
|
|
|
+ if (self.fileList.length > 0&&self.fileList[0].url!=self.$method.splitImgHost(self.form.oneInchPhotos)) {
|
|
|
+ const waitYS = await self.imageInfos();
|
|
|
}
|
|
|
+ console.log(343223)
|
|
|
var data = {
|
|
|
userId: this.form.userId,
|
|
|
email: this.form.email,
|