Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CFFP-HB
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chao Sun
CFFP-HB
Commits
7abf5342
Commit
7abf5342
authored
Jul 23, 2026
by
yuzhenWang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复多账号申请加盟,老是显示一个账号
parent
cc6d6067
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
7 deletions
+19
-7
environments/environment.ts
+1
-1
myPackageA/applyFranchise/applyFranchise.vue
+11
-3
pages/inviteJoin/inviteJoin.vue
+7
-3
No files found.
environments/environment.ts
View file @
7abf5342
...
@@ -55,7 +55,7 @@ const config = {
...
@@ -55,7 +55,7 @@ const config = {
stage
,
stage
,
prod
prod
}
}
let
env
=
'
dev
'
;
let
env
=
'
prod
'
;
let
baseURL
=
config
[
env
].
base_url
;
let
baseURL
=
config
[
env
].
base_url
;
let
apiURL
=
config
[
env
].
api_url
;
let
apiURL
=
config
[
env
].
api_url
;
...
...
myPackageA/applyFranchise/applyFranchise.vue
View file @
7abf5342
...
@@ -87,7 +87,7 @@
...
@@ -87,7 +87,7 @@
import
dataHandling
from
"@/util/dataHandling"
;
import
dataHandling
from
"@/util/dataHandling"
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
import
wx
from
'weixin-js-sdk'
export
default
{
export
default
{
components
:
{
components
:
{
everyJoinPopup
,
everyJoinPopup
,
...
@@ -120,7 +120,7 @@
...
@@ -120,7 +120,7 @@
restrictedOrCanelContent
:
''
,
//禁用/注销展示文本
restrictedOrCanelContent
:
''
,
//禁用/注销展示文本
sharePosterObj
:
{
invitationCode
:
''
,
inviteUserId
:
''
},
//通过分享海报进来
sharePosterObj
:
{
invitationCode
:
''
,
inviteUserId
:
''
},
//通过分享海报进来
showVerificationCode
:
false
,
//验证码是否展示,
showVerificationCode
:
false
,
//验证码是否展示,
miniShare
:
''
//是否通过小程序分享邀请加盟进入
}
}
},
},
...
@@ -132,6 +132,9 @@
...
@@ -132,6 +132,9 @@
if
(
options
.
inviteUserId
)
{
if
(
options
.
inviteUserId
)
{
this
.
inviteUserId
=
options
.
inviteUserId
this
.
inviteUserId
=
options
.
inviteUserId
}
}
if
(
options
.
miniShare
)
{
this
.
miniShare
=
options
.
miniShare
}
if
(
options
.
invitationCode
)
{
if
(
options
.
invitationCode
)
{
this
.
invitationCode
=
options
.
invitationCode
this
.
invitationCode
=
options
.
invitationCode
}
}
...
@@ -222,7 +225,6 @@
...
@@ -222,7 +225,6 @@
this
.
showVerificationCode
=
true
this
.
showVerificationCode
=
true
uni
.
setStorageSync
(
'loginType'
,
'visitor'
)
uni
.
setStorageSync
(
'loginType'
,
'visitor'
)
this
.
loginType
=
'visitor'
this
.
loginType
=
'visitor'
return
return
}
}
if
(
res
.
data
.
data
.
isPartner
&&
this
.
loginType
==
'codelogin'
)
{
if
(
res
.
data
.
data
.
isPartner
&&
this
.
loginType
==
'codelogin'
)
{
...
@@ -362,6 +364,11 @@
...
@@ -362,6 +364,11 @@
uni
.
setStorageSync
(
'cffp_userId'
,
this
.
userId
);
uni
.
setStorageSync
(
'cffp_userId'
,
this
.
userId
);
uni
.
setStorageSync
(
'uni-token'
,
res
.
data
[
'token'
]);
uni
.
setStorageSync
(
'uni-token'
,
res
.
data
[
'token'
]);
uni
.
setStorageSync
(
'visitorUuid'
,
res
.
data
[
'visitorUuid'
]);
uni
.
setStorageSync
(
'visitorUuid'
,
res
.
data
[
'visitorUuid'
]);
// if (dataHandling.h5RuntimeEnv() == 'wechat-miniprogram'&&this.miniShare) {
// wx.miniProgram.reLaunch({url:`/pages/launch/index?token=${res.data['token']}&backUrl=cffpApply`})
// return
// }
this
.
queryInfo
()
this
.
queryInfo
()
// 禁用和注销状态并存,以禁用为准
// 禁用和注销状态并存,以禁用为准
// 已经进行过注销操作的, 弹窗提示90天内不可再次申请加盟为合伙人
// 已经进行过注销操作的, 弹窗提示90天内不可再次申请加盟为合伙人
...
@@ -373,6 +380,7 @@
...
@@ -373,6 +380,7 @@
// this.$refs.restrictedOrCanelTip.open()
// this.$refs.restrictedOrCanelTip.open()
// return
// return
// }
// }
// 是合伙人就不让在加盟
// 是合伙人就不让在加盟
if
(
res
.
data
.
isPartner
&&
res
.
data
.
partnerIsActive
==
1
)
{
if
(
res
.
data
.
isPartner
&&
res
.
data
.
partnerIsActive
==
1
)
{
this
.
$refs
.
everyJoinPopup
.
open
()
this
.
$refs
.
everyJoinPopup
.
open
()
...
...
pages/inviteJoin/inviteJoin.vue
View file @
7abf5342
...
@@ -126,6 +126,7 @@
...
@@ -126,6 +126,7 @@
import
ShareGuide
from
'@/components/ShareGuide/ShareGuide.vue'
;
import
ShareGuide
from
'@/components/ShareGuide/ShareGuide.vue'
;
import
wx
from
'weixin-js-sdk'
import
wx
from
'weixin-js-sdk'
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
import
{
nanoid
}
from
'nanoid'
;
export
default
{
export
default
{
components
:
{
components
:
{
sharePosterPop
,
sharePosterPop
,
...
@@ -302,8 +303,8 @@
...
@@ -302,8 +303,8 @@
if
(
common
.
mobileNoValid
(
this
.
dataForm
.
mobileNumber
))
{
if
(
common
.
mobileNoValid
(
this
.
dataForm
.
mobileNumber
))
{
api
.
saveApplyInfo
(
this
.
dataForm
).
then
(
res
=>
{
api
.
saveApplyInfo
(
this
.
dataForm
).
then
(
res
=>
{
if
(
res
[
'success'
])
{
if
(
res
[
'success'
])
{
this
.
shareId
=
''
this
.
shareId
=
res
.
data
.
id
;
this
.
shareId
=
res
.
data
.
id
;
// #ifdef APP-PLUS
// #ifdef APP-PLUS
this
.
$refs
.
share
.
open
()
this
.
$refs
.
share
.
open
()
// #endif
// #endif
...
@@ -354,6 +355,7 @@
...
@@ -354,6 +355,7 @@
this
.
realName
=
""
this
.
realName
=
""
}
}
if
(
dataHandling
.
h5RuntimeEnv
()
==
'wechat-miniprogram'
)
{
if
(
dataHandling
.
h5RuntimeEnv
()
==
'wechat-miniprogram'
)
{
let
shareInfo
=
{
let
shareInfo
=
{
title
:
'银盾家办家庭财务策划师联盟邀您加入'
,
title
:
'银盾家办家庭财务策划师联盟邀您加入'
,
desc
:
`
${
this
.
realName
}
邀您加入【家庭财策师联盟】,资源+伙伴,共赢未来!`
,
desc
:
`
${
this
.
realName
}
邀您加入【家庭财策师联盟】,资源+伙伴,共赢未来!`
,
...
@@ -364,12 +366,14 @@
...
@@ -364,12 +366,14 @@
// .userId, //分享链接
// .userId, //分享链接
imgUrl
:
this
.
ydLogoShare
,
//图片
imgUrl
:
this
.
ydLogoShare
,
//图片
commonId
:
this
.
invitationCode
,
commonId
:
this
.
invitationCode
,
sharePage
:
'applyFranchise'
//分享出去得页面
sharePage
:
'applyFranchise'
,
//分享出去得页面,
}
}
wx
.
miniProgram
.
postMessage
({
wx
.
miniProgram
.
postMessage
({
data
:
{
data
:
{
type
:
'share'
,
type
:
'share'
,
shareData
:
JSON
.
stringify
(
shareInfo
)
shareData
:
JSON
.
stringify
(
shareInfo
),
messageId
:
nanoid
()
}
}
})
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment