226 lines
5.8 KiB
Vue
226 lines
5.8 KiB
Vue
<!-- 分销:商菜单栏 -->
|
||
<template>
|
||
<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>
|
||
<view class="r">
|
||
<image class="menu-icon-you" src="@/static/images/dayu.png" mode="aspectFill"></image>
|
||
</view>
|
||
</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> -->
|
||
</template>
|
||
|
||
<script setup>
|
||
import sheep from '@/sheep';
|
||
import {
|
||
reactive
|
||
} from 'vue';
|
||
|
||
const state = reactive({
|
||
menuListnew: [{
|
||
img: 'https://zysc.fjptzykj.com:3000/shangcheng/82255ab9cb8fa91b261a1976c81a7c761c34a8aa3d3fc12864b3b83158d22267.png',
|
||
title: '推广名片',
|
||
path: 'action:showShareModal',
|
||
},
|
||
{
|
||
img: 'https://zysc.fjptzykj.com:3000/shangcheng/3aca872c5c25923b883b98364ca7525bcb7d176cf89769bab429fed090c75adb.png',
|
||
title: '佣金明细',
|
||
path: '/pages/commission/wallet',
|
||
},
|
||
{
|
||
img: 'https://zysc.fjptzykj.com:3000/shangcheng/512aaaf15aeedc1fd5ad6dc14161d83a4c4ecee33ae2428986c8ecbf0c420fa7.png',
|
||
title: '分销订单',
|
||
path: '/pages/commission/order',
|
||
},
|
||
{
|
||
img: 'https://zysc.fjptzykj.com:3000/shangcheng/6b61f1357f2f5a4a211c0bb4bac3d85c6e85958e0bfd04d0045d6c83e98085b7.png',
|
||
title: '推广商品',
|
||
path: '/pages/commission/goods',
|
||
},
|
||
{
|
||
img: 'https://zysc.fjptzykj.com:3000/shangcheng/e488e0f84bd4da1edfe75ccfbcc16acf8c60073409f03406bb350573b43769a8.png',
|
||
title: '推广排行',
|
||
path: '/pages/commission/promoter',
|
||
},
|
||
{
|
||
img: 'https://zysc.fjptzykj.com:3000/shangcheng/28d6bf4595172ed0a1cdc693483eef018f7f1242be35106bb12ce3ca21940753.png',
|
||
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',
|
||
},
|
||
],
|
||
});
|
||
</script>
|
||
|
||
<style lang="scss" scoped>
|
||
.new-menu {
|
||
width: 100%;
|
||
background: white;
|
||
|
||
.new-menu-list {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
align-items: center;
|
||
padding: 0 20px;
|
||
|
||
.new-menu-item {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
width: 100%;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
margin-bottom:19px;
|
||
.l {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
align-items: center;
|
||
width: 50%;
|
||
.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 {
|
||
width: 45rpx;
|
||
height: 45rpx;
|
||
background: #ffffff;
|
||
border-radius: 50%;
|
||
}
|
||
.menu-icon-you{
|
||
width: 48rpx;
|
||
height: 48rpx;
|
||
}
|
||
|
||
.menu-title {
|
||
font-size: 26rpx;
|
||
font-weight: 500;
|
||
color: #ffffff;
|
||
}
|
||
</style> |