nanMing 1 rok pred
rodič
commit
c3c792244f
4 zmenil súbory, kde vykonal 22 pridanie a 77 odobranie
  1. 2 2
      api/kh.js
  2. 13 69
      pages/info/add-files.vue
  3. 5 5
      pages/login/index.vue
  4. 2 1
      static/bufen.json

+ 2 - 2
api/kh.js

@@ -3,8 +3,8 @@ import request from '@/common/request.js'
 // 老人信息修改
 export function updateKhjbxx(data) {
 	return request({
-		url: '/api/lnst/lrxx',
-		method: 'put',
+		url: '/api/lnst/lrxx/edit',
+		method: 'post',
 		data: data
 	})
 }

+ 13 - 69
pages/info/add-files.vue

@@ -22,7 +22,6 @@
           </view>
         </view>
 
-
         <uni-forms ref="baseForm" :modelValue="baseFormData" :rules="rules" style="margin-top: 5vh;">
 
 
@@ -43,8 +42,6 @@
           </uni-forms-item>
           <uni-forms-item label="街道社区">
             <uni-easyinput type="text" v-model="diqu" @focus="toggle('bottom')" placeholder="请选择街道社区" :clearable="false"></uni-easyinput>
-
-
           </uni-forms-item>
           <uni-forms-item label="住址" required name="jzdz">
             <uni-easyinput type="text" v-model="baseFormData.jzdz" :disabled="disabled" placeholder="请输入住址" :inputBorder="true"></uni-easyinput>
@@ -82,13 +79,11 @@
             <text>注意:人证比对不成功可以直接注册人工审核!</text>
           </view>
 
-
           <view class="miaoshu" v-if="isCheck">
             该人员存在未审核信息,请先审核!
           </view>
 
           <view>
-
             <view v-if="isCheck">
               <button cursor-spacing="22px" :disabled="isCheck" class="buttonClass" @click="preSave()">认证</button>
             </view>
@@ -124,61 +119,20 @@
   import myfile from '@/components/my-file/my-file.vue';
   let jl = require('../../static/bufen.json')
 
-  import {
-    decryptRowData_ECB,
-    decryptData_ECB
-  } from '@/common/sm4.js'
-  import {
-    GetChildListByCode
-  } from '@/api/dict.js'
-  import {
-    showConfirm,
-    getDictInfo,
-    toast,
-    toBase64
-  } from '@/common/common.js'
-  import {
-    UploadOne,
-    UploadSome,
-    UploadSomeFile
-  } from '@/api/upload.js'
-  import {
-    Register
-  } from '@/api/login.js'
-  import {
-    getUser
-  } from '@/common/auth.js'
+  import { decryptRowData_ECB, decryptData_ECB } from '@/common/sm4.js'
+  import { GetChildListByCode } from '@/api/dict.js'
+  import { showConfirm, getDictInfo, toast, toBase64 } from '@/common/common.js'
+  import { UploadOne, UploadSome, UploadSomeFile } from '@/api/upload.js'
+  import { Register } from '@/api/login.js'
+  import { getUser } from '@/common/auth.js'
   import CryptoJS from 'crypto-js';
   import config from '@/config.js';
   import idCardNoUtil from '@/common/idcard.js'
-  import {
-    translate,
-    base64ToUrl,
-    blobToDataURI,
-    translateAll,
-    base64toFilen,
-    fileToBlob
-  } from '@/common/image.js'
-  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
-  } from '@/api/kh.js'
+  import { translate, base64ToUrl, blobToDataURI, translateAll, base64toFilen, fileToBlob } from '@/common/image.js'
+  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 } from '@/api/kh.js'
+  
   export default {
     components: {
       myfile
@@ -334,7 +288,6 @@
             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)
@@ -352,15 +305,11 @@
               title: '正在识别中...'
             })
 
-            // this.faceBase64 = e.data.data.arg.faceBase64
-            this.faceBase64 = jl.face
-            // this.callbackFace = jl.face
+            this.faceBase64 = e.data.data.arg.faceBase64
 
             // 压缩
             translateAll(base64ToUrl(this.faceBase64), (base64, blobUrl) => {
               this.src = this.faceBase64
-              console.log(base64.split(",")[1],'aaaaaaaaa');
-              console.log(this.idcardFace,'bbbbb');
               match(this.token, base64.split(",")[1], this.idcardFace, this.callbackFace)
             })
           }, 1000);
@@ -368,7 +317,6 @@
         }
       }, false)
 
-
       this.getDictList(Object.keys(this.dicts), this.dicts)
       this.baseFormData.code = getOpenid()
 
@@ -386,7 +334,6 @@
       //  查询街道和社区
       this.getAddressList(this.baseFormData.lrHjdz)
 
-
     },
     methods: {
       tkChange(e) {
@@ -837,6 +784,7 @@
                         }
                         GetUrl(param).then(res => {
                           if (res.code == 200) {
+                            console.log(res);
                             window.open(res.data.url, '_self');
                           } else {
                             toast('该功能暂未开放')
@@ -866,9 +814,7 @@
                             toast('该功能暂未开放')
                             // uni.navigateBack()
                           }
-
                         })
-
                       }, 1000)
                     }
                   })
@@ -884,8 +830,6 @@
           showConfirm('请重新上传人像')
           return
         }
-
-
       }
     }
   }

+ 5 - 5
pages/login/index.vue

@@ -93,12 +93,12 @@
 				formData: {
 					// username: 'lrry220103000000',
 					// password: 'sckj12356',
-					username: '',
-					password: '',
+					// username: '',
+					// password: '',
 					// code: "081X2kll21UGPc4HRlml27WxeO3X2kl6",
 					code: "",
-					// username: '15143018068',
-					// password: 'sckj12356',
+					username: '15143018068',
+					password: 'sckj12356',
 					openid: "",
 				},
 				rules: {
@@ -304,7 +304,7 @@
 
 		position: absolute;
 		/* bottom: 20vh; */
-		top: 37vh;
+		top: 28vh;
 		left: 12vw;
 	}
 

Rozdielové dáta súboru neboli zobrazené, pretože súbor je príliš veľký
+ 2 - 1
static/bufen.json