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

229 lines
5.9 KiB
Vue
Raw Normal View History

2024-08-07 10:31:42 +08:00
<!-- 分销商菜单栏 -->
<template>
2024-10-16 18:09:51 +08:00
<view class="ss-flex-col new-menu">
<view class="new-menu-list">
<view class="new-menu-item" v-for="(item, index) in state.menuListnew" :key="index"
@tap="sheep.$router.go(item.path)">
<view class="l">
<image class="menu-icon " :src="sheep.$url.static(item.img)" mode="aspectFill"></image>
<view>{{ item.title }}</view>
</view>
2024-11-04 11:13:41 +08:00
<!-- <view class="r">
2024-10-16 18:09:51 +08:00
<image class="menu-icon-you" src="@/static/images/dayu.png" mode="aspectFill"></image>
2024-11-04 11:13:41 +08:00
</view> -->
2024-10-16 18:09:51 +08:00
</view>
</view>
</view>
<!-- <view class="menu-box ss-flex-col">
<view class="header-box">
<image class="header-bg"
src="https://zysc.fjptzykj.com:3000/shangcheng/eb9244a1f0662a699869d47287a477bd16147030ff25c9573395036192b86d91.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-10-16 18:09:51 +08:00
import sheep from '@/sheep';
import {
reactive
} from 'vue';
const state = reactive({
menuListnew: [{
2024-11-04 11:13:41 +08:00
img: 'https://zysc.fjptzykj.com:3000/shangcheng/38fcbd2619cac8f4134efdf6ddf98a098d7ec4920be09c399d3e05b26699cfc3.png',
2024-10-16 18:09:51 +08:00
title: '推广名片',
path: 'action:showShareModal',
},
{
2024-11-04 11:13:41 +08:00
img: 'https://zysc.fjptzykj.com:3000/shangcheng/d6fd382e25839128b4231616b5414b09964f998faaed300fd71b093d0545b4c9.png',
2024-10-16 18:09:51 +08:00
title: '佣金明细',
path: '/pages/commission/wallet',
},
{
2024-11-04 11:13:41 +08:00
img: 'https://zysc.fjptzykj.com:3000/shangcheng/fb1773e483bdf5889657ad0c6113327051a337514d5de0bce3d14a744d1f2b0c.png',
2024-10-16 18:09:51 +08:00
title: '分销订单',
path: '/pages/commission/order',
},
{
2024-11-04 11:13:41 +08:00
img: 'https://zysc.fjptzykj.com:3000/shangcheng/7553f1ef8dd48b2fce3fc3a56eb40fe04a6099fe7744f26b5e2481050ab940e7.png',
2024-10-16 18:09:51 +08:00
title: '推广商品',
path: '/pages/commission/goods',
},
{
2024-11-04 11:13:41 +08:00
img: 'https://zysc.fjptzykj.com:3000/shangcheng/59061d8cd61d6488f5ec24eb4e04b09308862c54cbde8e5e38d58cb38a0098d9.png',
2024-10-16 18:09:51 +08:00
title: '推广排行',
path: '/pages/commission/promoter',
},
{
2024-11-04 11:13:41 +08:00
img: 'https://zysc.fjptzykj.com:3000/shangcheng/4207ccd490ee40e80c21a6bdf6df62cc89b20cf36cf26fed1559704b7e61b131.png',
2024-10-16 18:09:51 +08:00
title: '佣金排行',
path: '/pages/commission/commission-ranking',
},
],
menuList: [{
img: 'https://zysc.fjptzykj.com:3000/shangcheng/ec41e4f5b45c087232aab8d088019a1e9d781b9bde0f54ddbb18e90230b83255.png',
title: '我的团队',
path: '/pages/commission/team',
},
{
img: 'https://zysc.fjptzykj.com:3000/shangcheng/228c9cd847514f99ca1181b4d413c24e482ab46459a557e3b934facb32ab546d.png',
title: '佣金明细',
path: '/pages/commission/wallet',
},
{
img: 'https://zysc.fjptzykj.com:3000/shangcheng/bb763f93be24f6d5c8c2948e512b95597d748f576277cc2d91f452fb3741e5a3.png',
title: '分销订单',
path: '/pages/commission/order',
},
{
img: 'https://zysc.fjptzykj.com:3000/shangcheng/326f6fe148cd6c8328297731bd63674a3a86340f937dfd1a376e435e34b5073e.png',
title: '推广商品',
path: '/pages/commission/goods',
},
// {
// img: 'https://zysc.fjptzykj.com:3000/shangcheng/fe729044c3c0874d93435151bb204dede3d1dfbc0e2d03d09e2f76534e7cb8ba.png',
// title: '我的资料',
// path: '/pages/commission/apply',
// isAgentFrom: true,
// },
// todo @芋艿:邀请海报需要登录后的个人数据
{
img: 'https://zysc.fjptzykj.com:3000/shangcheng/f238f60d6e45080cdbbd294c344d3e2fc3a30c34ccb9345e931b0c5aa9e90645.png',
title: '邀请海报',
path: 'action:showShareModal',
},
// TODO @芋艿:缺少 icon
{
img: 'https://zysc.fjptzykj.com:3000/shangcheng/d6bc7dbec1333e554a4781cbfae023e590a555dfca12784615023ae43bd2bf46.png',
title: '推广排行',
path: '/pages/commission/promoter',
},
{
img: 'https://zysc.fjptzykj.com:3000/shangcheng/4332d64835bb4aedc05636950f7cd7dcbab085f0f72f42eee4d87799947a7108.png',
title: '佣金排行',
path: '/pages/commission/commission-ranking',
},
],
});
2024-08-07 10:31:42 +08:00
</script>
<style lang="scss" scoped>
2024-10-16 18:09:51 +08:00
.new-menu {
2024-11-04 11:13:41 +08:00
margin:0 15px;
2024-10-16 18:09:51 +08:00
background: white;
2024-11-04 11:13:41 +08:00
margin-top:10px;
border-radius: 18px;
padding:25px 0;
padding-bottom:0;
2024-10-16 18:09:51 +08:00
.new-menu-list {
2024-11-04 11:13:41 +08:00
// display: flex;
// flex-wrap: wrap;
// align-items: center;
// padding: 0 20px;
2024-10-16 18:09:51 +08:00
.new-menu-item {
2024-11-04 11:13:41 +08:00
float: left;
width: 50%;
// margin-bottom:19px;
display: flex;
justify-content: center;
2024-10-16 18:09:51 +08:00
.l {
display: flex;
flex-wrap: wrap;
align-items: center;
2024-11-04 11:13:41 +08:00
margin-bottom: 25px;
// width: 50%;
2024-10-16 18:09:51 +08:00
.menu-icon{
margin-right: 10px;
}
}
.r {
width: 4%;
display: flex;
align-items: center;
}
}
}
}
.menu-box {
margin: 0 auto;
width: 690rpx;
margin-bottom: 20rpx;
margin-top: 20rpx;
border-radius: 12rpx;
z-index: 3;
position: relative;
}
.header-box {
width: 690rpx;
height: 76rpx;
position: relative;
.header-bg {
width: 690rpx;
height: 76rpx;
}
.header-title {
position: absolute;
left: 20rpx;
top: 24rpx;
}
.title {
font-size: 28rpx;
font-weight: 500;
color: #ffffff;
line-height: 30rpx;
}
.cicon-forward {
font-size: 30rpx;
font-weight: 400;
color: #ffffff;
line-height: 30rpx;
}
}
.menu-list {
padding: 50rpx 0 10rpx 0;
background: #fdfae9;
border-radius: 0 0 12rpx 12rpx;
}
.item-box {
width: 25%;
margin-bottom: 40rpx;
}
.menu-icon {
2024-11-04 11:13:41 +08:00
width: 35px;
height: 35px;
2024-10-16 18:09:51 +08:00
background: #ffffff;
border-radius: 50%;
}
.menu-icon-you{
width: 48rpx;
height: 48rpx;
}
.menu-title {
font-size: 26rpx;
font-weight: 500;
color: #ffffff;
}
</style>