|
@@ -40,12 +40,12 @@
|
|
|
<p>宿舍区</p>
|
|
|
<van-radio-group v-model="dormDistrict">
|
|
|
<van-radio name="0" checked-color="#fd6740" style="float: left; margin: 0 0 15px 10px"
|
|
|
- :disabled="isReadonly">南区
|
|
|
+ :disabled="isReadonly">斋区
|
|
|
</van-radio>
|
|
|
<van-radio name="1" checked-color="#fd6740" style="float: left; margin: 0 10px 15px 10px"
|
|
|
:disabled="isReadonly">西南
|
|
|
</van-radio>
|
|
|
- <van-radio name="2" checked-color="#fd6740" style="margin: 0 10px 15px 10px" :disabled="isReadonly">斋区
|
|
|
+ <van-radio name="2" checked-color="#fd6740" style="margin: 0 10px 15px 10px" :disabled="isReadonly">南区
|
|
|
</van-radio>
|
|
|
<van-radio name="3" checked-color="#fd6740" style="float: left; margin: 0 0 15px 10px"
|
|
|
:disabled="isReadonly">桂庙
|
|
@@ -127,9 +127,9 @@
|
|
|
if (this.personName.length === 0) {
|
|
|
this.personError = true;
|
|
|
return;
|
|
|
- } else if (this.weixinName.length >= 20) {
|
|
|
+ } else if (this.weixinName.length < 6) {
|
|
|
this.weixinError = true;
|
|
|
- Toast.fail('最多输入20个字符');
|
|
|
+ Toast.fail('请输入正确格式的微信号');
|
|
|
return;
|
|
|
}
|
|
|
// post_present()
|
|
@@ -152,7 +152,7 @@
|
|
|
console.log("------ Data Rcvd in getIdentityInfo --------");
|
|
|
console.log(response);
|
|
|
if (response.ret === "10000") {
|
|
|
- var t = response.model.list;
|
|
|
+ let t = response.model.list;
|
|
|
that.personName = t[0].name; // 左侧是vue页面内的变量名字, 右侧是后台数据里的变量名称
|
|
|
that.userDo = t[0];
|
|
|
} else {
|
|
@@ -174,8 +174,9 @@
|
|
|
if (response.ret === "10000") {
|
|
|
var t = response.model.list;
|
|
|
that.gender = ""+t[0].userSex; // 左侧是vue页面内的变量名字, 右侧是后台数据里的变量名称
|
|
|
- that.dormDistrict = ""+t[0].dormDistrict; //TODO: 请注意文本数字转换
|
|
|
+ that.dormDistrict = t[0].dormDistrict.toString(); //TODO: 请注意文本数字转换
|
|
|
that.reviewDo = t[0];
|
|
|
+ that.weixinName = t[0].userWxAccount;
|
|
|
} else {
|
|
|
Toast.fail("获取失败,请检查网络");
|
|
|
}
|