细节优化

master
gongfuxiang 2023-11-08 08:56:31 +08:00
parent 1a236b16a9
commit 5fd7b0385a
4 changed files with 13 additions and 11 deletions

View File

@ -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';
},
},

View File

@ -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

View File

@ -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"

View File

@ -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 || '秒杀价' : '';