浏览代码

更新代码并提交

menc 2 年之前
父节点
当前提交
2d598af734
共有 4 个文件被更改,包括 13 次插入6 次删除
  1. 3 2
      base/httputil.js
  2. 2 2
      pages/denglu/denglu.js
  3. 7 1
      pages/xqzggzs/xqzggzs.js
  4. 1 1
      pages/xqzggzs2/xqzggzs2.js

+ 3 - 2
base/httputil.js

@@ -1,6 +1,6 @@
 // let BASE_Server = "http://127.0.0.1:8329"
-  let BASE_Server = "https://192.168.1.100:18080"
-// let BASE_Server = "https://sookajs.top:18080"
+  // let BASE_Server = "https://192.168.1.100:18080"
+let BASE_Server = "https://sookajs.top:18080"
 
 let app = getApp()
 
@@ -168,6 +168,7 @@ function post_token(url, data, successfun) {
     fail(res){
       wx.showToast({
         title: "网络请求失败",
+        icon:'none',
       })
     }
 

+ 2 - 2
pages/denglu/denglu.js

@@ -30,7 +30,7 @@ Page({
     })
   },
   bindViewlogin(){
-    if(!this.data.userName){
+    if(this.data.userName==null||this.data.userName==''){
       wx.showToast({
         title: '请输入用户名',
         icon:'none',
@@ -38,7 +38,7 @@ Page({
       })
       return
     }
-    if(!this.data.password){
+    if(this.data.password==null||this.data.password==''){
       wx.showToast({
         title: '请输入密码',
         icon:'none',

+ 7 - 1
pages/xqzggzs/xqzggzs.js

@@ -114,7 +114,13 @@ Page({
       })
       return
     }
-
+    if(this.data.askCompany==null){
+      wx.showToast({
+        title: '请输入咨询组织名称',
+        icon:'none'
+      })
+      return
+    }
     if(this.data.number==null){
       wx.showToast({
         title: '请输入检查人员编号',

+ 1 - 1
pages/xqzggzs2/xqzggzs2.js

@@ -145,7 +145,7 @@ Page({
   submitXqzggzs2(){
     if(this.data.company==null){
       wx.showToast({
-        title: '请输入组织名称',
+        title: '请输入咨询组织名称',
         icon:'none'
       })
       return