From d24a5d1dced26b897fd6f6591faa1bf770188848 Mon Sep 17 00:00:00 2001 From: yuanteng0011 <1876787513@qq.com> Date: Mon, 24 Mar 2025 11:33:28 +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 | 64 ++-- common/global.js | 12 +- common/globalFont.js | 43 ++- .../newaddress_Info/newaddress_Info.vue | 5 +- .../productmain/testproductmain.vue | 5 +- pages/activity/activityMain/activityMain.vue | 7 +- .../myPhotoProductDetail.vue | 4 +- .../book/myPhotoProducts/myPhotoProducts.vue | 5 +- .../myPhotoProductsOrderDetail.vue | 5 +- .../photoProductDetail/photoProductDetail.vue | 6 +- pages/book/photoProducts/photoProducts.vue | 7 +- .../photoProductsOrder/photoProductsOrder.vue | 7 +- .../photoProductsOrderDetail.vue | 7 +- .../clotherRentOrderList.vue | 43 +-- .../clothesRentOrderDetail.vue | 26 +- .../clothesRentSubmitOrder.vue | 17 +- pages/coupon/CouponMall/CouponMall.vue | 6 +- pages/coupon/CouponTips/CouponTips.vue | 9 +- pages/coupon/MyCoupon/MyCoupon.vue | 7 +- pages/coupon/OverDueCoupon/OverDueCoupon.vue | 7 +- pages/home/home.vue | 30 +- pages/login/login.vue | 8 +- pages/mine/Contact/testContact.vue | 5 +- pages/mine/addressList/addressList.vue | 5 +- pages/mine/component/contactPop.vue | 4 +- pages/mine/main/main.vue | 62 ++-- .../myGeneralOrderDetail.vue | 7 +- pages/my-order/myOrderList/myOrderList.vue | 5 +- .../myServiceOrderDetail.vue | 7 +- .../my-order/researchOrder/researchOrder.vue | 5 +- .../order/product-waitpay/product-waitpay.vue | 5 +- pages/order/serviceWaitPay/serviceWaitPay.vue | 5 +- .../order/singleGoodOrder/singleGoodOrder.vue | 5 +- .../singleServiceWait/singleServiceWait.vue | 5 +- pages/store-home/main/testMain.vue | 6 +- pages/test/test.vue | 302 ------------------ pages/testPage/testPage.vue | 56 ---- pages/workshop/component/timeSelect.vue | 4 +- pages/workshop/index/index.vue | 7 +- pages/workshop/productmain/productmain.vue | 5 +- pages/workshop/searchGood/searchGood.vue | 7 +- pages/workshop/searchResult/searchResult.vue | 7 +- static/logo.png | Bin 4023 -> 0 bytes 43 files changed, 246 insertions(+), 598 deletions(-) delete mode 100644 pages/test/test.vue delete mode 100644 pages/testPage/testPage.vue delete mode 100644 static/logo.png diff --git a/App.vue b/App.vue index ea791f2..6428851 100644 --- a/App.vue +++ b/App.vue @@ -1,43 +1,37 @@ \ No newline at end of file diff --git a/common/global.js b/common/global.js index c3f706a..65ed34c 100644 --- a/common/global.js +++ b/common/global.js @@ -4,37 +4,37 @@ import { clothesRentUrl , bookUrl , workshopUrl , myOrderUrl} from "./globalImag export const stateList = [ { state: '待支付', - img: 'https://carbon2.obs.cn-north-4.myhuaweicloud.com:443/feiyi%2Ftest%2F0%2FFybMDtHR-dengdaifukuan.png', + img: myOrderUrl + '/myGeneralOrderDetail/dzf.png', msg: '等待买家付款', tips: '超时订单将自动关闭' }, { state: '待发货', - img: 'https://carbon2.obs.cn-north-4.myhuaweicloud.com:443/feiyi%2Ftest%2F0%2FEOzVqolp-fahuo.png', + img: myOrderUrl + '/myGeneralOrderDetail/dfh.png', msg: '等待卖家发货', tips: '耐心等待' }, { state: '已退款', - img: 'https://carbon2.obs.cn-north-4.myhuaweicloud.com:443/feiyi%2Ftest%2F0%2FlPnvgqCp-yituikuan.png', + img: myOrderUrl + '/myGeneralOrderDetail/ytk.png', msg: '订单已退款', tips: '钱款已退还' }, { state: '待收货', - img: 'https://carbon2.obs.cn-north-4.myhuaweicloud.com:443/feiyi%2Ftest%2F0%2FEOzVqolp-fahuo.png', + img: myOrderUrl + '/myGeneralOrderDetail/dsh.png', msg: '商品已发货,注意查收', tips: '工艺品即将送达,敬请耐心等候。' }, { state: '交易成功', - img: 'https://carbon2.obs.cn-north-4.myhuaweicloud.com:443/feiyi%2Ftest%2F0%2FaHDhacaI-dengdaifukuan.png', + img: myOrderUrl + '/myGeneralOrderDetail/jywc.png', msg: '订单完成,感谢您的支持', tips: '感谢您的支持' }, { state: '交易关闭', - img: 'https://carbon2.obs.cn-north-4.myhuaweicloud.com:443/feiyi%2Fuser_avatar%2F0%2FLPwbfbRj-cancel.png', + img: myOrderUrl + '/myGeneralOrderDetail/jygb.png', msg: '您的订单已关闭', tips: '请您在下次购买前仔细确认' } diff --git a/common/globalFont.js b/common/globalFont.js index 60b8f3f..788ed90 100644 --- a/common/globalFont.js +++ b/common/globalFont.js @@ -1,14 +1,37 @@ -export const getFonts =()=>{ - - //其他页面 - uni.loadFontFace({ - family: 'FangZhengFonts', - source: `url("https://www.carboner.cn:8888/api/file/download/FangZhengFonts.ttf")`, - success:(res) =>{ - console.log('success',res); +import { bkgPubilcPath,loginUrl } from "./globalImagesUrl"; +import { ref } from 'vue'; +const bkgUrl = ref(loginUrl + '/bkg.png') +//缓存背景图片 +const bkgCache = 'bkgCache'; //缓存的键 + +export const getFonts =()=>{ //改为查询背景图片 +wx.getStorage({ + key: bkgCache, + success: (res) => { + console.log('缓存图片的路径--->',res.data); + bkgPubilcPath.value = res.data }, - fail:(err) => { - console.log('err',err); + fail: ()=> { + wx.downloadFile({ + url: bkgUrl.value, + success: (res) => { + console.log('成功res--->',res); + if(res.statusCode === 200) { + const filePath = res.tempFilePath; + wx.setStorage({ + key: bkgCache, + data: filePath + }); + // console.log('图片下载并缓存成功,本地路径--->',filePath); + bkgPubilcPath.value= filePath + } else { + console.log('图片下载失败'); + } + }, + fail: (err) => { + console.log('下载失败',err); + } + }) } }) } diff --git a/pages/Shopping-cart/newaddress_Info/newaddress_Info.vue b/pages/Shopping-cart/newaddress_Info/newaddress_Info.vue index a3198fd..01744dc 100644 --- a/pages/Shopping-cart/newaddress_Info/newaddress_Info.vue +++ b/pages/Shopping-cart/newaddress_Info/newaddress_Info.vue @@ -1,5 +1,5 @@