增加公共分享组件
This commit is contained in:
@@ -13,8 +13,10 @@
|
||||
<up-swiper :list="goods.images" @change="swiperChange" :current="swiperCurrent" radius="6px"
|
||||
height="250" @click="prveImgs(goods.images, goods.images[swiperCurrent])">
|
||||
</up-swiper>
|
||||
|
||||
<view class="shop_sku_name">{{ goods.name }}</view>
|
||||
<view class="shop_sku_name u-flex u-row-between">
|
||||
<view class="u-line-1" style="max-width: 600rpx;">{{ goods.name }}</view>
|
||||
<ymfShare />
|
||||
</view>
|
||||
<view class="shop_sku_description" v-if="isSkuGoods">
|
||||
{{ goods.shortTitle ? goods.shortTitle : '' }}
|
||||
</view>
|
||||
@@ -308,6 +310,7 @@
|
||||
import {
|
||||
useNavbarStore
|
||||
} from '@/stores/navbarStore';
|
||||
import ymfShare from '@/components/ymf-components/ymf-share.vue'
|
||||
const store = useNavbarStore();
|
||||
const {
|
||||
showBack,
|
||||
@@ -479,11 +482,11 @@
|
||||
const swiperCurrent = ref(0);
|
||||
|
||||
function returnFirstSku(product) {
|
||||
console.log('returnFirstSku', product.skuList[0]);
|
||||
console.log('returnFirstSku', product);
|
||||
return {
|
||||
...product.skuList[0],
|
||||
sku_id: product.skuList[0].id,
|
||||
id: product.id,
|
||||
...product.skuList[0]||'',
|
||||
sku_id: product.skuList[0].id||'',
|
||||
id: product.id||'',
|
||||
}
|
||||
}
|
||||
//返回是否是多规格商品
|
||||
@@ -831,7 +834,7 @@
|
||||
padding: 0 28rpx;
|
||||
margin-top: 20rpx;
|
||||
font-weight: bold;
|
||||
font-size: 32upx;
|
||||
font-size: 32rpx;
|
||||
margin-bottom: 16rpx;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user