|
|
@@ -19,12 +19,7 @@
|
|
|
<input v-model="data.realName" placeholder="请输入姓名" />
|
|
|
<icon :style="{ backgroundImage: 'url(' + data.jtIcon + ')' }"></icon>
|
|
|
</view>
|
|
|
- <!-- 手机号 -->
|
|
|
- <view class="form-label-input">
|
|
|
- <view class="phone-form-label"><text class="form-label-require">*</text>手机号</view>
|
|
|
- <input v-model="data.userName" placeholder="请输入手机号" />
|
|
|
- <icon :style="{ backgroundImage: 'url(' + data.jtIcon + ')' }"></icon>
|
|
|
- </view>
|
|
|
+
|
|
|
<!-- 证件号 -->
|
|
|
<view class="form-label-input">
|
|
|
<view class="phone-form-label"><text class="form-label-require">*</text>证件号</view>
|
|
|
@@ -70,7 +65,6 @@
|
|
|
icon: '',
|
|
|
realName: '',
|
|
|
idcard: '',
|
|
|
- userName: '',
|
|
|
userId: null,
|
|
|
images: null,
|
|
|
jtIcon: '',
|
|
|
@@ -180,16 +174,13 @@
|
|
|
if (!data.realName) {
|
|
|
arr.push('姓名');
|
|
|
}
|
|
|
- if (!data.userName) {
|
|
|
- arr.push('电话');
|
|
|
- }
|
|
|
if (!data.icon) {
|
|
|
arr.push('头像');
|
|
|
}
|
|
|
if (!data.idcard) {
|
|
|
arr.push('证件号');
|
|
|
}
|
|
|
- if (!data.realName || !data.userName||!data.icon||!data.idcard) {
|
|
|
+ if (!data.realName ||!data.icon||!data.idcard) {
|
|
|
uni.showToast({
|
|
|
icon: 'none',
|
|
|
title: `请完善${arr.join('、')}信息!`
|
|
|
@@ -203,7 +194,6 @@
|
|
|
idcard: data.idcard,
|
|
|
realName: data.realName,
|
|
|
userId: data.userId,
|
|
|
- userName: data.userName,
|
|
|
}
|
|
|
myApi.getMineUpdate(opt).then(res => {
|
|
|
if (res.data) {
|
|
|
@@ -240,12 +230,11 @@
|
|
|
|
|
|
function initPage() {
|
|
|
myApi.getMineUser().then(res => {
|
|
|
- const {gender,icon,idcard,realName,userName,userId} = res.data;
|
|
|
+ const {gender,icon,idcard,realName,userId} = res.data;
|
|
|
data.gender = res.data.gender;
|
|
|
data.icon = res.data.icon;
|
|
|
data.idcard = res.data.idcard;
|
|
|
data.realName = res.data.realName;
|
|
|
- data.userName = res.data.userName;
|
|
|
data.userId = res.data.userId;
|
|
|
// data.images = data.icon?{ url: data.icon, extname: 'png', name: 'touxiang.png' }:defaultImage1.value
|
|
|
data.images = data.icon?data.icon:defaultImage1.value
|