|
@@ -35,7 +35,7 @@ const menus = ref([
|
|
|
{ title: '优惠券包', icon: coupon },
|
|
|
{ title: '我的订单', icon: order },
|
|
|
{ title: '专属客服', icon: agent },
|
|
|
- { title: '个人设置', icon: setting },
|
|
|
+ { title: '个人设置', icon: setting, path: '/pages/mine/setting/index' },
|
|
|
])
|
|
|
const pieces = ref([
|
|
|
{
|
|
@@ -86,6 +86,9 @@ const handleToAuthentication = () => {
|
|
|
const handleToHomepage = () => {
|
|
|
uni.navigateTo({ url: '/pages/mine/homepage/index' })
|
|
|
}
|
|
|
+const handleMenuClick = (path) => {
|
|
|
+ path && uni.navigateTo({ url: path })
|
|
|
+}
|
|
|
onMounted(async () => {
|
|
|
// await run()
|
|
|
// console.log(data.value)
|
|
@@ -256,8 +259,8 @@ onPageScroll(({ scrollTop }: { scrollTop: number }) => {
|
|
|
</template>
|
|
|
<view class="bg-neutral-100 relative bottom-4 rounded-t-2xl py-1 px-3.5">
|
|
|
<div class="flex justify-around my-6">
|
|
|
- <template v-for="({ title, icon }, i) in menus" :key="i">
|
|
|
- <div class="flex flex-col items-center">
|
|
|
+ <template v-for="({ title, icon, path }, i) in menus" :key="i">
|
|
|
+ <div class="flex flex-col items-center" @click="handleMenuClick(path)">
|
|
|
<div class="relative flex-col justify-start items-start inline-flex">
|
|
|
<wd-img :src="icon" width="24" height="24" custom-class="vertical-bottom"></wd-img>
|
|
|
</div>
|