XhuiCoder 10 месяцев назад
Родитель
Сommit
4187aaed31
2 измененных файлов с 5 добавлено и 5 удалено
  1. 2 2
      App.vue
  2. 3 3
      pages/createInfo/createInfo.vue

+ 2 - 2
App.vue

@@ -12,9 +12,9 @@
       //   window.location.href = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxeb15ff6b40432045"
       // }
       const { path } = e
-      // const whiteList = ['pages/entryPage/entryPage']
+      const whiteList = ['pages/entryPage/entryPage']
       // 开发时使用
-      const whiteList = ['pages/entryPage/entryPage', 'pages/createInfo/createInfo', 'pages/searchState/searchState']
+      // const whiteList = ['pages/entryPage/entryPage', 'pages/createInfo/createInfo', 'pages/searchState/searchState']
       if (!getToken()) {
         // 非老人自主注册页面, 不允许直接进入
         if (!(whiteList.includes(path))) {

+ 3 - 3
pages/createInfo/createInfo.vue

@@ -97,7 +97,7 @@
 
 <script>
   import myfile from '@/components/my-file/my-file.vue';
-  let jl = require('../../static/bufen.json')
+  // let jl = require('../../static/bufen.json')
 
   import { decryptRowData_ECB, decryptData_ECB } from '@/common/sm4.js'
   import { GetChildListByCode, getChildListByMchnt } from '@/api/dict.js'
@@ -305,8 +305,8 @@
             })
             this.faceBase64 = ''
             this.cardType = uni.getStorageSync("cardType")
-            if (this.cardType == 'front') e.data.data.arg.base64 = jl.front
-            if (this.cardType == 'back') e.data.data.arg.base64 = jl.back
+            // if (this.cardType == 'front') e.data.data.arg.base64 = jl.front
+            // if (this.cardType == 'back') e.data.data.arg.base64 = jl.back
             // 压缩	
             translateAll(base64ToUrl(e.data.data.arg.base64), (base64, blobUrl) => {
               idcard(base64, this.token, this.cardType, this.callbackIdcard)