index.wxml
2.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<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>