index.wxml 2.8 KB
<view class="container">
  <navigation-bar bindnavbarReady="navbarReady" navStyle="{{navStyle}}" page-title="甄选福利">
    <view class="bar-text">甄选福利</view>
  </navigation-bar>
  <view style="{{user_box_style}}" class="top_bg_wrap">
    <view class="store-wrap">
      <view class="inner flex_sc">
        <glsx-image class="logo" webp src="home/store_logo.png"></glsx-image>
        <view class="store_name">{{currentStore.merchantName}}</view>
        <picker mode="selector" bindchange="changeStore" range="{{storeList}}" range-key="merchantName">
          <view class="change_box">
            <glsx-image class="icon" webp src="home/change_store_icon.png"></glsx-image>
          </view>
        </picker>
      </view>
    </view>
  </view>
  <!-- 公告 -->
  <block wx:if="{{currentStore.noticeContent}}">
    <view class="notice-bar">
      <notice-bar data="{{currentStore.noticeContent}}" speed="7500" id="com-1"></notice-bar>
    </view>
  </block>
  <!-- 家生活/车生活 -->
  <view class="menu_wrap flex_scb">
    <glsx-image class="cover" webp src="home/family_menu_banner.png" bind:tap="toHomeLife"></glsx-image>
    <glsx-image class="cover" webp src="home/car_menu_banner.png" bind:tap="toCarLife"></glsx-image>
  </view>
  <!-- 轮播图 -->
  <view class="banner-box" wx:if="{{currentStore.bannerList.length > 0}}">
    <banner bannerList="{{currentStore.bannerList}}"></banner>
  </view>
  <!-- 福利二维码 -->
  <view class="code_wrap flex_scb">
    <block wx:for="{{codeList}}" wx:key="index">
      <view data-item="{{item}}" bind:tap="toShowQrCode" class="code_item flex_scb">
        <view class="left">
          <view class="title">
            <text>{{item.title}}</text>
            <text class="spc">{{item.desc}}</text>
          </view>
          <view class="tip">{{item.tip}}</view>
        </view>
        <glsx-image class="code" webp src="home/qr_code_logo.png"></glsx-image>
      </view>
    </block>
  </view>
  <!-- 省钱攻略 -->
  <block wx:if="{{strategyList.length}}">
    <MoneySavingTips list="{{strategyList}}" bind:selectStrategy="selectStrategy"></MoneySavingTips>
  </block>
</view>
<!-- 弹框 -->
<view wx:if="{{showModal}}" class="modal_widget">
  <view bind:tap="closeModal" class="popup-bg"></view>
  <view class="box_cover">
    <!-- <image class="max_cover" src="{{IMG_URL}}home/fuliguan/{{urlName}}.png" show-menu-by-longpress="{{true}}" /> -->
    <image class="max_cover" src="{{IMG_URL}}home/fuliguan/{{bannerName}}.png" show-menu-by-longpress="{{true}}" />
    <image bind:tap="closeModal" class="close_icon" src="{{IMG_URL}}home/close_modal.png" />
    <view class="code_banner">
      <image class="codeimg" src="{{urlName}}" show-menu-by-longpress="{{true}}" />
    </view>
  </view>
</view>
<store-select show="{{showStore}}" bind:freshMerchant="freshMerchant"></store-select>