Commit 95843d16 authored by xinzhedeai's avatar xinzhedeai

add:商户编辑页面跳转修改、商户详情功能角色权限控制处理

parent bb6d7511
...@@ -78,7 +78,7 @@ window.onload = function () { ...@@ -78,7 +78,7 @@ window.onload = function () {
className: 'shangjia', className: 'shangjia',
title: '商家信息', title: '商家信息',
remark: '', remark: '',
navTo: 'shanghu_detail', navTo: 'shanghu_detail-edit',
}, },
{ {
className: 'zicha', className: 'zicha',
......
...@@ -206,7 +206,7 @@ ...@@ -206,7 +206,7 @@
<img :src="formData.qrCodeUrl" style="margin-left: 50%; transform: translateX(-50%);" /> <img :src="formData.qrCodeUrl" style="margin-left: 50%; transform: translateX(-50%);" />
</div> </div>
</div> </div>
<button v-if="userType!=='shop'" class="save-btn" style="margin-left: 50%; transform: translateX(-50%);" @click="saveCanvas" <button v-if="userType==='shop'" class="save-btn" style="margin-left: 50%; transform: translateX(-50%);" @click="saveCanvas"
>保存二维码</button> >保存二维码</button>
</div> </div>
<!-- form结束 --> <!-- form结束 -->
......
...@@ -7,7 +7,7 @@ window.addEventListener('load', function () { ...@@ -7,7 +7,7 @@ window.addEventListener('load', function () {
data() { data() {
return { return {
activeTab: 0, activeTab: 0,
flag: 'XG', flag: 'XQ',
canvasReady: false, canvasReady: false,
loadedImages: 0, // 记录已加载的图片数量 loadedImages: 0, // 记录已加载的图片数量
userType: gemhoUtil.getCookie('userType'), userType: gemhoUtil.getCookie('userType'),
...@@ -61,6 +61,14 @@ window.addEventListener('load', function () { ...@@ -61,6 +61,14 @@ window.addEventListener('load', function () {
}, },
computed: {}, computed: {},
mounted() { mounted() {
// 详情编辑权限控制
const userType = gemhoUtil.getCookie('userType')
if(userType == 'wgy'){
this.flag = 'XG'
}else{
this.flag = 'XQ'
}
this.detail() this.detail()
this.getDict4changhsuoType() this.getDict4changhsuoType()
this.getDict4fangwuType() this.getDict4fangwuType()
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
<div class="detail"> <div class="detail">
<van-row> <van-row>
<van-col span="24">场所类型: {{merInformation.smallPlaceTypeName}}</van-col> <van-col span="24">场所类型: {{merInformation.smallPlaceTypeName}}</van-col>
<div class="detail_link" @click="navTo('shanghu_detail')">详情<van-icon name="arrow" /></div> <div class="detail_link" @click="navTo('shanghu_detail-edit')">详情<van-icon name="arrow" /></div>
</van-row> </van-row>
<van-row type="flex" justify="space-around" <van-row type="flex" justify="space-around"
style="width:100%; margin-top: .3rem; margin-bottom: .3rem;"> style="width:100%; margin-top: .3rem; margin-bottom: .3rem;">
......
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