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 @@
-
+
@@ -54,9 +54,8 @@ import {ref , onMounted, onUnmounted} from 'vue'
import { testUrl , baseUrl , suiUrl } from '../../../api/request';
import { onLoad, onShow } from '@dcloudio/uni-app';
import { getFonts } from '../../../common/globalFont';
-import { shoppingCartUrl } from '../../../common/globalImagesUrl';
+import { shoppingCartUrl,bkgPubilcPath } from '../../../common/globalImagesUrl';
import emitter from '../../../utils/emitter';
-const bkgUrl = ref(shoppingCartUrl + '/newaddress_info/bkg.png')
const isSelected = ref(false)
const addressParam = ref({
name: "",
diff --git a/pages/Shopping-cart/productmain/testproductmain.vue b/pages/Shopping-cart/productmain/testproductmain.vue
index b0017ae..b4a82b0 100644
--- a/pages/Shopping-cart/productmain/testproductmain.vue
+++ b/pages/Shopping-cart/productmain/testproductmain.vue
@@ -1,5 +1,5 @@
-
+
购物车
@@ -127,9 +127,8 @@
import { getFonts } from '../../../common/globalFont';
import { baseUrl, testUrl, suiUrl } from '../../../api/request';
import * as math from 'mathjs'
- import { shoppingCartUrl } from '../../../common/globalImagesUrl';
+ import { shoppingCartUrl,bkgPubilcPath } from '../../../common/globalImagesUrl';
import { publicPath } from '../../../common/globalImagesUrl';
- const bkgUrl = ref(shoppingCartUrl + '/productmain/bkg.png')
const products = ref([])
const current = ref(1) //用于判断是实体类商品还是服务类商品
const allCheck = ref(false) //全选
diff --git a/pages/activity/activityMain/activityMain.vue b/pages/activity/activityMain/activityMain.vue
index 7fa9154..affc44b 100644
--- a/pages/activity/activityMain/activityMain.vue
+++ b/pages/activity/activityMain/activityMain.vue
@@ -1,5 +1,5 @@
-
+
公众号动态
@@ -21,8 +21,8 @@
import {onMounted, ref} from 'vue'
import { homeUrl } from '../../../common/globalImagesUrl';
import { baseUrl } from '../../../api/request';
- import { publicPath } from '../../../common/globalImagesUrl';
- import { getFZXZFont } from '../../../common/globalFont';
+ import { publicPath,bkgPubilcPath } from '../../../common/globalImagesUrl';
+ import { getFZXZFont,getFonts } from '../../../common/globalFont';
import { onLoad } from "@dcloudio/uni-app";
const bkgUrl = ref(homeUrl + '/bkg.png')
const articleList = ref([])
@@ -30,6 +30,7 @@
onLoad(() => {
getFZXZFont()
+ getFonts()
})
onMounted(() => {
diff --git a/pages/book/myPhotoProductDetail/myPhotoProductDetail.vue b/pages/book/myPhotoProductDetail/myPhotoProductDetail.vue
index 995e695..a9eb571 100644
--- a/pages/book/myPhotoProductDetail/myPhotoProductDetail.vue
+++ b/pages/book/myPhotoProductDetail/myPhotoProductDetail.vue
@@ -1,5 +1,5 @@
-
+
import {nextTick, onMounted, onUnmounted, ref} from 'vue'
import { baseUrl } from '../../../api/request';
- import { bookUrl } from '../../../common/globalImagesUrl';
+ import { bookUrl,bkgPubilcPath } from '../../../common/globalImagesUrl';
import { publicPath } from '../../../common/globalImagesUrl';
import { onLoad } from "@dcloudio/uni-app";
import clothesAttributeVue from '../../clothesRent/component/clothesAttribute.vue';
diff --git a/pages/book/myPhotoProducts/myPhotoProducts.vue b/pages/book/myPhotoProducts/myPhotoProducts.vue
index 696ce3d..daaaa2d 100644
--- a/pages/book/myPhotoProducts/myPhotoProducts.vue
+++ b/pages/book/myPhotoProducts/myPhotoProducts.vue
@@ -1,5 +1,5 @@
-
+
-
+
-
-
+
+
-
-
+
+
import {onMounted, ref} from 'vue'
import { baseUrl } from '../../../api/request';
- import { bookUrl } from '../../../common/globalImagesUrl';
+ import { bookUrl,bkgPubilcPath } from '../../../common/globalImagesUrl';
import { onLoad } from "@dcloudio/uni-app";
import { getFonts } from '../../../common/globalFont';
import { publicPath } from '../../../common/globalImagesUrl';
@@ -74,7 +74,6 @@
const categoryName = ref('')
const ids = ref([])
const point = ref(0)
- const bkgUrl = ref(bookUrl + '/photoProductDetail/bkg.png')
onLoad(() => {
getFonts()
diff --git a/pages/book/photoProductsOrder/photoProductsOrder.vue b/pages/book/photoProductsOrder/photoProductsOrder.vue
index c21358a..073676f 100644
--- a/pages/book/photoProductsOrder/photoProductsOrder.vue
+++ b/pages/book/photoProductsOrder/photoProductsOrder.vue
@@ -1,6 +1,6 @@
-
-
+
+
选择联系人
-
-
+
+
@@ -124,14 +124,13 @@
import { onLoad } from "@dcloudio/uni-app";
import { baseUrl } from '../../../api/request';
import { getFonts } from '../../../common/globalFont';
- import { publicPath } from '../../../common/globalImagesUrl';
+ import { publicPath,bkgPubilcPath } from '../../../common/globalImagesUrl';
const cookie = wx.getStorageSync("cookie") //请求头
const isShow = ref([true, false, false])
const cancelBookingOrder = ref(null)
const deleteBookingOrder = ref(null)
const advanceOrderList = ref([])
const isShowMask = ref(false)
- const bkgUrl = ref(bookUrl + '/photoProductsOrderDetail/bkg.png')
onLoad((options) => {
getFonts()
})
diff --git a/pages/clothesRent/clotherRentOrderList/clotherRentOrderList.vue b/pages/clothesRent/clotherRentOrderList/clotherRentOrderList.vue
index 7244a96..24df4e3 100644
--- a/pages/clothesRent/clotherRentOrderList/clotherRentOrderList.vue
+++ b/pages/clothesRent/clotherRentOrderList/clotherRentOrderList.vue
@@ -1,5 +1,5 @@
-
+
@@ -118,28 +118,33 @@
import { onMounted, onUnmounted, ref, onBeforeUnmount } from 'vue'
import { clothesRentUrl } from '../../../common/globalImagesUrl';
import { baseUrl } from '../../../api/request';
- import { publicPath } from '../../../common/globalImagesUrl';
+ import { publicPath,bkgPubilcPath } from '../../../common/globalImagesUrl';
import emitter from '../../../utils/emitter';
import { onPullDownRefresh } from '@dcloudio/uni-app';
+ import { getFonts } from '../../../common/globalFont';
+ import { onLoad } from "@dcloudio/uni-app";
const items = ref([null, null, null, null])
const isShowUnderLine = ref([true, false, false, false, false])
let orderStatusList = ['全部', '待支付', '待发货', '待收货', '交易成功']
const color = ref(new Array(5).fill('#323232'))
const point = ref(0)
const cookie = wx.getStorageSync("cookie") //请求头
- const bkgUrl = ref(clothesRentUrl + '/clothesRentOrderList/bkg.png')
const orderList = ref([])
let wxPayTimer = null;
let loading = false;
let isLoading = ref(false)
let isShow = ref(false)
-
+
const flushClothesOrderListHandler = () => {
getRentOrderList()
}
-
+
+ onLoad(()=>{
+ getFonts()
+ })
+
onMounted(() => {
color.value[0] = '#e79ea1'
getRentOrderList()
@@ -539,14 +544,14 @@
.font {
font-size: 30rpx;
- font-family: FZSongKeBenXiuKaiS-R-GB;
+ font-family: FangZhengFonts;
line-height: 28.24rpx;
color: #323232;
}
.font_2 {
font-size: 30rpx;
- font-family: FZSongKeBenXiuKaiS-R-GB;
+ font-family: FangZhengFonts;
line-height: 28.84rpx;
color: #323232;
}
@@ -579,14 +584,14 @@
.font_3 {
font-size: 30rpx;
- font-family: FZSongKeBenXiuKaiS-R-GB;
+ font-family: FangZhengFonts;
line-height: 28.01rpx;
color: #323232;
}
.font_4 {
font-size: 26.25rpx;
- font-family: FZSongKeBenXiuKaiS-R-GB;
+ font-family: FangZhengFonts;
line-height: 18.79rpx;
color: #ffaaa5;
}
@@ -597,7 +602,7 @@
.font_5 {
font-size: 26.25rpx;
- font-family: FZSongKeBenXiuKaiS-R-GB;
+ font-family: FangZhengFonts;
line-height: 25.84rpx;
color: #ffaaa5;
}
@@ -612,14 +617,14 @@
.font_6 {
font-size: 26.25rpx;
- font-family: FZSongKeBenXiuKaiS-R-GB;
+ font-family: FangZhengFonts;
line-height: 25.84rpx;
color: #818181;
}
.font_7 {
font-size: 26.25rpx;
- font-family: FZSongKeBenXiuKaiS-R-GB;
+ font-family: FangZhengFonts;
line-height: 18.79rpx;
color: #818181;
}
@@ -652,14 +657,14 @@
.font_8 {
font-size: 30rpx;
- font-family: FZSongKeBenXiuKaiS-R-GB;
+ font-family: FangZhengFonts;
line-height: 29.18rpx;
color: #323232;
}
.font_10 {
font-size: 30rpx;
- font-family: FZSongKeBenXiuKaiS-R-GB;
+ font-family: FangZhengFonts;
line-height: 18.79rpx;
color: #323232;
}
@@ -682,7 +687,7 @@
.font_9 {
font-size: 26.25rpx;
- font-family: FZSongKeBenXiuKaiS-R-GB;
+ font-family: FangZhengFonts;
line-height: 25.84rpx;
color: #323232;
}
@@ -702,7 +707,7 @@
.font_11 {
font-size: 26.25rpx;
- font-family: FZSongKeBenXiuKaiS-R-GB;
+ font-family: FangZhengFonts;
line-height: 18.79rpx;
color: #323232;
}
@@ -722,7 +727,7 @@
.font_12 {
font-size: 33.75rpx;
- font-family: FZSongKeBenXiuKaiS-R-GB;
+ font-family: FangZhengFonts;
line-height: 22.54rpx;
color: #c35c5d;
}
@@ -735,7 +740,7 @@
.font_13 {
font-size: 26.25rpx;
- font-family: FZSongKeBenXiuKaiS-R-GB;
+ font-family: FangZhengFonts;
line-height: 25.84rpx;
color: #e79ea1;
}
@@ -766,7 +771,7 @@
.font_14 {
font-size: 26.25rpx;
- font-family: FZSongKeBenXiuKaiS-R-GB;
+ font-family: FangZhengFonts;
line-height: 25.84rpx;
color: #ffffff;
}
diff --git a/pages/clothesRent/clothesRentOrderDetail/clothesRentOrderDetail.vue b/pages/clothesRent/clothesRentOrderDetail/clothesRentOrderDetail.vue
index 527bc94..ca605f8 100644
--- a/pages/clothesRent/clothesRentOrderDetail/clothesRentOrderDetail.vue
+++ b/pages/clothesRent/clothesRentOrderDetail/clothesRentOrderDetail.vue
@@ -1,5 +1,5 @@
-
+
-
+
-
+
diff --git a/pages/testPage/testPage.vue b/pages/testPage/testPage.vue
deleted file mode 100644
index 9986766..0000000
--- a/pages/testPage/testPage.vue
+++ /dev/null
@@ -1,56 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/pages/workshop/component/timeSelect.vue b/pages/workshop/component/timeSelect.vue
index 67b0ce2..6eac54d 100644
--- a/pages/workshop/component/timeSelect.vue
+++ b/pages/workshop/component/timeSelect.vue
@@ -216,7 +216,7 @@
} else {
uni.showToast({
icon: 'error',
- title: "服务错误"
+ title: res.data.message
})
}
}
@@ -335,7 +335,7 @@
quantity: cnt.value
}
})
- console.log(res)
+ console.log('检查服务类商品---->',res)
if (!dealResult(res)) return ;
console.log('==============================>', productObject.value)
uni.navigateTo({ //跳转到待支付页面
diff --git a/pages/workshop/index/index.vue b/pages/workshop/index/index.vue
index 06edd30..a927da2 100644
--- a/pages/workshop/index/index.vue
+++ b/pages/workshop/index/index.vue
@@ -1,6 +1,6 @@
-
-
+
+
-
+
{
close()
diff --git a/pages/workshop/searchGood/searchGood.vue b/pages/workshop/searchGood/searchGood.vue
index ef11df2..f2912a0 100644
--- a/pages/workshop/searchGood/searchGood.vue
+++ b/pages/workshop/searchGood/searchGood.vue
@@ -1,6 +1,6 @@
-
-
+
+
{
diff --git a/pages/workshop/searchResult/searchResult.vue b/pages/workshop/searchResult/searchResult.vue
index f51ba61..34a783d 100644
--- a/pages/workshop/searchResult/searchResult.vue
+++ b/pages/workshop/searchResult/searchResult.vue
@@ -1,6 +1,6 @@
-
-
+
+
{
getFonts()
keyword.value = options.keyword
diff --git a/static/logo.png b/static/logo.png
deleted file mode 100644
index b5771e2..0000000
Binary files a/static/logo.png and /dev/null differ