applyActivity.wxml 2.68 KB
<view class="container">
  <block wx:if="{{list.length}}">
    <glsx-image mode="widthFix" webp style="height: 480rpx;" src="{{'store-assistant/apply_activity_bg_' + currentSceneCode + '.png'}}" />
    <view class="pos_wrap">
        <view class="wrapper">
            <view class="title">
                <text>开通门店:</text>
                <text class="txt">{{USERINFO.merchantName}}</text>
            </view>
            <view class="titleSign flex_sc">
                <view class="lineTip"></view>
                <view class="label">开通门店活动产品/活动</view>
            </view>
            <view class="sinceTitle">业务场景</view>
                <view class="widget">
                    <block wx:for="{{list}}" wx:key="index">
                    <view bind:tap="select" data-index="{{index}}" data-item="{{item}}" class="element {{currentIndex==index?'active':''}}">
                        <glsx-image webp mode="widthFix" class="icon" src="store-assistant/apply_activity_icon_{{index+1}}.png" />
                        <view class="name {{currentIndex==index?'active_color':''}}">
                            {{item.name}}
                        </view>
                        <!-- <view class="tip {{currentIndex==index?'active_color':''}}">
                            {{item.name}}
                        </view> -->
                        <view class="triangle-down"></view>
                        <!-- <view class="triangle-down_temp"></view> -->
                    </view>
                </block>
                </view>
            <view class="title_tip">
                产品/活动
                <text class="tips">(可多选)</text>
            </view>
            <view class="product_wrap flex_sc">
                <block wx:for="{{product}}" wx:key="index">
                    <view class="box">
                        <view bind:tap="selectProduct" data-index="{{index}}" data-item="{{item}}" class="element flex_cc {{item.isSelect?'active':''}}">
                            {{item.productName}}
                        </view>
                    </view>
                </block>
            </view>
        </view>
        <view style="display: flex;justify-content: center;">
         <view class="btn flex_cc" bind:tap="applyOpened">申请开通</view>
        </view>
    </view>
  </block>
  <block wx:else>
    <view class="emptyData" style="margin-top: {{headerHeight+32}}px;">
      <glsx-image class="icon" webp src="store-assistant/toLink.png"></glsx-image>
      <view class="tip">
        <view>您的门店尚未开通业务场景,</view>
        <view>请联系在线客服进行咨询,谢谢。</view>
      </view>
    </view>
  </block>
</view>