【功能完善】秒杀活动分享

pull/126/head
puhui999 2024-11-29 10:45:58 +08:00
parent 530410fcf0
commit 7be216ea4b
2 changed files with 5 additions and 5 deletions

View File

@ -137,11 +137,11 @@
</template>
<script setup>
import { reactive, computed, ref, unref } from 'vue';
import { computed, reactive, ref, unref } from 'vue';
import { onLoad, onPageScroll } from '@dcloudio/uni-app';
import sheep from '@/sheep';
import { isEmpty, min } from 'lodash-es';
import { useDurationTime, formatGoodsSwiper, fen2yuan } from '@/sheep/hooks/useGoods';
import { fen2yuan, formatGoodsSwiper, useDurationTime } from '@/sheep/hooks/useGoods';
import detailNavbar from './components/detail/detail-navbar.vue';
import detailCellSku from './components/detail/detail-cell-sku.vue';
import detailTabbar from './components/detail/detail-tabbar.vue';
@ -214,8 +214,8 @@
type: 'goods', //
title: activity.value.name, //
image: sheep.$url.cdn(state.goodsInfo.picUrl), //
price: state.goodsInfo.price, //
marketPrice: state.goodsInfo.marketPrice, //
price: fen2yuan(state.goodsInfo.price), //
marketPrice: fen2yuan(state.goodsInfo.marketPrice), //
},
);
});

View File

@ -148,7 +148,7 @@ const decryptSpm = (spm) => {
shareParams.page = '/pages/goods/seckill';
query = shareParamsArray[2].split(',');
shareParams.query = {
id: query[1],
id: query[0],
};
break;
case '5':