Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
libai
/
Static
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
932985ef
authored
3 years ago
by
dabai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xx
parent
611f095f
master
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
53 additions
and
0 deletions
js/common2.js
js/common2.js
View file @
932985ef
...
...
@@ -51,6 +51,59 @@ function $ajax(opt) {
})
}
function
getInit
()
{
return
new
Promise
(
function
(
resovle
,
reject
)
{
$ajax
({
url
:
'/active201904/getUserInfo.html'
,
}).
then
(
function
(
res
)
{
if
(
res
.
vest
==
41
)
{
if
(
url_get_params
().
appversion
<
5960
)
{
currencyUnit
=
'樱花'
;
//貨幣單位
incomeUnit
=
'花瓣'
;
//收益單位
headUrl
=
'https://app.ixiulive.com/static/images/headc.png'
;
currencyImg
=
'<img class="current2" src="https://app.ixiulive.com/static/images/current2.png" />'
;
currencyImg2
=
'https://app.ixiulive.com/static/images/current2s.png'
;
incomeImg
=
'<img class="income2" src="https://app.ixiulive.com/static/images/income2.png" />'
;
giftObjImg
=
'https://app.ixiulive.com/static/images/current2.png'
;
}
else
{
currencyUnit
=
'寶石'
;
//貨幣單位
incomeUnit
=
'羽毛'
;
//收益單位
headUrl
=
'https://app.ixiulive.com/static/images/head2.png'
;
currencyImg
=
'<img class="current4" src="https://app.ixiulive.com/static/images/current4.png" />'
;
currencyImg2
=
'https://app.ixiulive.com/static/images/current4s.png'
;
incomeImg
=
'<img class="income4" src="https://app.ixiulive.com/static/images/income4.png" />'
;
giftObjImg
=
'https://app.ixiulive.com/static/images/current4.png'
;
}
}
else
if
(
res
.
vest
==
40
)
{
currencyUnit
=
'金幣'
;
//貨幣單位
incomeUnit
=
'金豆'
;
//收益單位
headUrl
=
'https://app.ixiulive.com/static/images/headp.png'
;
currencyImg
=
'<img class="current3" src="https://app.ixiulive.com/static/images/current3.png" />'
;
currencyImg2
=
'https://app.ixiulive.com/static/images/current3s.png'
;
incomeImg
=
'<img class="income3" src="https://app.ixiulive.com/static/images/income3.png" />'
;
giftObjImg
=
'https://app.ixiulive.com/static/images/current3.png'
;
}
else
if
(
res
.
vest
==
50
||
res
.
vest
==
60
)
{
currencyUnit
=
'寶石'
;
//貨幣單位
incomeUnit
=
'羽毛'
;
//收益單位
headUrl
=
'https://app.ixiulive.com/static/images/head2.png'
;
currencyImg
=
'<img class="current4" src="https://app.ixiulive.com/static/images/current4.png" />'
;
currencyImg2
=
'https://app.ixiulive.com/static/images/current4s.png'
;
incomeImg
=
'<img class="income4" src="https://app.ixiulive.com/static/images/income4.png" />'
;
giftObjImg
=
'https://app.ixiulive.com/static/images/current4.png'
;
}
else
{
currencyUnit
=
'寶石'
;
//貨幣單位
incomeUnit
=
'螢火'
;
//收益單位
headUrl
=
'https://zhibocdn.yabolive.net/comm/user/boy.png'
;
currencyImg
=
'<img class="current1" src="https://app.ixiulive.com/static/images/current1.png" />'
;
currencyImg2
=
'https://app.ixiulive.com/static/images/current1s.png'
;
incomeImg
=
'<img class="income1" src="https://app.ixiulive.com/static/images/income11.png" />'
;
giftObjImg
=
'https://app.ixiulive.com/static/images/current1.png'
;
}
resovle
(
res
);
})
})
}
function
getTime
(
time
)
{
var
timezone
=
8
;
//目标时区时间,东八区
var
offset_GMT
=
new
Date
(
time
).
getTimezoneOffset
();
// 本地时间和格林威治的时间差,单位为分钟
...
...
This diff is collapsed.
Click to expand it.
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