Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
hello_taobao
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
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
wildfirecode13
hello_taobao
Commits
0825a19e
Commit
0825a19e
authored
Sep 11, 2020
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
d9925065
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
pagejie_shu_ye.js
dist/pages/pagejie_shu_ye/pagejie_shu_ye.js
+3
-2
pageshou_ye.js
dist/pages/pageshou_ye/pageshou_ye.js
+4
-2
No files found.
dist/pages/pagejie_shu_ye/pagejie_shu_ye.js
View file @
0825a19e
...
...
@@ -22,9 +22,10 @@ Page({
},
onLoad
(
props
)
{
console
.
log
(
'fuck'
,
JSON
.
parse
(
props
.
data
));
// console.log('fuck', JSON.parse(props.data));
const
datstr
=
decodeURIComponent
(
props
.
data
);
const
{
prize
,
openPrizeStatus
,
isShowPrize
}
=
JSON
.
parse
(
props
.
data
);
const
{
prize
,
openPrizeStatus
,
isShowPrize
}
=
JSON
.
parse
(
datstr
);
// isShowPrize只展示一次
if
(
isShowPrize
)
{
// 有奖品
...
...
dist/pages/pageshou_ye/pageshou_ye.js
View file @
0825a19e
...
...
@@ -98,7 +98,9 @@ Page({
// vipInfo..data.isVip = true;
if
(
isEnd
(
endTime
)
&&
(
openPrizeStatus
==
OPEN_PRIZE_STATUS
.
SUCCESS
||
openPrizeStatus
==
OPEN_PRIZE_STATUS
.
NOT_OPEN
))
{
//活动结束,开奖成功or不开奖
my
.
redirectTo
({
url
:
'/pages/pagejie_shu_ye/pagejie_shu_ye?data='
+
JSON
.
stringify
({
prize
,
openPrizeStatus
,
isShowPrize
})
});
let
datstr
=
JSON
.
stringify
({
prize
:
prize
,
openPrizeStatus
:
prize
,
isShowPrize
:
prize
});
datstr
=
encodeURIComponent
(
datstr
);
my
.
redirectTo
({
url
:
'/pages/pagejie_shu_ye/pagejie_shu_ye?data='
+
datstr
});
}
else
{
my
.
redirectTo
({
url
:
'/pages/pagehuo_dong_ye/pagehuo_dong_ye'
});
// my.redirectTo({ url: '/pages/pagehuo_dong_ye/pagehuo_dong_ye?data=' + JSON.stringify({endTime}) });
...
...
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