qwe
This commit is contained in:
parent
d8c6c26c34
commit
fed0018168
@ -79,7 +79,7 @@
|
|||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
</view>
|
</view>
|
||||||
<view class="sku-description">
|
<view class="sku-description">
|
||||||
{{ item.description.sub_title }}
|
{{ item.description }}
|
||||||
</view>
|
</view>
|
||||||
<view class="sku-rating">
|
<view class="sku-rating">
|
||||||
<text class="iconfont icon-xingxing"></text>
|
<text class="iconfont icon-xingxing"></text>
|
||||||
@ -280,10 +280,7 @@ export default {
|
|||||||
page: this.page,
|
page: this.page,
|
||||||
page_size: this.page_size
|
page_size: this.page_size
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
this.shopList = res.list.map(item => {
|
this.shopList = res.list
|
||||||
item.description = parseDescription(item.description)
|
|
||||||
return item
|
|
||||||
})
|
|
||||||
console.log(this.shopList )
|
console.log(this.shopList )
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
@ -91,7 +91,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="price-item">
|
<view class="price-item">
|
||||||
<text class="price-label">运费</text>
|
<text class="price-label">运费</text>
|
||||||
<text class="price-value">¥{{ formatPrice(shippingFee) }}</text>
|
<text class="price-value">包邮</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="price-item total" v-if="discountAmount > 0">
|
<view class="price-item total" v-if="discountAmount > 0">
|
||||||
<text class="price-label">优惠</text>
|
<text class="price-label">优惠</text>
|
||||||
|
|||||||
@ -449,7 +449,7 @@ export default {
|
|||||||
success: async (res) => {
|
success: async (res) => {
|
||||||
if (res.confirm) {
|
if (res.confirm) {
|
||||||
try {
|
try {
|
||||||
await request(`xcx/order/${order.id || order.order_id}/confirm`, 'POST');
|
await request(`xcx/order/confirm_receipt/${order.id || order.order_id}`, 'POST');
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '确认收货成功',
|
title: '确认收货成功',
|
||||||
icon: 'success'
|
icon: 'success'
|
||||||
|
|||||||
@ -63,7 +63,7 @@
|
|||||||
|
|
||||||
<!-- 商品描述 -->
|
<!-- 商品描述 -->
|
||||||
<view class="product-description">
|
<view class="product-description">
|
||||||
{{ productInfo.description.sub_title ||
|
{{ productInfo.description||
|
||||||
'经典玫瑰香调,优雅女神范,持久留香8小时。采用法国进口玫瑰精油,层次丰富,前调清新,中调浓郁,后调温暖。适合日常使用,也是送礼的绝佳选择。' }}
|
'经典玫瑰香调,优雅女神范,持久留香8小时。采用法国进口玫瑰精油,层次丰富,前调清新,中调浓郁,后调温暖。适合日常使用,也是送礼的绝佳选择。' }}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -150,9 +150,9 @@
|
|||||||
<view class="content-section">
|
<view class="content-section">
|
||||||
<!-- 商品详情 -->
|
<!-- 商品详情 -->
|
||||||
<view class="tab-content" v-if="activeTab === 'detail'">
|
<view class="tab-content" v-if="activeTab === 'detail'">
|
||||||
<view class="detail-section">
|
<!-- <view class="detail-section">
|
||||||
<rich-text :nodes="productInfo.description.details"></rich-text>
|
<rich-text :nodes="productInfo.description.details"></rich-text>
|
||||||
</view>
|
</view> -->
|
||||||
<view class="detail-section">
|
<view class="detail-section">
|
||||||
<view class="section-title">香调层次</view>
|
<view class="section-title">香调层次</view>
|
||||||
<view class="fragrance-notes">
|
<view class="fragrance-notes">
|
||||||
@ -376,10 +376,11 @@ export default {
|
|||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
currentPrice() {
|
currentPrice() {
|
||||||
// 直接取第一个SKU的价格
|
// 优先使用已选SKU价格,未选择时回退到列表首项/商品价
|
||||||
if (this.skuList && this.skuList.length > 0) {
|
const sku = this.selectedSku
|
||||||
const firstSku = this.skuList[0];
|
|| (this.skuList && this.skuList.length > 0 ? this.skuList[0] : null);
|
||||||
return firstSku.price || firstSku.sku_price || 0;
|
if (sku) {
|
||||||
|
return sku.price || sku.sku_price || 0;
|
||||||
}
|
}
|
||||||
return this.productInfo.price || 139;
|
return this.productInfo.price || 139;
|
||||||
},
|
},
|
||||||
@ -446,8 +447,8 @@ export default {
|
|||||||
}
|
}
|
||||||
this.productInfo.scent_level = JSON.parse(productInfo.scent_level);
|
this.productInfo.scent_level = JSON.parse(productInfo.scent_level);
|
||||||
this.productInfo.attr = JSON.parse(productInfo.attr);
|
this.productInfo.attr = JSON.parse(productInfo.attr);
|
||||||
this.productInfo.description = parseDescription(productInfo.description);
|
// this.productInfo.description = parseDescription(productInfo.description);
|
||||||
console.log(this.productInfo.description)
|
// console.log(this.productInfo.description)
|
||||||
// 处理SKU列表
|
// 处理SKU列表
|
||||||
if (productInfo.skus && Array.isArray(productInfo.skus) && productInfo.skus.length > 0) {
|
if (productInfo.skus && Array.isArray(productInfo.skus) && productInfo.skus.length > 0) {
|
||||||
this.skuList = productInfo.skus;
|
this.skuList = productInfo.skus;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user