diff --git a/pages/index/index.js b/pages/index/index.js index 183f474..4c29379 100644 --- a/pages/index/index.js +++ b/pages/index/index.js @@ -298,11 +298,25 @@ door(){ wx.scanCode({ success: (res) => { console.log(res); + console.log(res.result); + var parts = res.result.split('/'); + var number = parts[parts.length - 1]; + + console.log(number) + wx.navigateTo({ + url: `/subpages/house/pages/housePortrait/housePortrait?resiId=${number}`, + + }) }, fail: (err) => { console.error(err); } }) +}, +IDCard(){ +wx.navigateTo({ + url: '../../subpages/OCRCard/pages/index/index', +}) } }) diff --git a/pages/index/index.wxml b/pages/index/index.wxml index ee1446c..c5faa27 100644 --- a/pages/index/index.wxml +++ b/pages/index/index.wxml @@ -46,7 +46,7 @@ - 识别身份证 + 识别身份证 diff --git a/pages/index/index.wxss b/pages/index/index.wxss index d44f561..58f348c 100644 --- a/pages/index/index.wxss +++ b/pages/index/index.wxss @@ -1,6 +1,5 @@ page { - overflow: hidden; position: relative; width: 750rpx; height: auto; @@ -106,7 +105,7 @@ page { flex-direction: row; display: flex; justify-content: space-between; - margin: -100rpx 0 0 30rpx; + margin: -75rpx 0 0 30rpx; } @@ -958,6 +957,7 @@ line-height: 40rpx; justify-content: center; align-items: center; background-color: #FFFFFF; + box-shadow: 0px 2px 20px 0px rgba(150,161,175,0.150000); } .door .door-text{ display: flex; @@ -980,6 +980,7 @@ line-height: 40rpx; border-radius: 20rpx; justify-content: center; align-items: center; + box-shadow: 0px 2px 20px 0px rgba(150,161,175,0.150000); } .card_text{ margin-left: 20rpx; diff --git a/project.config.json b/project.config.json index 243fa51..49963e6 100644 --- a/project.config.json +++ b/project.config.json @@ -46,7 +46,8 @@ "minifyWXML": true, "showES6CompileOption": false, "useCompilerPlugins": false, - "condition": false + "condition": false, + "ignoreUploadUnusedFiles": true }, "compileType": "miniprogram", "libVersion": "2.19.4", diff --git a/utils/config.js b/utils/config.js index dce6c12..a32a3d6 100644 --- a/utils/config.js +++ b/utils/config.js @@ -8,7 +8,6 @@ module.exports = { return 'https://epmet-preview.elinkservice.cn/api/' // 演示环境 // return 'http://192.168.1.144/api/' //测试环境 // return 'http://219.146.91.110:30801/api/' - // return 'https://epmet-preview.elinkservice.cn/api/' // 演示环境 // return 'http://192.168.1.144/api/' //测试环境 // return 'http://219.146.91.110:30801/api/'