Commit 74d46032 by 前端

系统订阅场景更换

1 parent 41aa1341
......@@ -49,6 +49,7 @@ Component({
this.setData({
tabIndex: e.currentTarget.dataset.index,
});
this.selectComponent("#sceneBox").resetScene()
},
// 合作方式切换
applyChange(e) {
......@@ -56,7 +57,7 @@ Component({
this.setData({
selectApply: e.detail.value,
});
this.selectComponent("#sceneBox").resetScene()
// this.selectComponent("#sceneBox").resetScene()
},
// 展开收起
handleFold() {
......
......@@ -49,6 +49,6 @@
</view>
<!-- 选择产品和场景 -->
<view class="scene-box">
<scene id="sceneBox" foldFlag="{{foldFlag}}" selectApply="{{selectApply}}"></scene>
<scene id="sceneBox" foldFlag="{{foldFlag}}" selectApply="{{tabIndex}}"></scene>
</view>
</view>
\ No newline at end of file
......@@ -3,7 +3,7 @@
<!-- 业务场景 -->
<view class="fold-title">业务场景</view>
<view class="product-tab-box fold-box">
<view wx:for="{{selectApply == 1 ? productTabList : productSubscribTabList}}" wx:key="index" class="item-wrap {{item.id == sceneNum ? 'act':''}}" bindtap="selectScene" data-item="{{item}}">
<view wx:for="{{selectApply == 0 ? productTabList : productSubscribTabList}}" wx:key="index" class="item-wrap {{item.id == sceneNum ? 'act':''}}" bindtap="selectScene" data-item="{{item}}">
<view class="fold-scene-item {{item.id == sceneNum ? 'fold-scene-item-active':''}}">
<image class="fold-img" mode="widthFix" webp src="{{IMGURL}}application/{{item.url}}.png?v={{img_version}}"></image>
<view class="product-item-title {{item.id == sceneNum ? 'product-item-title-active':''}}">
......@@ -20,7 +20,7 @@
</view>
<view class="fold-product">
<!-- 增值转化 -->
<block wx:if="{{selectApply == 1}}">
<block wx:if="{{selectApply == 0}}">
<block wx:for="{{productList[sceneName]}}">
<view class="item {{item.isSelect ? 'item-selected': ''}}" bindtap="selectScenePro" data-index="{{index}}">
<view>{{item.nameZh}}</view>
......@@ -29,7 +29,7 @@
</block>
</block>
<!-- 系统订阅 -->
<block wx:if="{{selectApply == 2}}">
<block wx:if="{{selectApply == 1}}">
<block wx:for="{{productSubscibList[sceneName]}}">
<view class="item item-subscrib {{item.isSelect ? 'item-selected': ''}}" bindtap="selectScenePro" data-index="{{index}}">
<view>{{item.nameZh}}</view>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!