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({ wx.scanCode({
success: (res) => { success: (res) => {
console.log(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) => { fail: (err) => {
console.error(err); console.error(err);
} }
}) })
},
IDCard(){
wx.navigateTo({
url: '../../subpages/OCRCard/pages/index/index',
})
} }
}) })

2
pages/index/index.wxml

@ -46,7 +46,7 @@
</view> </view>
<view class="electron_card"> <view class="electron_card">
<image src="../../images/index/iDcard.png" class="img_door"></image> <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> </view>
<view class="group_2"> <view class="group_2">

5
pages/index/index.wxss

@ -1,6 +1,5 @@
page { page {
overflow: hidden;
position: relative; position: relative;
width: 750rpx; width: 750rpx;
height: auto; height: auto;
@ -106,7 +105,7 @@ page {
flex-direction: row; flex-direction: row;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
margin: -100rpx 0 0 30rpx; margin: -75rpx 0 0 30rpx;
} }
@ -958,6 +957,7 @@ line-height: 40rpx;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
background-color: #FFFFFF; background-color: #FFFFFF;
box-shadow: 0px 2px 20px 0px rgba(150,161,175,0.150000);
} }
.door .door-text{ .door .door-text{
display: flex; display: flex;
@ -980,6 +980,7 @@ line-height: 40rpx;
border-radius: 20rpx; border-radius: 20rpx;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
box-shadow: 0px 2px 20px 0px rgba(150,161,175,0.150000);
} }
.card_text{ .card_text{
margin-left: 20rpx; margin-left: 20rpx;

3
project.config.json

@ -46,7 +46,8 @@
"minifyWXML": true, "minifyWXML": true,
"showES6CompileOption": false, "showES6CompileOption": false,
"useCompilerPlugins": false, "useCompilerPlugins": false,
"condition": false "condition": false,
"ignoreUploadUnusedFiles": true
}, },
"compileType": "miniprogram", "compileType": "miniprogram",
"libVersion": "2.19.4", "libVersion": "2.19.4",

1
utils/config.js

@ -8,7 +8,6 @@ module.exports = {
return 'https://epmet-preview.elinkservice.cn/api/' // 演示环境 return 'https://epmet-preview.elinkservice.cn/api/' // 演示环境
// return 'http://192.168.1.144/api/' //测试环境 // return 'http://192.168.1.144/api/' //测试环境
// return 'http://219.146.91.110:30801/api/' // return 'http://219.146.91.110:30801/api/'
// return 'https://epmet-preview.elinkservice.cn/api/' // 演示环境 // return 'https://epmet-preview.elinkservice.cn/api/' // 演示环境
// return 'http://192.168.1.144/api/' //测试环境 // return 'http://192.168.1.144/api/' //测试环境
// return 'http://219.146.91.110:30801/api/' // return 'http://219.146.91.110:30801/api/'

Loading…
Cancel
Save