diff --git a/src/bundle/collect/collect.vue b/src/bundle/collect/collect.vue
new file mode 100644
index 0000000..5f8f5ae
--- /dev/null
+++ b/src/bundle/collect/collect.vue
@@ -0,0 +1,175 @@
+
+{
+ // "needLogin": true,
+ "layout": "default",
+ "style": {
+ "navigationStyle": "custom"
+ }
+}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 凝香茶业
+
+
+
+
+
+
+ 100+收藏
+
+
+
+ 营业时间:00:00-23:59
+
+
+ 打烊了
+
+
+
+
+
+ 青浦区仓路478号
+
+
+
+
+
+
+
+
+
+
+
+
+ 可约9:00
+
+
+
+
+
+ 凝香茶业
+
+
+
+
+
+ 金牌茶艺师
+
+
+
+
+
+
+
+
+ 上门服务
+
+
+ 到点服务
+
+
+ 28岁
+
+
+
+
+
+
+
+ 100+收藏
+
+
+
+ ¥180
+ /小时
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/bundle/coupon/coupon.vue b/src/bundle/coupon/coupon.vue
index db4f8be..4418f30 100644
--- a/src/bundle/coupon/coupon.vue
+++ b/src/bundle/coupon/coupon.vue
@@ -29,6 +29,7 @@
:key="item.id"
:coupon="item"
canUse
+ showChecked
:checked="item.id === checkedId"
:onCheck="coupons.handleCheck"
:class="index !== couponList.length - 1 ? 'mb-20rpx' : ''"
@@ -48,6 +49,7 @@
:key="item.id"
:coupon="item"
:canUse="false"
+ showChecked
:checked="item.id === checkedId"
:onCheck="coupons.handleCheck"
:class="index !== couponList.length - 1 ? 'mb-20rpx' : ''"
diff --git a/src/bundle/coupon/my-coupon.vue b/src/bundle/coupon/my-coupon.vue
new file mode 100644
index 0000000..f9cbf8c
--- /dev/null
+++ b/src/bundle/coupon/my-coupon.vue
@@ -0,0 +1,144 @@
+
+{
+ // "needLogin": true,
+ "layout": "default",
+ "style": {
+ "navigationStyle": "custom"
+ }
+}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item }}
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/bundle/order/platform/direct-order-detail.vue b/src/bundle/order/platform/direct-order-detail.vue
index 5db2e2f..aedd7e5 100644
--- a/src/bundle/order/platform/direct-order-detail.vue
+++ b/src/bundle/order/platform/direct-order-detail.vue
@@ -213,7 +213,7 @@
// 跳转到立即预定页面(选择茶室)
handleToChooseTeaRoom: () => {
uni.navigateTo({
- url: `/bundle/reserve-room/choose-room`
+ url: `/bundle/tea-room/choose-room`
})
},
diff --git a/src/bundle/order/reserve-room/order-detail.vue b/src/bundle/order/tea-room/order-detail.vue
similarity index 98%
rename from src/bundle/order/reserve-room/order-detail.vue
rename to src/bundle/order/tea-room/order-detail.vue
index ffa6699..da54026 100644
--- a/src/bundle/order/reserve-room/order-detail.vue
+++ b/src/bundle/order/tea-room/order-detail.vue
@@ -9,14 +9,12 @@
-
使用过程中有任何问题,请联系客服
- 使用过程中有任何问题,请联系客服
diff --git a/src/bundle/order/tea-room/order-list.vue b/src/bundle/order/tea-room/order-list.vue
new file mode 100644
index 0000000..c3371d5
--- /dev/null
+++ b/src/bundle/order/tea-room/order-list.vue
@@ -0,0 +1,166 @@
+{
+ "layout": "default",
+ "style": {
+ "navigationStyle": "custom"
+ }
+}
+
+
+
+
+
+
+
+
+ {{ item.title }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/bundle/reserve-room/choose-room-reserve.vue b/src/bundle/tea-room/choose-room-reserve.vue
similarity index 99%
rename from src/bundle/reserve-room/choose-room-reserve.vue
rename to src/bundle/tea-room/choose-room-reserve.vue
index b71c613..9561d41 100644
--- a/src/bundle/reserve-room/choose-room-reserve.vue
+++ b/src/bundle/tea-room/choose-room-reserve.vue
@@ -118,18 +118,14 @@
const OSS = inject('OSS')
- /** 轮播图 **/
+ // 轮播图
const swiperList = ref([
`${OSS}images/banner1.png`,
`${OSS}images/banner1.png`,
`${OSS}images/banner1.png`
])
const current = ref(0)
- /** 结束 **/
-
- /** 轮播图 **/
const showBookTimePopup = ref(false)
- /** 结束 **/
const html: string = '这里是富文本内容,需要后台传递
'
diff --git a/src/bundle/reserve-room/choose-room.vue b/src/bundle/tea-room/choose-room.vue
similarity index 100%
rename from src/bundle/reserve-room/choose-room.vue
rename to src/bundle/tea-room/choose-room.vue
diff --git a/src/bundle/reserve-room/detail.vue b/src/bundle/tea-room/detail.vue
similarity index 100%
rename from src/bundle/reserve-room/detail.vue
rename to src/bundle/tea-room/detail.vue
diff --git a/src/bundle/reserve-room/room.vue b/src/bundle/tea-room/room.vue
similarity index 100%
rename from src/bundle/reserve-room/room.vue
rename to src/bundle/tea-room/room.vue
diff --git a/src/bundle/vip-benefits/vip-benefits.vue b/src/bundle/vip/benefits.vue
similarity index 95%
rename from src/bundle/vip-benefits/vip-benefits.vue
rename to src/bundle/vip/benefits.vue
index a9b4ad5..99ce14e 100644
--- a/src/bundle/vip-benefits/vip-benefits.vue
+++ b/src/bundle/vip/benefits.vue
@@ -1,6 +1,6 @@
{
- // "needLogin": true,
+ "needLogin": true,
"layout": "default",
"style": {
"navigationStyle": "custom"
@@ -18,7 +18,7 @@
-
+
@@ -101,7 +101,7 @@
-
+
立即成为会员 ¥499/年
@@ -119,11 +119,16 @@
onLoad(() => {
// 模拟获取用户身份
setTimeout(() => {
- currentVipType.value = 'partner'
+ currentVipType.value = 'normal'
}, 1000)
})
- const vipBenefits = {
+ const benefits = {
+ handledToBuyVip: () => {
+ uni.navigateTo({
+ url: '/bundle/vip/buy'
+ })
+ }
}
diff --git a/src/bundle/vip/buy.vue b/src/bundle/vip/buy.vue
new file mode 100644
index 0000000..cf43a77
--- /dev/null
+++ b/src/bundle/vip/buy.vue
@@ -0,0 +1,165 @@
+
+{
+ // "needLogin": true,
+ "layout": "default",
+ "style": {
+ "navigationStyle": "custom"
+ }
+}
+
+
+
+
+
+
+
+
+
+
+ ¥499.00
+ 开通会员,解锁更多精彩内容!
+
+
+
+
+ 支付方式
+
+
+
+
+
+
+ {{ item.name }}
+
+
+
+ 可用202.22
+
+
+
+
+
+
+
+
+
+
+ 推广方式
+
+
+
+
+
+
+
+ 门店推广
+
+ 请选择门店
+
+
+
+
+
+
+
+
+
+ 个人推广
+
+
+
+
+
+
+
+
+
+
+
+ 立即购买
+
+
+
+
+
+
+
+
+
+ 选择门店
+
+
+
+
+
+
+
+ 这是茶馆名字
+
+ 距您5.3km
+
+
+
+ 北京市海淀区宏福苑西区20号楼2单元30
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/bundle/wallet/bill.vue b/src/bundle/wallet/bill.vue
new file mode 100644
index 0000000..da385fb
--- /dev/null
+++ b/src/bundle/wallet/bill.vue
@@ -0,0 +1,75 @@
+{
+ // "needLogin": true,
+ "layout": "default",
+ "style": {
+ "navigationStyle": "custom"
+ }
+}
+
+
+
+
+
+
+
+
+
+
+
+ 订单号:1744601722882174
+
+
+
+
+
+
+ 消费类型
+ 茶艺师预定
+
+
+ 交易方式
+ 微信支付
+
+
+ 消费金额
+ ¥158
+
+
+
+
+
+
+
+ 茶艺师
+ 茶艺师的昵称
+
+
+
+ 消费门店
+ 茶艺师的昵称
+
+
+ 下单时间
+ 2025-04-25 04:43
+
+
+ 支付时间
+ 2025-04-25 04:43
+
+
+
+
+
+
+
+
+
+
diff --git a/src/bundle/wallet/recharge.vue b/src/bundle/wallet/recharge.vue
new file mode 100644
index 0000000..e52dba7
--- /dev/null
+++ b/src/bundle/wallet/recharge.vue
@@ -0,0 +1,156 @@
+
+{
+ // "needLogin": true,
+ "layout": "default",
+ "style": {
+ "navigationStyle": "custom"
+ }
+}
+
+
+
+
+
+
+
+
+
+
+
+ 转入方式
+
+
+
+
+
+ 微信
+
+
+
+
+
+ 转入方式
+
+
+ ¥
+
+
+
+
+
+
+
+
+
+
+ 推广方式
+ (选填)
+
+
+
+
+
+
+
+
+ 门店推广
+
+ 请选择门店
+
+
+
+
+
+
+
+
+
+ 茶艺师推广
+
+
+
+
+
+
+
+
+
+
+
+ 确定转入
+
+
+
+
+
+
+
+
+
+ 推广方式
+
+
+
+
+
+
+
+ 这是茶馆名字
+
+ 距您5.3km
+
+
+
+ 北京市海淀区宏福苑西区20号楼2单元30
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/bundle/wallet/wallet.vue b/src/bundle/wallet/wallet.vue
new file mode 100644
index 0000000..9f52856
--- /dev/null
+++ b/src/bundle/wallet/wallet.vue
@@ -0,0 +1,199 @@
+{
+ // "needLogin": true,
+ "layout": "default",
+ "style": {
+ "navigationStyle": "custom"
+ }
+}
+
+
+
+
+
+
+
+ 我的钱包
+ 简单·便捷·安全
+
+
+
+
+
+
+
+
+
+ 平台余额
+
+
+
+
+ 保障中
+
+
+
+
+ 余额
+
+
+
+
+
+ 充值
+
+
+
+
+
+
+
+
+
+ 流水明细
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 茶艺师预定
+ -402.33
+
+
+ 2025-03-18 11:20
+ 余额24.55
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/components/coupon/coupon.vue b/src/components/coupon/coupon.vue
index f8bee09..4cc4fd4 100644
--- a/src/components/coupon/coupon.vue
+++ b/src/components/coupon/coupon.vue
@@ -13,7 +13,7 @@
茶室优惠
有效期至 2022-08-12
-
+
@@ -35,8 +35,9 @@
expire: string
}
canUse: boolean
+ showChecked: boolean
checked: boolean
- onCheck: (id: number) => void
+ onCheck: (id: number) => void,
}>()
diff --git a/src/components/reserve/RoomList.vue b/src/components/reserve/RoomList.vue
index c3d100b..169325b 100644
--- a/src/components/reserve/RoomList.vue
+++ b/src/components/reserve/RoomList.vue
@@ -105,7 +105,7 @@
if (type === 'detail') {
let type = props.isGroupBuying ? ReserveServiceCategory.GroupBuying : ReserveServiceCategory.ReserveRoom
uni.navigateTo({
- url: `/bundle/reserve-room/detail?id=${id}&type=${type}`
+ url: `/bundle/tea-room/detail?id=${id}&type=${type}`
})
}
}
diff --git a/src/pages.json b/src/pages.json
index e977a27..686344e 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -163,6 +163,14 @@
{
"root": "bundle",
"pages": [
+ {
+ "path": "collect/collect",
+ "type": "page",
+ "layout": "default",
+ "style": {
+ "navigationStyle": "custom"
+ }
+ },
{
"path": "coupon/coupon",
"type": "page",
@@ -171,6 +179,14 @@
"navigationStyle": "custom"
}
},
+ {
+ "path": "coupon/my-coupon",
+ "type": "page",
+ "layout": "default",
+ "style": {
+ "navigationStyle": "custom"
+ }
+ },
{
"path": "demo/index",
"type": "page",
@@ -187,38 +203,6 @@
"navigationStyle": "custom"
}
},
- {
- "path": "reserve-room/choose-room-reserve",
- "type": "page",
- "layout": "tabbar",
- "style": {
- "navigationStyle": "custom"
- }
- },
- {
- "path": "reserve-room/choose-room",
- "type": "page",
- "layout": "tabbar",
- "style": {
- "navigationStyle": "custom"
- }
- },
- {
- "path": "reserve-room/detail",
- "type": "page",
- "layout": "tabbar",
- "style": {
- "navigationStyle": "custom"
- }
- },
- {
- "path": "reserve-room/room",
- "type": "page",
- "layout": "tabbar",
- "style": {
- "navigationStyle": "custom"
- }
- },
{
"path": "store-recharge/store-recharge",
"type": "page",
@@ -228,7 +212,72 @@
}
},
{
- "path": "vip-benefits/vip-benefits",
+ "path": "tea-room/choose-room-reserve",
+ "type": "page",
+ "layout": "tabbar",
+ "style": {
+ "navigationStyle": "custom"
+ }
+ },
+ {
+ "path": "tea-room/choose-room",
+ "type": "page",
+ "layout": "tabbar",
+ "style": {
+ "navigationStyle": "custom"
+ }
+ },
+ {
+ "path": "tea-room/detail",
+ "type": "page",
+ "layout": "tabbar",
+ "style": {
+ "navigationStyle": "custom"
+ }
+ },
+ {
+ "path": "tea-room/room",
+ "type": "page",
+ "layout": "tabbar",
+ "style": {
+ "navigationStyle": "custom"
+ }
+ },
+ {
+ "path": "vip/benefits",
+ "type": "page",
+ "needLogin": true,
+ "layout": "default",
+ "style": {
+ "navigationStyle": "custom"
+ }
+ },
+ {
+ "path": "vip/buy",
+ "type": "page",
+ "layout": "default",
+ "style": {
+ "navigationStyle": "custom"
+ }
+ },
+ {
+ "path": "wallet/bill",
+ "type": "page",
+ "layout": "default",
+ "style": {
+ "navigationStyle": "custom"
+ }
+ },
+ {
+ "path": "wallet/recharge",
+ "type": "page",
+ "layout": "default",
+ "style": {
+ "navigationStyle": "custom"
+ }
+ },
+ {
+ "path": "wallet/wallet",
"type": "page",
"layout": "default",
"style": {
@@ -292,7 +341,15 @@
}
},
{
- "path": "order/reserve-room/order-detail",
+ "path": "order/tea-room/order-detail",
+ "type": "page",
+ "layout": "default",
+ "style": {
+ "navigationStyle": "custom"
+ }
+ },
+ {
+ "path": "order/tea-room/order-list",
"type": "page",
"layout": "default",
"style": {
diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue
index cba45ac..2dfaaf5 100644
--- a/src/pages/index/index.vue
+++ b/src/pages/index/index.vue
@@ -180,7 +180,7 @@
handleToReserveRoom: (id: number = 1) => {
// 跳转到预约茶室页面
uni.navigateTo({
- url: `/bundle/reserve-room/room?id=${id}`
+ url: `/bundle/tea-room/room?id=${id}`
})
}
}
diff --git a/src/pages/my/my.vue b/src/pages/my/my.vue
index 811af80..7b8cee5 100644
--- a/src/pages/my/my.vue
+++ b/src/pages/my/my.vue
@@ -52,16 +52,16 @@
-
+
{{ isLogin ? 51 : '- -' }}
优惠券
-
+
{{ isLogin ? 51 : '- -' }}
收藏
-
+
@@ -162,19 +162,21 @@
茶室订单
-
-
-
+
+
+
+
+
+ {{ item.title }}
- {{ item.title }}
-
+
- 茶艺室订单
+ 茶艺师订单
@@ -230,11 +232,11 @@
-
diff --git a/src/pages/notice/bill.vue b/src/pages/notice/bill.vue
index fe9ccab..7430e43 100644
--- a/src/pages/notice/bill.vue
+++ b/src/pages/notice/bill.vue
@@ -21,6 +21,6 @@
type.value = args.type || ''
})
-
+
diff --git a/src/pages/notice/pay.vue b/src/pages/notice/pay.vue
index 06e974e..1f727aa 100644
--- a/src/pages/notice/pay.vue
+++ b/src/pages/notice/pay.vue
@@ -7,8 +7,8 @@
}
-
-
+
+
@@ -18,6 +18,28 @@
+
+
+
+
+
+
+ 完成
+
+
+
+
+
+
+
+
+
+
+ 完成
+
+
+
+
@@ -34,7 +56,7 @@
// 预约茶室 - 查看订单
handleRoomSeeOrder: () => {
uni.navigateTo({
- url: '/bundle/reserve-room/order'
+ url: '/bundle/tea-room/order'
})
},
@@ -43,6 +65,20 @@
uni.switchTab({
url: '/pages/index/index'
})
+ },
+
+ // 购买会员 - 完成
+ handleVipDone: () => {
+ uni.switchTab({
+ url: '/pages/index/index'
+ })
+ },
+
+ // 我的钱包-充值
+ handleRechargeDone: () => {
+ uni.switchTab({
+ url: '/pages/index/index'
+ })
}
}
diff --git a/src/pages/notice/reserve.vue b/src/pages/notice/reserve.vue
index e6a78e0..6b7d963 100644
--- a/src/pages/notice/reserve.vue
+++ b/src/pages/notice/reserve.vue
@@ -34,7 +34,7 @@
// 预约茶室 - 查看订单
handleRoomSeeOrder: () => {
uni.navigateTo({
- url: '/bundle/reserve-room/order'
+ url: '/bundle/tea-room/order'
})
},
diff --git a/src/pages/reserve/reserve.vue b/src/pages/reserve/reserve.vue
index dca75ec..1bc04aa 100644
--- a/src/pages/reserve/reserve.vue
+++ b/src/pages/reserve/reserve.vue
@@ -134,7 +134,7 @@
// 茶室预约-跳转到对应的订单页
handleToReserveRoomOrder: () => {
uni.navigateTo({
- url: `/bundle/order/reserve-room/order-detail?orderStatus=${ReserveCategoryOrderStatus.Consuming}`
+ url: `/bundle/order/tea-room/order-detail?orderStatus=${ReserveCategoryOrderStatus.Consuming}`
})
},
diff --git a/src/utils/order.ts b/src/utils/order.ts
index 33c5c10..b13c828 100644
--- a/src/utils/order.ts
+++ b/src/utils/order.ts
@@ -154,3 +154,34 @@ export const ReserveCategoryOrderStatusText: Record = {
+ [TeaRoomOrderStatus.Pending]: '待付款',
+ [TeaRoomOrderStatus.Reserved]: '预约单',
+ [TeaRoomOrderStatus.Finished]: '已完结'
+}
+/** 结束 **/
+
+/** 茶艺师订单 **/
+export enum TeaSpecialistOrderStatus {
+ Pending = 'pending', // 待付款
+ Reserved = 'reserved', // 预约单
+ Confirm = 'confirm', // 待确认
+ Finished = 'finished' // 已完结
+}
+
+export const TeaSpecialistOrderStatusText: Record = {
+ [TeaSpecialistOrderStatus.Pending]: '待付款',
+ [TeaSpecialistOrderStatus.Reserved]: '预约单',
+ [TeaSpecialistOrderStatus.Confirm]: '待确认',
+ [TeaSpecialistOrderStatus.Finished]: '已完结'
+}
+/** 结束 **/
diff --git a/src/utils/pay.ts b/src/utils/pay.ts
new file mode 100644
index 0000000..8e5f280
--- /dev/null
+++ b/src/utils/pay.ts
@@ -0,0 +1,49 @@
+interface PayMethod {
+ id: number
+ name: string
+ icon: string
+ balance: number
+ value: number,
+ type: string
+}
+
+// 支付方式分类
+export enum PayCategory {
+ PlatformBalance = 'PlatformBalance', // 平台余额
+ StoreBalance = 'StoreBalance', // 门店余额
+ WeChatPay = 'WeChatPay', // 微信支付
+}
+
+export enum PayValue {
+ PlatformBalance = 1, // 平台余额
+ StoreBalance = 2, // 门店余额
+ WeChatPay = 3, // 微信支付
+}
+
+// 支付方式列表
+export const PayList: PayMethod[] = [
+ {
+ id: 1,
+ name: '平台余额',
+ icon: 'icon/icon_platform_balance.png',
+ balance: 0,
+ value: PayValue.PlatformBalance,
+ type: PayCategory.PlatformBalance
+ },
+ {
+ id: 2,
+ name: '门店余额',
+ icon: 'icon/icon_store_balance.png',
+ balance: 0,
+ value: PayValue.StoreBalance,
+ type: PayCategory.StoreBalance
+ },
+ {
+ id: 3,
+ name: '微信支付',
+ icon: 'icon/icon_weichat.png',
+ balance: 0,
+ value: PayValue.WeChatPay,
+ type: PayCategory.WeChatPay
+ }
+]
\ No newline at end of file