From 4d45f5fbc3921ede857879bce0d7a6a75a1c96fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=BF=A0=E6=9E=97?= <170083662@qq.com> Date: Wed, 20 Nov 2024 13:48:33 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=AD=E7=89=A9=E8=BD=A6=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=EF=BC=9AadminUrl=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/shop/shopCart/model/index.ts | 1 + composables/configState.ts | 1 + pages/product/create/index.vue | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) 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({