mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2026-07-06 21:45:47 +08:00
qq小程序适配
This commit is contained in:
@ -606,8 +606,8 @@ App({
|
||||
var is_show_cancel = (e.is_show_cancel == 0) ? false : true;
|
||||
var cancel_text = e.cancel_text || '取消';
|
||||
var confirm_text = e.confirm_text || '确认';
|
||||
var cancel_color = e.cancel_color || '';
|
||||
var confirm_color = e.confirm_color || '';
|
||||
var cancel_color = e.cancel_color || '#000000';
|
||||
var confirm_color = e.confirm_color || '#576B95';
|
||||
|
||||
swan.showModal({
|
||||
title: title,
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
<view class="am-popup {{propClassname || ''}} {{(status || false) ? 'am-popup-show' : ''}} {{ (propAnimation || true) ? 'animation': '' }}" disable-scroll="{{propDisablescroll || true}}">
|
||||
<view class="am-popup {{propClassname || ''}} {{(status || false) ? 'am-popup-show' : ''}} {{ (propAnimation || true) ? 'animation': '' }}" disable-scroll="{{propDisablescroll}}">
|
||||
<view class="am-popup-mask" s-if="propMask || true" bindtap="onMaskTap"></view>
|
||||
<view class="am-popup-content am-popup-{{position || 'bottom'}}">
|
||||
<slot></slot>
|
||||
|
||||
@ -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