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

148 lines
3.9 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">
2024-09-30 19:00:13 +08:00
<image class="header-bg" src="https://zysc.fjptzykj.com:3000/shangcheng/eb9244a1f0662a699869d47287a477bd16147030ff25c9573395036192b86d91.png" />
2024-08-07 21:40:27 +08:00
<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: [
{
2024-09-30 19:00:13 +08:00
img: 'https://zysc.fjptzykj.com:3000/shangcheng/ec41e4f5b45c087232aab8d088019a1e9d781b9bde0f54ddbb18e90230b83255.png',
2024-08-07 21:40:27 +08:00
title: '我的团队',
path: '/pages/commission/team',
},
{
2024-10-14 19:12:22 +08:00
img: 'https://zysc.fjptzykj.com:3000/shangcheng/228c9cd847514f99ca1181b4d413c24e482ab46459a557e3b934facb32ab546d.png',
2024-08-07 21:40:27 +08:00
title: '佣金明细',
path: '/pages/commission/wallet',
},
{
2024-09-30 19:00:13 +08:00
img: 'https://zysc.fjptzykj.com:3000/shangcheng/bb763f93be24f6d5c8c2948e512b95597d748f576277cc2d91f452fb3741e5a3.png',
2024-08-07 21:40:27 +08:00
title: '分销订单',
path: '/pages/commission/order',
},
{
2024-09-30 19:00:13 +08:00
img: 'https://zysc.fjptzykj.com:3000/shangcheng/326f6fe148cd6c8328297731bd63674a3a86340f937dfd1a376e435e34b5073e.png',
2024-08-07 21:40:27 +08:00
title: '推广商品',
path: '/pages/commission/goods',
},
// {
2024-09-30 19:00:13 +08:00
// img: 'https://zysc.fjptzykj.com:3000/shangcheng/fe729044c3c0874d93435151bb204dede3d1dfbc0e2d03d09e2f76534e7cb8ba.png',
2024-08-07 21:40:27 +08:00
// title: '我的资料',
// path: '/pages/commission/apply',
// isAgentFrom: true,
// },
// todo @芋艿:邀请海报需要登录后的个人数据
{
2024-10-14 19:12:22 +08:00
img: 'https://zysc.fjptzykj.com:3000/shangcheng/f238f60d6e45080cdbbd294c344d3e2fc3a30c34ccb9345e931b0c5aa9e90645.png',
2024-08-07 21:40:27 +08:00
title: '邀请海报',
path: 'action:showShareModal',
},
2024-08-07 10:31:42 +08:00
// TODO @芋艿:缺少 icon
{
2024-10-14 19:12:22 +08:00
img: 'https://zysc.fjptzykj.com:3000/shangcheng/d6bc7dbec1333e554a4781cbfae023e590a555dfca12784615023ae43bd2bf46.png',
2024-08-07 21:40:27 +08:00
title: '推广排行',
path: '/pages/commission/promoter',
},
2024-08-07 10:31:42 +08:00
{
2024-10-14 19:12:22 +08:00
img: 'https://zysc.fjptzykj.com:3000/shangcheng/4332d64835bb4aedc05636950f7cd7dcbab085f0f72f42eee4d87799947a7108.png',
2024-08-07 21:40:27 +08:00
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>