添加:烟酒店管理中心

This commit is contained in:
wuhui_zzw 2024-03-14 11:25:56 +08:00
parent f9f1467368
commit 9f0fb9c2fb
4 changed files with 45 additions and 22 deletions

View File

@ -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 = {

View File

@ -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) {

View File

@ -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_sys0=1=2= // is_sys0=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);

View File

@ -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,