Browse Source

居民列表跳转详情

work_tab_bar
mk 1 year ago
parent
commit
ce1aa74b90
  1. 6
      pages/resiAndHouse/resiAndHouse.js
  2. 2
      pages/resiAndHouse/resiAndHouse.wxml
  3. 2
      subpages/searchResult/pages/punchCard/punchCard.wxml

6
pages/resiAndHouse/resiAndHouse.js

@ -185,9 +185,11 @@ Page({
console.log(err);
})
},
toResiDetail(){
toResiDetail(e){
// '1765976717767618562'
console.log(e);
wx.navigateTo({
url: `/subpages/searchResult/pages/punchCard/punchCard?resiId=${'1765976717767618562'}`,
url: `/subpages/searchResult/pages/punchCard/punchCard?resiId=${e.currentTarget.dataset.resiid}`,
})
},
onFinish(e){

2
pages/resiAndHouse/resiAndHouse.wxml

@ -46,7 +46,7 @@
</view>
</view>
<view class="form_item" wx:for="{{resiList}}" :wx:key="{{index}}" bind:tap="toResiDetail">
<view class="form_item" wx:for="{{resiList}}" :wx:key="{{index}}" bind:tap="toResiDetail" data-resiId="{{item.resiId}}">
<view class="box_18">
<text lines="1" class="text_16">{{item.name}}</text>
<view class="resi_tag">

2
subpages/searchResult/pages/punchCard/punchCard.wxml

@ -30,7 +30,7 @@
<view class="form_value">{{form.baseInfoDto.updatedTime}}</view>
</view>
<view class="tabs">
<view class="tab_item {{activeType === index ? 'border_bto' : ''}}" wx:for="{{tabList}}" bind:tap="handelClickTab" data-item="{{item}}" data-index="{{index}}" wx:key="index">
<view class="tab_item {{activeType === index ? 'border_bto' : ''}}" wx:for="{{tabList}}" bind:tap="handelClickTab" data-item="{{item}}" data-index="{{index}}" wx:key="index" wx:if="{{item.filledQty!=0}}">
{{item.name}} <text style="color:{{item.filledQty!==item.totalQty?'#f27225':'#1ebfb5'}}">({{ item.filledQty }}/{{ item.totalQty }})</text>
</view>
</view>

Loading…
Cancel
Save