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
0
Merge Requests
0
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
c6302b35
Commit
c6302b35
authored
Oct 16, 2026
by
yuzhenWang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改申请加盟,客服,一次性code换token,已经发布生产
parent
90c9a0a0
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
10 deletions
+32
-10
myPackageA/applyFranchise/applyFranchise.vue
+10
-5
myPackageA/integralExchange/exchange.vue
+12
-1
pages/lanch/index.vue
+4
-0
pages/orderConfirm/orderConfirm.vue
+6
-4
No files found.
myPackageA/applyFranchise/applyFranchise.vue
View file @
c6302b35
...
...
@@ -120,7 +120,8 @@
restrictedOrCanelContent
:
''
,
//禁用/注销展示文本
sharePosterObj
:
{
invitationCode
:
''
,
inviteUserId
:
''
},
//通过分享海报进来
showVerificationCode
:
false
,
//验证码是否展示,
miniShare
:
''
//是否通过小程序分享邀请加盟进入
miniShare
:
''
,
//是否通过小程序分享邀请加盟进入
isInMiniProgram
:
dataHandling
.
h5RuntimeEnv
()
==
"wechat-miniprogram"
}
},
...
...
@@ -180,7 +181,11 @@
},
window
.
location
.
href
);
// #endif
}
else
{
this
.
showVerificationCode
=
true
if
(
!
this
.
isInMiniProgram
){
this
.
showVerificationCode
=
true
}
// this.showVerificationCode = true
}
},
...
...
@@ -220,9 +225,9 @@
// uni.setStorageSync('loginType', 'visitor')
// return
// }
// 之前登录过,但和申请加盟的账号不一致
console
.
log
(
'走到这了'
,
this
.
userInfo
&&
(
this
.
userInfo
.
mobile
!==
this
.
form
.
mobile
));
if
(
this
.
userInfo
&&
(
this
.
userInfo
.
mobile
!==
this
.
form
.
mobile
))
{
// 没有运行在微信小程序内,才走这段
if
(
!
this
.
isInMiniProgram
&&
this
.
userInfo
&&
(
this
.
userInfo
.
mobile
!==
this
.
form
.
mobile
))
{
this
.
showVerificationCode
=
true
uni
.
setStorageSync
(
'loginType'
,
'visitor'
)
this
.
loginType
=
'visitor'
...
...
myPackageA/integralExchange/exchange.vue
View file @
c6302b35
...
...
@@ -117,6 +117,7 @@
<
script
>
import
api
from
'../../api/api'
;
import
dataHandling
from
"@/util/dataHandling"
;
import
wx
from
'weixin-js-sdk'
export
default
{
data
(){
...
...
@@ -245,7 +246,17 @@
});
// #endif
// #ifndef MP-WEIXIN
window
.
open
(
'https://work.weixin.qq.com/kfid/kfc08c55f4170e7fc9e'
)
// window.open('https://work.weixin.qq.com/kfid/kfc08c55f4170e7fc9e')
if
(
uni
.
getStorageSync
(
'mpCffp'
)
==
'1'
)
{
let
d
=
{
corpId
:
'ww43cac1cf9dd6a3d0'
,
//企业微信ID
url
:
'https://work.weixin.qq.com/kfid/kfc08c55f4170e7fc9e'
,
//企业微信客户接入链接
}
let
p
=
Object
.
keys
(
d
).
reduce
((
p
,
k
,
i
)
=>
p
+
`
${
i
?
'&'
:
'?'
}${
k
}
=
${
d
[
k
]}
`
,
''
);
wx
.
miniProgram
.
reLaunch
({
url
:
`/pages/index/homePage
${
p
}
`
});
//触发小程序刷新页面获取appId
}
else
{
window
.
open
(
'https://work.weixin.qq.com/kfid/kfc08c55f4170e7fc9e'
)
}
// #endif
},
goBack
()
{
...
...
pages/lanch/index.vue
View file @
c6302b35
...
...
@@ -98,6 +98,10 @@
visitorUuid
:
uni
.
getStorageSync
(
'visitorUuid'
)?
uni
.
getStorageSync
(
'visitorUuid'
):
dataHandling
.
uuid
()
}
api
.
loginVerification
(
params
).
then
((
res
)
=>
{
uni
.
hideLoading
()
// uni.showModal({
// content:`${JSON.stringify(res)}`
// })
if
(
res
[
'success'
])
{
// 账号禁用用户
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
==
2
){
...
...
pages/orderConfirm/orderConfirm.vue
View file @
c6302b35
...
...
@@ -213,7 +213,8 @@
dataToken
:
''
,
oldToken
:
''
,
//原始用户token
pollTimer
:
''
,
runEnv
:
dataHandling
.
h5RuntimeEnv
()
runEnv
:
dataHandling
.
h5RuntimeEnv
(),
}
},
computed
:
{
...
...
@@ -356,9 +357,10 @@
}
let
_this
=
this
param
.
isPayOrAuth
=
1
;
uni
.
showToast
({
content
:
`微信支付:
${
JSON
.
stringify
(
param
)}
`
})
// uni.showModal({
// content:`微信支付:${JSON.stringify(param)}`
// })
// return
api
.
wxAuthorize
(
param
).
then
((
res
)
=>
{
_this
.
paymentBtnDisabled
=
false
;
...
...
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