mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2026-06-07 02:12:25 +08:00
qq小程序适配
This commit is contained in:
@ -680,8 +680,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';
|
||||
|
||||
if(is_show_cancel)
|
||||
{
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
<view class="am-popup {{propClassname || ''}} {{(propShow || false) ? 'am-popup-show' : ''}} {{ (propAnimation || true) ? 'animation': '' }}" disable-scroll="{{propDisablescroll || true}}">
|
||||
<view class="am-popup {{propClassname || ''}} {{(propShow || false) ? 'am-popup-show' : ''}} {{ (propAnimation || true) ? 'animation': '' }}" disable-scroll="{{propDisablescroll}}">
|
||||
<view class="am-popup-mask" a:if="{{propMask || true}}" onTap="onMaskTap"></view>
|
||||
<view class="am-popup-content am-popup-{{propPosition || 'bottom'}}">
|
||||
<slot></slot>
|
||||
|
||||
@ -121,7 +121,7 @@
|
||||
<component-popup prop-show="{{popup_plugins_coupon_status}}" prop-position="bottom" onClose="plugins_coupon_close_event">
|
||||
<view class="plugins-coupon-popup bg-white">
|
||||
<view class="close oh">
|
||||
<view class="fr" catchtap="plugins_coupon_close_event">
|
||||
<view class="fr" catchTap="plugins_coupon_close_event">
|
||||
<icon type="clear" size="20" />
|
||||
</view>
|
||||
</view>
|
||||
@ -133,7 +133,7 @@
|
||||
<view class="item spacing-mt bg-white {{plugins_use_coupon_ids.indexOf(item.id) != -1 ? '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 a: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 a:if="{{(item.coupon.desc || null) != null}}" class="desc cr-888">{{item.coupon.desc}}</text>
|
||||
|
||||
@ -129,7 +129,7 @@ Page({
|
||||
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 + '张' : '暂无可用优惠劵';
|
||||
|
||||
@ -397,7 +397,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 a:if="{{item.lng > 0 && item.lat > 0}}" class="fr cr-666 map-submit br" type="default" size="mini" onTap="address_map_event" data-index="{{index}}" hover-class="none">查看地图</button>
|
||||
<button a:if="{{(item.lng || null) != null && (item.lat || null) != null}}" class="fr cr-666 map-submit br" type="default" size="mini" onTap="address_map_event" data-index="{{index}}" hover-class="none">查看地图</button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
Reference in New Issue
Block a user