|
|
@@ -44,11 +44,12 @@ import { setTimeout } from "timers";
|
|
|
},
|
|
|
methods: {
|
|
|
submit(){
|
|
|
- if(!this.saleNo) req.msg("请输入工号")
|
|
|
+ if(!this.saleNo) return req.msg("请输入工号")
|
|
|
+ if(!this.code) return req.msg("请输入验证码")
|
|
|
req.postRequest('/api/user/bindSaleNo',{saleNo:this.saleNo,yzlCode:this.code},res=>{
|
|
|
req.msg("绑定成功")
|
|
|
req.getRequest('/api/user/info', {}, suc => {
|
|
|
- req.setStorage('userInfo', data);
|
|
|
+ req.setStorage('userInfo', suc);
|
|
|
});
|
|
|
setTimeout(()=>{
|
|
|
uni.navigateBack()
|