This commit is contained in:
2021-10-26 17:45:16 +08:00
8 changed files with 75439 additions and 6 deletions

View File

@@ -76,6 +76,9 @@
"__platform__" : [ "ios", "android" ], "__platform__" : [ "ios", "android" ],
"appid" : "wxd8b146e0a37bab50", "appid" : "wxd8b146e0a37bab50",
"UniversalLinks" : "https://io.lianshang.app" "UniversalLinks" : "https://io.lianshang.app"
},
"alipay" : {
"__platform__" : [ "ios", "android" ]
} }
}, },
"oauth" : { "oauth" : {

View File

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

Binary file not shown.

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

47252
unpackage/dist/dev/app-plus/app-service.js vendored Normal file

File diff suppressed because one or more lines are too long

28109
unpackage/dist/dev/app-plus/app-view.js vendored Normal file

File diff suppressed because one or more lines are too long