scene.wxml 1.96 KB
<!--components/scene/scene.wxml-->
<block wx:if="{{foldFlag}}">
  <!-- 业务场景 -->
  <view class="fold-title">业务场景</view>
  <view class="product-tab-box fold-box">
    <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':''}}">
          {{item.title}}
        </view>
      </view>
    </view>
  </view>
  <!-- 选择产品 -->
  <block wx:if="{{sceneNum}}">
    <view>
      <text class="fold-title">选择产品</text>
      <text class="fold-tip">(可多选)</text>
    </view>
    <view class="fold-product">
      <!-- 增值转化 -->
      <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>
            <image wx:if="{{item.isSelect}}" class="selected-img" mode="widthFix" webp src="{{IMGURL}}application/selected_icon.png?v={{img_version}}"></image>
          </view>
        </block>
      </block>
      <!-- 系统订阅 -->
      <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>
            <image wx:if="{{item.isSelect}}" class="selected-img" mode="widthFix" webp src="{{IMGURL}}application/selected_icon.png?v={{img_version}}"></image>
          </view>
        </block>
      </block>
    </view>
  </block>
</block>