|
@@ -146,9 +146,9 @@ const commonFunctions = computed(() => {
|
|
|
const baseFunctions = [
|
|
const baseFunctions = [
|
|
|
{ src: `${HTTP_REQUEST_URL_IMG}setting/fabu.png`, name: '发布商品',pageUrl:'/pages/merchantCenters/postInformation',show:true },
|
|
{ src: `${HTTP_REQUEST_URL_IMG}setting/fabu.png`, name: '发布商品',pageUrl:'/pages/merchantCenters/postInformation',show:true },
|
|
|
{ src: `${HTTP_REQUEST_URL_IMG}setting/shangpin.png`, name: '商品管理',pageUrl:'/pages/merchantCenters/productManagement',show:true },
|
|
{ src: `${HTTP_REQUEST_URL_IMG}setting/shangpin.png`, name: '商品管理',pageUrl:'/pages/merchantCenters/productManagement',show:true },
|
|
|
- { src: `${HTTP_REQUEST_URL_IMG}setting/kucun.png`, name: '库存管理',pageUrl:'/pages/users/user_asset/asset_info/asset_info' ,show:kcglShow.value},
|
|
|
|
|
|
|
+ { src: `${HTTP_REQUEST_URL_IMG}setting/kucun.png`, name: '库存管理',pageUrl:'/pages/users/user_asset/asset_info/asset_info' ,show:!kcglShow.value},
|
|
|
{ src: `${HTTP_REQUEST_URL_IMG}setting/jinqian.png`, name: '我的收益',pageUrl: '/pages/users/my_merchant/index' ,show:wdsyShow.value},
|
|
{ src: `${HTTP_REQUEST_URL_IMG}setting/jinqian.png`, name: '我的收益',pageUrl: '/pages/users/my_merchant/index' ,show:wdsyShow.value},
|
|
|
- { src: `${HTTP_REQUEST_URL_IMG}setting/kabao.png`, name: '卡包管理',pageUrl: '/pages/users/card_page/index' ,show:kcglShow.value},
|
|
|
|
|
|
|
+ { src: `${HTTP_REQUEST_URL_IMG}setting/kabao.png`, name: '卡包管理',pageUrl: '/pages/users/card_page/index' ,show:!kcglShow.value},
|
|
|
{ src: `${HTTP_REQUEST_URL_IMG}setting/mendian.png`, name: '门店推广',pageUrl: '/pages/users/my_merchant/index',show:true },
|
|
{ src: `${HTTP_REQUEST_URL_IMG}setting/mendian.png`, name: '门店推广',pageUrl: '/pages/users/my_merchant/index',show:true },
|
|
|
{ src: `${HTTP_REQUEST_URL_IMG}setting/dianpu.png`, name: '我的商城',pageUrl: `/pages/index/index` ,show:true},
|
|
{ src: `${HTTP_REQUEST_URL_IMG}setting/dianpu.png`, name: '我的商城',pageUrl: `/pages/index/index` ,show:true},
|
|
|
];
|
|
];
|
|
@@ -162,48 +162,11 @@ const params = ref({
|
|
|
});
|
|
});
|
|
|
const merchantInfo = ref({})
|
|
const merchantInfo = ref({})
|
|
|
|
|
|
|
|
-watch(
|
|
|
|
|
- () => appStore.wxConfig,
|
|
|
|
|
- (newVal) => {
|
|
|
|
|
- const configDate = newVal || appStore.$wxConfig;
|
|
|
|
|
- wxConfig.value = configDate;
|
|
|
|
|
- const list = JSON.parse(configDate.essentialFunctions);
|
|
|
|
|
-
|
|
|
|
|
- if (list[0].status == false) {
|
|
|
|
|
- showIcons.value = false;
|
|
|
|
|
- } else {
|
|
|
|
|
- showIcons.value = true;
|
|
|
|
|
- }
|
|
|
|
|
- tradeList.value = [list[0], list[1]];
|
|
|
|
|
- useList.value = [
|
|
|
|
|
- {
|
|
|
|
|
- ...list[2],
|
|
|
|
|
- src: `${HTTP_REQUEST_URL_IMG}setting/mailiao.png`,
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- ...list[3],
|
|
|
|
|
- src: `${HTTP_REQUEST_URL_IMG}setting/mailiao2.png`,
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- ...list[4],
|
|
|
|
|
- src: `${HTTP_REQUEST_URL_IMG}setting/cunliao.png`,
|
|
|
|
|
- iconName: "存料",
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- ...list[5],
|
|
|
|
|
- src: `${HTTP_REQUEST_URL_IMG}setting/tiliao.png`,
|
|
|
|
|
- },
|
|
|
|
|
- ];
|
|
|
|
|
- if(useList.value && useList.value.length>0 && showIcons.value){
|
|
|
|
|
- kcglShow.value = true;
|
|
|
|
|
- }
|
|
|
|
|
- },
|
|
|
|
|
- { deep: true, immediate: true }
|
|
|
|
|
-);
|
|
|
|
|
|
|
|
|
|
// 页面加载
|
|
// 页面加载
|
|
|
onShow(() => {
|
|
onShow(() => {
|
|
|
console.log(appStore.userInfo)
|
|
console.log(appStore.userInfo)
|
|
|
|
|
+ kcglShow.value = appStore?.$wxConfig?.auditModeEnabled;
|
|
|
merchantInfo.value = appStore.userInfo.merchant;
|
|
merchantInfo.value = appStore.userInfo.merchant;
|
|
|
if (appStore.merchantId || appStore.userInfo?.merchant?.id) {
|
|
if (appStore.merchantId || appStore.userInfo?.merchant?.id) {
|
|
|
wdsyShow.value = true;
|
|
wdsyShow.value = true;
|