zyejMAll-mobile/pages/commission/components/commission-menu.vue

148 lines
3.4 KiB
Vue
Raw Normal View History

2024-08-07 10:31:42 +08:00
<!-- 分销商菜单栏 -->
<template>
2024-08-07 21:40:27 +08:00
<view class="menu-box ss-flex-col">
<view class="header-box">
<image class="header-bg" :src="sheep.$url.static('/static/img/shop/commission/title1.png')" />
<view class="ss-flex header-title">
<view class="title">功能专区</view>
<text class="cicon-forward"></text>
</view>
</view>
<view class="menu-list ss-flex ss-flex-wrap">
<view
v-for="(item, index) in state.menuList"
:key="index"
class="item-box ss-flex-col ss-col-center"
@tap="sheep.$router.go(item.path)"
>
<image
class="menu-icon ss-m-b-10"
:src="sheep.$url.static(item.img)"
mode="aspectFill"
></image>
<view>{{ item.title }}</view>
</view>
</view>
</view>
2024-08-07 10:31:42 +08:00
</template>
<script setup>
2024-08-07 21:40:27 +08:00
import sheep from '@/sheep';
import { reactive } from 'vue';
2024-08-07 10:31:42 +08:00
2024-08-07 21:40:27 +08:00
const state = reactive({
menuList: [
{
img: '/static/img/shop/commission/commission_icon1.png',
title: '我的团队',
path: '/pages/commission/team',
},
{
img: '/static/img/shop/commission/commission_icon2.png',
title: '佣金明细',
path: '/pages/commission/wallet',
},
{
img: '/static/img/shop/commission/commission_icon3.png',
title: '分销订单',
path: '/pages/commission/order',
},
{
img: '/static/img/shop/commission/commission_icon4.png',
title: '推广商品',
path: '/pages/commission/goods',
},
// {
// img: '/static/img/shop/commission/commission_icon5.png',
// title: '我的资料',
// path: '/pages/commission/apply',
// isAgentFrom: true,
// },
// todo @芋艿:邀请海报需要登录后的个人数据
{
img: '/static/img/shop/commission/commission_icon7.png',
title: '邀请海报',
path: 'action:showShareModal',
},
2024-08-07 10:31:42 +08:00
// TODO @芋艿:缺少 icon
{
2024-08-07 21:40:27 +08:00
// img: '/static/img/shop/commission/commission_icon7.png',
title: '推广排行',
path: '/pages/commission/promoter',
},
2024-08-07 10:31:42 +08:00
{
2024-08-07 21:40:27 +08:00
// img: '/static/img/shop/commission/commission_icon7.png',
title: '佣金排行',
path: '/pages/commission/commission-ranking',
},
],
});
2024-08-07 10:31:42 +08:00
</script>
<style lang="scss" scoped>
2024-08-07 21:40:27 +08:00
.menu-box {
margin: 0 auto;
width: 690rpx;
margin-bottom: 20rpx;
margin-top: 20rpx;
border-radius: 12rpx;
z-index: 3;
position: relative;
}
2024-08-07 10:31:42 +08:00
2024-08-07 21:40:27 +08:00
.header-box {
width: 690rpx;
height: 76rpx;
position: relative;
2024-08-07 10:31:42 +08:00
2024-08-07 21:40:27 +08:00
.header-bg {
width: 690rpx;
height: 76rpx;
}
2024-08-07 10:31:42 +08:00
2024-08-07 21:40:27 +08:00
.header-title {
position: absolute;
left: 20rpx;
top: 24rpx;
}
2024-08-07 10:31:42 +08:00
2024-08-07 21:40:27 +08:00
.title {
font-size: 28rpx;
font-weight: 500;
color: #ffffff;
line-height: 30rpx;
}
2024-08-07 10:31:42 +08:00
2024-08-07 21:40:27 +08:00
.cicon-forward {
font-size: 30rpx;
font-weight: 400;
color: #ffffff;
line-height: 30rpx;
}
}
2024-08-07 10:31:42 +08:00
2024-08-07 21:40:27 +08:00
.menu-list {
padding: 50rpx 0 10rpx 0;
background: #fdfae9;
border-radius: 0 0 12rpx 12rpx;
}
2024-08-07 10:31:42 +08:00
2024-08-07 21:40:27 +08:00
.item-box {
width: 25%;
margin-bottom: 40rpx;
}
2024-08-07 10:31:42 +08:00
2024-08-07 21:40:27 +08:00
.menu-icon {
width: 68rpx;
height: 68rpx;
background: #ffffff;
border-radius: 50%;
}
2024-08-07 10:31:42 +08:00
2024-08-07 21:40:27 +08:00
.menu-title {
font-size: 26rpx;
font-weight: 500;
color: #ffffff;
}
</style>