diff --git a/pages.json b/pages.json index 9530e27..d60ca9b 100644 --- a/pages.json +++ b/pages.json @@ -694,7 +694,7 @@ { "path": "business/index", "style": { - "navigationBarTitleText": "商家管理" + "navigationBarTitleText": "联盟商家管理" } }, { diff --git a/pages/admin/business/index.vue b/pages/admin/business/index.vue index 62533a8..1253e61 100644 --- a/pages/admin/business/index.vue +++ b/pages/admin/business/index.vue @@ -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) { diff --git a/pages/admin/business/login.vue b/pages/admin/business/login.vue index 87e052a..09e0c33 100644 --- a/pages/admin/business/login.vue +++ b/pages/admin/business/login.vue @@ -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 ? '酒道馆登录' : '商家登录' diff --git a/pages/user/index.vue b/pages/user/index.vue index 5e1ba22..387dbe0 100644 --- a/pages/user/index.vue +++ b/pages/user/index.vue @@ -267,9 +267,9 @@