xhj 2 лет назад
Родитель
Сommit
40a3c8ca89
2 измененных файлов с 3 добавлено и 3 удалено
  1. 3 2
      mine/bindNumber/bindNumber.vue
  2. 0 1
      pages.json

+ 3 - 2
mine/bindNumber/bindNumber.vue

@@ -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()

+ 0 - 1
pages.json

@@ -70,7 +70,6 @@
 		{
 			"path": "pages/web/web",
 			"style": {
-				"navigationStyle": "custom",
 				"navigationBarTitleText": ""
 			}
 		}