|
@@ -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'
|
|
@@ -111,7 +111,7 @@
|
|
|
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, getMchntList } from '@/api/kh.js'
|
|
|
+ import { updateKhjbxx, infoKhjbxx, GetLrByZjhm, createInfoBySelf, YlhtUpdate, CheckReturn, GetUrl, getMchntList } from '@/api/kh.js'
|
|
|
|
|
|
export default {
|
|
|
components: {
|
|
@@ -304,8 +304,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)
|
|
@@ -666,7 +666,7 @@
|
|
|
})
|
|
|
} else {
|
|
|
// that.baseFormData.lzzt = 1
|
|
|
- SaveKhjbxx(that.baseFormData).then(r => {
|
|
|
+ createInfoBySelf(that.baseFormData).then(r => {
|
|
|
uni.hideLoading()
|
|
|
if (r.code == 200) {
|
|
|
toast('保存成功,正在前往刷脸激活')
|