细节优化
parent
1a236b16a9
commit
5fd7b0385a
|
|
@ -91,12 +91,14 @@
|
|||
},
|
||||
// 左边距位置处理
|
||||
left_handle() {
|
||||
// 处理内容左边距、避免父级设置内边距影响
|
||||
var width = uni.getSystemInfoSync().windowWidth;
|
||||
var left = 0;
|
||||
if (width > 800) {
|
||||
left = (width - 800) / 2;
|
||||
}
|
||||
var left = 0;
|
||||
// #ifdef H5
|
||||
// 处理内容左边距、避免父级设置内边距影响
|
||||
var width = uni.getSystemInfoSync().windowWidth;
|
||||
if (width > 800) {
|
||||
left = (width - 800) / 2;
|
||||
}
|
||||
// #endif
|
||||
this.popup_content_left_value = left + 'px';
|
||||
},
|
||||
},
|
||||
|
|
|
|||
|
|
@ -84,7 +84,7 @@
|
|||
this.init_config();
|
||||
|
||||
// 页面是否定义导航
|
||||
var value = this.propIsNav ? 80 : 0;
|
||||
var value = this.propIsNav ? 100 : 0;
|
||||
this.top = value;
|
||||
this.height_dec = value;
|
||||
// #ifdef H5 || APP
|
||||
|
|
|
|||
|
|
@ -81,9 +81,9 @@
|
|||
</view>
|
||||
|
||||
<!-- 价格信息 -->
|
||||
<view :class="'goods-base-price bg-white oh spacing-mb ' + ((plugins_seckill_data || null) != null ? 'goods-base-price-countdown' : '')">
|
||||
<view :class="'goods-base-price bg-white oh spacing-mb ' + ((plugins_seckill_data || null) != null && plugins_seckill_data.time.status == 1 ? 'goods-base-price-countdown' : '')">
|
||||
<!-- 价格 -->
|
||||
<view class="price-content padding-lg bs-bb fl" :style="(plugins_seckill_data || null) != null ? 'background-image: url(' + plugins_seckill_data.goods_detail_header + ')' : ''">
|
||||
<view class="price-content padding-lg bs-bb fl" :style="(plugins_seckill_data || null) != null && plugins_seckill_data.time.status == 1 ? 'background-image: url(' + plugins_seckill_data.goods_detail_header + ')' : ''">
|
||||
<view class="single-text">
|
||||
<text v-if="(show_field_price_text || null) != null" class="price-icon round va-m">{{ show_field_price_text }}</text>
|
||||
<text class="sales-price va-m">{{ currency_symbol }}{{ goods_spec_base_price }}</text>
|
||||
|
|
@ -91,7 +91,7 @@
|
|||
<view v-if="(goods_spec_base_original_price || null) != null && goods_spec_base_original_price != 0" class="original-price margin-top-sm single-text">{{ currency_symbol }}{{ goods_spec_base_original_price }}</view>
|
||||
</view>
|
||||
<!-- 秒杀 -->
|
||||
<view v-if="(plugins_seckill_data || null) != null" class="countdown-content padding-top-lg padding-bottom-lg padding-left-xs padding-right-xs fr tc">
|
||||
<view v-if="(plugins_seckill_data || null) != null && plugins_seckill_data.time.status == 1" class="countdown-content padding-top-lg padding-bottom-lg padding-left-xs padding-right-xs fr tc">
|
||||
<view class="time-title cr-white single-text">{{ plugins_seckill_data.goods_detail_title || '限时秒杀' }}</view>
|
||||
<component-countdown
|
||||
:propHour="plugins_seckill_data.time.hours"
|
||||
|
|
|
|||
|
|
@ -180,7 +180,7 @@
|
|||
var current = data.current || null;
|
||||
var time = current == null ? null : current.time || null;
|
||||
var goods = current == null ? [] : current.goods || [];
|
||||
var is_valid = time == null ? 0 : time.status == 1 ? 1 : 0;
|
||||
var is_valid = time == null ? 0 : time.status <= 1 ? 1 : 0;
|
||||
if (goods.length > 0) {
|
||||
for (var i in goods) {
|
||||
goods[i]['price_icon'] = is_valid == 1 ? current.goods_detail_icon || '秒杀价' : '';
|
||||
|
|
|
|||
Loading…
Reference in New Issue