XhuiCoder 1 рік тому
батько
коміт
06e33d1c33
3 змінених файлів з 121 додано та 189 видалено
  1. 102 103
      manifest.json
  2. 19 85
      pages/createInfo/createInfo.vue
  3. 0 1
      pages/info/add-files.vue

+ 102 - 103
manifest.json

@@ -1,28 +1,28 @@
 {
-  "name": "yl-gzh",
-  "appid": "__UNI__B33C4EB",
-  "description": "",
-  "versionName": "1.0.0",
-  "versionCode": "100",
-  "transformPx": false,
-  /* 5+App特有相关 */
-  "app-plus": {
-    "usingComponents": true,
-    "nvueStyleCompiler": "uni-app",
-    "compilerVersion": 3,
-    "splashscreen": {
-      "alwaysShowBeforeRender": true,
-      "waiting": true,
-      "autoclose": true,
-      "delay": 0
-    },
-    /* 模块配置 */
-    "modules": {},
-    /* 应用发布信息 */
-    "distribute": {
-      /* android打包配置 */
-      "android": {
-        "permissions": [
+    "name" : "吉顺食堂",
+    "appid" : "__UNI__B33C4EB",
+    "description" : "",
+    "versionName" : "1.0.0",
+    "versionCode" : "100",
+    "transformPx" : false,
+    /* 5+App特有相关 */
+    "app-plus" : {
+        "usingComponents" : true,
+        "nvueStyleCompiler" : "uni-app",
+        "compilerVersion" : 3,
+        "splashscreen" : {
+            "alwaysShowBeforeRender" : true,
+            "waiting" : true,
+            "autoclose" : true,
+            "delay" : 0
+        },
+        /* 模块配置 */
+        "modules" : {},
+        /* 应用发布信息 */
+        "distribute" : {
+            /* android打包配置 */
+            "android" : {
+                "permissions" : [
                     "<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
                     "<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
                     "<uses-permission android:name=\"android.permission.VIBRATE\"/>",
@@ -39,87 +39,86 @@
                     "<uses-feature android:name=\"android.hardware.camera\"/>",
                     "<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
                 ]
-      },
-      /* ios打包配置 */
-      "ios": {},
-      /* SDK配置 */
-      "sdkConfigs": {}
-    }
-  },
-  /* 快应用特有相关 */
-  "quickapp": {},
-  /* 小程序特有相关 */
-  "mp-weixin": {
-    "appid": "",
-    "setting": {
-      "urlCheck": false
+            },
+            /* ios打包配置 */
+            "ios" : {},
+            /* SDK配置 */
+            "sdkConfigs" : {}
+        }
     },
-    "usingComponents": true
-  },
-  "mp-alipay": {
-    "usingComponents": true
-  },
-  "mp-baidu": {
-    "usingComponents": true
-  },
-  "mp-toutiao": {
-    "usingComponents": true
-  },
-  "uniStatistics": {
-    "enable": false
-  },
-  "vueVersion": "2",
-  "h5": {
-    "devServer": {
-      "https": false,
-      // "port" : 8081,
-      "disableHostCheck": true,
-      "proxy": {
-        "/baiduApi": {
-          "target": "https://aip.baidubce.com", // 需要跨域的域名
-          "changeOrigin": true,
-          "secure": false,
-          "pathRewrite": {
-            "^/baiduApi": ""
-          }
-        },
-        "/api": {
-          // "target" : "http://10.16.4.7:8080", // 需要跨域的域名
-          // "target" : "http://10.16.4.5:8080", // 需要跨域的域名
-          // "target" : "http://10.16.4.14:9090", // 需要跨域的域名
-          // "target" : "https://www.jlyanglao.com/prod-api", // 需要跨域的域名
-          "target": "http://121.36.73.159:801/prod-api", // 需要跨域的域名
-          "changeOrigin": true,
-          "secure": false,
-          "pathRewrite": {
-            "^/api": ""
-          }
+    /* 快应用特有相关 */
+    "quickapp" : {},
+    /* 小程序特有相关 */
+    "mp-weixin" : {
+        "appid" : "",
+        "setting" : {
+            "urlCheck" : false
         },
-        // "/h5/uploadPath" : {
-        "/uploadPath": {
-          // "target" : "http://10.16.4.7:8080/file/uploadPath/", // 需要跨域的域名
-          // "target" : "http://10.16.4.5:8080/file/uploadPath/", // 需要跨域的域名
-          // "target" : "http://10.16.4.14:9090/file/uploadPath/", // 需要跨域的域名
-          // "target" : "https://www.jlyanglao.com/prod-api/file/uploadPath/", // 需要跨域的域名
-          "target": "http://121.36.73.159:801/prod-api/file/uploadPath/", // 需要跨域的域名
-          "changeOrigin": true,
-          "secure": false,
-          "pathRewrite": {
-            // "^/h5/uploadPath" : ""
-            "^/uploadPath": ""
-          }
-        }
-      }
+        "usingComponents" : true
     },
-    "router": {
-      "base": "./"
-      // "base" : "/h5/"
-
+    "mp-alipay" : {
+        "usingComponents" : true
     },
-    "optimization": {
-      "treeShaking": {
-        "enable": true
-      }
+    "mp-baidu" : {
+        "usingComponents" : true
+    },
+    "mp-toutiao" : {
+        "usingComponents" : true
+    },
+    "uniStatistics" : {
+        "enable" : false
+    },
+    "vueVersion" : "2",
+    "h5" : {
+        "devServer" : {
+            "https" : false,
+            // "port" : 8081,
+            "disableHostCheck" : true,
+            "proxy" : {
+                "/baiduApi" : {
+                    "target" : "https://aip.baidubce.com", // 需要跨域的域名
+                    "changeOrigin" : true,
+                    "secure" : false,
+                    "pathRewrite" : {
+                        "^/baiduApi" : ""
+                    }
+                },
+                "/api" : {
+                    // "target" : "http://10.16.4.7:8080", // 需要跨域的域名
+                    // "target" : "http://10.16.4.5:8080", // 需要跨域的域名
+                    // "target" : "http://10.16.4.14:9090", // 需要跨域的域名
+                    // "target" : "https://www.jlyanglao.com/prod-api", // 需要跨域的域名
+                    "target" : "http://121.36.73.159:801/prod-api", // 需要跨域的域名
+                    "changeOrigin" : true,
+                    "secure" : false,
+                    "pathRewrite" : {
+                        "^/api" : ""
+                    }
+                },
+                // "/h5/uploadPath" : {
+                "/uploadPath" : {
+                    // "target" : "http://10.16.4.7:8080/file/uploadPath/", // 需要跨域的域名
+                    // "target" : "http://10.16.4.5:8080/file/uploadPath/", // 需要跨域的域名
+                    // "target" : "http://10.16.4.14:9090/file/uploadPath/", // 需要跨域的域名
+                    // "target" : "https://www.jlyanglao.com/prod-api/file/uploadPath/", // 需要跨域的域名
+                    "target" : "http://121.36.73.159:801/prod-api/file/uploadPath/", // 需要跨域的域名
+                    "changeOrigin" : true,
+                    "secure" : false,
+                    "pathRewrite" : {
+                        // "^/h5/uploadPath" : ""
+                        "^/uploadPath" : ""
+                    }
+                }
+            }
+        },
+        "router" : {
+            "base" : "./"
+        },
+        // "base" : "/h5/"
+        "optimization" : {
+            "treeShaking" : {
+                "enable" : true
+            }
+        }
     }
-  }
-}
+}

+ 19 - 85
pages/createInfo/createInfo.vue

@@ -68,11 +68,11 @@
             <myfile :zczmList="zczmList" @recordsChange="zcChange"></myfile>
           </uni-forms-item>
 
-          <view v-if="show">
+          <view v-if="show" style="border: 1px solid red;">
             <uni-forms-item label="直接上传">
               <uni-data-checkbox v-model="radio" :localdata="radioData"></uni-data-checkbox>
             </uni-forms-item>
-            <text>注意:人证比对不成功可以直接注册人工审核!</text>
+            <text style="color: red; font-weight: bolder;">注意:人证比对不成功可以直接注册人工审核!</text>
           </view>
 
           <view class="miaoshu" v-if="isCheck">
@@ -112,12 +112,10 @@
   import { setToken, setOpenid, getOpenid, setUser } from '@/common/auth.js'
   import { getAccessToken, idcard, match } from '@/common/baiduUtil.js'
   import { updateKhjbxx, infoKhjbxx, GetLrByZjhm, SaveKhjbxx, YlhtUpdate, CheckReturn, GetUrl, getMchntList } from '@/api/kh.js'
-  // import lazyPicker from '@/components/lazyPicker/lazyPicker.vue'
 
   export default {
     components: {
       myfile,
-      // lazyPicker
     },
     data() {
       return {
@@ -280,7 +278,7 @@
             translateAll(base64ToUrl(e.data.data.arg.base64), (base64, blobUrl) => {
               idcard(base64, this.token, this.cardType, this.callbackIdcard)
             })
-            uni.removeStorageSync('cardType')
+            // uni.removeStorageSync('cardType')
           }, 1000);
         }
 
@@ -301,7 +299,7 @@
     },
     watch: {
       'baseFormData.mchnt': {
-        immediate:true,
+        immediate: true,
         handler(newVal, oldVal) {
           if (newVal) {
             getChildListByMchnt({ mchnt: newVal }).then(res => {
@@ -426,97 +424,34 @@
             return
           }
           // todo 根据身份证号查询此人信息是否可修改。this.isCheck = true
-
-
-
           this.frontBase64 = words.card_image
           this.zjcaijianSrc = 'data:image/jpeg;base64,' + words.card_image
-          this.disabled = false
-
-          // this.baseFormData.lrXb = getDictInfo(this.dicts.C0007, words.words_result['性别'].words)[0].value
-          // this.baseFormData.lrMz = getDictInfo(this.dicts.C0009, words.words_result['民族'].words)[0].value
-
-          this.baseFormData.lrXb = sex
-          this.baseFormData.lrMz = words.words_result['民族'].words
-
-
           this.idcardFace = words.photo
           this.idcardFaceUrl = base64ToUrl(words.photo);
-          this.baseFormData.lrZjhm = id
-          this.baseFormData.lrCsrq = csrq
-          this.idcardMD5 = CryptoJS.MD5(this.baseFormData.lrZjhm).toString()
-          this.baseFormData.lrXm = words.words_result['姓名'].words
-          this.baseFormData.lrHjbcxx = zz
-          this.ocrXm = words.words_result['姓名'].words
-
-
-
-          if (this.userInfo.userType != '07') {
+          this.idcardMD5 = CryptoJS.MD5(id).toString()
+          
+          if (id) {
             GetLrByZjhm({
               lrJmzjhm: this.idcardMD5
             }).then(res => {
-              if (res.data) this.baseFormData = decryptData_ECB(res.data, ["lrZjhm", "lrXm",
-      					"lrHjbcxx",
-      					"lrXjdzBcxx",
-      					"lrCydh", "lrPoxm", "lrPoZjmh", "jhrXm", "jhrSjhm", "zlrXm", "zlrDh",
-      					"cjzh",
-      					"yhzh", "khmc", "jhrxm", "jhrlxdh"
-      				], [2, 1, 4, 4, 3, 1, 2, 1, 2, 1, 3, 5, 5, 5]);
-
-
-              if (this.baseFormData.lrTx) this.src = config.baseUrl + this.baseFormData.lrTx
-              if (this.baseFormData.lrHjdz) {
-                this.jiedaoData.forEach(e => {
-                  if (e.children.length > 0) {
-                    e.children.forEach(ee => {
-                      if (ee) {
-                        if (ee.code == this.baseFormData.lrHjdz) {
-                          this.shequValue = ee
-                          this.jiedaoValue = e
-                          this.diqu = this.jiedaoValue
-                            .label +
-                            '/' + this.shequValue.label
-                        }
-                      } else {
-                        if (e.code == this.baseFormData.lrHjdz) {
-                          this.jiedaoValue = e
-                          this.diqu = this.jiedaoValue.label
-                        }
-                      }
-
-                    })
+              if (res.data) {
+                showConfirm('该信息已存在!请不要重复提交').then(res => {
+                  if (res.confirm == true) {
+                    uni.navigateBack()
                   }
                 })
               } else {
-                // 地区回显
-                this.getAddressList()
+                this.baseFormData.lrXb = sex
+                this.baseFormData.lrMz = words.words_result['民族'].words
+                this.baseFormData.lrZjhm = id
+                this.baseFormData.lrCsrq = csrq
+                this.baseFormData.lrXm = words.words_result['姓名'].words
+                this.baseFormData.lrHjbcxx = zz
+                this.ocrXm = words.words_result['姓名'].words
+                this.disabled = false
               }
-              if (res.data && res.data.sfzzpb) this.zjcaijianSrcFan = res.data.sfzzpb
-              if (res.data && res.data.tkzm) this.tkzmList = [res.data.tkzm]
-              if (res.data && res.data.dbzm) this.dbzmList = [res.data.dbzm]
-              if (res.data && res.data.zczm) this.zczmList = [res.data.zczm]
-              if (res.data) this.updateFlag = true
-
             })
           }
-
-          // if (id) {
-          // 	GetLrByZjhm({
-          // 		lrJmzjhm: this.idcardMD5
-          // 	}).then(res => {
-          // 		if (res.data) {
-          // 			showConfirm('该信息已存在,请登录').then(res => {
-          // 				if (res.confirm == true) {
-          // 					uni.reLaunch({
-          // 						url: '/pages/login/index'
-          // 					})
-          // 				}
-          // 			})
-          // 		} else {
-          // 			this.disabled = false
-          // 		}
-          // 	})
-          // }
         } else if (this.cardType == 'back') {
           if (!words) {
             showConfirm('请上传正确的身份证国徽面')
@@ -541,7 +476,6 @@
             this.backBase64 = words.card_image
             this.zjcaijianSrcFan = 'data:image/jpeg;base64,' + words.card_image
           }
-
         }
       },
 

+ 0 - 1
pages/info/add-files.vue

@@ -679,7 +679,6 @@
         })
       },
       save() {
-
         if ((this.score >= config.score) || (this.score < config.score && this.radio == '1')) {
           uni.showLoading({
             title: '正在保存中...'