Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
new_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
new_taobao
Commits
5a7606fe
Commit
5a7606fe
authored
Oct 15, 2020
by
zhangjinzhou
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'jiaoneiqunuan' of gitlab2.dui88.com:wanghongyuan/new_taobao into jiaoneiqunuan
parents
2fc53343
fe271968
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15252 additions
and
4 deletions
+15252
-4
pagepageindex.js
taobao_jn/client/pages/pagepageindex/pagepageindex.js
+8
-1
pagepagerank.acss
taobao_jn/client/pages/pagepagerank/pagepagerank.acss
+2
-2
pagepagerank.js
taobao_jn/client/pages/pagepagerank/pagepagerank.js
+14
-1
debug.log
taobao_jn/debug.log
+15228
-0
No files found.
taobao_jn/client/pages/pagepageindex/pagepageindex.js
View file @
5a7606fe
...
...
@@ -29,6 +29,7 @@ const checkSystem = async () => {
}
Page
({
gameConfigList
:{},
favoredStatus
:
false
,
data
:
{
indexPrize
:
[{
...
...
@@ -179,10 +180,13 @@ Page({
* 获取用户授权信息
*/
async
getAuth
()
{
my
.
showLoading
();
const
userInfo
=
await
getAuthUserInfo
().
catch
(
err
=>
{
console
.
log
(
'未授权成功'
,
err
);
my
.
hideLoading
();
});
if
(
userInfo
)
{
my
.
hideLoading
();
console
.
log
(
'userInfo'
,
userInfo
);
const
{
nickName
,
...
...
@@ -254,6 +258,7 @@ Page({
})
||
{};
if
(
success
)
{
this
.
gameConfigList
=
data
.
gameConfigList
;
// my.hideLoading();
app
.
activityInfo
=
data
;
this
.
judgeDoHelp
();
...
...
@@ -309,9 +314,11 @@ Page({
step
:
this
.
data
.
curGameStep
});
if
(
success
)
{
const
winRate
=
this
.
gameConfigList
[
this
.
data
.
curGameStep
-
1
].
winRate
*
0.01
;
const
propsCD
=
this
.
gameConfigList
[
this
.
data
.
curGameStep
-
1
].
propsCD
;
my
.
redirectTo
({
url
:
'/pages/pagegamemain/pagegamemain?'
+
"step="
+
this
.
data
.
curGameStep
+
"&start="
+
data
.
joinGameStartTime
+
"&end="
+
data
.
joinGameEndTime
+
"&gl="
+
parseFloat
(
data
.
winRate
)
+
"&toolcd="
+
data
.
propsCD
})
"&end="
+
data
.
joinGameEndTime
+
"&gl="
+
winRate
+
"&toolcd="
+
propsCD
})
my
.
hideLoading
();
}
else
{
if
(
data
&&
!
data
.
isVip
)
{
...
...
taobao_jn/client/pages/pagepagerank/pagepagerank.acss
View file @
5a7606fe
...
...
@@ -151,13 +151,13 @@
height: 40rpx;
opacity: 1;
display: block;
left: 1
0
8rpx;
left: 1
8
8rpx;
top: 8rpx;
position: absolute;
font-size: 26rpx;
color: rgba(0, 0, 0, 1);
transform-origin: 0px 0px 0px;
text-align:
center
;
text-align:
left
;
}
.pagerank .ranktex .rankList .rankItem .itemranktemp{
width: 150rpx;
...
...
taobao_jn/client/pages/pagepagerank/pagepagerank.js
View file @
5a7606fe
...
...
@@ -13,6 +13,7 @@ const {
getSystemInfo
}
=
tbcc
.
tb
;
Page
({
changeStr
:
'***'
,
data
:
{
rankList
:
[],
myRankInfo
:
{},
...
...
@@ -62,7 +63,7 @@ Page({
/**获取排行榜 */
async
getRankList
()
{
cons
t
{
le
t
{
success
,
data
}
=
await
API
.
getUserRankList
().
catch
(
r
=>
{
...
...
@@ -72,6 +73,18 @@ Page({
if
(
success
)
{
my
.
hideLoading
();
let
myrank
=
data
.
myRankInfo
.
rank
>=
500
?
'500+'
:
data
.
myRankInfo
.
rank
;
for
(
let
i
=
0
;
i
<
data
.
list
.
length
;
i
++
){
let
len
=
data
.
list
[
i
].
userNick
.
length
;
let
str
=
data
.
list
[
i
].
userNick
;
if
(
len
<=
4
){
data
.
list
[
i
].
userNick
=
str
.
substr
(
0
,
0
)
+
this
.
changeStr
+
str
.
substr
(
len
-
1
,
len
-
1
);
}
else
{
data
.
list
[
i
].
userNick
=
str
.
substr
(
0
,
Math
.
floor
((
len
-
3
)
/
2
))
+
this
.
changeStr
+
str
.
substr
(
len
-
Math
.
floor
((
len
-
3
)
/
2
)
-
1
,
len
-
1
)
}
// substr
}
this
.
setData
({
rankList
:
data
.
list
,
myRankInfo
:
data
.
myRankInfo
,
...
...
taobao_jn/debug.log
View file @
5a7606fe
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