【fix】优化代码

This commit is contained in:
黄少君
2024-02-22 18:37:23 +08:00
parent 17c043348a
commit f8fac0a5bc
246 changed files with 973 additions and 406 deletions

View File

@ -17,7 +17,7 @@ import { SharePathKey, useShare } from "@/hooks/useShare";
import { useRouter } from "@/hooks/useRouter";
import { getGroupByDetailTeamworkId } from "@/api/goods";
import { getTimeAfterNow } from "@/utils/utils";
import { useMainStore } from "@/store/store";
import { useMainStore } from "@/store/modules/useMainStore";
import GoodAttrSelect from "@/components/good-attr-select/good-attr-select.vue";
import { getProductDetail } from "@/api/product";
import { useInterface } from "@/hooks/useInterface";
@ -92,7 +92,7 @@ const skuNum = ref(1) // 选中sku下单数量
async function doGetGoodsDetail() {
goodsDetail.value = await getProductDetail({productId: groupDetail.value.id, skuId: groupDetail.value.skuId});
canDoOrder.value = true
groupByInvitationShare({...groupDetail.value,cartInfo:[{productInfo:{image:groupDetail.value.image}}]});
groupByInvitationShare({...groupDetail.value, cartInfo: [{productInfo: {image: groupDetail.value.image}}]});
const {productValue} = goodsDetail.value
for (const skuName in productValue) {
const sku = productValue[skuName]
@ -263,7 +263,7 @@ function takePartInAGroup() {
// ============================ 邀请 ==================================================
const {shareInfo,groupByInvitationShare, shareH5, shareAppMessage, shareTimeline} = useShare()
const {shareInfo, groupByInvitationShare, shareH5, shareAppMessage, shareTimeline} = useShare()
onShareAppMessage(shareAppMessage)
onShareTimeline(shareTimeline)
@ -357,7 +357,7 @@ function handleShareConfirm(shareItem) {
v-for="item in residuePersonNum"
:key="item"
@click="inviteFriend">
<u-icon name="plus" />
<uv-icon name="plus" />
</view>
</view>
<!-- 如果自己已经在团内 -->