Просмотр исходного кода

始宁农业小程序:商户申请去除部分数据校验

panyong 2 лет назад
Родитель
Сommit
984af88d19

+ 1 - 20
htmldev/shiningWxMini/pages/businessApply/businessApply.js

@@ -287,15 +287,10 @@ Page({
     let errorList = []
     const {
       user_name,
-      shop_name,
       user_card,
       shop_phone,
       country_msg,
-      user_code_url,
-      user_wechat_code,
-      shop_img_url,
       shop_address,
-      shop_remark
     } = this.getForm()
 
     if (!user_name) {
@@ -310,24 +305,10 @@ Page({
     if (!country_msg) {
       errorList.push('请输入村信息')
     }
-    if (!user_code_url) {
-      errorList.push('请上传个人二维码')
-    }
-    if (!user_wechat_code) {
-      errorList.push('请输入微信号')
-    }
-    if (!shop_name) {
-      errorList.push('请输入店铺名称')
-    }
-    if (!shop_img_url) {
-      errorList.push('请上传店铺图片')
-    }
+
     if (!shop_address.address_name) {
       errorList.push('请选择详细地址')
     }
-    if (!shop_remark) {
-      errorList.push('请输入备注')
-    }
 
     return errorList
   },

+ 13 - 1
htmldev/shiningWxMini/project.private.config.json

@@ -3,7 +3,19 @@
     "urlCheck": true,
     "compileHotReLoad": true
   },
-  "condition": {},
+  "condition": {
+    "miniprogram": {
+      "list": [
+        {
+          "name": "",
+          "pathName": "pages/businessApply/businessApply",
+          "query": "",
+          "launchMode": "default",
+          "scene": null
+        }
+      ]
+    }
+  },
   "description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
   "libVersion": "2.13.2",
   "projectname": "%E5%A7%8B%E5%AE%81%E5%86%9C%E4%B8%9A"