giftPage.ttml
1.95 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
<!--
<import src="/pages/goodsDetail/picker/picker.wxml"/>
-->
<view class="container">
<scroll-view class="scrollContainer" scroll-y="true" enable-back-to-top="true">
<block tt:for="{{promotion_data_ary}}"
tt:for-item="promotionItem"
tt:key="{{index}}">
<view class="realHeader">
<text class="headerText">{{promotionItem.promotion_title}}</text>
</view>
<block tt:for="{{promotionItem.goods_list}}"
tt:for-item="goodsItem"
tt:for-index="goodIndex"
tt:key="{{goodIndex}}">
<view class="cellContainer"
data-product-skn="{{goodsItem.product_skn}}"
data-product-sku="{{goodsItem.product_sku}}"
data-item='{{promotionItem}}'
bindtap="onPressProduct">
<view class="imageContainer">
<image class="image" src="{{goodsItem.goods_images}}"></image>
<image class='tag-image' src="{{is_gift ? '../../images/zp-lab@2x.png' : '../../images/jjg-lab@2x.png'}}"/>
</view>
<!-- 商品名称 价格 加入购物车按钮 -->
<view class='product-info-container'>
<view>
<view class="titleText">{{goodsItem.product_name}}</view>
<view tt:if="{{!is_gift}}" class='price-title'>{{goodsItem.last_price}}</view>
</view>
<image class='add-shop-btn-image' src='../../images/jrgwc@2x.png'/>
</view>
<view tt:if="{{goodIndex!=0}}" class="separator"></view>
</view>
</block>
</block>
</scroll-view>
<picker id="picker"
pickerData="{{pickerData}}" isloadingForPayment="{{isloadingForPayment}}"
pickerShow="{{pickerShow}}"
bind:showChange="showChange"
bind:errorToast="errorToast"
bind:addShopCart="addShopCart"
bind:chooseSizeColorCompleted="chooseSizeColorCompleted"
></picker>
</view>
<import src="../../vendors/toast/wetoast.ttml"/>
<template is="wetoast" data="{{...__wetoast__}}"/>