同步代码
This commit is contained in:
@@ -172,12 +172,14 @@
|
||||
<view class="partner-title">
|
||||
企业工具
|
||||
</view>
|
||||
<!-- orderShipment -->
|
||||
<!-- orderRefund -->
|
||||
<view class="tool-list">
|
||||
<view class="tool-label" @click="$Router.push({name: 'goodsManagement'})">
|
||||
<view class="tool-label" v-if="permission.manageGoods" @click="$Router.push({name: 'goodsManagement'})">
|
||||
<image class="tool-label-img" src="/static/user/userTool-00.png" mode=""></image>
|
||||
<view class="tool-label-name">商品权证</view>
|
||||
</view>
|
||||
<view class="tool-label" @click="$Router.push({name: 'couponsManagement'})">
|
||||
<view class="tool-label" v-if="permission.manageCoupons" @click="$Router.push({name: 'couponsManagement'})">
|
||||
<image class="tool-label-img" src="/static/user/userTool-01.png" mode=""></image>
|
||||
<view class="tool-label-name">优惠券管理</view>
|
||||
</view>
|
||||
@@ -185,19 +187,19 @@
|
||||
<image class="tool-label-img" src="/static/user/userTool-02.png" mode=""></image>
|
||||
<view class="tool-label-name">营销推广码</view>
|
||||
</view>
|
||||
<view class="tool-label" @click="$Router.push({name: 'instrumentBasics'})">
|
||||
<view class="tool-label" v-if="isOwnCompany" @click="$Router.push({name: 'instrumentBasics'})">
|
||||
<image class="tool-label-img" src="/static/user/userTool-03.png" mode=""></image>
|
||||
<view class="tool-label-name">基础信息</view>
|
||||
</view>
|
||||
<view class="tool-label" @click="$Router.push({name: 'shopLists'})">
|
||||
<view class="tool-label" v-if="permission.manageStore" @click="$Router.push({name: 'shopLists'})">
|
||||
<image class="tool-label-img" src="/static/user/userTool-04.png" mode=""></image>
|
||||
<view class="tool-label-name">门店管理</view>
|
||||
</view>
|
||||
<view class="tool-label" @click="$Router.push({name: 'employeesList'})">
|
||||
<view class="tool-label" v-if="permission.manageEmployee" @click="$Router.push({name: 'employeesList'})">
|
||||
<image class="tool-label-img" src="/static/user/userTool-05.png" mode=""></image>
|
||||
<view class="tool-label-name">员工管理</view>
|
||||
</view>
|
||||
<view class="tool-label" @click="$Router.push({name: 'verificationIndex'})">
|
||||
<view class="tool-label" v-if="permission.manageScan" @click="$Router.push({name: 'verificationIndex'})">
|
||||
<image class="tool-label-img" src="/static/user/userTool-05.png" mode=""></image>
|
||||
<view class="tool-label-name">扫码核销</view>
|
||||
</view>
|
||||
@@ -255,6 +257,18 @@
|
||||
customerShow: false, // 专属客服弹出
|
||||
customerCode: '', // 专属客服二维码
|
||||
},
|
||||
// 用户权限
|
||||
permission: {
|
||||
manageEmployee : false,
|
||||
manageGoods : false,
|
||||
orderShipment : false,
|
||||
orderRefund : false,
|
||||
manageScan : false,
|
||||
manageCoupons : false,
|
||||
manageStore : false
|
||||
},
|
||||
// 是否为企业主
|
||||
isOwnCompany: false,
|
||||
shoeCardType: false
|
||||
}
|
||||
},
|
||||
@@ -326,6 +340,9 @@
|
||||
userInfo() {
|
||||
// 读取配置信息
|
||||
userIndex().then(res => {
|
||||
|
||||
console.log(res)
|
||||
|
||||
res.account = {
|
||||
stone: res.stone,
|
||||
stone_value: res.stone_value,
|
||||
@@ -334,6 +351,8 @@
|
||||
this.userData = res
|
||||
this.helpDoc = res.help_doc
|
||||
this.userIdentity = res.identityShow
|
||||
this.permission = res.permission
|
||||
this.isOwnCompany = res.is_own_company
|
||||
this.loding = false
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
|
||||
Reference in New Issue
Block a user