Browse Source

1、增加位置账号异常的返回;

2、修复党员属性无法更新的问题;
3、调整个人信息表单顺序;
shibei
luyan 1 year ago
parent
commit
9571fd0857
  1. 18
      miniprogram/pages/formid/formid.wxml
  2. 11
      miniprogram/pages/login/login.js

18
miniprogram/pages/formid/formid.wxml

@ -54,15 +54,6 @@
<input confirm-type="next" bindblur="bindWorkUnitInput" bindinput="bindWorkUnitInput" value="{{form.workUnit}}" placeholder-class="placeholder-style" placeholder="请输入" />
</view>
</view>
<view class="list-item gray">
<view class="left">
<text class="must">*</text>
<view class="title">专业特长</view>
</view>
<view class="right">
<input confirm-type="next" bindblur="bindWorkIndustryInput" bindinput="bindWorkIndustryInput" value="{{form.workIndustry}}" placeholder-class="placeholder-style" placeholder="请输入" />
</view>
</view>
<view class="list-item ">
<view class="left">
<!-- <text class="must">*</text> -->
@ -74,6 +65,15 @@
</picker>
</view>
</view>
<view class="list-item gray">
<view class="left">
<text class="must">*</text>
<view class="title">专业特长</view>
</view>
<view class="right">
<input confirm-type="next" bindblur="bindWorkIndustryInput" bindinput="bindWorkIndustryInput" value="{{form.workIndustry}}" placeholder-class="placeholder-style" placeholder="请输入" />
</view>
</view>
<view class="list-item" wx:if="{{form.workType == '其他'}}">
<view class="left">
<!-- <text class="must">*</text> -->

11
miniprogram/pages/login/login.js

@ -97,8 +97,14 @@ Page({
wxCode: code
};
api.getToken(params).then((res) => {
console.log(res);
if (res.code == 0) {
if(res.data.userState == '4'){
wx.showToast({
title: '请确认账号密码是否正确或联系管理员!',
icon: 'none',
duration: 3000
});
}else {
wx.setStorageSync('token', res.data.token);
wx.setStorageSync('userId', res.data.userId);
wx.setStorageSync('userTagKey', res.data.userTagKey);
@ -106,11 +112,12 @@ Page({
wx.switchTab({
url: '/pages/home/home'
});
}
} else {
wx.showToast({
title: res.msg,
icon: 'none',
duration: 2000
duration: 3000
});
}
wx.hideLoading();

Loading…
Cancel
Save