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" + } +} + + + + + + + + + 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" + } +} + + + + + \ 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" + } +} + + + + + + + + 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