diff --git a/api/shop/shopCart/model/index.ts b/api/shop/shopCart/model/index.ts index fdacfcd..923a618 100644 --- a/api/shop/shopCart/model/index.ts +++ b/api/shop/shopCart/model/index.ts @@ -59,6 +59,7 @@ export interface ShopCartParam extends PageParam { export interface MyCart { appName?: string, domain?: string, + adminUrl?: string; num?: number, type?: number; payType?: number, diff --git a/composables/configState.ts b/composables/configState.ts index 16ebd88..675f636 100644 --- a/composables/configState.ts +++ b/composables/configState.ts @@ -77,6 +77,7 @@ export const useCart = () => useState('cart', () => { return { appName: '', domain: '', + adminUrl: '', num: 1, type: 1, payType: 102, diff --git a/pages/product/create/index.vue b/pages/product/create/index.vue index c2b2a9b..9cb4995 100644 --- a/pages/product/create/index.vue +++ b/pages/product/create/index.vue @@ -302,7 +302,6 @@ const onPay = () => { body: cart.value }).then(async res => { if (res.code == 0) { - console.log(res.data) try { // 生成二维码图像数据URL wxPayQrCode.value = await QRCode.toDataURL(res.data); @@ -349,6 +348,7 @@ const reload = async () => { cart.value.comments = `购买${response.value?.data.shortName}`; if(response.value?.data.price){ cart.value.payPrice = response.value?.data.price; + cart.value.adminUrl = response.value?.data.domain; computeTotalPrice(); } useHead({