Browse Source

小程序扫描门牌

data-page-4.3.2
是小王呀\24601 1 year ago
parent
commit
b0c3b655f2
  1. 15
      pages/index/index.js
  2. 8
      pages/index/index.wxml
  3. 38
      pages/index/index.wxss

15
pages/index/index.js

@ -288,6 +288,21 @@ toDemandCheck(){
wx.navigateTo({ wx.navigateTo({
url: '../../subpages/demandCheck/pages/dissatisfied/demandCheck/demandCheck', url: '../../subpages/demandCheck/pages/dissatisfied/demandCheck/demandCheck',
}) })
},
recognitionCard(){
wx.navigateTo({
url: '../../subpages/OCRCard/pages/index/index',
})
},
door(){
wx.scanCode({
success: (res) => {
console.log(res);
},
fail: (err) => {
console.error(err);
}
})
} }
}) })

8
pages/index/index.wxml

@ -39,6 +39,14 @@
</view> </view>
</view> </view>
</view> </view>
<view class="electron">
<view class="door">
<text class="door-text" bindtap="door">扫电子门牌</text>
</view>
<view class="electron_card">
<text class="card_text" bind:tap="door">识别身份证</text>
</view>
</view>
<view class="group_2"> <view class="group_2">
<view class="text-wrapper_1"> <view class="text-wrapper_1">
<text lines="1" class="text_7">人房信息采集</text> <text lines="1" class="text_7">人房信息采集</text>

38
pages/index/index.wxss

@ -1117,3 +1117,41 @@ line-height: 40rpx;
.bg_new_left{ .bg_new_left{
margin-right: 20px; margin-right: 20px;
} }
.electron{
position:relative;
width: 100%;
height: 100rpx;
display: flex;
flex-direction:row;
justify-content: space-between;
align-items: center;
}
.door{
margin: 50rpx 0 0 30rpx;
display:flex;
width: 300rpx;
height: 90rpx;
background-color: #3da2ff;
border-radius: 20rpx;
justify-content: center;
align-items: center;
}
.door .door-text{
color: white;
font-size: 32rpx;
}
.electron_card{
margin: 50rpx 60rpx 0 30rpx;
display:flex;
width: 300rpx;
height: 90rpx;
background-color: #3da2ff;
border-radius: 20rpx;
justify-content: center;
align-items: center;
}
.card_text{
color:white;
font-size: 32rpx;
}
Loading…
Cancel
Save