Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
X
xzf_uniapp-wechat-web
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李智书
xzf_uniapp-wechat-web
Commits
c8e4b7bb
Commit
c8e4b7bb
authored
Nov 21, 2024
by
袁玲利
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
游戏排行榜传参表单格式
parent
48e52309
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
47 additions
and
15 deletions
+47
-15
src/pages/gameOrder/gameOrder.vue
src/pages/gameOrder/gameOrder.vue
+47
-15
No files found.
src/pages/gameOrder/gameOrder.vue
View file @
c8e4b7bb
...
...
@@ -116,7 +116,7 @@ export default {
mounted
()
{
this
.
games
.
sort
(()
=>
0.5
-
Math
.
random
());
this
.
params
.
userId
=
this
.
getQueryParams
(
"
userId
"
);
this
.
params
.
sessionid
=
this
.
getQueryParams
(
"
sessionid
"
)
this
.
params
.
sessionid
=
this
.
getQueryParams
(
"
sessionid
"
)
;
this
.
params
.
behavior
=
"
viewPage
"
;
this
.
params
.
data
=
"
gameOrder
"
;
this
.
GameStatistics
();
...
...
@@ -174,25 +174,57 @@ export default {
},
// 小程序游戏统计接口
async
GameStatistics
()
{
try
{
let
url
=
gHost
+
"
/wechat/svweapp/GameStatistics
"
;
let
data
=
await
this
.
$http
.
post
(
{
url
:
url
,
},
this
.
params
);
if
(
data
.
code
!=
10000
)
{
$
.
ajax
({
url
:
gHost
+
"
/report-push/student-consumer-report/queryPatriarchByStudent
"
,
type
:
"
get
"
,
dataType
:
"
json
"
,
contentType
:
"
application/x-www-form-urlencoded
"
,
data
:
{
phone
:
getQueryParams
(
"
phone
"
),
schoolId
:
getQueryParams
(
"
schoolId
"
),
userId
:
getQueryParams
(
"
userId
"
),
sessionid
:
getQueryParams
(
"
sessionid
"
),
wechattype
:
1
,
},
success
:
function
(
res
)
{
if
(
res
.
code
==
10000
)
{
this_
.
consumerNameArr
=
res
.
obj
.
map
((
element
)
=>
element
.
name
);
this_
.
consumerInfo
=
res
.
obj
;
this_
.
specifiedConsumerInfo
=
this_
.
consumerInfo
[
this_
.
consumerNameIndex
];
}
uni
.
showToast
({
icon
:
"
none
"
,
mask
:
true
,
title
:
data
.
message
,
title
:
res
.
message
,
});
return
;
}
}
catch
(
e
)
{
console
.
log
(
e
);
}
},
error
:
function
(
error
)
{
reject
(
error
);
},
});
// try {
// let url = gHost + "/wechat/svweapp/GameStatistics";
// let data = await this.$http.post(
// {
// url: url,
// },
// this.params
// );
// if (data.code != 10000) {
// uni.showToast({
// icon: "none",
// mask: true,
// title: data.message,
// });
// return;
// }
// } catch (e) {
// console.log(e);
// }
},
launchGame
(
game
)
{
// uni.navigateToMiniProgram({
...
...
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