Commit 0ff35766 by luyt

feat:放出场景,卡片

1 parent 3d4a8d23
...@@ -207,11 +207,16 @@ Page({ ...@@ -207,11 +207,16 @@ Page({
// }, // },
// 选车场景切换 // 选车场景切换
selectCar(e) { selectCar(e) {
let actNum = e.currentTarget.dataset.num; console.log('e: ', e);
let {num,scenestatus} = e.currentTarget.dataset;
// console.log('actNum: ', actNum); // console.log('actNum: ', actNum);
this.setData({ if(scenestatus == 1){
actNum, this.setData({
}); actNum:num,
});
}
}, },
// 头部看线索,产品切换 // 头部看线索,产品切换
changeTabIndx(e) { changeTabIndx(e) {
......
...@@ -14,7 +14,8 @@ ...@@ -14,7 +14,8 @@
<!-- 托客户内容 --> <!-- 托客户内容 -->
<view class="content" wx:if="{{tabIndx == 1 }}" hover-class="none" hover-stop-propagation="false"> <view class="content" wx:if="{{tabIndx == 1 }}" hover-class="none" hover-stop-propagation="false">
<view class="scene"> <view class="scene">
<view class="item-wrap {{actNum== index ? 'act':''}}" wx:if="{{item.sceneStatus == 1}}" data-num="{{index}}" bindtap="selectCar" wx:for="{{senceData}}" wx:key="name"> <!-- wx:if="{{item.sceneStatus == 1}}" -->
<view class="item-wrap {{actNum== index ? 'act':''}}" data-num="{{index}}" data-scenestatus="{{item.sceneStatus}}" bindtap="selectCar" wx:for="{{senceData}}" wx:key="name">
<view class="item"> <view class="item">
<image class="img" src="{{item.src}}" /> <image class="img" src="{{item.src}}" />
<view class="name">{{item.name}}</view> <view class="name">{{item.name}}</view>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!