Browse Source

电子门牌加首页样式

data-page-4.3.2
是小王呀\24601 1 year ago
parent
commit
2cafee5eb4
  1. 14
      pages/index/index.js
  2. 2
      pages/index/index.wxml
  3. 5
      pages/index/index.wxss
  4. 3
      project.config.json
  5. 1
      utils/config.js

14
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',
})
}
})

2
pages/index/index.wxml

@ -46,7 +46,7 @@
</view>
<view class="electron_card">
<image src="../../images/index/iDcard.png" class="img_door"></image>
<text class="card_text" bind:tap="door">识别身份证</text>
<text class="card_text" bind:tap="IDCard">识别身份证</text>
</view>
</view>
<view class="group_2">

5
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;

3
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",

1
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/'

Loading…
Cancel
Save