添加:供应商申请 - 驳回后修改信息

优化:代理中心 - 邀请二维码生成流程优化
This commit is contained in:
wuhui_zzw 2024-01-30 18:44:06 +08:00
parent 9cb3fa95e1
commit ce486510f4
5 changed files with 226 additions and 12 deletions

View File

@ -4,14 +4,13 @@ import request from "@/utils/request.js";
export function myAgentList(data) {
return request.get('agent/agent_list',data);
}
// 代理中心 - 供应商入驻邀请二维码
// 代理中心 - 邀请二维码
export function inviteSupplierJoinQrCode(data) {
return request.get('agent/qr_code_invite_supplier',data);
return request.get('agent/qr_code_invite',data);
}
// 获取单条代理人员信息
export function getSingleAgentInfo(id) {
return request.get(`agent/single_agent_info/${id}`);

View File

@ -1323,6 +1323,12 @@
"style": {
"navigationBarTitleText": "代理中心"
}
},
{
"path": "invite/index",
"style": {
"navigationBarTitleText": "邀请下级"
}
}

View File

@ -62,16 +62,138 @@ export default {
menu_list() {
let menuList = [];
let agentType = this.agent_info.agent_type || 0;
// 1=,2=,3=(),4=(),5=,6=,7=,8=
if(Number(agentType) <= 5){
menuList.push({
title: '供应商邀请二维码',
type: 'supplier_qr_code',
title: '供应商邀请码',
type: 'invite_qr_code',
url: '',
icon: 'iconfont icon-erweima1',
params: {
type: 'supplier'
}
});
}
if(Number(agentType) === 1){
menuList.push({
title: '省公司邀请码',
type: 'invite_qr_code',
url: '',
icon: 'iconfont icon-erweima1',
params: {
type: 'subordinate',
level: 2,
}
});
menuList.push({
title: '配送商邀请码',
type: 'invite_qr_code',
url: '',
icon: 'iconfont icon-erweima1',
params: {
type: 'subordinate',
level: 8,
}
});
}
if(Number(agentType) === 2){
menuList.push({
title: '外勤邀请码',
type: 'invite_qr_code',
url: '',
icon: 'iconfont icon-erweima1',
params: {
type: 'subordinate',
level: 3,
}
});
menuList.push({
title: '内勤邀请码',
type: 'invite_qr_code',
url: '',
icon: 'iconfont icon-erweima1',
params: {
type: 'subordinate',
level: 4,
}
});
menuList.push({
title: '配送商邀请码',
type: 'invite_qr_code',
url: '',
icon: 'iconfont icon-erweima1',
params: {
type: 'subordinate',
level: 8,
}
});
}
if(Number(agentType) === 3){
menuList.push({
title: '运营商邀请码',
type: 'invite_qr_code',
url: '',
icon: 'iconfont icon-erweima1',
params: {
type: 'subordinate',
level: 5,
}
});
menuList.push({
title: '配送商邀请码',
type: 'invite_qr_code',
url: '',
icon: 'iconfont icon-erweima1',
params: {
type: 'subordinate',
level: 8,
}
});
}
if(Number(agentType) === 5){
menuList.push({
title: '合伙人邀请码',
type: 'invite_qr_code',
url: '',
icon: 'iconfont icon-erweima1',
params: {
type: 'subordinate',
level: 6,
}
});
menuList.push({
title: '配送商邀请码',
type: 'invite_qr_code',
url: '',
icon: 'iconfont icon-erweima1',
params: {
type: 'subordinate',
level: 8,
}
});
}
if(Number(agentType) === 6){
menuList.push({
title: '餐厅邀请码',
type: 'invite_qr_code',
url: '',
icon: 'iconfont icon-erweima1',
params: {
type: 'subordinate',
level: 7,
}
});
menuList.push({
title: '配送商邀请码',
type: 'invite_qr_code',
url: '',
icon: 'iconfont icon-erweima1',
params: {
type: 'subordinate',
level: 8,
}
});
}
return menuList;
},
@ -195,10 +317,12 @@ export default {
//
clickMenu(menu){
let _this = this;
let params = menu.params || {};
params.agent_id = _this.agent_info.id || 0;
switch (menu.type) {
//
case 'supplier_qr_code':
inviteSupplierJoinQrCode({agent_id: _this.agent_info.id}).then(res => {
case 'invite_qr_code':
inviteSupplierJoinQrCode(params).then(res => {
if (res.status == 200) {
_this.qrCode = res.data.qr_code || '';
_this.$refs.qrCodePopup.open('center');

View File

@ -0,0 +1,88 @@
<template>
<view class="main-content">
邀请下级入驻
<!--授权登录-->
<authorize @onLoadFun="onLoadFun" :isAuto="isAuto" :isShowAuth="isShowAuth" @authColse="authClose"></authorize>
</view>
</template>
<script>
import {mapGetters} from "vuex";
import authorize from '@/components/Authorize';
export default {
name: 'business',
components: {
authorize,
},
computed: {
...mapGetters(['isLogin', 'uid', 'userInfo', 'viewColor'])
},
data() {
return {
//
isAuto: false, //
isShowAuth: false,//
//
qrCode: '',
}
},
onLoad(options) {
let _this = this;
if(options.scene){
console.log('转换前参数:',options.scene)
let scene = _this.$util.getUrlParams(decodeURIComponent(options.scene));
console.log("接收参数",scene)
}
//
if (!this.isLogin) {
//
this.isAuto = true;
this.isShowAuth = true
}else{
//
this.init();
}
},
methods: {
//
onLoadFun() {
if(this.isLogin){
this.isShowAuth = false;
this.init();
}
},
//
authClose(e) {
this.isShowAuth = e
},
//
init () {
},
}
}
</script>
<style scoped lang="scss">
</style>

View File

@ -80,9 +80,6 @@ export default {
url: `/pages/supplier/apply/apply_join?apply_id=${item.id}`
})
},
}
}
</script>