|
|
|
@ -164,9 +164,9 @@ |
|
|
|
|
<span>常用功能</span> |
|
|
|
|
</div> |
|
|
|
|
<a-row :gutter="32"> |
|
|
|
|
<a-col class :span="6" v-for="(item, index) in functions" :key="index"> |
|
|
|
|
<template v-for="(item, index) in functions"> |
|
|
|
|
<a-col class :span="6" v-if="(item.name !== '发布商品' || storeVersion !== 1) && (!item.moduleKey || $module(item.moduleKey))" :key="index"> |
|
|
|
|
<div |
|
|
|
|
v-if="!item.moduleKey || $module(item.moduleKey)" |
|
|
|
|
class="item" |
|
|
|
|
@click="handleLink(item.link)" |
|
|
|
|
> |
|
|
|
@ -181,6 +181,7 @@ |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</a-col> |
|
|
|
|
</template> |
|
|
|
|
</a-row> |
|
|
|
|
</a-card> |
|
|
|
|
|
|
|
|
@ -212,11 +213,18 @@ const functions = [ |
|
|
|
|
link: '/goods/create' |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
name: '店铺装修', |
|
|
|
|
icon: Icons.functions.decorate, |
|
|
|
|
color: '#f15858', |
|
|
|
|
link: '/page/index' |
|
|
|
|
name: '数据统计', |
|
|
|
|
icon: Icons.functions.statistics, |
|
|
|
|
color: '#139dff', |
|
|
|
|
link: '/statistics', |
|
|
|
|
moduleKey: 'statistics-statistics' |
|
|
|
|
}, |
|
|
|
|
// { |
|
|
|
|
// name: '店铺装修', |
|
|
|
|
// icon: Icons.functions.decorate, |
|
|
|
|
// color: '#f15858', |
|
|
|
|
// link: '/page/index' |
|
|
|
|
// }, |
|
|
|
|
{ |
|
|
|
|
name: '会员管理', |
|
|
|
|
icon: Icons.functions.user, |
|
|
|
@ -248,13 +256,6 @@ const functions = [ |
|
|
|
|
color: '#f15858', |
|
|
|
|
link: '/market/coupon/index', |
|
|
|
|
moduleKey: 'app-coupon' |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
name: '数据统计', |
|
|
|
|
icon: Icons.functions.statistics, |
|
|
|
|
color: '#139dff', |
|
|
|
|
link: '/statistics', |
|
|
|
|
moduleKey: 'statistics-statistics' |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
|
|
|
|
@ -308,6 +309,11 @@ export default { |
|
|
|
|
data |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
computed: { |
|
|
|
|
storeVersion() { |
|
|
|
|
return window.localStorage.getItem('storeInfo') ? JSON.parse(window.localStorage.getItem('storeInfo')).store_version : 0 |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
created () { |
|
|
|
|
// 获取首页数据 |
|
|
|
|
this.getData() |
|
|
|
|