goodsDetial2.wxml
7.0 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<!--pages/index/goodsDetial/goodsDetial.wxml-->
<view class='page {{show1||show2||show3||show4?"active":""}}'>
<view class='banner'>
<view class='iconfont icon-fanhui' catchtap='get_back'></view>
<view class='coupons'>商品详情</view>
<view class='share'>
<button open-type='share' type='false' class='share_btn' plain='true'>分享</button>
</view>
</view>
<view class='banner_box'>
<!-- <view class='banner_img' wx:for='{{goodsList}}' wx:key='{{item.id}}'> -->
<image src='{{info.thumbnail}}'></image>
<!-- </view> -->
</view>
<view class='content_item'>
<view class='item_list'>
<view class='banner_title'>{{info.title}}</view>
<view class='introduce'>{{info.excerpt}}</view>
<view class='banner_character'>
<view class='banner_price'>
<view class='pickage_display'>最多可省
<text class='money_icon2'>¥</text>
<text class='money2'>{{info.save_price}}</text> </view>
</view>
<!-- <view>已售出:1566份</view> -->
</view>
</view>
<view class='product_list'>
<view class='singlepart'>
<view class='single_part_top'>
<view class='single_part_left'>
<view class='iconfont icon-weixuanzhong single_part_left_icon {{chooseAll?"active":""}}' bindtap='chooseAll'></view>
促销商品
</view>
</view>
<view class='single_part_items'>
<view class='single_part_item' wx:for='{{goodsList}}' wx:key='*this' wx:for-index='index' wx:for-item='value'>
<view class='iconfont icon-weixuanzhong iconfonts {{value.t?"active":""}}' bindtap='choose' data-id='{{value.id}}' data-flag='{{value.flag}}' data-index='{{index}}'></view>
<view class='single_part_imgbox' bindtap='jump_goods_detail' data-id='{{value.id}}'>
<image src='{{value.more.thumbnail}}' mode='widthFix'></image>
</view>
<view class='single_part_detail'>
<view class='product_title'>{{value.title}}</view>
<view class='product_type'>{{value.excerpt}}</view>
<view class='choose_sku' bindtap='chooseStandard' data-shop="{{value}}" data-origin='{{index}}' data-index='{{index}}'>
<view class='product_types'> 请选择菜品属性</view>
<view iconfont icon-position></view>
</view>
<view class='product_action'>
<view class='price'>¥
<!-- <view> -->
<text class='detail_price' wx:if='{{value.ggprice}}'>{{value.showjine}}</text>
<text wx:else class='detail_price'>{{value.new_price}}</text>
<!-- </view> -->
<text class='save_after'>已省</text>
<text>{{value.save_price}}</text>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
<view class='bottom_btn'>
<view class='hint_btn'>
<view class='shangmianbyn'>
<view class='shangmianbyi'>套餐价</view>
<view class='shangmianber'>¥</view>
<view class='shangmianbsan'>{{jine}}</view>
</view>
<view class='yisheng'>已省¥{{jiesheng}}</view>
</view>
<view class='join_btn' bindtap='join_btn'>加入购物车</view>
<view class='immediately_btn' bindtap='go_pay_sale'>立即购买</view>
</view>
</view>
<!-- 加购弹框 -->
<view class='cart_mask' wx:if='{{show1}}'>
<view class='cart_mask_diceng'>
<view class='close_jump_cart iconfont icon-cuowu' bindtap='close_mask_cart1'></view>
<view class='goods_name'>{{goods1.title}}</view>
<view class='weight' wx:for='{{goods1.attr.attr_sku}}' wx:key='{{item.id}}' wx:for-index='cellindex' wx:for-item='cell'>
<view class='weight_view'>{{cell.name}}</view>
<view class='quality'>
<view class='quality_left {{value.t?"active":""}}' wx:for='{{cell.item}}' wx:key='{{key}}' data-gid='{{value.id}}' data-parent="{{cellindex}}" data-item="{{value.attribute_value}}" data-index="{{index}}" bindtap='changeIds1' wx:for-item='value' data-origin='{{origin}}'>{{value.attribute_value}}</view>
</view>
</view>
<view class='last_box'>
<view class='last_box_top'>
<view class='last_box_top_price'>
<view>¥{{goods1.attprice}}</view>
</view>
</view>
<view class='last_box_top'>
<view class='last_box_top_price'>
<view class='member_price'>¥{{goods1.attvipprice}}</view>
<text class='member'>会员专享</text>
</view>
<view class='purchase' bindtap='hide_mask1' data-index='{{originIndex}}'>确定</view>
</view>
</view>
</view>
</view>