diff --git a/env/.env.development b/env/.env.development index 5f65f42..171a4aa 100644 --- a/env/.env.development +++ b/env/.env.development @@ -14,4 +14,4 @@ VITE_UPLOAD_BASEURL = 'https://76458.com/upload' # 上传图片请求地址 VITE_UPLOAD_BASEURL = 'https://76458.com/api/upload/image' -VITE_UPLOAD_IMAGE_URL = 'https://76458.com/' \ No newline at end of file +VITE_UPLOAD_IMAGE_URL = 'https://chaz.oss-cn-shanghai.aliyuncs.com/' \ No newline at end of file diff --git a/env/.env.production b/env/.env.production index 4bb24da..2fefe12 100644 --- a/env/.env.production +++ b/env/.env.production @@ -14,4 +14,4 @@ VITE_UPLOAD_BASEURL = 'https://76458.com/upload' # 上传图片请求地址 VITE_UPLOAD_BASEURL = 'https://76458.com/api/upload/image' -VITE_UPLOAD_IMAGE_URL = 'https://76458.com/' \ No newline at end of file +VITE_UPLOAD_IMAGE_URL = 'https://chaz.oss-cn-shanghai.aliyuncs.com/' \ No newline at end of file diff --git a/src/api/tea-room.ts b/src/api/tea-room.ts index 2e8764d..d88f1d7 100644 --- a/src/api/tea-room.ts +++ b/src/api/tea-room.ts @@ -99,7 +99,9 @@ export interface IRoomDetailParams { } export function getTeaRoomDetail(data: IRoomDetailParams) { - return http.Post('/api/teaStore/teaStoreDetails', data) + return http.Post('/api/teaStore/teaStoreDetails', data, { + meta: { ignoreAuth: true } + }) } /** @@ -140,7 +142,9 @@ export interface IStoreTeaRoomListParams { } export function getStoreTeaRoomList(data: IStoreTeaRoomListParams) { - return http.Post('/api/teaStore/teaStoreRoomLists', data) + return http.Post('/api/teaStore/teaStoreRoomLists', data, { + meta: { ignoreAuth: true } + }) } /** @@ -263,7 +267,9 @@ export interface ITeaRoomPackageParams { } export function getTeaRoomPackage(data: ITeaRoomPackageParams) { - return http.Post('/api/teaStore/teaStoreGroupLists', data) + return http.Post('/api/teaStore/teaStoreGroupLists', data, { + meta: { ignoreAuth: true } + }) } /** @@ -364,4 +370,18 @@ export function teaRoomRecharge(money: number) { */ export function getRechargeActivity(data: {store_id: number}) { return http.Post('/api/TeaStore/rechargeLists', data) +} + +/** + * 获取茶室支付订单金额 + */ +export function getTeaRoomPayOrderAmount(data: {id: number, pay_way: number}) { + return http.Post('/api/order/getOrderAmount', data) +} + +/** + * 获取续订茶室支付订单金额 + */ +export function getRenewTeaRoomPayOrderAmount(data: {id: number, pay_way: number}) { + return http.Post('/api/order/getOrderRenewAmount', data) } \ No newline at end of file diff --git a/src/bundle/order/tea-room/order-detail.vue b/src/bundle/order/tea-room/order-detail.vue index 69e4156..9ca9a69 100644 --- a/src/bundle/order/tea-room/order-detail.vue +++ b/src/bundle/order/tea-room/order-detail.vue @@ -38,23 +38,25 @@ 费用明细 + 茶室费 - ¥640.00 + ¥{{ order.room_all_price }} - 茶室费(¥160元/小时) - x4 + 茶室费(¥{{ order.room_price }}元/小时) + x{{ order.hours }} + 优惠 @@ -66,10 +68,10 @@ 优惠券 -¥20 - + - 会员八折 + 会员折扣 -¥20 @@ -78,9 +80,9 @@ - - 实际退款 - ¥698.90 + + 实付金额 + ¥{{ order.order_amount }} @@ -91,7 +93,7 @@ @@ -267,19 +269,19 @@ - + 分享房间给朋友 - + diff --git a/src/bundle/order/tea-specialist/order-detail.vue b/src/bundle/order/tea-specialist/order-detail.vue index 72e9a35..fdc8621 100644 --- a/src/bundle/order/tea-specialist/order-detail.vue +++ b/src/bundle/order/tea-specialist/order-detail.vue @@ -325,10 +325,20 @@ {{ order.leaf_name }} + + 茶叶费 + {{ order.tea_price }} + + 茶具使用 {{ order.is_teacup == 1 ? '茶艺师提供' : '客户自备' }} + + + 茶具费 + {{ order.teacup_price }} + @@ -580,6 +590,8 @@ renew_hour: 0, // 续订小时 renew_price: 0, // 续订金额 renew_tea_price: 0, // 续订茶叶金额 + tea_price: 0, // 茶叶费 + teacup_price: 0, // 茶具费 }) onLoad(async (args) => { diff --git a/src/bundle/tea-room/detail.vue b/src/bundle/tea-room/detail.vue index c95b7c8..77e80e2 100644 --- a/src/bundle/tea-room/detail.vue +++ b/src/bundle/tea-room/detail.vue @@ -59,7 +59,7 @@ - + @@ -90,10 +90,10 @@ {{ teaRoomPackage.description }} 已售 @@ -545,7 +545,7 @@ toast.info('请选择预定时间') return } -return false + isSubmitting.value = true uni.showLoading({ title: '提交中...' @@ -597,9 +597,10 @@ return false setTimeout(() => { const name = isGroupBuying.value ? teaRoomPackage.value.title : teaRoom.value.name + const money = isGroupBuying.value ? res.order_amount : 0 // 团购套餐支付金额会在创建订单的时候返回 router.navigateTo( - `/pages/cashier/cashier?from=${OrderType.TeaRoomOrder}&orderId=${res.id}&name=${name}&storeId=${storeId.value}&isGroupBuying=${isGroupBuying.value ? 1 : 0}&cmoboId=${id.value || 0}` + `/pages/cashier/cashier?from=${OrderType.TeaRoomOrder}&orderId=${res.id}&name=${name}&storeId=${storeId.value}&isGroupBuying=${isGroupBuying.value ? 1 : 0}&cmoboId=${id.value || 0}&money=${money}` ) }, 500) } catch (error) { diff --git a/src/bundle/tea-room/room.vue b/src/bundle/tea-room/room.vue index 062119d..59a621e 100644 --- a/src/bundle/tea-room/room.vue +++ b/src/bundle/tea-room/room.vue @@ -1,6 +1,6 @@ { - "needLogin": true, + //"needLogin": true, "layout": "tabbar", "style": { "navigationStyle": "custom" diff --git a/src/bundle/wallet/recharge.vue b/src/bundle/wallet/recharge.vue index e63c70b..0d0361d 100644 --- a/src/bundle/wallet/recharge.vue +++ b/src/bundle/wallet/recharge.vue @@ -11,11 +11,11 @@