diff --git a/api/request.ts b/api/request.ts
index 8648824..d3aee80 100644
--- a/api/request.ts
+++ b/api/request.ts
@@ -6,5 +6,5 @@ export const domain = 'https://www.carboner.cn/api'
export const myIp = 'http://8.130.119.119:9092/api'
export const nwct = 'https://winning-mouse-internally.ngrok-free.app/api'
export const suiUrl = ''
-export const baseUrl = develop
+export const baseUrl = Url
\ No newline at end of file
diff --git a/common/globalFont.js b/common/globalFont.js
index e61e933..b4c8a00 100644
--- a/common/globalFont.js
+++ b/common/globalFont.js
@@ -1,36 +1,36 @@
export const getFonts =()=>{
//首页
- uni.loadFontFace({
- family: 'ZhongShanFonts',
- source: `url("https://carbon2.obs.cn-north-4.myhuaweicloud.com/fonts/ZhongShanFonts.ttf")`,
- success:(res) =>{
- console.log('success',res);
- },
- fail:(err) => {
- console.log('err',err);
- }
- })
- //其他页面
- 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);
- }
- })
+ // uni.loadFontFace({
+ // family: 'ZhongShanFonts',
+ // source: `url("https://carbon2.obs.cn-north-4.myhuaweicloud.com/fonts/ZhongShanFonts.ttf")`,
+ // success:(res) =>{
+ // console.log('success',res);
+ // },
+ // fail:(err) => {
+ // console.log('err',err);
+ // }
+ // })
+ // //其他页面
+ // 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);
+ // }
+ // })
- uni.loadFontFace({
- family: 'FangZhengXiaoZhuan',
- source: `url("https://carbon2.obs.cn-north-4.myhuaweicloud.com/fonts/FangZhengXiaoZhuan.ttf")`,
- success:(res) =>{
- console.log('success',res);
- },
- fail:(err) => {
- console.log('err',err);
- }
- })
+ // uni.loadFontFace({
+ // family: 'FangZhengXiaoZhuan',
+ // source: `url("https://carbon2.obs.cn-north-4.myhuaweicloud.com/fonts/FangZhengXiaoZhuan.ttf")`,
+ // success:(res) =>{
+ // console.log('success',res);
+ // },
+ // fail:(err) => {
+ // console.log('err',err);
+ // }
+ // })
}
\ No newline at end of file
diff --git a/common/globalImagesUrl.js b/common/globalImagesUrl.js
index 4e557d1..c477592 100644
--- a/common/globalImagesUrl.js
+++ b/common/globalImagesUrl.js
@@ -1,4 +1,4 @@
-export const bookUrl = 'https://carbon2.obs.cn-north-4.myhuaweicloud.com/feiyi/miniProgram/book'
-export const couponUrl = 'https://carbon2.obs.cn-north-4.myhuaweicloud.com/feiyi/miniProgram/coupon'
-export const workshopUrl = 'https://carbon2.obs.cn-north-4.myhuaweicloud.com/feiyi/miniProgram/workshop'
-export const myOrderUrl = 'https://carbon2.obs.cn-north-4.myhuaweicloud.com/feiyi/miniProgram/my-order'
\ No newline at end of file
+export const bookUrl = 'http://123.249.108.160:8888/api/file/downloadFile?objectKey=feiyi/miniProgram/book'
+export const couponUrl = 'http://123.249.108.160:8888/api/file/downloadFile?objectKey=feiyi/miniProgram/coupon'
+export const workshopUrl = 'http://123.249.108.160:8888/api/file/downloadFile?objectKey=feiyi/miniProgram/workshop'
+export const myOrderUrl = 'http://123.249.108.160:8888/api/file/downloadFile?objectKey=feiyi/miniProgram/my-order'
\ No newline at end of file
diff --git a/pages/Shopping-cart/component/addProduct.vue b/pages/Shopping-cart/component/addProduct.vue
index f88514f..2392c57 100644
--- a/pages/Shopping-cart/component/addProduct.vue
+++ b/pages/Shopping-cart/component/addProduct.vue
@@ -20,17 +20,17 @@
src="https://carbon2.obs.cn-north-4.myhuaweicloud.com:443/feiyi%2Ftest%2F0%2FxSHTnKhk-close.png"
@click="close()" />
-
+
+ />
{{ quantity }}
-
+
+ />
@@ -201,14 +201,14 @@
.text_3 {
color: #000000;
font-size: 28.13rpx;
- font-family: FangZhengFonts;
+ font-family: FZSongKeBenXiuKaiS-R-GB;
line-height: 26.21rpx;
}
.text_4 {
color: #000000;
font-size: 26.25rpx;
- font-family: FangZhengFonts;
+ font-family: FZSongKeBenXiuKaiS-R-GB;
line-height: 24.34rpx;
}
@@ -240,7 +240,7 @@
.text_5 {
color: #000000;
font-size: 30rpx;
- font-family: FangZhengFonts;
+ font-family: FZSongKeBenXiuKaiS-R-GB;
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 2c5ad41..531c896 100644
--- a/pages/Shopping-cart/newaddress_Info/newaddress_Info.vue
+++ b/pages/Shopping-cart/newaddress_Info/newaddress_Info.vue
@@ -32,14 +32,14 @@
-
+
设为默认收货地址
-
-
+
+
@@ -55,6 +55,7 @@ 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 isSelected = ref(false)
const addressParam = ref({
name: "",
phone: "",
@@ -63,11 +64,17 @@ const addressParam = ref({
isDefault: 0
})
const isAdd = ref(false)
+
+const changeState = () => {
+ isSelected.value = !isSelected.value
+ addressParam.value.isDefault = isSelected.value ? 1 : 0
+}
//接受编辑按钮传来的地址信息
onLoad((options)=>{
getFonts()
if(JSON.stringify(options) != '{}') {
addressParam.value = JSON.parse(options.editInfo) //将原来的地址信息赋值给原来的addressParam
+ isSelected.value = addressParam.value.isDefault == 1
} else {
isAdd.value = true
}
@@ -93,8 +100,6 @@ const defaultAddress =(event)=>{
}
//发送添加新增地址的请求
const newAddress = async () =>{
- // console.log(addressParam.value);
- // addressParam.value.userId = userInfo.value.id
const values = Object.values(addressParam.value);
// 使用some()方法来检查是否有任何值为空
if (values.some(value => value === null || value === undefined || value === '')) {
@@ -131,6 +136,7 @@ const newAddress = async () =>{
}
const sucRes =(res)=>{ //请求成功执行的方法
if(res === 1) {
+ emitter.emit('updateAddressList')
uni.navigateBack({ //返回上一页
})
@@ -186,7 +192,7 @@ const bindTimeChange = (e) => { //picker省市区选择
}
.font_2 {
font-size: 26.25rpx;
- font-family: FangZhengFonts;
+ font-family: FZSongKeBenXiuKaiS-R-GB;
line-height: 24.34rpx;
color: #323232;
}
@@ -196,14 +202,12 @@ const bindTimeChange = (e) => { //picker省市区选择
.section {
margin-left: 2.85rpx;
margin-right: 14.1rpx;
- padding-left: 20.49rpx;
- padding-right: 15.13rpx;
+ padding: 10rpx 15.13rpx 10rpx 20.49rpx;
background-color: #ffffff;
border-radius: 9.38rpx;
- // border: solid 1.88rpx #818181;
}
.group_2 {
- padding: 24.24rpx 4.65rpx 12.19rpx;
+ padding: 14.24rpx 4.65rpx 12.19rpx;
border-bottom: solid 1.88rpx #efefef;
}
.text-wrapper {
@@ -282,7 +286,7 @@ const bindTimeChange = (e) => { //picker省市区选择
.text_8 {
color: #C35C5D;
font-size: 30rpx;
- font-family: FangZhengFonts;
+ font-family: FZSongKeBenXiuKaiS-R-GB;
line-height: 27.9rpx;
}
.zujian{ //地址组件样式
diff --git a/pages/Shopping-cart/productmain/productmain.vue b/pages/Shopping-cart/productmain/productmain.vue
index b1cf824..516b359 100644
--- a/pages/Shopping-cart/productmain/productmain.vue
+++ b/pages/Shopping-cart/productmain/productmain.vue
@@ -391,7 +391,7 @@ const changeState =()=>{ //修改购物车订单方法
}
.font {
font-size: 30rpx;
- font-family: FangZhengFonts;
+ font-family: FZSongKeBenXiuKaiS-R-GB;
line-height: 27.69rpx;
color: #323232;
}
@@ -449,7 +449,7 @@ const changeState =()=>{ //修改购物车订单方法
}
.font_2 {
font-size: 26.25rpx;
- font-family: FangZhengFonts;
+ font-family: FZSongKeBenXiuKaiS-R-GB;
line-height: 24.43rpx;
color: #323232;
}
@@ -458,7 +458,7 @@ const changeState =()=>{ //修改购物车订单方法
}
.font_3 {
font-size: 33.75rpx;
- font-family: FangZhengFonts;
+ font-family: FZSongKeBenXiuKaiS-R-GB;
line-height: 24.43rpx;
font-weight: 600;
color: #fb8b05;
@@ -474,7 +474,7 @@ const changeState =()=>{ //修改购物车订单方法
}
.font_4 {
font-size: 26.25rpx;
- font-family: FangZhengFonts;
+ font-family: FZSongKeBenXiuKaiS-R-GB;
line-height: 19.29rpx;
font-weight: 600;
color: #fb8b05;
@@ -499,7 +499,7 @@ const changeState =()=>{ //修改购物车订单方法
}
.font_5 {
font-size: 26.25rpx;
- font-family: FangZhengFonts;
+ font-family: FZSongKeBenXiuKaiS-R-GB;
line-height: 19.29rpx;
color: #323232;
}
@@ -529,7 +529,7 @@ const changeState =()=>{ //修改购物车订单方法
}
.font_6 {
font-size: 26.25rpx;
- font-family: FangZhengFonts;
+ font-family: FZSongKeBenXiuKaiS-R-GB;
line-height: 31.88rpx;
color: #323233;
}
@@ -541,13 +541,13 @@ const changeState =()=>{ //修改购物车订单方法
}
.font_7 {
font-size: 22.5rpx;
- font-family: FangZhengFonts;
+ font-family: FZSongKeBenXiuKaiS-R-GB;
line-height: 22.5rpx;
color: #6b6e72;
}
.font_8 {
font-size: 22.5rpx;
- font-family: FangZhengFonts;
+ font-family: FZSongKeBenXiuKaiS-R-GB;
line-height: 19.29rpx;
color: #6b6e72;
}
@@ -594,7 +594,7 @@ const changeState =()=>{ //修改购物车订单方法
.text_10 {
color: #ffffff;
font-size: 33.75rpx;
- font-family: FangZhengFonts;
+ font-family: FZSongKeBenXiuKaiS-R-GB;
line-height: 30.97rpx;
}
.mt-569 {
@@ -614,7 +614,7 @@ const changeState =()=>{ //修改购物车订单方法
}
.font {
font-size: 30rpx;
- font-family: FangZhengFonts;
+ font-family: FZSongKeBenXiuKaiS-R-GB;
line-height: 27.54rpx;
color: #323232;
}
@@ -642,7 +642,7 @@ const changeState =()=>{ //修改购物车订单方法
.text_11 {
color: #ffffff;
font-size: 33.75rpx;
- font-family: FangZhengFonts;
+ font-family: FZSongKeBenXiuKaiS-R-GB;
line-height: 31.48rpx;
}
@import url(../../../common/css/global.css);
diff --git a/pages/Shopping-cart/productmain/testproductmain.vue b/pages/Shopping-cart/productmain/testproductmain.vue
index 2be3372..d045e74 100644
--- a/pages/Shopping-cart/productmain/testproductmain.vue
+++ b/pages/Shopping-cart/productmain/testproductmain.vue
@@ -467,6 +467,9 @@
})
}
}
+
+ let editOrCompleteTimer = null
+
const changeState = () => { //修改购物车订单方法
if (stateText.value.topBtn === '编辑') {
stateText.value.topBtn = '完成',
@@ -475,6 +478,11 @@
stateText.value.topBtn = '编辑',
stateText.value.bottomBtn = '去结算'
}
+ clearTimeout(editOrCompleteTimer)
+ showLoading()
+ editOrCompleteTimer = setTimeout(async () => {
+ hideLoading()
+ }, 1000)
}
const productSearch = () => { //搜索框方法
var arr = []
@@ -649,7 +657,7 @@
.font {
font-size: 30rpx;
- font-family: FangZhengFonts;
+ font-family: FZSongKeBenXiuKaiS-R-GB;
line-height: 27.77rpx;
color: #c35c5d;
}
@@ -696,7 +704,7 @@
.font_2 {
font-size: 30rpx;
- font-family: FangZhengFonts;
+ font-family: FZSongKeBenXiuKaiS-R-GB;
line-height: 27.77rpx;
color: #323232;
}
@@ -757,7 +765,7 @@
.font_3 {
font-size: 26.25rpx;
- font-family: FangZhengFonts;
+ font-family: FZSongKeBenXiuKaiS-R-GB;
line-height: 25.01rpx;
color: #323232;
}
@@ -768,7 +776,7 @@
.font_4 {
font-size: 33.75rpx;
- font-family: FangZhengFonts;
+ font-family: FZSongKeBenXiuKaiS-R-GB;
line-height: 22.07rpx;
color: #e79ea1;
}
@@ -787,7 +795,7 @@
.font_5 {
font-size: 26.25rpx;
- font-family: FangZhengFonts;
+ font-family: FZSongKeBenXiuKaiS-R-GB;
line-height: 18.73rpx;
color: #e79ea1;
}
@@ -817,7 +825,7 @@
.font_6 {
font-size: 26.25rpx;
- font-family: FangZhengFonts;
+ font-family: FZSongKeBenXiuKaiS-R-GB;
line-height: 18.73rpx;
color: #323232;
}
@@ -854,7 +862,7 @@
.font_7 {
font-size: 26.25rpx;
- font-family: FangZhengFonts;
+ font-family: FZSongKeBenXiuKaiS-R-GB;
line-height: 31.88rpx;
color: #323233;
}
@@ -862,13 +870,13 @@
.section_7 {
margin-right: 8.63rpx;
padding: 11.1rpx 10.14rpx 14.25rpx;
- background-color: #fbdedf;
+ background-color: #fff;
border-radius: 9.38rpx;
}
.font_8 {
- font-size: 22.5rpx;
- font-family: FangZhengFonts;
+ font-size: 26.5rpx;
+ font-family: FZSongKeBenXiuKaiS-R-GB;
line-height: 22.07rpx;
color: #6b6e72;
}
@@ -889,7 +897,7 @@
.font_9 {
font-size: 33.75rpx;
- font-family: FangZhengFonts;
+ font-family: FZSongKeBenXiuKaiS-R-GB;
line-height: 25.01rpx;
font-weight: 600;
color: #e79ea1;
@@ -909,7 +917,7 @@
.font_10 {
font-size: 26.25rpx;
- font-family: FangZhengFonts;
+ font-family: FZSongKeBenXiuKaiS-R-GB;
line-height: 18.73rpx;
font-weight: 600;
color: #e79ea1;
diff --git a/pages/book/component/bookingSelected.vue b/pages/book/component/bookingSelected.vue
index 548aa2b..9430088 100644
--- a/pages/book/component/bookingSelected.vue
+++ b/pages/book/component/bookingSelected.vue
@@ -266,7 +266,7 @@
}
.font {
font-size: 37.5rpx;
- font-family: FangZhengFonts;
+ font-family: FZSongKeBenXiuKaiS-R-GB;
line-height: 33.99rpx;
color: #000000;
}
@@ -312,7 +312,7 @@
}
.text_4 {
color: #323232b3;
- font-family: FangZhengFonts;
+ font-family: FZSongKeBenXiuKaiS-R-GB;
line-height: 35.04rpx;
}
.image_6 {
@@ -325,7 +325,7 @@
margin-left: 22.5rpx;
color: #000000;
font-size: 30rpx;
- font-family: FangZhengFonts;
+ font-family: FZSongKeBenXiuKaiS-R-GB;
line-height: 26.4rpx;
}
.image_3 {
@@ -382,7 +382,7 @@
}
.font_2 {
font-size: 26.25rpx;
- font-family: FangZhengFonts;
+ font-family: FZSongKeBenXiuKaiS-R-GB;
line-height: 24.21rpx;
color: #000000;
}
@@ -413,7 +413,7 @@
}
.font_3 {
font-size: 22.5rpx;
- font-family: FangZhengFonts;
+ font-family: FZSongKeBenXiuKaiS-R-GB;
line-height: 26.25rpx;
color: #ffffff;
}
@@ -434,7 +434,7 @@
.text_9 {
color: #ffffff;
font-size: 30rpx;
- font-family: FangZhengFonts;
+ font-family: FZSongKeBenXiuKaiS-R-GB;
line-height: 28.01rpx;
}
@import url(../../../common/css/global.css);
diff --git a/pages/book/component/bookingTips.vue b/pages/book/component/bookingTips.vue
index 980ccc0..3697ec6 100644
--- a/pages/book/component/bookingTips.vue
+++ b/pages/book/component/bookingTips.vue
@@ -46,7 +46,7 @@ import { onLoad } from "@dcloudio/uni-app";
.text {
color: #000000;
font-size: 37.5rpx;
- font-family: FangZhengFonts;
+ font-family: FZSongKeBenXiuKaiS-R-GB;
line-height: 34.42rpx;
}
.group {
@@ -54,7 +54,7 @@ import { onLoad } from "@dcloudio/uni-app";
}
.font {
font-size: 29.17rpx;
- font-family: FangZhengFonts;
+ font-family: FZSongKeBenXiuKaiS-R-GB;
line-height: 35.42rpx;
color: #323232;
}
@@ -67,7 +67,7 @@ import { onLoad } from "@dcloudio/uni-app";
.text_2 {
color: #ffffff;
font-size: 33.33rpx;
- font-family: FangZhengFonts;
+ font-family: FZSongKeBenXiuKaiS-R-GB;
line-height: 32.17rpx;
}
@import url(../../../common/css/global.css);
diff --git a/pages/book/component/cancelOrder.vue b/pages/book/component/cancelOrder.vue
index 3a1210c..e0ebb7c 100644
--- a/pages/book/component/cancelOrder.vue
+++ b/pages/book/component/cancelOrder.vue
@@ -74,7 +74,7 @@ import { onLoad } from "@dcloudio/uni-app";
.text {
color: #000000;
font-size: 37.32rpx;
- font-family: FangZhengFonts;
+ font-family: FZSongKeBenXiuKaiS-R-GB;
line-height: 41.66rpx;
}
.text-wrapper {
@@ -87,7 +87,7 @@ import { onLoad } from "@dcloudio/uni-app";
}
.font {
font-size: 37.62rpx;
- font-family: FangZhengFonts;
+ font-family: FZSongKeBenXiuKaiS-R-GB;
line-height: 35.41rpx;
}
.text_2 {
diff --git a/pages/book/component/confirmBookingInfo.vue b/pages/book/component/confirmBookingInfo.vue
index 1f31564..b5fa187 100644
--- a/pages/book/component/confirmBookingInfo.vue
+++ b/pages/book/component/confirmBookingInfo.vue
@@ -151,12 +151,12 @@ const cookie = wx.getStorageSync("cookie") //请求头
.text {
color: #000000;
font-size: 37.72rpx;
- font-family: FangZhengFonts;
+ font-family: FZSongKeBenXiuKaiS-R-GB;
line-height: 41.72rpx;
}
.font {
font-size: 30.97rpx;
- font-family: FangZhengFonts;
+ font-family: FZSongKeBenXiuKaiS-R-GB;
line-height: 35.46rpx;
color: #000000;
}
diff --git a/pages/book/component/deleteOrder.vue b/pages/book/component/deleteOrder.vue
index 40b13cf..958d2a2 100644
--- a/pages/book/component/deleteOrder.vue
+++ b/pages/book/component/deleteOrder.vue
@@ -75,7 +75,7 @@ import { getFonts } from '../../../common/globalFont';
.text {
color: #000000;
font-size: 37.32rpx;
- font-family: FangZhengFonts;
+ font-family: FZSongKeBenXiuKaiS-R-GB;
line-height: 41.66rpx;
}
.text-wrapper {
@@ -88,7 +88,7 @@ import { getFonts } from '../../../common/globalFont';
}
.font {
font-size: 37.62rpx;
- font-family: FangZhengFonts;
+ font-family: FZSongKeBenXiuKaiS-R-GB;
line-height: 35.41rpx;
}
.text_2 {
diff --git a/pages/book/photoProductDetail/photoProductDetail.vue b/pages/book/photoProductDetail/photoProductDetail.vue
index a94577e..6f4f3df 100644
--- a/pages/book/photoProductDetail/photoProductDetail.vue
+++ b/pages/book/photoProductDetail/photoProductDetail.vue
@@ -187,7 +187,7 @@
}
.font {
font-size: 45rpx;
- font-family: FangZhengFonts;
+ font-family: FZSongKeBenXiuKaiS-R-GB;
color: #000000;
}
.text {
@@ -199,7 +199,7 @@
}
.font_2 {
font-size: 37.5rpx;
- font-family: FangZhengFonts;
+ font-family: FZSongKeBenXiuKaiS-R-GB;
line-height: 36.34rpx;
color: #000000;
}
@@ -220,7 +220,7 @@
}
.font_3 {
font-size: 30rpx;
- font-family: FangZhengFonts;
+ font-family: FZSongKeBenXiuKaiS-R-GB;
line-height: 27.3rpx;
color: #000000;
}
diff --git a/pages/book/photoProducts/photoProducts.vue b/pages/book/photoProducts/photoProducts.vue
index b8cb7f8..81d38e2 100644
--- a/pages/book/photoProducts/photoProducts.vue
+++ b/pages/book/photoProducts/photoProducts.vue
@@ -177,8 +177,8 @@
//获取字体
const getFonts =()=>{
uni.loadFontFace({
- family: 'FangZhengFonts',
- source: `url("https://carbon2.obs.cn-north-4.myhuaweicloud.com/fonts/FangZhengFonts.TTF")`,
+ family: 'FZSongKeBenXiuKaiS-R-GB',
+ source: `url("https://carbon2.obs.cn-north-4.myhuaweicloud.com/fonts/FZSongKeBenXiuKaiS-R-GB.TTF")`,
success:(res) =>{
console.log('success',res);
},
@@ -226,7 +226,7 @@
}
.font {
font-size: 30rpx;
- font-family: FangZhengFonts;
+ font-family: FZSongKeBenXiuKaiS-R-GB;
line-height: 28.71rpx;
color: #323232;
}
@@ -281,7 +281,7 @@
}
.font_2 {
font-size: 26.25rpx;
- font-family: FangZhengFonts;
+ font-family: FZSongKeBenXiuKaiS-R-GB;
line-height: 25.16rpx;
color: #000000;
}
@@ -339,7 +339,7 @@
}
.font_3 {
font-size: 18.75rpx;
- font-family: FangZhengFonts;
+ font-family: FZSongKeBenXiuKaiS-R-GB;
line-height: 17.14rpx;
color: #ffffff;
}
diff --git a/pages/book/photoProductsOrder/photoProductsOrder.vue b/pages/book/photoProductsOrder/photoProductsOrder.vue
index fa11171..107aca1 100644
--- a/pages/book/photoProductsOrder/photoProductsOrder.vue
+++ b/pages/book/photoProductsOrder/photoProductsOrder.vue
@@ -417,19 +417,6 @@
- //获取字体
- 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);
- }
- })
- }