chore:询底价改为立即咨询

This commit is contained in:
2026-04-25 08:38:15 +08:00
parent 9d186ff094
commit 6e0eb5d4f3
7 changed files with 89 additions and 11 deletions

View File

@@ -50,6 +50,10 @@ const localDevConfig = ({
uniacid: 1, uniacid: 1,
domain: 'https://5g.aigc-quickapp.com/', domain: 'https://5g.aigc-quickapp.com/',
}, },
})['1']; // 选择要使用的环境配置 '100': { // 开发平台
uniacid: 100,
domain: 'https://5g.aigc-quickapp.com/',
},
})['100']; // 选择要使用的环境配置
export default localDevConfig; export default localDevConfig;

View File

@@ -100,7 +100,7 @@
parseFloat(showPrice(item)).toFixed(2).split('.')[1] }}</text> parseFloat(showPrice(item)).toFixed(2).split('.')[1] }}</text>
</block> </block>
<block v-else> <block v-else>
<text class="unit price-style small">{{ $lang('Make') ? $lang('Make') : '询底价' }}</text> <text class="unit price-style small">{{ $lang('Make') ? $lang('Make') : '立即咨询' }}</text>
</block> </block>
</view> </view>
<view class="member-price-tag" <view class="member-price-tag"
@@ -120,6 +120,11 @@
<text>{{ showMarketPrice(item) }}</text> <text>{{ showMarketPrice(item) }}</text>
</view> </view>
</view> </view>
<view class="ai-chat-btn-wrap" v-if="item.isinformation == 1">
<view class="ai-chat-btn" @tap.stop="sendToAIChat(item)">
立即咨询
</view>
</view>
<!-- <view class="right-wrap" v-if="value.template == 2 || value.template == 4"> <!-- <view class="right-wrap" v-if="value.template == 2 || value.template == 4">
<block v-if="item.is_virtual"> <block v-if="item.is_virtual">
@@ -193,7 +198,7 @@
parseFloat(showPrice(item)).toFixed(2).split('.')[1] }}</text> parseFloat(showPrice(item)).toFixed(2).split('.')[1] }}</text>
</block> </block>
<block v-else> <block v-else>
<text class="unit price-style small">{{ $lang('Make') ? $lang('Make') : '询底价' }}</text> <text class="unit price-style small">{{ $lang('Make') ? $lang('Make') : '立即咨询' }}</text>
</block> </block>
</view> </view>
@@ -213,6 +218,11 @@
<text>{{ showMarketPrice(item) }}</text> <text>{{ showMarketPrice(item) }}</text>
</view> </view>
</view> </view>
<view class="ai-chat-btn-wrap" v-if="item.isinformation == 1">
<view class="ai-chat-btn" @tap.stop="sendToAIChat(item)">
立即咨询
</view>
</view>
<view class="right-wrap" v-if="value.template == 2"> <view class="right-wrap" v-if="value.template == 2">
<block v-if="item.is_virtual"> <block v-if="item.is_virtual">
@@ -1406,5 +1416,23 @@ export default {
} }
} }
.ai-chat-btn-wrap {
display: flex;
justify-content: flex-end;
margin-top: auto;
padding-top: 10rpx;
}
.ai-chat-btn {
background-color: #07c160;
color: #fff;
padding: 8rpx 24rpx;
border-radius: 12rpx;
font-size: 24rpx;
font-weight: 500;
line-height: 1;
text-align: center;
white-space: nowrap;
}
</style> </style>

View File

@@ -3,5 +3,5 @@ export const lang = {
title: '商品分类', title: '商品分类',
search:'商品搜索', search:'商品搜索',
seeMore : '查看更多', seeMore : '查看更多',
Make: "询底价" Make: "立即咨询"
} }

View File

@@ -22,7 +22,7 @@ export const lang = {
status:'该商品已下架', status:'该商品已下架',
sellout:'库存不足', sellout:'库存不足',
max:'已达最大限购数量', max:'已达最大限购数量',
makebtn:'价格电议', makebtn:'立即咨询',
sales:'销量', sales:'销量',
stock:'库存', stock:'库存',
kefu:'客服', kefu:'客服',

View File

@@ -6,6 +6,6 @@ export const lang = {
Price:'价格', Price:'价格',
Filter:'筛选', Filter:'筛选',
Search:'请输入您要搜索的商品', Search:'请输入您要搜索的商品',
Make:'立即询底价', Make:'立即咨询',
} }

View File

@@ -76,7 +76,7 @@
parseFloat(showPrice(item)).toFixed(2).split('.')[1] }}</text> parseFloat(showPrice(item)).toFixed(2).split('.')[1] }}</text>
</view> </view>
<view class="discount-price" v-else> <view class="discount-price" v-else>
<text class="price price-style large">{{ langstatus ? $lang('Make') : '询底价' }}</text> <text class="price price-style large">{{ langstatus ? $lang('Make') : '立即咨询' }}</text>
</view> </view>
</view> </view>
<view class="pro-info" v-if="item.isinformation == 0"> <view class="pro-info" v-if="item.isinformation == 0">
@@ -92,6 +92,11 @@
</view> </view>
</view> </view>
</view> </view>
<view class="ai-chat-btn-wrap" v-if="item.isinformation == 1">
<view class="ai-chat-btn" @click.stop="sendToAIChat(item)">
立即咨询
</view>
</view>
</view> </view>
</view> </view>
</view> </view>
@@ -122,7 +127,7 @@
parseFloat(showPrice(item)).toFixed(2).split('.')[1] }}</text> parseFloat(showPrice(item)).toFixed(2).split('.')[1] }}</text>
</view> </view>
<view class="discount-price" v-else> <view class="discount-price" v-else>
<text class="price price-style large">{{ langstatus ? $lang('Make') : '询底价' }}</text> <text class="price price-style large">{{ langstatus ? $lang('Make') : '立即咨询' }}</text>
</view> </view>
</view> </view>
<view class="pro-info" v-if="item.isinformation == 0"> <view class="pro-info" v-if="item.isinformation == 0">
@@ -138,6 +143,11 @@
</view> </view>
</view> </view>
</view> </view>
<view class="ai-chat-btn-wrap" v-if="item.isinformation == 1">
<view class="ai-chat-btn" @click.stop="sendToAIChat(item)">
立即咨询
</view>
</view>
</view> </view>
</view> </view>
</view> </view>
@@ -219,7 +229,24 @@ export default {
data() { data() {
return {}; return {};
}, },
mixins: [list] mixins: [list],
methods: {
sendToAIChat(item) {
const productInfo = {
goods_id: item.goods_id,
goods_name: item.goods_name,
price: this.showPrice(item),
image: this.goodsImg(item.goods_image),
category_id: item.category_id
};
uni.setStorageSync('selectedProduct', productInfo);
uni.navigateTo({
url: '/pages_tool/ai-chat/index'
});
}
}
}; };
</script> </script>
@@ -235,4 +262,23 @@ export default {
::v-deep .sku-layer .uni-popup__wrapper.uni-custom .uni-popup__wrapper-box { ::v-deep .sku-layer .uni-popup__wrapper.uni-custom .uni-popup__wrapper-box {
max-height: unset !important; max-height: unset !important;
} }
.ai-chat-btn-wrap {
display: flex;
justify-content: flex-end;
margin-top: auto;
padding-top: 10rpx;
}
.ai-chat-btn {
background-color: #07c160;
color: #fff;
padding: 8rpx 24rpx;
border-radius: 12rpx;
font-size: 24rpx;
font-weight: 500;
line-height: 1;
text-align: center;
white-space: nowrap;
}
</style> </style>

View File

@@ -88,7 +88,7 @@
parseFloat(showPrice(item)).toFixed(2).split('.')[1] }}</text> parseFloat(showPrice(item)).toFixed(2).split('.')[1] }}</text>
</view> </view>
<view class="discount-price" v-else> <view class="discount-price" v-else>
<text class="price price-style large">{{ $lang('Make') ? $lang('Make') : '询底价' <text class="price price-style large">{{ $lang('Make') ? $lang('Make') : '立即咨询'
}}</text> }}</text>
</view> </view>
@@ -182,7 +182,7 @@
parseFloat(showPrice(item)).toFixed(2).split('.')[1] }}</text> parseFloat(showPrice(item)).toFixed(2).split('.')[1] }}</text>
</view> </view>
<view class="discount-price" v-else> <view class="discount-price" v-else>
<text class="price price-style large">{{ $lang('Make') ? $lang('Make') : '询底价' <text class="price price-style large">{{ $lang('Make') ? $lang('Make') : '立即咨询'
}}</text> }}</text>
</view> </view>
<view class="member-price-tag" <view class="member-price-tag"