Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
广
广州酒家-中秋小程序-20250724
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
SparkProjects
广州酒家-中秋小程序-20250724
Commits
528238df
Commit
528238df
authored
Aug 11, 2025
by
俞嘉婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 接收渠道参数
parent
2e6eae94
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
5 deletions
+27
-5
index.js
pages/index/index.js
+4
-1
webview.js
pages/webview/webview.js
+3
-3
project.private.config.json
project.private.config.json
+20
-1
No files found.
pages/index/index.js
View file @
528238df
...
...
@@ -11,9 +11,12 @@ Page({
// options 参数:
// redirect,
// isNeedLogin,
// channel,
const
channel
=
options
.
channel
||
'0'
;
this
.
options
=
{
...
options
,
redirect
:
encodeURIComponent
(
options
.
redirect
?
decodeURIComponent
(
options
.
redirect
)
:
default_rUrl
)
channel
,
redirect
:
encodeURIComponent
((
options
.
redirect
?
decodeURIComponent
(
options
.
redirect
)
:
default_rUrl
)
+
(
channel
?
`&channel=
${
channel
}
`
:
''
))
};
this
.
isLogin
();
},
...
...
pages/webview/webview.js
View file @
528238df
...
...
@@ -34,7 +34,7 @@ Page({
const
loginRes
=
await
reqDbLogin
({
data
:
{
code
:
res
.
code
,
redirect
:
redirectUrl
redirect
:
this
.
redirectUrl
}
})
if
(
loginRes
.
success
)
{
...
...
@@ -47,9 +47,9 @@ Page({
})
}
}
}
else
if
(
redirectUrl
)
{
}
else
if
(
this
.
redirectUrl
)
{
this
.
setData
({
path
:
redirectUrl
,
path
:
this
.
redirectUrl
,
})
}
},
...
...
project.private.config.json
View file @
528238df
...
...
@@ -20,5 +20,24 @@
"ignoreDevUnusedFiles"
:
true
},
"libVersion"
:
"3.8.12"
,
"condition"
:
{}
"condition"
:
{
"miniprogram"
:
{
"list"
:
[
{
"name"
:
"公众号渠道"
,
"pathName"
:
"pages/index/index"
,
"query"
:
"channel=1"
,
"scene"
:
null
,
"launchMode"
:
"default"
},
{
"name"
:
"助力"
,
"pathName"
:
"pages/index/index"
,
"query"
:
"isNeedLogin=1&redirect=https%3A%2F%2Factivity.m.duibatest.com.cn%2Fprojectx%2Fp94791461%2Fshare.html%3FappID%3D19487%26type%3D2%26code%3DJPSO36"
,
"scene"
:
null
,
"launchMode"
:
"default"
}
]
}
}
}
\ No newline at end of file
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