diff --git a/src/bundle_b/pages/tea-specialist/address/add.vue b/src/bundle_b/pages/tea-specialist/address/add.vue
new file mode 100644
index 0000000..2ddb828
--- /dev/null
+++ b/src/bundle_b/pages/tea-specialist/address/add.vue
@@ -0,0 +1,281 @@
+
+{
+ "layout": "default",
+ "style": {
+ "navigationStyle": "custom"
+ }
+}
+
+
+
+
+
+
+
+
+
+
+
+
+ 联系人
+
+
+
+
+
+
+
+
+
+ 电话
+
+
+
+
+
+
+
+
+
+ 省市区
+
+
+
+
+
+
+
+
+
+ 地址
+
+
+
+
+
+
+
+
+
+
+ 设为默认地址
+
+
+
+
+
+
+
+ 确定
+
+
+
+ 删除地址
+ 确定
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/bundle_b/pages/tea-specialist/address/list.vue b/src/bundle_b/pages/tea-specialist/address/list.vue
new file mode 100644
index 0000000..887d9a5
--- /dev/null
+++ b/src/bundle_b/pages/tea-specialist/address/list.vue
@@ -0,0 +1,124 @@
+
+{
+ "layout": "default",
+ "style": {
+ "navigationStyle": "custom"
+ }
+}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 未填写收货地址
+
+
+
+
+
+
+
+
+ 默认
+
+
+ {{ item.contact}}
+ {{ item.telephone }}
+
+
+ {{ item.address }}
+
+
+
+
+
+
+
+
+ 新增地址
+
+
+
+
+
+
+
diff --git a/src/bundle_b/pages/tea-specialist/detail.vue b/src/bundle_b/pages/tea-specialist/detail.vue
index c4444dd..a172673 100644
--- a/src/bundle_b/pages/tea-specialist/detail.vue
+++ b/src/bundle_b/pages/tea-specialist/detail.vue
@@ -262,21 +262,20 @@
-
-
- 立即邀约
+
+ 立即邀约
-
-
+
+
+
+
+
@@ -344,7 +343,7 @@
// 评分
const rate = ref(1)
- // 打赏主茶艺师
+ // 打赏茶艺师
const showTipTeaSpecialistPopup = ref(false)
const tipList = ref>([])
@@ -390,7 +389,9 @@
})
const Detail = {
- // 处理收藏
+ /**
+ * TODO 处理收藏-暂时不要
+ */
handleCollect: async () => {
let status = info.collect == 0 ? 1 : 0
await collectTeaSpecialist({
@@ -401,7 +402,9 @@
info.collect = info.collect == 0 ? 1 : 0
},
- // 处理分享
+ /**
+ * TODO 处理分享-暂时不要
+ */
handleShare: () => {
const url = window.location.href
const { name, real, image} = info
@@ -413,23 +416,27 @@
}
},
- // 立即邀约
- handleReserve: () => {
- message.alert({
- title: '邀约茶艺师',
- msg: `尊敬的客户我们即将向[${info.name}]发出服务邀约,请过十分钟后刷新页面,谢谢您的支持!`,
- confirmButtonText: '好的',
- confirmButtonProps: {
- customClass: '!bg-[#4C9F44] !text-[#fff] !text-32rpx !leading-44rpx !rounded-8rpx',
- }
- }).then(async res => {
- await teaSpecialistInvite({
- id: info.id,
- })
- })
- },
+ /**
+ * 原来的立即邀约
+ */
+ // handleReserve: () => {
+ // message.alert({
+ // title: '邀约茶艺师',
+ // msg: `尊敬的客户我们即将向[${info.name}]发出服务邀约,请过十分钟后刷新页面,谢谢您的支持!`,
+ // confirmButtonText: '好的',
+ // confirmButtonProps: {
+ // customClass: '!bg-[#4C9F44] !text-[#fff] !text-32rpx !leading-44rpx !rounded-8rpx',
+ // }
+ // }).then(async res => {
+ // await teaSpecialistInvite({
+ // id: info.id,
+ // })
+ // })
+ // },
- // 打赏茶艺师
+ /**
+ * TODO 打赏茶艺师-暂时不要
+ */
handleTipTeaSpecialist: (item: ITeaSpecialistRewardAmountsResult) => {
if (!userInfo.value.token) {
toast.info('请先登录')
@@ -445,7 +452,9 @@
}
},
- // 打赏茶艺师其它金额
+ /**
+ * TODO 打赏茶艺师其它金额-暂时不要
+ */
handleTipTeaSpecialistOtherMoney: () => {
if (Number(tipMoney.value) < 1 || Number(tipMoney.value) > 50) {
toast.info('请输入1~50元的金额')
@@ -455,9 +464,12 @@
router.navigateTo(`/pages/cashier/cashier?from=tip&teaSpecialistId=${id.value}&money=${tipMoney.value}`)
},
- // 预约茶艺师
+ /**
+ * 立即邀约
+ */
handleReserveTeaspecialist: () => {
- router.navigateTo(`/pages/reserve/tea-room?id=${id.value}`)
+ // id.value - 茶艺师的ID
+ router.navigateTo(`/bundle_b/pages/tea-specialist/reserve?id=${id.value}`)
},
}
diff --git a/src/bundle_b/pages/tea-specialist/reserve.vue b/src/bundle_b/pages/tea-specialist/reserve.vue
new file mode 100644
index 0000000..15f89a4
--- /dev/null
+++ b/src/bundle_b/pages/tea-specialist/reserve.vue
@@ -0,0 +1,747 @@
+
+{
+ "layout": "tabbar",
+ "style": {
+ "navigationStyle": "custom"
+ }
+}
+
+
+
+
+
+
+
+
+ 费用明细
+
+
+
+
+ 服务费
+ ¥{{ bill.service.total }}
+
+
+
+ 服务费(¥{{ bill.service.unitPrice }}元/小时)
+ x{{ bill.service.num }}
+
+
+
+
+
+
+ 车马费
+ ¥{{ bill.travel.total }}
+
+
+
+ 车马费(¥{{ bill.travel.unitPrice }}元/小时)
+ {{ bill.travel.num }}公里
+
+
+
+
+
+
+ 茶艺服务
+ ¥{{ bill.teaService.total }}
+
+
+
+ {{ selectedTeaTxt.join('/') }}
+ ¥{{ bill.teaService.total }}
+
+
+
+
+
+ 优惠
+ -¥{{ bill.coupon }}
+
+
+ 优惠券
+ -¥{{ bill.coupon }}
+
+
+
+
+
+
+
+
+ 实付金额
+ ¥{{ bill.total }}
+
+
+
+
+
+
+
+
+
+
+
+ 茶艺服务
+
+
+
+
+ 服务人数
+
+ 服务人数
+
+
+
+
+
+
+
+
+
+ 预定茶叶
+ 支持多选
+
+
+
+
+ {{item.name}}
+ ¥{{item.tea_price}}
+
+
+
+
+
+
+
+ 茶具使用
+
+
+ 茶具需求
+
+
+
+
+ {{item.name}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 已选 {{selectedTea.length}} 项
+
+
+
+
+
+
+ 重置
+ 确定
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ info.name }}
+
+
+
+ 90后茶艺师
+
+
+
+ 已预约 {{ info.reservation_num > 10 ? info.reservation_num + '+' : info.reservation_num }}
+
+
+
+
+
+
+ 服务方式
+
+ 到店服务
+ 上门服务
+
+
+
+
+
+
+ 预定店
+
+ {{ teaHouse.name || '请选择茶馆' }}
+
+
+
+
+
+
+
+
+ 地址
+
+
+
+ {{address.contact}} {{ address.telephone }} {{ address.province }}{{ address.city }}{{ address.district }}{{ address.address }}
+
+
+ 请选择地址
+
+
+
+
+
+
+
+
+
+
+ 预定时间
+
+ {{ sevenDay.minimum_time }}小时起订
+
+
+
+ {{ reserveTime[0] }} {{ reserveTime[1].join(',') }}
+
+
+ 请选择
+
+
+
+
+
+
+
+
+
+
+
+ 茶艺服务
+
+ 茶艺服务
+
+
+
+ {{ servicePeople }}人/{{ selectedTeaTxt.join(',') }}
+
+
+ 请选择
+
+
+
+
+
+
+
+
+
+
+
+
+ 订单备注
+ (选填)
+
+
+
+
+
+
+ 优惠券
+
+ 优惠券
+
+
+
+ {{ selectedCoupon.name }}
+
+
+ 请选择
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 合计:
+
+
+
+
+
+
+
+ 费用明细
+
+
+
+
+ 立即预定
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/bundle_b/pages/tea-specialist/store.vue b/src/bundle_b/pages/tea-specialist/store.vue
new file mode 100644
index 0000000..84eb5f3
--- /dev/null
+++ b/src/bundle_b/pages/tea-specialist/store.vue
@@ -0,0 +1,124 @@
+
+{
+ "layout": "default",
+ "style": {
+ "navigationStyle": "custom"
+ }
+}
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.name }}
+
+ 距您{{item.distance}}km
+
+
+
+ {{ item.address }}
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages.json b/src/pages.json
index fbb4ed0..5e9df6c 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -555,6 +555,38 @@
"style": {
"navigationStyle": "custom"
}
+ },
+ {
+ "path": "pages/tea-specialist/reserve",
+ "type": "page",
+ "layout": "tabbar",
+ "style": {
+ "navigationStyle": "custom"
+ }
+ },
+ {
+ "path": "pages/tea-specialist/store",
+ "type": "page",
+ "layout": "default",
+ "style": {
+ "navigationStyle": "custom"
+ }
+ },
+ {
+ "path": "pages/tea-specialist/address/add",
+ "type": "page",
+ "layout": "default",
+ "style": {
+ "navigationStyle": "custom"
+ }
+ },
+ {
+ "path": "pages/tea-specialist/address/list",
+ "type": "page",
+ "layout": "default",
+ "style": {
+ "navigationStyle": "custom"
+ }
}
]
}
diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue
index 51d9dcb..bb16380 100644
--- a/src/pages/index/index.vue
+++ b/src/pages/index/index.vue
@@ -38,9 +38,9 @@
更多茶艺师点击预约
-
+
-
+
diff --git a/src/pages/login/login.vue b/src/pages/login/login.vue
index d681cc2..c2a0c1a 100644
--- a/src/pages/login/login.vue
+++ b/src/pages/login/login.vue
@@ -31,7 +31,7 @@
立即登录
-
+ 测试-账号登录
@@ -134,17 +134,17 @@
/**
* 测试-账号登录
*/
- // handleMobileLogin: async () => {
- // const userStore = useUserStore()
- // console.log("🚀 ~ userStore:", userStore)
- // const res = await userStore.mobileLogin('15024322520', 1, 2)
- // if (res) {
- // uni.setStorageSync('latitude', '30.74744')
- // uni.setStorageSync('longitude', '120.78483')
- // toast.info('登录成功')
- // router.navigateBack(1, 500)
- // }
- // },
+ handleMobileLogin: async () => {
+ const userStore = useUserStore()
+ console.log("🚀 ~ userStore:", userStore)
+ const res = await userStore.mobileLogin('15005837859', 1, 2)
+ if (res) {
+ uni.setStorageSync('latitude', '30.74744')
+ uni.setStorageSync('longitude', '120.78483')
+ toast.info('登录成功')
+ router.navigateBack(1, 500)
+ }
+ },
/**
* 登录成功跳转页面
diff --git a/src/utils/order.ts b/src/utils/order.ts
index baaf0be..c66b3f0 100644
--- a/src/utils/order.ts
+++ b/src/utils/order.ts
@@ -209,6 +209,7 @@ export const TeaSpecialistOrderStatusValue: Record