添加测试号、生产环境可以查看debug

This commit is contained in:
wangxiaowei
2025-10-05 18:05:58 +08:00
parent bdfa0a90f4
commit 168084029a
11 changed files with 184 additions and 49 deletions

View File

@ -17,7 +17,7 @@
<view class="text-36rpx leading-50rpx text-#303133 mr-38rpx">
预约茶艺师
</view>
<view class="flex items-center line-1" @click="Home.toCity">
<view class="flex items-center line-1" @click="Index.handleToCity">
<view class="">
<wd-icon name="location" size="32rpx"></wd-icon>
</view>
@ -27,7 +27,7 @@
</view>
</template>
</wd-navbar>
<view class="search-box relative">
<view class="search-box relative" @click="Index.handleToSearch">
<wd-search placeholder="茶艺师名称" cancel-txt="搜索" placeholder-left hide-cancel custom-input-class="!h-72rpx">
</wd-search>
<view class="absolute top-1/2 -translate-y-1/2 right-34rpx w-142rpx h-64rpx leading-64rpx text-center rounded-32rpx bg-#4C9F44 text-#fff font-400 text-32rpx">
@ -55,7 +55,7 @@
</view>
<view>
<view class="mt-16rpx relative w-690rpx h-260rpx mx-30rpx">
<view class="mt-16rpx relative w-690rpx h-260rpx mx-30rpx" @click="Index.handleToGroupReserve">
<wd-img width="690rpx" height="260rpx" :src="`${OSS}images/h5/home/home_image2.png`" mode="scaleToFill" />
<view class="h-64rpx absolute bottom-0 right-0 bg-[#4C9F44] text-[#fff] flex items-center px-26rpx rounded">
<text class="mr-8rpx">一键约</text>
@ -77,14 +77,14 @@
class="h-64rpx rounded-12rpx px-24rpx py-12rpx flex items-center justify-center font-400 text-28rpx mr-20rpx"
:class="selectedLevel.includes(item.value) ? 'bg-[#4C9F44] text-[#fff]' : 'bg-[#FFF] text-[#606266]'"
v-for="(item, index) in TeaSpecialistLevels" :key="index"
@click="Home.handleToggleTeaSpecialistLevel(item.value)">
@click="Index.handleToggleTeaSpecialistLevel(item.value)">
{{ item.label }}
</view>
</view>
<mescroll-body @init="mescrollInit" @down="downCallback" @up="Home.upCallback"
<mescroll-body @init="mescrollInit" @down="downCallback" @up="Index.upCallback"
:fixed="true">
<view class="flex items-center bg-white p-20rpx rounded-10rpx mx-30rpx mb-20rpx" v-for="(item, index) in 100" :key="index" @click="Home.handleToReserveTeaSpecialist(item)">
<view class="flex items-center bg-white p-20rpx rounded-10rpx mx-30rpx mb-20rpx" v-for="(item, index) in 100" :key="index" @click="Index.handleToReserveTeaSpecialist(item)">
<view class="mr-28rpx relative">
<wd-img width="200rpx" height="200rpx" :src="`${OSS}images/home/home_image5.png`"></wd-img>
<view class="tea-specialist-time absolute top-6rpx left-0 text-[#fff] font-400 text-18rpx leading-26rpx flex items-center justify-center">
@ -161,14 +161,16 @@
onLoad(() => {
})
const Home = {
toCity: () => {
const Index = {
// 城市
handleToCity: () => {
uni.navigateTo({
url: '/pages/city/city'
})
},
toSearch: () => {
// 搜索
handleToSearch: () => {
uni.navigateTo({
url: '/pages/search/search'
})
@ -224,6 +226,13 @@
// 如果未选择该等级,则添加选择
selectedLevel.value.push(value);
}
},
// 跳转到团体预约页面
handleToGroupReserve: () => {
uni.navigateTo({
url: '/pages/reservve/group-tea-specialist'
})
}
}
</script>