Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SURPRISED
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
华国豪
SURPRISED
Commits
193b4fa1
Commit
193b4fa1
authored
Dec 18, 2019
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改 数据
parent
84e50f51
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
10 deletions
+21
-10
openRedPacket.html
html/openRedPacket.html
+21
-10
No files found.
html/openRedPacket.html
View file @
193b4fa1
...
...
@@ -266,14 +266,19 @@
<script
type=
"text/javascript"
src=
"../js/mian.js"
></script>
<script
type=
"text/javascript"
src=
"../js/layer/layer.js"
></script>
<script>
let
userInfo
,
dataObj
if
(
localStorage
.
u
&&
localStorage
.
dataObj
){
userInfo
=
JSON
.
parse
(
localStorage
.
u
)
// if(document.referrer.indexOf('billPage') == -1){ //判断是不是从 billPage.html的页面跳转过来的
//
// localStorage.removeItem("billPage")
// localStorage.removeItem("dataObj")
// window.location.href = 'login.html?page=billPage';
// }
let
billPage
,
dataObj
if
(
localStorage
.
billPage
&&
localStorage
.
dataObj
){
billPage
=
JSON
.
parse
(
localStorage
.
billPage
)
dataObj
=
JSON
.
parse
(
localStorage
.
dataObj
)
}
else
{
localStorage
.
removeItem
(
"userInfo"
)
localStorage
.
removeItem
(
"billPage"
)
localStorage
.
removeItem
(
"dataObj"
)
window
.
location
.
href
=
'login.html?page=billPage'
;
...
...
@@ -284,13 +289,13 @@
getClose
()
function
getClose
()
{
let
msg
=
{
customerId
:
userInfo
.
customerId
customerId
:
billPage
.
customerId
}
$
.
ajax
({
type
:
"POST"
,
url
:
`
${
getApiUrl
().
urlPost
}
`
,
contentType
:
"application/json"
,
data
:
getAjaxData
(
"app_get_GetCloseRedPacketPrice"
,
msg
),
data
:
getAjaxData
(
"app_get_GetCloseRedPacketPrice"
,
msg
,
billPage
.
token
,
billPage
.
secretKey
),
async
:
false
,
success
:
function
(
res
)
{
if
(
res
.
resultCode
===
1
)
{
...
...
@@ -301,6 +306,9 @@
}
else
{
layer
.
msg
(
res
.
message
)
}
},
error
:
function
(
res
)
{
}
})
}
...
...
@@ -349,13 +357,13 @@
function
getData
(){
let
msg
=
{
customerId
:
userInfo
.
customerId
customerId
:
billPage
.
customerId
}
$
.
ajax
({
type
:
"POST"
,
url
:
`
${
getApiUrl
().
urlPost
}
`
,
contentType
:
"application/json"
,
data
:
getAjaxData
(
"app_get_YearCloseRedPacket"
,
msg
),
data
:
getAjaxData
(
"app_get_YearCloseRedPacket"
,
msg
,
billPage
.
token
,
billPage
.
secretKey
),
async
:
false
,
success
:
function
(
res
)
{
if
(
res
.
resultCode
===
1
)
{
...
...
@@ -366,6 +374,9 @@
}
else
{
layer
.
msg
(
res
.
message
)
}
},
error
:
function
(
res
)
{
}
})
};
...
...
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