Commit 37c1d207 by chenwq

点击跳转

1 parent 1273b78d
......@@ -52,6 +52,7 @@ Component({
total: '19567'
},
merchantDataList: [{
merchantId: 111,
merchantName: '四川申蓉汇亚汽车贸易有限公司',
curMonthTotalData: {
scene1Total: '5026',
......@@ -66,6 +67,7 @@ Component({
total: '0'
}
}, {
merchantId: 222,
merchantName: '四川港宏新通汽车销售服务有限公司',
curMonthTotalData: {
scene1Total: '960',
......
......@@ -45,6 +45,10 @@ Component({
})
console.log(this.data.compareList, 'compareList---')
},
handleClick(e) {
let { info } = e.currentTarget.dataset
console.log(info)
},
switchChange() {
this.setData({
switchChecked: !this.data.switchChecked
......
......@@ -23,7 +23,7 @@
</view>
<!-- 门店列表 -->
<view class="contanier">
<view wx:for="{{curInfo.merchantDataList}}" wx:key="index" class="list">
<view wx:for="{{curInfo.merchantDataList}}" wx:key="index" class="list" bindtap="handleClick" data-info="{{item}}">
<view class="title-box flex-between {{index == 0 ? 'title-box-first' : ''}}">
<view class="title-block">
<view class="title-name text-hide">{{item.merchantName}}</view>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!