159 lines
5.0 KiB
JavaScript
159 lines
5.0 KiB
JavaScript
import request from "@/utils/request";
|
|
|
|
// 商户申请人数统计
|
|
export function getCount() {
|
|
return request.get("/merchantApply/count", {}, {login: true})
|
|
}
|
|
|
|
// 商户申请入口页图片
|
|
export function getImages() {
|
|
return request.get("/merchantApply/images", {}, {login: true})
|
|
}
|
|
|
|
// 商户申请页面数据
|
|
export function getShopData(params) {
|
|
return request.get("/merchantApply/index", params, {login: true})
|
|
}
|
|
|
|
// 查看商户申请
|
|
// 1-特产供应商 2-店铺 3-文玩供应商
|
|
export function getShopInfo() {
|
|
return request.get("/merchantApply/info", {}, {login: true})
|
|
}
|
|
|
|
// 4-采购批发商
|
|
export function getWholesaler() {
|
|
return request.get("/merchantApply/info/wholesaler", {}, {login: true})
|
|
}
|
|
|
|
// 提交店铺入驻申请
|
|
export function saveShop(hotelInfo, partnerId = '', promoterUid = '') {
|
|
let param = {hotelInfo, captcha: hotelInfo.captcha};
|
|
if (partnerId && partnerId.length > 0) {
|
|
param.partnerId = partnerId;
|
|
}
|
|
if (promoterUid && promoterUid.length > 0) {
|
|
param.promoterUid = promoterUid;
|
|
}
|
|
return request.post("/merchantApply/hotel/submit", param, {login: true})
|
|
}
|
|
|
|
// 保存店铺入驻草稿
|
|
export function saveHotelDraft(hotelInfo, partnerId = '', promoterUid = '') {
|
|
let param = {hotelInfo, captcha: hotelInfo.captcha};
|
|
if (partnerId && partnerId.length > 0) {
|
|
param.partnerId = partnerId;
|
|
}
|
|
if (promoterUid && promoterUid.length > 0) {
|
|
param.promoterUid = promoterUid;
|
|
}
|
|
return request.post("/merchantApply/hotel/saveDraft", param, {login: true})
|
|
}
|
|
|
|
// 提交特产供应商入驻申请
|
|
export function saveSupplier(hotelInfo, supplierInfo, partnerId = '', promoterUid = '') {
|
|
let param = {hotelInfo, supplierInfo, captcha: supplierInfo.captcha};
|
|
if (partnerId && partnerId.length > 0) {
|
|
param.partnerId = partnerId;
|
|
}
|
|
if (promoterUid && promoterUid.length > 0) {
|
|
param.promoterUid = promoterUid;
|
|
}
|
|
return request.post("/merchantApply/goodSupplier/submit", param, {login: true})
|
|
}
|
|
|
|
// 提交文玩供应商入驻申请
|
|
export function saveWenwanSupplier(hotelInfo, supplierInfo, partnerId = '', promoterUid = '') {
|
|
let param = {hotelInfo, supplierInfo, captcha: supplierInfo.captcha};
|
|
if (partnerId && partnerId.length > 0) {
|
|
param.partnerId = partnerId;
|
|
}
|
|
if (promoterUid && promoterUid.length > 0) {
|
|
param.promoterUid = promoterUid;
|
|
}
|
|
return request.post("/merchantApply/wenwanSupplier/submit", param, {login: true})
|
|
}
|
|
|
|
// 保存供应商入驻草稿(特产/文玩共用)
|
|
export function saveSupplierDraft(hotelInfo, supplierInfo, partnerId = '', promoterUid = '') {
|
|
let param = {hotelInfo, supplierInfo, captcha: supplierInfo.captcha};
|
|
if (partnerId && partnerId.length > 0) {
|
|
param.partnerId = partnerId;
|
|
}
|
|
if (promoterUid && promoterUid.length > 0) {
|
|
param.promoterUid = promoterUid;
|
|
}
|
|
return request.post("/merchantApply/supplier/saveDraft", param, {login: true})
|
|
}
|
|
|
|
// 提交采购批发商入驻申请
|
|
export function saveWholesaler(wholesalerInfo) {
|
|
let param = {wholesalerInfo, captcha: wholesalerInfo.captcha};
|
|
return request.post("/merchantApply/wholesaler/submit", param, {login: true})
|
|
}
|
|
|
|
// 保存采购批发商入驻草稿
|
|
export function saveWholesalerDraft(wholesalerInfo) {
|
|
let param = {wholesalerInfo, captcha: wholesalerInfo.captcha};
|
|
return request.post("/merchantApply/wholesaler/saveDraft", param, {login: true})
|
|
}
|
|
|
|
export function saveExperienceStore(params) {
|
|
return request.post("/merchantApply/experienceStore/submit", params, {login: true})
|
|
}
|
|
|
|
export function saveExperienceStoreDraft(params) {
|
|
return request.post("/merchantApply/experienceStore/saveDraft", params, {login: true})
|
|
}
|
|
|
|
export function getExperienceStoreCategoryList() {
|
|
return request.get("/experienceStore/categoryList", {}, {login: true})
|
|
}
|
|
|
|
export function getExperienceStoreInfo(params) {
|
|
return request.get("merchantApply/info/experienceStore", params, {login: true})
|
|
}
|
|
|
|
// 撤销入驻申请
|
|
export function removeApply() {
|
|
return request.post("/merchantApply/revoke")
|
|
}
|
|
|
|
// 特色店铺入驻信息
|
|
export function getHotelInfo(params) {
|
|
return request.get("merchantApply/info/hotel", params, {login: true})
|
|
}
|
|
|
|
// 获取千县名品店铺类型列表
|
|
export function getCountyFamousHotelType(params) {
|
|
return request.get("/countyFamous/hotelType", params, {login: true})
|
|
}
|
|
|
|
/**
|
|
* 旅居管家入驻申请详情
|
|
*/
|
|
export function getTravelInfo(params) {
|
|
return request.get("merchantApply/info/travel", params, {login: true})
|
|
}
|
|
|
|
/**
|
|
* 提交旅居管家入驻申请
|
|
*/
|
|
export function saveTravel(params) {
|
|
return request.post("/merchantApply/travel/submit", params, {login: true})
|
|
}
|
|
|
|
/**
|
|
* 旅居管家申请草稿保存
|
|
*/
|
|
export function saveTravelDraft(params) {
|
|
return request.post("/merchantApply/travel/saveDraft", params, {login: true})
|
|
}
|
|
|
|
/**
|
|
* 旅居管家撤销申请
|
|
*/
|
|
export function revokeTravel(params) {
|
|
return request.post("/merchantApply/travel/revoke", params, {login: true})
|
|
}
|