|
|
@@ -35,7 +35,7 @@
|
|
|
{{ $util.numberFormat(data.todayData.order) || 0 }}
|
|
|
</div>
|
|
|
</navigator>
|
|
|
- <div class="info-list" @click="">
|
|
|
+ <div class="info-list">
|
|
|
<div class="info-list-name">昨天</div>
|
|
|
<div class="info-list-value">
|
|
|
{{ $util.numberFormat(0) || 0 }}
|
|
|
@@ -438,14 +438,25 @@ export default {
|
|
|
},
|
|
|
goMore(){
|
|
|
let that = this
|
|
|
+ let shopkeeper = this.loginInfo.staff && this.loginInfo.staff.founder == 2 //判断店主(老板)
|
|
|
+ let items = ['已屏蔽商家', '我已离职', '开关商城', '也要一个此商城', '修改密码', '退出登录'];
|
|
|
+ if(shopkeeper) {
|
|
|
+ items = ['已屏蔽商家', '改进建议', '开关商城', '也要一个此商城', '修改密码', '退出登录'];
|
|
|
+ }
|
|
|
uni.showActionSheet({
|
|
|
- itemList: ['已屏蔽商家', '改进建议','开关商城','也要一个此商城','修改密码','退出登录'],
|
|
|
+ itemList: items,
|
|
|
success: function (res) {
|
|
|
if(res.tapIndex == 0){
|
|
|
that.$util.pageTo({url: '/pagesPurchase/pb'})
|
|
|
}
|
|
|
if(res.tapIndex == 1){
|
|
|
- that.suggest()
|
|
|
+ if(shopkeeper){
|
|
|
+ // 店主显示改进建议
|
|
|
+ that.suggest()
|
|
|
+ }else{
|
|
|
+ // 员工显示离职
|
|
|
+ that.$util.pageTo({url: '/admin/staff/dimission'})
|
|
|
+ }
|
|
|
}
|
|
|
if(res.tapIndex == 2){
|
|
|
that.$util.pageTo({url:'/pagesPurchase/open'})
|
|
|
@@ -460,7 +471,7 @@ export default {
|
|
|
that.$util.confirmModal({content:'确认退出?'},() => {
|
|
|
// #ifdef APP-PLUS
|
|
|
uni.clearStorage()
|
|
|
- that.$store.commit("setLoginInfo", {})
|
|
|
+ that.$store.commit("setLoginInfo", {})
|
|
|
plus.runtime.restart()
|
|
|
// #endif
|
|
|
// #ifdef MP-WEIXIN
|
|
|
@@ -682,7 +693,7 @@ export default {
|
|
|
success (res) {
|
|
|
}
|
|
|
})
|
|
|
- },
|
|
|
+ }
|
|
|
}
|
|
|
};
|
|
|
</script>
|