添加茶艺师内容管理
This commit is contained in:
@ -262,21 +262,20 @@
|
||||
|
||||
<!-- 操作按钮 -->
|
||||
<view>
|
||||
<!-- 邀约状态下的按钮 -->
|
||||
<view v-if="isReserve" class="mx-60rpx rounded-8rpx h-90rpx leading-90rpx text-center mt-52rpx bg-#4C9F44 text-#fff text-30rpx leading-42rpx font-bold"
|
||||
@click="Detail.handleReserve">
|
||||
立即邀约
|
||||
<view v-if="!isReserve" class="text-32rpx leading-44rpx flex items-center justify-center leading-90rpx text-center text-[#303133] bg-white mt-24rpx pt-36rpx pb-28rpx">
|
||||
<view class="w-630rpx h-90rpx bg-[#4C9F44] rounded-8rpx text-#fff" @click="Detail.handleReserveTeaspecialist">立即邀约</view>
|
||||
</view>
|
||||
|
||||
<view v-if="!isReserve" class="text-32rpx leading-44rpx flex items-center justify-center leading-90rpx text-center text-[#303133] bg-white mt-24rpx pt-36rpx pb-28rpx">
|
||||
<view class="w-330rpx h-90rpx bg-[#F0F6EF] rounded-8rpx mr-30rpx text-#4C9F44 flex items-center justify-center" @click="showTipTeaSpecialistPopup = true">
|
||||
|
||||
<!-- <view v-if="!isReserve" class="text-32rpx leading-44rpx flex items-center justify-center leading-90rpx text-center text-[#303133] bg-white mt-24rpx pt-36rpx pb-28rpx"> -->
|
||||
<!-- <view class="w-330rpx h-90rpx bg-[#F0F6EF] rounded-8rpx mr-30rpx text-#4C9F44 flex items-center justify-center" @click="showTipTeaSpecialistPopup = true">
|
||||
<view class="flex items-center mr-16rpx">
|
||||
<wd-img :src="`${OSS}icon/icon_flower.png`" width="40rpx" height="40rpx"></wd-img>
|
||||
</view>
|
||||
打赏
|
||||
</view>
|
||||
<view class="w-330rpx h-90rpx bg-[#4C9F44] rounded-8rpx text-#fff" @click="Detail.handleReserveTeaspecialist">立即预定</view>
|
||||
</view>
|
||||
</view> -->
|
||||
<!-- <view class="w-630rpx h-90rpx bg-[#4C9F44] rounded-8rpx text-#fff" @click="Detail.handleReserveTeaspecialist">立即预定</view> -->
|
||||
<!-- </view> -->
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@ -344,7 +343,7 @@
|
||||
// 评分
|
||||
const rate = ref<number>(1)
|
||||
|
||||
// 打赏主茶艺师
|
||||
// 打赏茶艺师
|
||||
const showTipTeaSpecialistPopup = ref<boolean>(false)
|
||||
const tipList = ref<Array<ITeaSpecialistRewardAmountsResult>>([])
|
||||
|
||||
@ -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}`)
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user