71 lines
2.5 KiB
JavaScript
71 lines
2.5 KiB
JavaScript
"use strict";
|
|
const common_vendor = require("../../../../common/vendor.js");
|
|
const modules_mall_sheep_index = require("../../sheep/index.js");
|
|
const _sfc_main = {
|
|
__name: "commission-menu",
|
|
setup(__props) {
|
|
const state = common_vendor.reactive({
|
|
menuList: [
|
|
{
|
|
img: "/static/img/shop/commission/commission_icon1.png",
|
|
title: "我的团队",
|
|
path: "/modules/mall/commission/team"
|
|
},
|
|
{
|
|
img: "/static/img/shop/commission/commission_icon2.png",
|
|
title: "佣金明细",
|
|
path: "/modules/mall/commission/wallet"
|
|
},
|
|
{
|
|
img: "/static/img/shop/commission/commission_icon3.png",
|
|
title: "分销订单",
|
|
path: "/modules/mall/commission/order"
|
|
},
|
|
{
|
|
img: "/static/img/shop/commission/commission_icon4.png",
|
|
title: "推广商品",
|
|
path: "/modules/mall/commission/goods"
|
|
},
|
|
// {
|
|
// img: '/static/img/shop/commission/commission_icon5.png',
|
|
// title: '我的资料',
|
|
// path: '/modules/mall/commission/apply',
|
|
// isAgentFrom: true,
|
|
// },
|
|
// todo @芋艿:邀请海报需要登录后的个人数据
|
|
{
|
|
img: "/static/img/shop/commission/commission_icon7.png",
|
|
title: "邀请海报",
|
|
path: "action:showShareModal"
|
|
},
|
|
// TODO @芋艿:缺少 icon
|
|
{
|
|
// img: '/static/img/shop/commission/commission_icon7.png',
|
|
title: "推广排行",
|
|
path: "/modules/mall/commission/promoter"
|
|
},
|
|
{
|
|
// img: '/static/img/shop/commission/commission_icon7.png',
|
|
title: "佣金排行",
|
|
path: "/modules/mall/commission/commission-ranking"
|
|
}
|
|
]
|
|
});
|
|
return (_ctx, _cache) => {
|
|
return {
|
|
a: common_vendor.unref(modules_mall_sheep_index.sheep).$url.static("/static/img/shop/commission/title1.png"),
|
|
b: common_vendor.f(state.menuList, (item, index, i0) => {
|
|
return {
|
|
a: common_vendor.unref(modules_mall_sheep_index.sheep).$url.static(item.img),
|
|
b: common_vendor.t(item.title),
|
|
c: index,
|
|
d: common_vendor.o(($event) => common_vendor.unref(modules_mall_sheep_index.sheep).$router.go(item.path), index)
|
|
};
|
|
})
|
|
};
|
|
};
|
|
}
|
|
};
|
|
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-c9db6f9c"]]);
|
|
wx.createComponent(Component);
|