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
4036324b
Commit
4036324b
authored
Oct 20, 2020
by
Edwise
🍷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
两个列表用户id优化
parent
79bb51a8
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
3442 additions
and
17 deletions
+3442
-17
app.js
taobao_jn/client/app.js
+1
-0
cominvitelistmodal.js
...lient/components/cominvitelistmodal/cominvitelistmodal.js
+5
-5
pagepagerank.acss
taobao_jn/client/pages/pagepagerank/pagepagerank.acss
+2
-2
pagepagerank.js
taobao_jn/client/pages/pagepagerank/pagepagerank.js
+10
-10
debug.log
taobao_jn/debug.log
+3424
-0
No files found.
taobao_jn/client/app.js
View file @
4036324b
...
...
@@ -31,6 +31,7 @@ App({
*/
handleQuery
(
query
)
{
const
{
activityId
}
=
query
;
console
.
log
(
"query活动id"
,
activityId
)
// this.activityId = activityId || '5f8550a3964f97be3647a635';
// this.activityId = activityId || '5f8831e67389891bfd6bb35f'; //赵然1
// this.activityId = activityId || '5f895d0f0cb733e071b4082b'; //开发者测试
...
...
taobao_jn/client/components/cominvitelistmodal/cominvitelistmodal.js
View file @
4036324b
...
...
@@ -48,11 +48,11 @@ Component({
console
.
log
(
data
.
list
[
i
].
createTime
)
let
len
=
data
.
list
[
i
].
userNick
.
length
;
let
str
=
data
.
list
[
i
].
userNick
;
if
(
len
<=
4
){
data
.
list
[
i
].
userNick
=
str
.
substr
(
0
,
0
)
+
changeStr
+
str
.
substr
(
len
-
1
,
len
-
1
);
}
else
{
data
.
list
[
i
].
userNick
=
str
.
substr
(
0
,
Math
.
floor
((
len
-
3
)
/
2
))
+
changeStr
+
str
.
substr
(
len
-
Math
.
floor
((
len
-
3
)
/
2
)
-
1
,
len
-
1
)
}
//
if(len<=4){
data
.
list
[
i
].
userNick
=
str
.
substr
(
0
,
1
)
+
changeStr
+
str
.
substr
(
len
-
1
,
len
-
1
);
//
}else{
//
data.list[i].userNick = str.substr(0,Math.floor((len-3)/2))+changeStr+str.substr(len-Math.floor((len-3)/2)-1,len-1)
//
}
}
console
.
log
(
data
.
list
);
this
.
setData
({
...
...
taobao_jn/client/pages/pagepagerank/pagepagerank.acss
View file @
4036324b
...
...
@@ -47,7 +47,7 @@
width: 400rpx;
height: 20rpx;
opacity: 0.61960784;
left: 1
50
rpx;
left: 1
84
rpx;
top: -13rpx;
position: absolute;
transform-origin: 0rpx 0rpx 0rpx;
...
...
@@ -165,7 +165,7 @@
height: 40rpx;
opacity: 1;
display: block;
left:
188
rpx;
left:
220
rpx;
top: 8rpx;
position: absolute;
font-size: 26rpx;
...
...
taobao_jn/client/pages/pagepagerank/pagepagerank.js
View file @
4036324b
...
...
@@ -76,11 +76,11 @@ Page({
let
myrank
=
data
.
myRankInfo
.
rank
>=
500
?
'500+'
:
data
.
myRankInfo
.
rank
;
let
str
=
data
.
myRankInfo
.
userNick
;
let
len
=
str
.
length
;
if
(
len
<=
4
)
{
data
.
myRankInfo
.
userNick
=
str
.
substr
(
0
,
0
)
+
this
.
changeStr
+
str
.
substr
(
len
-
1
,
len
-
1
);
}
else
{
data
.
myRankInfo
.
userNick
=
str
.
substr
(
0
,
Math
.
floor
((
len
-
3
)
/
2
))
+
this
.
changeStr
+
str
.
substr
(
len
-
Math
.
floor
((
len
-
3
)
/
2
)
-
1
,
len
-
1
)
}
//
if (len <= 4) {
data
.
myRankInfo
.
userNick
=
str
.
substr
(
0
,
1
)
+
this
.
changeStr
+
str
.
substr
(
len
-
1
,
len
-
1
);
//
} else {
//
data.myRankInfo.userNick = str.substr(0, Math.floor((len - 3) / 2)) + this.changeStr + str.substr(len - Math.floor((len - 3) / 2) - 1, len - 1)
//
}
this
.
setData
({
myRankInfo
:
data
.
myRankInfo
,
myRank
:
myrank
...
...
@@ -90,11 +90,11 @@ Page({
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
)
}
//
if (len <= 4) {
data
.
list
[
i
].
userNick
=
str
.
substr
(
0
,
1
)
+
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)
//
}
}
this
.
setData
({
rankList
:
data
.
list
,
...
...
taobao_jn/debug.log
View file @
4036324b
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