修复:商户特色和酒道馆特色兑换商品显示错误(都显示为菜卡了)
This commit is contained in:
parent
a3eb8088bd
commit
e91e1b60f3
|
|
@ -694,7 +694,7 @@
|
||||||
{
|
{
|
||||||
"path": "business/index",
|
"path": "business/index",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "商家管理"
|
"navigationBarTitleText": "联盟商家管理"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -133,12 +133,23 @@ export default {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if(this.service.product_exchange){
|
if(this.service.product_exchange){
|
||||||
list.push({
|
if(merchantInfo.merchant_type == 1){
|
||||||
type: 'exchange_qr_code',
|
// 酒道馆核销用户优惠券
|
||||||
title: '特色菜兑换',
|
list.push({
|
||||||
url: '',
|
type: 'exchange_qr_code',
|
||||||
icon: 'iconfont icon-erweima1'
|
title: '特色酒兑换',
|
||||||
});
|
url: '',
|
||||||
|
icon: 'iconfont icon-erweima1'
|
||||||
|
});
|
||||||
|
}else{
|
||||||
|
// 普通商户核销用户订单
|
||||||
|
list.push({
|
||||||
|
type: 'exchange_qr_code',
|
||||||
|
title: '特色菜兑换',
|
||||||
|
url: '',
|
||||||
|
icon: 'iconfont icon-erweima1'
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(this.service.purchase_permission){
|
if(this.service.purchase_permission){
|
||||||
list.push({
|
list.push({
|
||||||
|
|
@ -163,7 +174,7 @@ export default {
|
||||||
}
|
}
|
||||||
// 设置页面标题
|
// 设置页面标题
|
||||||
uni.setNavigationBarTitle({
|
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){
|
if(this.is_sys == 1 || this.shopIsLogin){
|
||||||
|
|
@ -229,7 +240,7 @@ export default {
|
||||||
})
|
})
|
||||||
}else{
|
}else{
|
||||||
uni.setNavigationBarTitle({
|
uni.setNavigationBarTitle({
|
||||||
title: (!data.mer_id) ? '平台管理' : '商家管理'
|
title: (!data.mer_id) ? '平台管理' : '联盟商家管理'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -264,6 +275,7 @@ export default {
|
||||||
// 二维码 - 生成特色菜兑换
|
// 二维码 - 生成特色菜兑换
|
||||||
createExchangeQrCode(){
|
createExchangeQrCode(){
|
||||||
let _this = this;
|
let _this = this;
|
||||||
|
let merchantInfo = this.service.merchant || {};
|
||||||
// 点击按钮触发弹框输入框的显示
|
// 点击按钮触发弹框输入框的显示
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: '兑换商品金额', // 弹框标题
|
title: '兑换商品金额', // 弹框标题
|
||||||
|
|
@ -279,7 +291,7 @@ export default {
|
||||||
let params = {
|
let params = {
|
||||||
mer_id: this.service.mer_id,
|
mer_id: this.service.mer_id,
|
||||||
total_money: inputValue,
|
total_money: inputValue,
|
||||||
quota_type: 2,
|
quota_type: merchantInfo.merchant_type == 1 ? 1 : 2,
|
||||||
};
|
};
|
||||||
getSiteQrCode(params).then(res => {
|
getSiteQrCode(params).then(res => {
|
||||||
if (res.status == 200) {
|
if (res.status == 200) {
|
||||||
|
|
|
||||||
|
|
@ -82,11 +82,11 @@ export default {
|
||||||
this.is_sys = options.is_sys;
|
this.is_sys = options.is_sys;
|
||||||
// 登录后操作
|
// 登录后操作
|
||||||
let isChange = options.change || false;
|
let isChange = options.change || false;
|
||||||
if((this.is_sys == 1 || this.shopIsLogin) && !isChange){
|
// if((this.is_sys == 1 || this.shopIsLogin) && !isChange){
|
||||||
uni.navigateTo({
|
// uni.navigateTo({
|
||||||
url: '/pages/admin/business/index?is_sys=' + is_sys
|
// url: '/pages/admin/business/index?is_sys=' + this.is_sys
|
||||||
})
|
// })
|
||||||
}
|
// }
|
||||||
// 设置页面标题
|
// 设置页面标题
|
||||||
uni.setNavigationBarTitle({
|
uni.setNavigationBarTitle({
|
||||||
title: this.is_sys == 2 ? '酒道馆登录' : '商家登录'
|
title: this.is_sys == 2 ? '酒道馆登录' : '商家登录'
|
||||||
|
|
|
||||||
|
|
@ -267,9 +267,9 @@
|
||||||
<!--固定菜单-->
|
<!--固定菜单-->
|
||||||
<template v-if="identityCurrentName == 'county'">
|
<template v-if="identityCurrentName == 'county'">
|
||||||
<view class="_list-item" v-if="userInfo.service" @click="toService(0)">
|
<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">
|
||||||
<view class="tag-list-item">商家管理中心</view>
|
<view class="tag-list-item">联盟商家管理中心</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="_list-item" v-if="userInfo.shopMerService" @click="toService(2)">
|
<view class="_list-item" v-if="userInfo.shopMerService" @click="toService(2)">
|
||||||
|
|
|
||||||
|
|
@ -380,14 +380,14 @@ export default {
|
||||||
pointList(this.point_search)
|
pointList(this.point_search)
|
||||||
.then(res => {
|
.then(res => {
|
||||||
_this.point_list = res.data || {};
|
_this.point_list = res.data || {};
|
||||||
// 判断:是否不存在替换点
|
// 判断:是否不存在提货点
|
||||||
if(Object.values(_this.point_list).length <= 0){
|
if(Object.values(_this.point_list).length <= 0){
|
||||||
this.$util.Tips({
|
this.$util.Tips({
|
||||||
title: '非操作员,无操作权限!',
|
title: '非操作员,无操作权限!',
|
||||||
},{tab:1,url:'/pages/user/index'});
|
},{tab:1,url:'/pages/user/index'});
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
// 判断:是否只有一个替换点-是则选中
|
// 判断:是否只有一个提货点-是则选中
|
||||||
if(Object.values(_this.point_list).length == 1){
|
if(Object.values(_this.point_list).length == 1){
|
||||||
_this.selectedPoint(_this.point_list[0]);
|
_this.selectedPoint(_this.point_list[0]);
|
||||||
}
|
}
|
||||||
|
|
@ -455,7 +455,7 @@ export default {
|
||||||
consumeList(this.consume_search)
|
consumeList(this.consume_search)
|
||||||
.then(res => {
|
.then(res => {
|
||||||
_this.consume_list = res.data || {};
|
_this.consume_list = res.data || {};
|
||||||
// 判断:是否只有一个替换点-是则选中
|
// 判断:是否只有一个提货点-是则选中
|
||||||
if(Object.values(_this.consume_list).length == 1){
|
if(Object.values(_this.consume_list).length == 1){
|
||||||
_this.selectedConsume(_this.consume_list[0]);
|
_this.selectedConsume(_this.consume_list[0]);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue