From cf0e5b408eb6eb879af851b9acf2d4a8a54990c7 Mon Sep 17 00:00:00 2001
From: chen-xin-zhi <3588068430@qq.com>
Date: Wed, 12 Mar 2025 21:15:24 +0800
Subject: [PATCH] =?UTF-8?q?=E5=90=88=E5=AE=8C=E4=BA=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages.json | 42 -
pages/Shopping-cart/component/addProduct.vue | 11 +-
.../newaddress_Info/newaddress_Info.vue | 6 +-
.../Shopping-cart/productmain/productmain.vue | 24 +-
.../productmain/testproductmain.vue | 18 +-
pages/book/component/bookingSelected.vue | 20 +-
pages/book/component/bookingTips.vue | 12 +-
pages/book/component/cancelOrder.vue | 10 +-
pages/book/component/confirmBookingInfo.vue | 12 +-
pages/book/component/deleteOrder.vue | 10 +-
pages/book/component/feeTips.vue | 24 +-
.../photoProductDetail/photoProductDetail.vue | 8 +-
pages/book/photoProducts/photoProducts.vue | 6 +
.../photoProductsOrder/photoProductsOrder.vue | 3 +
pages/coupon/CouponMall/CouponMall.vue | 19 +-
pages/coupon/CouponTips/CouponTips.vue | 12 +-
pages/coupon/MyCoupon/MyCoupon.vue | 20 +-
pages/coupon/OverDueCoupon/OverDueCoupon.vue | 19 +-
pages/coupon/component/confirmPopup.vue | 10 +-
pages/coupon/component/couponPopup.vue | 5 +
pages/home/home.vue | 24 +-
pages/login/login.vue | 30 +-
pages/mine/Contact/Contact.vue | 14 +-
pages/mine/Contact/testContact.vue | 20 +-
pages/mine/PersonCenter/PersonCenter.vue | 13 -
pages/mine/addressList/addressList.vue | 23 +-
pages/mine/component/contactPop.vue | 23 +-
pages/mine/main/main.vue | 19 +-
pages/mine/mineorders/mineorders.vue | 776 ------------------
pages/my-order/component/nav.vue | 7 +-
.../myGeneralOrderDetail.vue | 22 +-
pages/my-order/myOrderList/myOrderList.vue | 28 +-
.../myServiceOrderDetail.vue | 26 +-
.../my-order/researchOrder/researchOrder.vue | 7 +
pages/order/component/addressComponent.vue | 33 +-
pages/order/component/contactsComponent.vue | 10 +-
.../product-paysuccess/product-paysuccess.vue | 605 --------------
.../order/product-waitpay/product-waitpay.vue | 54 +-
.../service-paystatus/service-paystatus.vue | 685 ----------------
pages/order/serviceWaitPay/serviceWaitPay.vue | 45 +-
.../order/singleGoodOrder/singleGoodOrder.vue | 16 +-
.../singleServiceWait/singleServiceWait.vue | 49 +-
pages/popup.vue | 13 +-
.../ProductDetails/ProductDetails.vue | 17 +-
pages/store-home/main/main.vue | 322 --------
pages/store-home/main/testMain.vue | 16 +-
pages/workshop/component/timePopUp.vue | 483 -----------
pages/workshop/component/timeSelect.vue | 35 +-
pages/workshop/component/tip.vue | 7 +-
pages/workshop/index/index.vue | 8 +-
pages/workshop/productmain/productmain.vue | 10 +-
pages/workshop/searchGood/searchGood.vue | 4 +-
pages/workshop/searchResult/searchResult.vue | 10 +-
53 files changed, 400 insertions(+), 3345 deletions(-)
delete mode 100644 pages/mine/PersonCenter/PersonCenter.vue
delete mode 100644 pages/mine/mineorders/mineorders.vue
delete mode 100644 pages/order/product-paysuccess/product-paysuccess.vue
delete mode 100644 pages/order/service-paystatus/service-paystatus.vue
delete mode 100644 pages/store-home/main/main.vue
delete mode 100644 pages/workshop/component/timePopUp.vue
diff --git a/pages.json b/pages.json
index 7ca1059..0fba5f9 100644
--- a/pages.json
+++ b/pages.json
@@ -52,13 +52,6 @@
"navigationBarTitleText" : ""
}
},
- {
- "path" : "pages/order/service-paystatus/service-paystatus",
- "style" :
- {
- "navigationBarTitleText" : ""
- }
- },
{
"path" : "pages/book/photoProductsOrderDetail/photoProductsOrderDetail",
"style" :
@@ -115,13 +108,6 @@
"navigationBarTitleText" : ""
}
},
- {
- "path" : "pages/store-home/main/main",
- "style" :
- {
- "navigationBarTitleText" : ""
- }
- },
{
"path" : "pages/mine/main/main",
@@ -130,13 +116,6 @@
"navigationBarTitleText" : ""
}
},
- {
- "path" : "pages/mine/mineorders/mineorders",
- "style" :
- {
- "navigationBarTitleText" : ""
- }
- },
{
"path": "pages/Shopping-cart/productmain/productmain",
"style" :
@@ -151,13 +130,6 @@
"navigationBarTitleText" : "泠泷水月阁工作室"
}
},
- {
- "path" : "pages/order/product-paysuccess/product-paysuccess",
- "style" :
- {
- "navigationBarTitleText" : ""
- }
- },
{
"path" : "pages/Shopping-cart/newaddress_Info/newaddress_Info",
"style" :
@@ -207,13 +179,6 @@
"navigationBarTitleText" : ""
}
},
- {
- "path" : "pages/workshop/component/timePopUp",
- "style" :
- {
- "navigationBarTitleText" : ""
- }
- },
{
"path" : "pages/store-home/main/testMain",
"style" :
@@ -298,13 +263,6 @@
{
"navigationBarTitleText" : ""
}
- },
- {
- "path" : "pages/mine/PersonCenter/PersonCenter",
- "style" :
- {
- "navigationBarTitleText" : ""
- }
}
],
"plugins" : {
diff --git a/pages/Shopping-cart/component/addProduct.vue b/pages/Shopping-cart/component/addProduct.vue
index ddc617d..8b2d137 100644
--- a/pages/Shopping-cart/component/addProduct.vue
+++ b/pages/Shopping-cart/component/addProduct.vue
@@ -51,6 +51,7 @@
onLoad,
onShow
} from "@dcloudio/uni-app";
+ import { getFonts } from '../../../common/globalFont';
import {
baseUrl
} from '../../../api/request';
@@ -63,6 +64,10 @@
productBrief.value = val
}
+ onLoad(() => {
+ getFonts()
+ })
+
onMounted(() => {
emitter.on('product', productHandler)
})
@@ -196,14 +201,14 @@
.text_3 {
color: #000000;
font-size: 28.13rpx;
- font-family: Open Sans;
+ font-family: FangZhengFonts;
line-height: 26.21rpx;
}
.text_4 {
color: #000000;
font-size: 26.25rpx;
- font-family: Open Sans;
+ font-family: FangZhengFonts;
line-height: 24.34rpx;
}
@@ -235,7 +240,7 @@
.text_5 {
color: #000000;
font-size: 30rpx;
- font-family: Open Sans;
+ font-family: FangZhengFonts;
line-height: 21.41rpx;
}
diff --git a/pages/Shopping-cart/newaddress_Info/newaddress_Info.vue b/pages/Shopping-cart/newaddress_Info/newaddress_Info.vue
index 7724814..2c5ad41 100644
--- a/pages/Shopping-cart/newaddress_Info/newaddress_Info.vue
+++ b/pages/Shopping-cart/newaddress_Info/newaddress_Info.vue
@@ -53,6 +53,7 @@
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 emitter from '../../../utils/emitter';
const addressParam = ref({
name: "",
@@ -64,6 +65,7 @@ const addressParam = ref({
const isAdd = ref(false)
//接受编辑按钮传来的地址信息
onLoad((options)=>{
+ getFonts()
if(JSON.stringify(options) != '{}') {
addressParam.value = JSON.parse(options.editInfo) //将原来的地址信息赋值给原来的addressParam
} else {
@@ -184,7 +186,7 @@ const bindTimeChange = (e) => { //picker省市区选择
}
.font_2 {
font-size: 26.25rpx;
- font-family: Open Sans;
+ font-family: FangZhengFonts;
line-height: 24.34rpx;
color: #323232;
}
@@ -280,7 +282,7 @@ const bindTimeChange = (e) => { //picker省市区选择
.text_8 {
color: #C35C5D;
font-size: 30rpx;
- font-family: Open Sans;
+ font-family: FangZhengFonts;
line-height: 27.9rpx;
}
.zujian{ //地址组件样式
diff --git a/pages/Shopping-cart/productmain/productmain.vue b/pages/Shopping-cart/productmain/productmain.vue
index 5d438e3..06ab5f8 100644
--- a/pages/Shopping-cart/productmain/productmain.vue
+++ b/pages/Shopping-cart/productmain/productmain.vue
@@ -133,6 +133,7 @@
diff --git a/pages/mine/addressList/addressList.vue b/pages/mine/addressList/addressList.vue
index cb7b1fc..9c874d7 100644
--- a/pages/mine/addressList/addressList.vue
+++ b/pages/mine/addressList/addressList.vue
@@ -38,11 +38,12 @@
\ No newline at end of file
diff --git a/pages/my-order/component/nav.vue b/pages/my-order/component/nav.vue
index b5a17e6..4df01e1 100644
--- a/pages/my-order/component/nav.vue
+++ b/pages/my-order/component/nav.vue
@@ -9,7 +9,12 @@
diff --git a/pages/order/product-waitpay/product-waitpay.vue b/pages/order/product-waitpay/product-waitpay.vue
index 0c5a56d..80655da 100644
--- a/pages/order/product-waitpay/product-waitpay.vue
+++ b/pages/order/product-waitpay/product-waitpay.vue
@@ -5,13 +5,13 @@
- {{ addressRealInfo.region }}
+ {{ addressRealInfo.region }}
- {{ addressRealInfo.detailAddress }}
+ {{ addressRealInfo.detailAddress }}
@@ -155,6 +155,7 @@
import {nextTick, onMounted, onUnmounted, ref, toRaw} from 'vue'
import emitter from '../../../utils/emitter'
import { onLoad , onShow } from "@dcloudio/uni-app";
+import { getFonts } from '../../../common/globalFont';
import { baseUrl } from '../../../api/request';
import addressComponentVue from '../component/addressComponent.vue'; //导入组件
import couponPopupVue from '../../coupon/component/couponPopup.vue';
@@ -189,7 +190,11 @@ const conditionAmount = ref(0)
const closeHandler = () => {
- close()
+ nextTick(() => {
+ if (popup.value) {
+ popup.value.close()
+ }
+ })
}
const addressInfoHandler = (val) => {
@@ -222,9 +227,9 @@ const getCouponObjHandler = (val) => {
}
onMounted(() => {
- getFonts()
+ FangZhengFontsts()
//将关闭弹窗方法传入弹窗页面,绑定弹窗按钮可关闭弹窗
- emitter.on('close', closeHandler)
+ emitter.on('closeAddress', closeHandler)
//获取地址信息
emitter.on('addressInfo', addressInfoHandler)
@@ -238,7 +243,7 @@ onMounted(() => {
onUnmounted(() => {
//将关闭弹窗方法传入弹窗页面,绑定弹窗按钮可关闭弹窗
- emitter.off('close', closeHandler)
+ emitter.off('closeAddress', closeHandler)
//获取地址信息
emitter.off('addressInfo', addressInfoHandler)
@@ -251,6 +256,7 @@ onUnmounted(() => {
onLoad( async (options)=>{
+ FangZhengFontsts()
totalInfo.value = JSON.parse(options.cartInfo)
console.log('options.cartInfo-->',JSON.parse(options.cartInfo));
console.log('totalInfo.value-->',toRaw(totalInfo.value) );
@@ -262,14 +268,7 @@ onShow(()=>{
getDefaultAddress()
// computed()
})
-//关闭弹窗
-const close = () => {
- nextTick(() => {
- if (popup.value) {
- popup.value.close()
- }
- })
-}
+
//加载弹窗。默认从底部弹出
const loadPop =() =>{
popup.value.open('bottom')
@@ -417,19 +416,7 @@ const wxPay = async( oid )=> { //传入订单id
})
}
}
-//获取字体
-const getFonts =()=>{
- uni.loadFontFace({
- family: 'FangZhengFonts',
- source: `url("https://carbon2.obs.cn-north-4.myhuaweicloud.com/fonts/FangZhengFonts.TTF")`,
- success:(res) =>{
- console.log('success',res);
- },
- fail:(err) => {
- console.log('err',err);
- }
- })
-}
+
//防抖相关变量
let debounceTimer = null;
let wxPayTimer = null;
@@ -524,7 +511,9 @@ const getFonts =()=>{
diff --git a/pages/order/serviceWaitPay/serviceWaitPay.vue b/pages/order/serviceWaitPay/serviceWaitPay.vue
index a2c8917..cb0126c 100644
--- a/pages/order/serviceWaitPay/serviceWaitPay.vue
+++ b/pages/order/serviceWaitPay/serviceWaitPay.vue
@@ -148,6 +148,7 @@
import couponPopupVue from '../../coupon/component/couponPopup.vue';
import contactsComponentVue from '../component/contactsComponent.vue'; //联系人弹窗\
import contactPopVue from '../../mine/component/contactPop.vue'; //新增联系人弹窗
+ import { getFonts } from '../../../common/globalFont';
import * as math from 'mathjs'
//一些暂时变量
const sumprice = ref(0) //总价格
@@ -212,7 +213,6 @@
onMounted(() => {
- getFonts()
//将关闭弹窗方法传入弹窗页面,绑定弹窗按钮可关闭弹窗
emitter.on('close', closeHandler)
//获取联系人信息
@@ -239,6 +239,7 @@
})
onLoad( async (options)=>{
+ getFonts()
if(options.cartInfo === undefined) {
singleService.value = JSON.parse(options.obj)
cnt.value = JSON.parse(options.cnt)
@@ -413,19 +414,7 @@
})
}
}
- //获取字体
- const getFonts =()=>{
- uni.loadFontFace({
- family: 'FangZhengFonts',
- source: `url("https://carbon2.obs.cn-north-4.myhuaweicloud.com/fonts/FangZhengFonts.TTF")`,
- success:(res) =>{
- console.log('success',res);
- },
- fail:(err) => {
- console.log('err',err);
- }
- })
- }
+
//防抖相关变量
let debounceTimer = null;
let wxPayTimer = null;
@@ -570,7 +559,7 @@
.text {
color: #818181;
font-size: 37.5rpx;
- font-family: FZSongKeBenXiuKaiS-R-GB;
+ font-family: FangZhengFonts;
line-height: 32.38rpx;
}
.group {
@@ -583,7 +572,7 @@
}
.font {
font-size: 26.25rpx;
- font-family: FZSongKeBenXiuKaiS-R-GB;
+ font-family: FangZhengFonts;
line-height: 25.54rpx;
color: #323232;
}
@@ -617,7 +606,7 @@
}
.font_2 {
font-size: 26.25rpx;
- font-family: FZSongKeBenXiuKaiS-R-GB;
+ font-family: FangZhengFonts;
line-height: 25.54rpx;
color: #818181;
}
@@ -627,7 +616,7 @@
}
.font_3 {
font-size: 26.25rpx;
- font-family: FZSongKeBenXiuKaiS-R-GB;
+ font-family: FangZhengFonts;
line-height: 17.53rpx;
color: #818181;
}
@@ -640,13 +629,13 @@
}
.font_5 {
font-size: 33.75rpx;
- font-family: FZSongKeBenXiuKaiS-R-GB;
+ font-family: FangZhengFonts;
line-height: 22.54rpx;
color: #323232;
}
.font_6 {
font-size: 26.25rpx;
- font-family: FZSongKeBenXiuKaiS-R-GB;
+ font-family: FangZhengFonts;
line-height: 17.53rpx;
color: #323232;
}
@@ -667,7 +656,7 @@
}
.font_4 {
font-size: 26.25rpx;
- font-family: FZSongKeBenXiuKaiS-R-GB;
+ font-family: FangZhengFonts;
line-height: 17.53rpx;
color: #ffffff;
}
@@ -688,7 +677,7 @@
}
.font_7 {
font-size: 22.5rpx;
- font-family: FZSongKeBenXiuKaiS-R-GB;
+ font-family: FangZhengFonts;
line-height: 22.54rpx;
color: #818181;
}
@@ -711,7 +700,7 @@
}
.font_8 {
font-size: 30rpx;
- font-family: FZSongKeBenXiuKaiS-R-GB;
+ font-family: FangZhengFonts;
line-height: 29.18rpx;
color: #323232;
}
@@ -720,7 +709,7 @@
}
.font_9 {
font-size: 30rpx;
- font-family: FZSongKeBenXiuKaiS-R-GB;
+ font-family: FangZhengFonts;
line-height: 29.18rpx;
color: #818181;
}
@@ -733,7 +722,7 @@
}
.font_10 {
font-size: 30rpx;
- font-family: FZSongKeBenXiuKaiS-R-GB;
+ font-family: FangZhengFonts;
line-height: 20.04rpx;
color: #323232;
}
@@ -789,21 +778,21 @@
margin-left: -119.06rpx;
color: #000000;
font-size: 30rpx;
- font-family: FZSongKeBenXiuKaiS-R-GB;
+ font-family: FangZhengFonts;
line-height: 26.49rpx;
}
.text_18 {
margin-left: 28.5rpx;
color: #ffaaa5;
font-size: 37.5rpx;
- font-family: Open Sans;
+ font-family: FangZhengFonts;
font-weight: 700;
line-height: 27.62rpx;
}
.text_20 {
color: #ffaaa5;
font-size: 30rpx;
- font-family: Open Sans;
+ font-family: FangZhengFonts;
font-weight: 700;
line-height: 22.05rpx;
}
diff --git a/pages/order/singleGoodOrder/singleGoodOrder.vue b/pages/order/singleGoodOrder/singleGoodOrder.vue
index b48ffb6..5f6367c 100644
--- a/pages/order/singleGoodOrder/singleGoodOrder.vue
+++ b/pages/order/singleGoodOrder/singleGoodOrder.vue
@@ -6,13 +6,13 @@
- {{ addressRealInfo.region }}
+ {{ addressRealInfo.region }}
- {{ addressRealInfo.detailAddress }}
+ {{ addressRealInfo.detailAddress }}
@@ -159,6 +159,7 @@
import {nextTick, onMounted, onUnmounted, ref, toRaw} from 'vue'
import emitter from '../../../utils/emitter'
import { onLoad , onShow } from "@dcloudio/uni-app";
+import { getFonts } from '../../../common/globalFont';
import { baseUrl } from '../../../api/request';
import addressComponentVue from '../component/addressComponent.vue';//导入组件
import couponPopupVue from '../../coupon/component/couponPopup.vue';
@@ -237,7 +238,6 @@ const getCouponObjHandler = (val) => {
onMounted(() => {
- getFonts()
// 将关闭弹窗方法传入弹窗页面,绑定弹窗按钮可关闭弹窗
emitter.on('closeAddress', closeAddressHandler)
emitter.on('closeCoupon', closeCouponHandler)
@@ -261,6 +261,7 @@ const getCouponObjHandler = (val) => {
})
onLoad( async (options)=>{
+ getFonts()
totalInfo.value = JSON.parse(options.cartInfo)
await getProduct()
await getMyCouponList()
@@ -537,8 +538,9 @@ const getFonts =()=>{
\ No newline at end of file
diff --git a/pages/store-home/main/testMain.vue b/pages/store-home/main/testMain.vue
index 24b8fa2..a04bd8d 100644
--- a/pages/store-home/main/testMain.vue
+++ b/pages/store-home/main/testMain.vue
@@ -67,6 +67,7 @@
import { ref,onMounted, toRaw } from 'vue';
import { baseUrl, testUrl , suiUrl} from '@/api/request';
import { onLoad,onPullDownRefresh } from '@dcloudio/uni-app';
+import { getFonts } from '../../../common/globalFont';
import carousel from '@/components/vear-carousel/vear-carousel'
const currentColor = ref(0);
@@ -80,9 +81,9 @@ const product_type = ref({
})
onLoad( async (options)=>{
+ getFonts()
await Getsort()
await changeTypes( sort.value[0] , 0 ) //首先获取最开始的类别
- await getFonts() //获取字体
})
onPullDownRefresh( async ()=>{ //下拉刷新
await Getsort()
@@ -160,18 +161,7 @@ const goToProduct = (item) => {
url: '../../../pages/store-home/ProductDetails/ProductDetails?gid=' + JSON.stringify(item.id)
})
}
-const getFonts = () => { //导入字体
- uni.loadFontFace({
- family: 'FangZhengFonts',
- source: `url("https://carbon2.obs.cn-north-4.myhuaweicloud.com/fonts/FangZhengFonts.TTF")`,
- success: (res) => {
- console.log('success', res);
- },
- fail: (err) => {
- console.log('err', err);
- }
- })
-}
+
diff --git a/pages/workshop/component/timePopUp.vue b/pages/workshop/component/timePopUp.vue
deleted file mode 100644
index f067703..0000000
--- a/pages/workshop/component/timePopUp.vue
+++ /dev/null
@@ -1,483 +0,0 @@
-
-
-
-
-
-
-
-
-
- ¥
- {{ productInfo.price }}
-
-
- 最大人数:0
-
-
-
-
-
-
-
- {{ classNum }}
-
-
-
-
-
- 参加日期:{{ selected.date }}
- 当前预约人数:10
-
-
-
- 选择预约时间
-
-
-
-
- {{ weekDay(item.specificDate) }}{{ item.specificDate.substring(5,10) }}
-
-
-
-
-
-
-
-
-
-
- {{ item.timeSlot }}
- 可预约
-
-
-
-
-
-
- {{ item.timeSlot }}
-
- 可预约
-
-
-
-
-
- 预约时间
- {{ selected.date }} {{ selected.time }}
-
-
-
-
- 购买须知:本次课程活动最少需要到达5人才
- 能进行授课
-
-
-
- 加入购物车
-
-
-
-
-
-
-
-
-
diff --git a/pages/workshop/component/timeSelect.vue b/pages/workshop/component/timeSelect.vue
index 82091de..70c4630 100644
--- a/pages/workshop/component/timeSelect.vue
+++ b/pages/workshop/component/timeSelect.vue
@@ -75,7 +75,7 @@
-
+
-