修复:商户特色和酒道馆特色兑换商品显示错误(都显示为菜卡了)

This commit is contained in:
wuhui_zzw 2024-03-06 16:40:25 +08:00
parent a3eb8088bd
commit e91e1b60f3
5 changed files with 32 additions and 20 deletions

View File

@ -694,7 +694,7 @@
{
"path": "business/index",
"style": {
"navigationBarTitleText": "商家管理"
"navigationBarTitleText": "联盟商家管理"
}
},
{

View File

@ -133,12 +133,23 @@ export default {
});
}
if(this.service.product_exchange){
list.push({
type: 'exchange_qr_code',
title: '特色菜兑换',
url: '',
icon: 'iconfont icon-erweima1'
});
if(merchantInfo.merchant_type == 1){
//
list.push({
type: 'exchange_qr_code',
title: '特色酒兑换',
url: '',
icon: 'iconfont icon-erweima1'
});
}else{
//
list.push({
type: 'exchange_qr_code',
title: '特色菜兑换',
url: '',
icon: 'iconfont icon-erweima1'
});
}
}
if(this.service.purchase_permission){
list.push({
@ -163,7 +174,7 @@ export default {
}
//
uni.setNavigationBarTitle({
title: this.is_sys == 1 ? '平台管理' : (this.is_sys == 2 ? '酒道馆管理' : '商家管理')
title: this.is_sys == 1 ? '平台管理' : (this.is_sys == 2 ? '酒道馆管理' : '联盟商家管理')
})
//
if(this.is_sys == 1 || this.shopIsLogin){
@ -229,7 +240,7 @@ export default {
})
}else{
uni.setNavigationBarTitle({
title: (!data.mer_id) ? '平台管理' : '商家管理'
title: (!data.mer_id) ? '平台管理' : '联盟商家管理'
})
}
},
@ -264,6 +275,7 @@ export default {
// -
createExchangeQrCode(){
let _this = this;
let merchantInfo = this.service.merchant || {};
//
uni.showModal({
title: '兑换商品金额', //
@ -279,7 +291,7 @@ export default {
let params = {
mer_id: this.service.mer_id,
total_money: inputValue,
quota_type: 2,
quota_type: merchantInfo.merchant_type == 1 ? 1 : 2,
};
getSiteQrCode(params).then(res => {
if (res.status == 200) {

View File

@ -82,11 +82,11 @@ export default {
this.is_sys = options.is_sys;
//
let isChange = options.change || false;
if((this.is_sys == 1 || this.shopIsLogin) && !isChange){
uni.navigateTo({
url: '/pages/admin/business/index?is_sys=' + is_sys
})
}
// if((this.is_sys == 1 || this.shopIsLogin) && !isChange){
// uni.navigateTo({
// url: '/pages/admin/business/index?is_sys=' + this.is_sys
// })
// }
//
uni.setNavigationBarTitle({
title: this.is_sys == 2 ? '酒道馆登录' : '商家登录'

View File

@ -267,9 +267,9 @@
<!--固定菜单-->
<template v-if="identityCurrentName == 'county'">
<view class="_list-item" v-if="userInfo.service" @click="toService(0)">
<view class="top">商家管理</view>
<view class="top">联盟商家管理</view>
<view class="tag-list">
<view class="tag-list-item">商家管理中心</view>
<view class="tag-list-item">联盟商家管理中心</view>
</view>
</view>
<view class="_list-item" v-if="userInfo.shopMerService" @click="toService(2)">

View File

@ -380,14 +380,14 @@ export default {
pointList(this.point_search)
.then(res => {
_this.point_list = res.data || {};
//
//
if(Object.values(_this.point_list).length <= 0){
this.$util.Tips({
title: '非操作员,无操作权限!',
},{tab:1,url:'/pages/user/index'});
return false;
}
// -
// -
if(Object.values(_this.point_list).length == 1){
_this.selectedPoint(_this.point_list[0]);
}
@ -455,7 +455,7 @@ export default {
consumeList(this.consume_search)
.then(res => {
_this.consume_list = res.data || {};
// -
// -
if(Object.values(_this.consume_list).length == 1){
_this.selectedConsume(_this.consume_list[0]);
}