Feat(入驻):扫码跳转增加子账号参数字段
This commit is contained in:
+23
-10
@@ -11,10 +11,8 @@ export function getImages() {
|
||||
}
|
||||
|
||||
// 商户申请页面数据
|
||||
export function getShopData(partnerId) {
|
||||
let param = {};
|
||||
if (partnerId) param.partnerId = partnerId;
|
||||
return request.get("/merchantApply/index", param, {login: true})
|
||||
export function getShopData(params) {
|
||||
return request.get("/merchantApply/index", params, {login: true})
|
||||
}
|
||||
|
||||
// 查看商户申请
|
||||
@@ -29,23 +27,38 @@ export function getWholesaler() {
|
||||
}
|
||||
|
||||
// 提交店铺入驻申请
|
||||
export function saveShop(hotelInfo, captcha, partnerId) {
|
||||
export function saveShop(hotelInfo, partnerId = '', promoterUid = '') {
|
||||
let param = {hotelInfo, captcha: hotelInfo.captcha};
|
||||
if (partnerId && partnerId.length > 0) param.partnerId = partnerId;
|
||||
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 saveSupplier(hotelInfo, supplierInfo, partnerId) {
|
||||
export function saveSupplier(hotelInfo, supplierInfo, partnerId = '', promoterUid = '') {
|
||||
let param = {hotelInfo, supplierInfo, captcha: supplierInfo.captcha};
|
||||
if (partnerId && partnerId.length > 0) param.partnerId = partnerId;
|
||||
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) {
|
||||
export function saveWenwanSupplier(hotelInfo, supplierInfo, partnerId = '', promoterUid = '') {
|
||||
let param = {hotelInfo, supplierInfo, captcha: supplierInfo.captcha};
|
||||
if (partnerId && partnerId.length > 0) param.partnerId = partnerId;
|
||||
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})
|
||||
}
|
||||
|
||||
|
||||
@@ -480,7 +480,8 @@ export default {
|
||||
videos: [],
|
||||
district: [],
|
||||
qualificationImg: [],
|
||||
partnerId: 0,
|
||||
partnerId: '',
|
||||
promoterUid: '',
|
||||
experienceStoreCategoryList: [],
|
||||
experienceStoreCategoryIndex: 0,
|
||||
form: {
|
||||
@@ -518,9 +519,10 @@ export default {
|
||||
}
|
||||
},
|
||||
onLoad(opts) {
|
||||
this.partnerId = opts.partnerId
|
||||
this.partnerId = opts.partnerId || ''
|
||||
this.promoterUid = opts.promoterUid || ''
|
||||
this.queryCity()
|
||||
getShopData().then(({ data }) => {
|
||||
getShopData({partnerId: this.partnerId, promoterUid: this.promoterUid}).then(({ data }) => {
|
||||
this.notice = data.merchantApplyNotice
|
||||
})
|
||||
getExperienceStoreCategoryList().then(({ data }) => {
|
||||
|
||||
@@ -57,6 +57,7 @@ export default {
|
||||
return {
|
||||
webUrl: this.$VUE_APP_RESOURCES_URL,
|
||||
partnerId: '',
|
||||
promoterUid: '',
|
||||
partnerType: '',
|
||||
hotelId: null,
|
||||
hasHotel: null,
|
||||
@@ -71,8 +72,9 @@ export default {
|
||||
},
|
||||
onLoad(options) {
|
||||
this.partnerId = options.partnerId || ''
|
||||
this.promoterUid = options.promoterUid || ''
|
||||
getImages().then(({data}) => this.images = data)
|
||||
getShopData(this.partnerId).then(({data}) => {
|
||||
getShopData({partnerId: this.partnerId, promoterUid: this.promoterUid}).then(({data}) => {
|
||||
this.partnerType = data.partnerType
|
||||
this.hotelId = data.hotelId
|
||||
this.hasHotel = data.hasHotel
|
||||
@@ -91,7 +93,7 @@ export default {
|
||||
if (this.hasTravel === 1) {
|
||||
this.$global.goSupplierMini()
|
||||
} else {
|
||||
this.$yrouter.push('/pkg_join/views/travelResidence?partnerId=' + this.partnerId)
|
||||
this.$yrouter.push('/pkg_join/views/travelResidence?partnerId=' + this.partnerId + '&promoterUid=' + this.promoterUid)
|
||||
}
|
||||
},
|
||||
/**
|
||||
@@ -104,14 +106,14 @@ export default {
|
||||
if (this.hasSupplier === 1) {
|
||||
this.$global.goSupplierMini()
|
||||
} else {
|
||||
this.$yrouter.push(`/pkg_join/views/supplier?type=goods_supplier&partnerId=${this.partnerId}`)
|
||||
this.$yrouter.push(`/pkg_join/views/supplier?type=goods_supplier&partnerId=${this.partnerId}&promoterUid=${this.promoterUid}`)
|
||||
}
|
||||
break
|
||||
case 'wenwan_supplier':
|
||||
if (this.hasSupplier === 1) {
|
||||
this.$global.goSupplierMini()
|
||||
} else {
|
||||
this.$yrouter.push(`/pkg_join/views/supplier?type=wenwan_supplier&partnerId=${this.partnerId}`)
|
||||
this.$yrouter.push(`/pkg_join/views/supplier?type=wenwan_supplier&partnerId=${this.partnerId}&promoterUid=${this.promoterUid}`)
|
||||
}
|
||||
break
|
||||
case 'shop':
|
||||
@@ -129,13 +131,13 @@ export default {
|
||||
this.$global.goSupplierMini()
|
||||
return
|
||||
}
|
||||
this.$yrouter.push('/pkg_join/views/experienceStore?partnerId=' + this.partnerId)
|
||||
this.$yrouter.push('/pkg_join/views/experienceStore?partnerId=' + this.partnerId + '&promoterUid=' + this.promoterUid)
|
||||
break
|
||||
case 'wholesaler':
|
||||
if (this.hasWholesaler === 1) {
|
||||
this.$global.goSupplierMini()
|
||||
} else {
|
||||
this.$yrouter.push(`/pkg_join/views/wholesaler`)
|
||||
this.$yrouter.push(`/pkg_join/views/wholesaler?partnerId=${this.partnerId}&promoterUid=${this.promoterUid}`)
|
||||
}
|
||||
break
|
||||
}
|
||||
|
||||
@@ -473,7 +473,8 @@ export default {
|
||||
mixins: [pageListenMixins],
|
||||
data() {
|
||||
return {
|
||||
partnerId: null,
|
||||
partnerId: '',
|
||||
promoterUid: '',
|
||||
pics: [],
|
||||
quaPics: [],
|
||||
tips: '获取验证码',
|
||||
@@ -603,7 +604,8 @@ export default {
|
||||
}
|
||||
},
|
||||
onLoad(options) {
|
||||
this.partnerId = options.partnerId
|
||||
this.partnerId = options.partnerId || ''
|
||||
this.promoterUid = options.promoterUid || ''
|
||||
const local_form = uni.getStorageSync('merchantApplyHotel' + '_form') || {}
|
||||
this.quaPics = uni.getStorageSync('merchantApplyHotel' + '_quaPics') || []
|
||||
if(!local_form.serviceTime) {
|
||||
@@ -694,7 +696,7 @@ export default {
|
||||
getCity().then(({data}) => {
|
||||
this.district = data
|
||||
})
|
||||
getShopData().then(({data}) => {
|
||||
getShopData({partnerId: this.partnerId, promoterUid: this.promoterUid}).then(({data}) => {
|
||||
this.hotelTypeList = data.hotelTypeList || []
|
||||
this.columnsType = this.hotelTypeList
|
||||
this.notice = data.merchantApplyNotice
|
||||
@@ -969,7 +971,7 @@ export default {
|
||||
if (postData.coverType === 2) {
|
||||
postData.cover = postData.coverVideo
|
||||
}
|
||||
saveShop(postData, this.partnerId).then(res => {
|
||||
saveShop(postData, this.partnerId, this.promoterUid).then(res => {
|
||||
if (res.status === 200) {
|
||||
uni.showToast({
|
||||
title: '您的入驻申请已提交成功,请耐心等待审核',
|
||||
|
||||
@@ -567,6 +567,7 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
partnerId: '',
|
||||
promoterUid: '',
|
||||
tips: '获取验证码',
|
||||
infoTitle: '',
|
||||
pics: [],
|
||||
@@ -763,6 +764,7 @@ export default {
|
||||
},
|
||||
onLoad(options) {
|
||||
this.partnerId = options.partnerId || ''
|
||||
this.promoterUid = options.promoterUid || ''
|
||||
const type = options.type
|
||||
const local = uni.getStorageSync(type) || {}
|
||||
const local_form = uni.getStorageSync(type + '_form') || {}
|
||||
@@ -881,7 +883,7 @@ export default {
|
||||
getCity().then(({data}) => {
|
||||
this.district = data
|
||||
})
|
||||
getShopData().then(({data}) => {
|
||||
getShopData({partnerId: this.partnerId, promoterUid: this.promoterUid}).then(({data}) => {
|
||||
this.columnsType = data.hotelTypeList
|
||||
this.columnsSupplierType = data.supplierTypeList
|
||||
this.notice = data.merchantApplyNotice
|
||||
@@ -1161,7 +1163,7 @@ export default {
|
||||
postData.cover = postData.coverVideo
|
||||
}
|
||||
if (this.infoTitle === '特产') {
|
||||
saveSupplier(postData, this.formSupplier, this.partnerId).then(res => {
|
||||
saveSupplier(postData, this.formSupplier, this.partnerId, this.promoterUid).then(res => {
|
||||
if (res.status === 200) {
|
||||
uni.showToast({
|
||||
title: '您的入驻申请已提交成功,请耐心等待审核',
|
||||
@@ -1182,7 +1184,7 @@ export default {
|
||||
})
|
||||
})
|
||||
} else {
|
||||
saveWenwanSupplier(postData, this.formSupplier, this.partnerId).then(res => {
|
||||
saveWenwanSupplier(postData, this.formSupplier, this.partnerId, this.promoterUid).then(res => {
|
||||
if (res.status === 200) {
|
||||
uni.showToast({
|
||||
title: '您的入驻申请已提交成功,请耐心等待审核',
|
||||
|
||||
@@ -408,7 +408,8 @@ export default {
|
||||
cultureImg: [],
|
||||
// 资质图片
|
||||
qualificationImg: [],
|
||||
partnerId: 0,
|
||||
partnerId: '',
|
||||
promoterUid: '',
|
||||
captcha: '',
|
||||
form: {
|
||||
/**
|
||||
@@ -466,9 +467,10 @@ export default {
|
||||
}
|
||||
},
|
||||
onLoad(opts) {
|
||||
this.partnerId = opts.partnerId
|
||||
this.partnerId = opts.partnerId || ''
|
||||
this.promoterUid = opts.promoterUid || ''
|
||||
this.queryCity()
|
||||
getShopData().then(({data}) => {
|
||||
getShopData({partnerId: this.partnerId, promoterUid: this.promoterUid}).then(({data}) => {
|
||||
this.notice = data.merchantApplyNotice
|
||||
this.initInfo()
|
||||
})
|
||||
|
||||
@@ -322,10 +322,14 @@ export default {
|
||||
stateType: 'primary',
|
||||
// 是否为审核中
|
||||
reviewing: false,
|
||||
pageKeyId: Object.freeze('merchantApplyWholesaler')
|
||||
pageKeyId: Object.freeze('merchantApplyWholesaler'),
|
||||
partnerId: '',
|
||||
promoterUid: ''
|
||||
}
|
||||
},
|
||||
onLoad(options) {
|
||||
this.partnerId = options.partnerId || ''
|
||||
this.promoterUid = options.promoterUid || ''
|
||||
this.init()
|
||||
},
|
||||
onReady() {
|
||||
@@ -373,7 +377,7 @@ export default {
|
||||
getCity().then(({data}) => {
|
||||
this.district = data
|
||||
})
|
||||
getShopData().then(({data}) => {
|
||||
getShopData({partnerId: this.partnerId, promoterUid: this.promoterUid}).then(({data}) => {
|
||||
this.notice = data.merchantApplyNotice
|
||||
this.initInfo()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user