添加:烟酒店管理中心
This commit is contained in:
parent
f9f1467368
commit
9f0fb9c2fb
|
|
@ -6,13 +6,13 @@ let VUE_APP_WS_URL = `ws://${location.hostname}?type=user`
|
||||||
let openPlantGrass = '-openPlantGrass-'
|
let openPlantGrass = '-openPlantGrass-'
|
||||||
|
|
||||||
// 网络接口修改此字符 小程序域名要求https
|
// 网络接口修改此字符 小程序域名要求https
|
||||||
// let httpApi = 'https://bt.test.cdlfjy.com/' // 开发
|
let httpApi = 'https://bt.test.cdlfjy.com/' // 开发
|
||||||
let httpApi = 'https://mp.scwmbh.cn/' // 生产
|
// let httpApi = 'https://mp.scwmbh.cn/' // 生产
|
||||||
|
|
||||||
|
|
||||||
// 聊天接口修改此字符 小程序聊天要求wss 例如:
|
// 聊天接口修改此字符 小程序聊天要求wss 例如:
|
||||||
// let wsApi = 'wss://bt.test.cdlfjy.com'
|
let wsApi = 'wss://bt.test.cdlfjy.com'
|
||||||
let wsApi = 'wss://mp.scwmbh.cn'
|
// let wsApi = 'wss://mp.scwmbh.cn'
|
||||||
|
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
|
|
||||||
|
|
@ -44,6 +44,7 @@ export default {
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
pageTitle: '',
|
||||||
is_sys: '',
|
is_sys: '',
|
||||||
downStatus: false,
|
downStatus: false,
|
||||||
service: null,
|
service: null,
|
||||||
|
|
@ -72,7 +73,7 @@ export default {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if(this.service.is_verify){
|
if(this.service.is_verify){
|
||||||
if(merchantInfo.merchant_type == 1){
|
if(merchantInfo.merchant_type == 1 || merchantInfo.merchant_type == 3){
|
||||||
// 酒道馆核销用户优惠券
|
// 酒道馆核销用户优惠券
|
||||||
list.push({
|
list.push({
|
||||||
title: '提货券核销',
|
title: '提货券核销',
|
||||||
|
|
@ -133,14 +134,14 @@ export default {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if(this.service.product_exchange){
|
if(this.service.product_exchange){
|
||||||
if(merchantInfo.merchant_type == 1){
|
if(merchantInfo.merchant_type == 1 || merchantInfo.merchant_type == 3){
|
||||||
// 酒道馆核销用户优惠券
|
// 酒道馆核销用户优惠券
|
||||||
list.push({
|
// list.push({
|
||||||
type: 'exchange_qr_code',
|
// type: 'exchange_qr_code',
|
||||||
title: '特色酒兑换',
|
// title: '特色酒兑换',
|
||||||
url: '',
|
// url: '',
|
||||||
icon: 'iconfont icon-erweima1'
|
// icon: 'iconfont icon-erweima1'
|
||||||
});
|
// });
|
||||||
}else{
|
}else{
|
||||||
// 普通商户核销用户订单
|
// 普通商户核销用户订单
|
||||||
list.push({
|
list.push({
|
||||||
|
|
@ -173,8 +174,15 @@ export default {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
// 设置页面标题
|
// 设置页面标题
|
||||||
|
this.pageTitle = '门店商家管理';
|
||||||
|
if(this.is_sys == 1) this.pageTitle = '平台管理';
|
||||||
|
if(this.is_sys == 2) this.pageTitle = '酒道馆管理';
|
||||||
|
else if(this.is_sys == 3) this.pageTitle = '烟酒店管理';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
uni.setNavigationBarTitle({
|
uni.setNavigationBarTitle({
|
||||||
title: this.is_sys == 1 ? '平台管理' : (this.is_sys == 2 ? '酒道馆管理' : '联盟商家管理')
|
title: this.pageTitle
|
||||||
})
|
})
|
||||||
// 登录后操作
|
// 登录后操作
|
||||||
if(this.is_sys == 1 || this.shopIsLogin){
|
if(this.is_sys == 1 || this.shopIsLogin){
|
||||||
|
|
@ -286,12 +294,13 @@ export default {
|
||||||
cancelText: '取消', // 取消按钮文字
|
cancelText: '取消', // 取消按钮文字
|
||||||
confirmText: '确定', // 确认按钮文字
|
confirmText: '确定', // 确认按钮文字
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
|
// 商户类别(merchant_type):0=普通商户,1=酒道馆,2=供应商,3=烟酒店
|
||||||
if (res.confirm && Number(res.content) > 0) {
|
if (res.confirm && Number(res.content) > 0) {
|
||||||
let inputValue = Number(res.content);
|
let inputValue = Number(res.content);
|
||||||
let params = {
|
let params = {
|
||||||
mer_id: this.service.mer_id,
|
mer_id: this.service.mer_id,
|
||||||
total_money: inputValue,
|
total_money: inputValue,
|
||||||
quota_type: merchantInfo.merchant_type == 1 ? 1 : 2,
|
quota_type: (merchantInfo.merchant_type == 1 || merchantInfo.merchant_type == 3) ? 1 : 2,
|
||||||
};
|
};
|
||||||
getSiteQrCode(params).then(res => {
|
getSiteQrCode(params).then(res => {
|
||||||
if (res.status == 200) {
|
if (res.status == 200) {
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
<view class="existed-content" v-if="Object.values(loginHistory).length > 0">
|
<view class="existed-content" v-if="Object.values(loginHistory).length > 0">
|
||||||
<!--顶部提示-->
|
<!--顶部提示-->
|
||||||
<view class="top-tips" :style="'background-image:url('+ list_bg +')'">
|
<view class="top-tips" :style="'background-image:url('+ list_bg +')'">
|
||||||
请选择管理的{{ is_sys == 2 ? '酒道馆' : '商家' }}
|
请选择管理的{{ pageTitle }}
|
||||||
</view>
|
</view>
|
||||||
<!--商户列表-->
|
<!--商户列表-->
|
||||||
<view class="mer-list">
|
<view class="mer-list">
|
||||||
|
|
@ -65,6 +65,7 @@ export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
is_sys: '',
|
is_sys: '',
|
||||||
|
pageTitle: '',
|
||||||
// 已登录列表
|
// 已登录列表
|
||||||
list_bg: '',
|
list_bg: '',
|
||||||
loginHistory: {},
|
loginHistory: {},
|
||||||
|
|
@ -92,8 +93,12 @@ export default {
|
||||||
// })
|
// })
|
||||||
// }
|
// }
|
||||||
// 设置页面标题
|
// 设置页面标题
|
||||||
|
this.pageTitle = '商家';
|
||||||
|
if(this.is_sys == 2) this.pageTitle = '酒道馆';
|
||||||
|
else if(this.is_sys == 3) this.pageTitle = '烟酒店';
|
||||||
|
|
||||||
uni.setNavigationBarTitle({
|
uni.setNavigationBarTitle({
|
||||||
title: this.is_sys == 2 ? '酒道馆登录' : '商家登录'
|
title: this.pageTitle + '登录'
|
||||||
})
|
})
|
||||||
// 未登录 初始化
|
// 未登录 初始化
|
||||||
this.init();
|
this.init();
|
||||||
|
|
@ -116,9 +121,12 @@ export default {
|
||||||
methods: {
|
methods: {
|
||||||
// 初始化
|
// 初始化
|
||||||
init(){
|
init(){
|
||||||
// 商户类别:0=普通商户,1=酒道馆,2=供应商
|
// 商户类别:0=普通商户,1=酒道馆,2=供应商,3=烟酒店
|
||||||
// is_sys:0=商户管理,1=平台管理,2=酒道馆管理
|
// is_sys:0=商户管理,1=平台管理,2=酒道馆管理,3=烟酒店管理
|
||||||
let merchantType = this.is_sys == 0 ? '0' : '1';
|
let merchantType = '0';
|
||||||
|
if(this.is_sys == 2) merchantType = '1';
|
||||||
|
else if(this.is_sys == 3) merchantType = '3';
|
||||||
|
|
||||||
let loginHistory = this.$Cache.get('MER_LOGIN_HISTORY_' + merchantType) || {};
|
let loginHistory = this.$Cache.get('MER_LOGIN_HISTORY_' + merchantType) || {};
|
||||||
if(typeof loginHistory === 'string') loginHistory = JSON.parse(loginHistory) || {};
|
if(typeof loginHistory === 'string') loginHistory = JSON.parse(loginHistory) || {};
|
||||||
this.loginHistory = Object.assign({}, loginHistory);
|
this.loginHistory = Object.assign({}, loginHistory);
|
||||||
|
|
|
||||||
|
|
@ -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)">
|
||||||
|
|
@ -278,6 +278,12 @@
|
||||||
<view class="tag-list-item">酒道馆管理中心</view>
|
<view class="tag-list-item">酒道馆管理中心</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="_list-item" v-if="userInfo.smokeMerService" @click="toService(3)">
|
||||||
|
<view class="top">烟酒店管理</view>
|
||||||
|
<view class="tag-list">
|
||||||
|
<view class="tag-list-item">烟酒店管理中心</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
</template>
|
</template>
|
||||||
<!--类型:1=总部发起人,2=省公司发起人,3=省合伙人(外勤),4=省合伙人(内勤),5=区县运营商,6=区县合伙人,7=餐厅,8=配送商,9=总部外勤,10=总部内勤-->
|
<!--类型:1=总部发起人,2=省公司发起人,3=省合伙人(外勤),4=省合伙人(内勤),5=区县运营商,6=区县合伙人,7=餐厅,8=配送商,9=总部外勤,10=总部内勤-->
|
||||||
<view class="_list-item" v-for="(item,index) in identityCurrent" :key="index" @click="goToAgentCenter(item)">
|
<view class="_list-item" v-for="(item,index) in identityCurrent" :key="index" @click="goToAgentCenter(item)">
|
||||||
|
|
@ -519,7 +525,7 @@
|
||||||
},
|
},
|
||||||
toService(is_sys){
|
toService(is_sys){
|
||||||
// 判断:如果为0 || 2 清除商户登录状态
|
// 判断:如果为0 || 2 清除商户登录状态
|
||||||
if(is_sys == 0 || is_sys == 2){
|
if(is_sys == 0 || is_sys == 2 || is_sys == 3){
|
||||||
// 商户 || 酒道馆 直接进入登录页面
|
// 商户 || 酒道馆 直接进入登录页面
|
||||||
this.$store.commit("SHOP_LOGIN", {
|
this.$store.commit("SHOP_LOGIN", {
|
||||||
'token': null,
|
'token': null,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue