修复分销中心绑定成功后不刷新的问题
This commit is contained in:
@@ -34,7 +34,7 @@ if (envVersion === 'trial') {
|
||||
* @param {string} args.inviteCode - 邀请人的邀请码(必填,非空校验通过后才会执行绑定逻辑)
|
||||
* @returns {void} 无返回值
|
||||
*/
|
||||
export function bindInvite(args) {
|
||||
export async function bindInvite(args) {
|
||||
// 解构入参对象,获取需要的核心参数
|
||||
const {
|
||||
shopUserId,
|
||||
@@ -46,10 +46,10 @@ export function bindInvite(args) {
|
||||
if (!inviteCode || inviteCode === null || inviteCode === undefined) {
|
||||
return;
|
||||
}
|
||||
|
||||
const shopUserInfo=uni.cache.get('shopUserInfo')
|
||||
|
||||
const shopUserInfo = uni.cache.get('shopUserInfo')
|
||||
// 邀请码有效,调用自动绑定邀请人接口,传递绑定所需参数
|
||||
autoBindInviteUser({
|
||||
return await autoBindInviteUser({
|
||||
id: shopUserInfo.id,
|
||||
shopId,
|
||||
inviteCode
|
||||
@@ -185,9 +185,8 @@ export async function handleMixinOnLoad(opt, vm) {
|
||||
// shopId: shopId,
|
||||
// shopUserId: shopUserInfo.id
|
||||
// })
|
||||
|
||||
if (options.inviteCode) {
|
||||
bindInvite(options)
|
||||
return await bindInvite(options)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user