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