From 2cafee5eb44c589bc4f362e4bc614c6aed8ebd14 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=98=AF=E5=B0=8F=E7=8E=8B=E5=91=80=5C24601?=
<819653817@qq.com>
Date: Wed, 15 May 2024 17:18:41 +0800
Subject: [PATCH] =?UTF-8?q?=E7=94=B5=E5=AD=90=E9=97=A8=E7=89=8C=E5=8A=A0?=
=?UTF-8?q?=E9=A6=96=E9=A1=B5=E6=A0=B7=E5=BC=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/index/index.js | 14 ++++++++++++++
pages/index/index.wxml | 2 +-
pages/index/index.wxss | 5 +++--
project.config.json | 3 ++-
utils/config.js | 1 -
5 files changed, 20 insertions(+), 5 deletions(-)
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/'