Commit 3ab9337e authored by xinzhedeai's avatar xinzhedeai

Merge branch 'gaoqucodecheck' of...

Merge branch 'gaoqucodecheck' of http://h.gemho.cn:7099/zhaojunbao/gaoquyingjih5-asd into gaoqucodecheck
home文件显示问题合并处理 from yanglei
parents e9a0337c d686a609
...@@ -48,9 +48,10 @@ ...@@ -48,9 +48,10 @@
<!-- 第二层:商户图标、名称、等级、场所类型和地址 --> <!-- 第二层:商户图标、名称、等级、场所类型和地址 -->
<div <div
class="second-layer second-layer-zf" class="second-layer second-layer-zf"
v-if="['admin','common','industry','street','wgy'].includes(userInfo.userType)" v-if="showOrg"
v-cloak v-cloak
> >
<!-- v-show="" -->
<img <img
class="merchant-icon" class="merchant-icon"
src="image/code/zhengfu_logo.png" src="image/code/zhengfu_logo.png"
...@@ -74,7 +75,7 @@ ...@@ -74,7 +75,7 @@
<!-- 第二层:商户图标、名称、等级、场所类型和地址 --> <!-- 第二层:商户图标、名称、等级、场所类型和地址 -->
<div <div
class="second-layer-sj" class="second-layer-sj"
v-if="['shop'].includes(userInfo.userType)" v-if="showShop"
v-cloak v-cloak
> >
<div class="header"> <div class="header">
......
...@@ -48,6 +48,8 @@ window.onload = function () { ...@@ -48,6 +48,8 @@ window.onload = function () {
role: 'dudao', role: 'dudao',
roleName: '', roleName: '',
}, },
showOrg: false, //是否显示组织
showShop: false, //是否显示店铺
// 登录用户type // 登录用户type
defaultMenuList: [ defaultMenuList: [
{ {
...@@ -253,7 +255,15 @@ window.onload = function () { ...@@ -253,7 +255,15 @@ window.onload = function () {
merId: result.data.merchantInfoNumVo?.id, // merId: result.data.merchantInfoNumVo?.id, //
} }
gemhoUtil.setCookie('userType', this.userInfo.userType) gemhoUtil.setCookie('userType', this.userInfo.userType)
if (this.userInfo.userType === 'shop') { // 2025年5月14日新增消费者逻辑
this.showOrg = false //是否显示组织
this.showShop = true //是否显示店铺
} else if (['admin', 'common', 'industry', 'street', 'wgy'].includes(this.userInfo.userType)) {
this.showOrg = true //是否显示组织
this.showShop = false //是否显示店铺
}
/* if (this.userInfo.userType === 'consumers') { // 2025年5月14日新增消费者逻辑 /* if (this.userInfo.userType === 'consumers') { // 2025年5月14日新增消费者逻辑
// 根据url地址的merid获取商户信息 // 根据url地址的merid获取商户信息
if (gemhoUtil.getParameter('merId')) { // 消费者直接在爱山东扫商户码进入首页 if (gemhoUtil.getParameter('merId')) { // 消费者直接在爱山东扫商户码进入首页
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment