mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2026-07-06 13:43:02 +08:00
qq小程序适配
This commit is contained in:
@ -106,7 +106,7 @@ Page({
|
||||
for (var i in data.plugins_coupon_data) {
|
||||
var cupk = data.plugins_coupon_data[i]['warehouse_id'];
|
||||
if ((data.plugins_coupon_data[i]['coupon_data']['coupon_choice'] || null) != null) {
|
||||
plugins_choice_coupon_value[cupk] = data.plugins_coupon_data[i]['coupon_data']['coupon_choice']['desc'];
|
||||
plugins_choice_coupon_value[cupk] = data.plugins_coupon_data[i]['coupon_data']['coupon_choice']['coupon']['desc'];
|
||||
} else {
|
||||
var coupon_count = (data.plugins_coupon_data[i]['coupon_data']['coupon_list'] || null) != null ? data.plugins_coupon_data[i]['coupon_data'].coupon_list.length : 0;
|
||||
plugins_choice_coupon_value[cupk] = coupon_count > 0 ? '可选优惠劵' + coupon_count + '张' : '暂无可用优惠劵';
|
||||
|
||||
@ -134,7 +134,7 @@
|
||||
<view class="item spacing-mt bg-white {{tools.indexOf(plugins_use_coupon_ids, item.id) ? 'item-disabled' : ''}}" style="border:1px solid {{item.coupon.bg_color_value}};">
|
||||
<view class="v-left fl">
|
||||
<view class="base single-text" style="color:{{item.coupon.bg_color_value}};">
|
||||
<text class="symbol">{{price_symbol}}</text>
|
||||
<text s-if="item.coupon.type == 0" class="symbol">{{price_symbol}}</text>
|
||||
<text class="price">{{item.coupon.discount_value}}</text>
|
||||
<text class="unit">{{item.coupon.type_unit}}</text>
|
||||
<text s-if="(item.coupon.desc || null) != null" class="desc cr-888">{{item.coupon.desc}}</text>
|
||||
|
||||
@ -349,7 +349,7 @@ Page({
|
||||
this.setData({
|
||||
total_price: total_price.toFixed(2),
|
||||
buy_submit_disabled_status: (selected_count <= 0),
|
||||
is_selected_all: (selected_count >= data_count),
|
||||
is_selected_all: (selected_count > 0 && selected_count >= data_count),
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="operation br-t oh">
|
||||
<button s-if="item.lng > 0 && item.lat > 0" class="fr cr-666 map-submit br" type="default" size="mini" bindtap="address_map_event" data-index="{{index}}" hover-class="none">查看地图</button>
|
||||
<button s-if="(item.lng || null) != null && (item.lat || null) != null" class="fr cr-666 map-submit br" type="default" size="mini" bindtap="address_map_event" data-index="{{index}}" hover-class="none">查看地图</button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
Reference in New Issue
Block a user