批发优化

master
gongfuxiang 2024-10-17 16:18:52 +08:00
parent 2cab5c4312
commit e6eec2458a
2 changed files with 9 additions and 11 deletions

View File

@ -1,16 +1,16 @@
<template>
<view :class="theme_view">
<!-- 批发规则展示 -->
<view v-if="(data || null) != null" class="scroll-view-horizontal">
<view v-if="(data || null) != null" class="plugins-wholesale-container scroll-view-horizontal">
<scroll-view scroll-x="true">
<view :class="'plugins-wholesale-container-rules-view wh-auto item-number-'+data.rules.length" @tap="popup_wholesale_event">
<view :class="'plugins-wholesale-container-rules-view wh-auto padding-main item-number-'+data.rules.length" @tap="popup_wholesale_event">
<view v-for="(item, index) in data.rules" :key="index" class="item">
<view class="price">
<text v-if="item.arr.type == 1" class="cr-red text-size-xs">{{propCurrencySymbol}}</text>
<text class="sales-price text-size-lg">{{item.range_val}}</text>
<text v-if="item.arr.type == 0" class="unit text-size-xsss">{{item.arr.unit}}</text>
</view>
<view :class="'msg text-size-sm cr-base margin-top-xs '+(propIsSeckill ? 'cr-white' : 'cr-black')">{{item.range_msg}}</view>
<view class="msg text-size-sm cr-base margin-top-xs cr-black">{{item.range_msg}}</view>
</view>
</view>
</scroll-view>
@ -64,11 +64,6 @@ export default {
componentPopup
},
props: {
//
propIsSeckill: {
type: Boolean,
default: false,
},
//
propIsPopup: {
type: Boolean,
@ -121,10 +116,13 @@ export default {
}
}
</script>
<style>
<style scoped>
/**
* 批发 - 插件
*/
.plugins-wholesale-container {
background: linear-gradient(to bottom, #fafafa 0%, #fff 100%);
}
.plugins-wholesale-container-rules-view {
display: flex;
justify-content: flex-start;

View File

@ -75,14 +75,14 @@
<!-- 价格信息 -->
<view class="goods-base-price bg-white oh spacing-mb" :class="plugins_seckill_is_valid ? 'goods-base-price-countdown' : ''">
<!-- 批发规则未隐藏商品售价的时候独立行展示 -->
<view v-if="(plugins_wholesale_data || null) != null && (plugins_wholesale_data.is_hide_goods_price || 0) != 1" :class="'padding-horizontal-main padding-top-main '+((plugins_seckill_is_valid) ? 'padding-bottom-main' : '')">
<view v-if="(plugins_wholesale_data || null) != null && (plugins_wholesale_data.is_hide_goods_price || 0) != 1">
<component-wholesale-rules :propIsPopup="true" :propCurrencySymbol="currency_symbol" :propData="plugins_wholesale_data" :propIsSeckill="plugins_seckill_is_valid"></component-wholesale-rules>
</view>
<!-- 价格 -->
<view class="price-content padding-vertical-main padding-left-main bs-bb fl" :style="plugins_seckill_is_valid ? 'background-image: url(' + plugins_seckill_data.goods_detail_header + ')' : ''">
<!-- 批发规则隐藏商品售价的时候在这里展示 -->
<view v-if="(plugins_wholesale_data || null) != null && (plugins_wholesale_data.is_hide_goods_price || 0) == 1" class="item">
<component-wholesale-rules :propIsPopup="true" :propCurrencySymbol="currency_symbol" :propData="plugins_wholesale_data" :propIsSeckill="plugins_seckill_is_valid"></component-wholesale-rules>
<component-wholesale-rules :propIsPopup="true" :propCurrencySymbol="currency_symbol" :propData="plugins_wholesale_data"></component-wholesale-rules>
</view>
<!-- 批发插件是否开启隐藏价格信息 -->
<block v-if="(plugins_wholesale_data || null) == null || (plugins_wholesale_data.is_hide_goods_price || 0) != 1">