Fix:3477 【商城小程序】开启了价格面议的商品价格区域需显示为【价格面议】(页面:搜索结果列表、商详页点击库存后弹出的规格弹窗、店铺详情页商品列表、商品收藏列表、商品足迹、文玩商品列表)

This commit is contained in:
modendeveloper
2025-04-01 12:40:53 +08:00
parent f2fba444a0
commit 3bbd796a85
7 changed files with 17 additions and 6 deletions
+6 -1
View File
@@ -6,7 +6,7 @@
<image :src="attrObj.productSelect.image" class="image" />
</view>
<view class="text">
<view class="money font-color-lightred v12-font-">
<view v-if="!isNegotiable" class="money font-color-lightred v12-font-">
<text class="num v12-font-40">{{ attrObj.productSelect.price }}</text>
<text class="v12-ml-2 v12-font-weight-300 v12-font-22" style="color: #BBBBBB; text-decoration: line-through;"></text>
@@ -14,6 +14,7 @@
<text class="v12-white-text v12-red v12-font-22 v12-radius-40 v12-px-1 v12-font-weight-400">会员价</text>
<!-- <text class="stock">库存: {{ attrObj.productSelect.stock }}</text> -->
</view>
<view class="v12-primary-text" v-else>价格面议</view>
<view class="more-t">{{ attrObj.productSelect.store_name }}</view>
</view>
<view class="iconfont icon-guanbi" @click="closeAttr"></view>
@@ -90,6 +91,10 @@
export default {
name: "ProductWindow",
props: {
isNegotiable: {
type: Boolean,
default: false
},
isGift: {
type: Boolean,
default: false
+1
View File
@@ -482,6 +482,7 @@
:attr="attr"
:cartNum="cart_num"
@changeFun="changeFun"
:isNegotiable="storeInfo.isNegotiable === 1"
@gift="gift"
:isGift="isGift"
/>
+2 -1
View File
@@ -73,7 +73,7 @@
<view class="text">
<view class="name more-t">{{ item.storeName }}</view>
<view class="vip acea-row row-between-wrapper">
<view class="ai-end" :class="{'flex': force2Decimal(item.price).length < 6}">
<view v-if="!item.isNegotiable" class="ai-end" :class="{'flex': force2Decimal(item.price).length < 6}">
<view class="money">
<text class="num" v-if="item.vipPrice && item.vipPrice > 0">{{ force2Decimal(item.vipPrice) }}</text>
@@ -81,6 +81,7 @@
</view>
<view class="vip-money">{{ force2Decimal(item.otPrice) }}</view>
</view>
<view v-else class="money">价格面议</view>
<view class="" @click.stop="addToCart(item)">
<image class="logo" :src="webUrl+'/orderIcon/组 355.png'" mode="" style="margin-right:0; width: 34rpx; height:34rpx"/>
</view>
+2 -1
View File
@@ -45,7 +45,7 @@
</view>
<view class="more-t v12-font-20 v12-mt-2">{{ historyItem.storeName }}</view>
<view class="v12-justify-between v12-mt-2 price">
<view class="v12-font-bold v12-primary-text" :class="{'v12-align-center': (historyItem.price).toString().length < 5 && (historyItem.otPrice).toString().length < 5 }">
<view v-if="!historyItem.isNegotiable" class="v12-font-bold v12-primary-text" :class="{'v12-align-center': (historyItem.price).toString().length < 5 && (historyItem.otPrice).toString().length < 5 }">
<text class="v12-font-16"></text>
<text class="v12-font-24 v12-mr-1">{{ historyItem.price }}</text>
<view class="ot-price v12-font-weight-400">
@@ -54,6 +54,7 @@
<view class="under-line"></view>
</view>
</view>
<view v-else class="v12-font-26 v12-primary-text v12-font-bold">价格面议</view>
<image
:src="webUrl+'/orderIcon/组 355.png'"
class="icon"
+2 -1
View File
@@ -179,7 +179,7 @@
/>
<view class="">
<view class="name more-t">{{ item.storeName }}</view>
<view class="price-line flex ai-center">
<view class="price-line flex ai-center" v-if="!item.isNegotiable">
<image
:src="webUrl + '/20221118104357701129.png'"
class="label"
@@ -187,6 +187,7 @@
/>
<text>{{ item.price }}</text>
</view>
<view class="v12-primary-text v12-font-26" v-else>价格面议</view>
</view>
<view class="sales-line flex ai-center">
<image
+2 -1
View File
@@ -86,11 +86,12 @@
>{{ item['storeName'] }}</view>
<view class="sub" @click="navToGoods(item)">规格:{{ item['sku'] }}</view>
<view class="flex jc-between ai-end">
<view class="price flex ai-end" @click="navToGoods(item)">
<view v-if="!item.isNegotiable" class="price flex ai-end" @click="navToGoods(item)">
<text style="color:#E92727">¥</text>
<text style="color:#E92727;font-size: 32rpx;line-height: 48rpx">{{ item['price'] }}</text>
<text style="margin-left: 10rpx;text-decoration:line-through">¥{{ item['otPrice'] }}</text>
</view>
<view v-else class="v12-primary-text v12-font-26">价格面议</view>
<view class="cart flex jc-center ai-center">
<image :src="webUrl+'/20240107224527293534.png'" mode="scaleToFill" @click="addCart(item)"/>
</view>
+2 -1
View File
@@ -52,7 +52,8 @@
<!-- <text>单位:{{ item.unitName || "" }}</text>-->
</view>
<!-- <view class="info-line" style="margin-top: 4rpx">规格:{{ item.storeInfo || "" }}</view>-->
<view class="price-line">{{ item.price }}</view>
<view class="price-line" v-if="!item.isNegotiable">{{ item.price }}</view>
<view class="price-line" v-else>价格面议</view>
</view>
</view>