Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
junlebao-milk-20240619
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
junlebao-milk-20240619
Commits
10fcbcf7
Commit
10fcbcf7
authored
Jun 26, 2024
by
俞嘉婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 活动列表接口 传channel和city参数
parent
8a3fa3d1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
index.ts
miniprogram/pages/index/index.ts
+2
-0
store.ts
miniprogram/store/store.ts
+11
-0
No files found.
miniprogram/pages/index/index.ts
View file @
10fcbcf7
...
@@ -32,6 +32,8 @@ ComponentWithStore({
...
@@ -32,6 +32,8 @@ ComponentWithStore({
methods
:
{
methods
:
{
onShow
()
{
onShow
()
{
this
.
updateHomeInfo
();
this
.
updateHomeInfo
();
const
{
channel
,
city
}
=
this
.
options
||
{};
store
.
paramsObj
=
{
channel
,
city
};
},
},
getPhoneNumber
(
e
:
any
)
{
getPhoneNumber
(
e
:
any
)
{
console
.
log
(
e
.
detail
)
console
.
log
(
e
.
detail
)
...
...
miniprogram/store/store.ts
View file @
10fcbcf7
...
@@ -5,6 +5,13 @@ import { API_PATH } from "../utils/config";
...
@@ -5,6 +5,13 @@ import { API_PATH } from "../utils/config";
class
Store
{
class
Store
{
paramsObj
=
{
longitude
:
0
,
latitude
:
0
,
channel
:
''
,
city
:
''
}
homeInfo
=
{
homeInfo
=
{
nickname
:
''
,
nickname
:
''
,
avatar
:
""
,
avatar
:
""
,
...
@@ -48,6 +55,10 @@ class Store {
...
@@ -48,6 +55,10 @@ class Store {
// });
// });
const
{
success
,
data
}
=
await
request
({
const
{
success
,
data
}
=
await
request
({
url
:
API_PATH
.
activity
,
url
:
API_PATH
.
activity
,
data
:
{
channel
:
this
.
paramsObj
.
channel
,
city
:
this
.
paramsObj
.
city
,
},
});
});
if
(
!
success
)
return
;
if
(
!
success
)
return
;
...
...
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