From 93cd1f3c26603ec8f9ebb0600dfcd61102fe8b4e Mon Sep 17 00:00:00 2001 From: yuanteng0011 <1876787513@qq.com> Date: Sat, 29 Mar 2025 01:02:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=88=E5=B9=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 2 +- pages/Shopping-cart/productmain/testproductmain.vue | 8 +++++++- pages/store-home/ProductDetails/ProductDetails.vue | 12 +++++++----- 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/App.vue b/App.vue index 9f68728..6428851 100644 --- a/App.vue +++ b/App.vue @@ -28,7 +28,7 @@ @font-face { font-family: 'FangZhengFonts'; - src: url('https://carboner.cn:8888/api/file/download/FangZhengFonts.ttf') format('truetype'); + src: url('https://www.carboner.cn:8888/api/file/download/FangZhengFonts.ttf') format('truetype'); } view { diff --git a/pages/Shopping-cart/productmain/testproductmain.vue b/pages/Shopping-cart/productmain/testproductmain.vue index 5245484..ddb53e2 100644 --- a/pages/Shopping-cart/productmain/testproductmain.vue +++ b/pages/Shopping-cart/productmain/testproductmain.vue @@ -468,8 +468,14 @@ 'cookie': wx.getStorageSync('cookie') } }) + if(res.data.code === 5000) { + uni.showToast({ + icon: 'error', + title: res.data.message + }) + } res.data.data.length > 0 ? errorArr.value = res.data.data : errorArr.value = null - console.log(res.data); + console.log('服务类校验res---->',res.data); if (res.data.data.length != 0) { uni.showModal({ title: '提示', diff --git a/pages/store-home/ProductDetails/ProductDetails.vue b/pages/store-home/ProductDetails/ProductDetails.vue index 46fea31..317275d 100644 --- a/pages/store-home/ProductDetails/ProductDetails.vue +++ b/pages/store-home/ProductDetails/ProductDetails.vue @@ -5,11 +5,13 @@ class="self-stretch image" :src="goodObject.goodImg" /> --> - - - - - + + + + + + +