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
0b881d58
Commit
0b881d58
authored
Oct 16, 2020
by
zhangjinzhou
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'jiaoneiqunuan' of gitlab2.dui88.com:wanghongyuan/new_taobao into jiaoneiqunuan
parents
16ef4fac
0b78ea6b
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
7861 additions
and
56 deletions
+7861
-56
compkprizemodal.acss
...jn/client/components/compkprizemodal/compkprizemodal.acss
+2
-2
compkprizemodal.axml
...jn/client/components/compkprizemodal/compkprizemodal.axml
+2
-2
countDownModal.js
taobao_jn/client/components/countDownModal/countDownModal.js
+3
-3
goodsModal.js
taobao_jn/client/components/goodsModal/goodsModal.js
+2
-2
pagepagerank.js
taobao_jn/client/pages/pagepagerank/pagepagerank.js
+52
-47
debug.log
taobao_jn/debug.log
+7800
-0
No files found.
taobao_jn/client/components/compkprizemodal/compkprizemodal.acss
View file @
0b881d58
...
@@ -127,7 +127,7 @@
...
@@ -127,7 +127,7 @@
left: 82rpx;
left: 82rpx;
top: 613rpx;
top: 613rpx;
position: absolute;
position: absolute;
transform-origin:
0rpx 0rpx
0rpx;
transform-origin:
50% 50%
0rpx;
}
}
.pksuccessmodal .pksuccessmodalclose {
.pksuccessmodal .pksuccessmodalclose {
width: 72rpx;
width: 72rpx;
...
@@ -136,7 +136,7 @@
...
@@ -136,7 +136,7 @@
left: 227rpx;
left: 227rpx;
top: 791rpx;
top: 791rpx;
position: absolute;
position: absolute;
transform-origin:
0rpx 0rpx
0rpx;
transform-origin:
50% 50%
0rpx;
}
}
.pksuccessmodal .pkPrizeImg {
.pksuccessmodal .pkPrizeImg {
width: 260rpx;
width: 260rpx;
...
...
taobao_jn/client/components/compkprizemodal/compkprizemodal.axml
View file @
0b881d58
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
<label class="pkfailedtitle" a:if="{{!isWin}}">继续加油,蕉内送您一份小礼物</label>
<label class="pkfailedtitle" a:if="{{!isWin}}">继续加油,蕉内送您一份小礼物</label>
</view>
</view>
<image class="pksuccessmodalbtn " onTap="redirectToIndex" src={{resList['75801bab-c16e-4814-ab19-081933e4abc5'].url}} />
<image class="pksuccessmodalbtn
btn
" onTap="redirectToIndex" src={{resList['75801bab-c16e-4814-ab19-081933e4abc5'].url}} />
<image class="pksuccessmodalclose " onTap="redirectToIndex" src={{resList['5eee69bb-482c-4ce0-beb1-c7c38cdb6fe4'].url}} />
<image class="pksuccessmodalclose
btn
" onTap="redirectToIndex" src={{resList['5eee69bb-482c-4ce0-beb1-c7c38cdb6fe4'].url}} />
<image class="pkPrizeImg " src={{prizeImg}} />
<image class="pkPrizeImg " src={{prizeImg}} />
</view>
</view>
taobao_jn/client/components/countDownModal/countDownModal.js
View file @
0b881d58
...
@@ -19,15 +19,15 @@ Component({
...
@@ -19,15 +19,15 @@ Component({
props
:
{
props
:
{
percent
:
10
,
percent
:
10
,
usePercent
:
0
,
usePercent
:
0
,
countTime
:
1
0
,
countTime
:
2
0
,
styleType
:
'01'
,
//browse_txt_bg count_bg_02
styleType
:
'01'
,
//browse_txt_bg count_bg_02
data
:
{
data
:
{
text
:
'浏览商品
1
0s,获得任务奖励'
,
text
:
'浏览商品
2
0s,获得任务奖励'
,
textBg
:
'//yun.dui88.com/taobaomini/clientCTest/count_bg_02@2x.png'
,
textBg
:
'//yun.dui88.com/taobaomini/clientCTest/count_bg_02@2x.png'
,
progressWidth
:
'130'
,
progressWidth
:
'130'
,
progressHeight
:
'18'
,
progressHeight
:
'18'
,
clock_bg
:
'//yun.dui88.com/taobaomini/clientCTest/clock@2x.png'
,
clock_bg
:
'//yun.dui88.com/taobaomini/clientCTest/clock@2x.png'
,
countTxt
:
'
1
0'
,
countTxt
:
'
2
0'
,
countTxtColor
:
'#1CA4ED'
,
countTxtColor
:
'#1CA4ED'
,
countTxtSize
:
'32'
countTxtSize
:
'32'
}
}
...
...
taobao_jn/client/components/goodsModal/goodsModal.js
View file @
0b881d58
...
@@ -68,7 +68,7 @@ Component({
...
@@ -68,7 +68,7 @@ Component({
if
(
taskType
==
'browseGoods'
)
{
if
(
taskType
==
'browseGoods'
)
{
this
.
browseGoodsTimes
()
this
.
browseGoodsTimes
()
}
}
console
.
log
(
1
0
-
this
.
usePercent
)
console
.
log
(
2
0
-
this
.
usePercent
)
}
}
}
}
},
},
...
@@ -129,7 +129,7 @@ Component({
...
@@ -129,7 +129,7 @@ Component({
this
.
setData
({
this
.
setData
({
usePercent
:
this
.
data
.
usePercent
+
1
usePercent
:
this
.
data
.
usePercent
+
1
},
()
=>
{
},
()
=>
{
if
(
this
.
data
.
usePercent
>=
1
0
)
{
if
(
this
.
data
.
usePercent
>=
2
0
)
{
console
.
log
(
this
.
data
.
usePercent
)
console
.
log
(
this
.
data
.
usePercent
)
this
.
props
.
onCompleteTask
(
taskType
)
this
.
props
.
onCompleteTask
(
taskType
)
clearInterval
(
this
.
timer
)
clearInterval
(
this
.
timer
)
...
...
taobao_jn/client/pages/pagepagerank/pagepagerank.js
View file @
0b881d58
...
@@ -13,42 +13,42 @@ const {
...
@@ -13,42 +13,42 @@ const {
getSystemInfo
getSystemInfo
}
=
tbcc
.
tb
;
}
=
tbcc
.
tb
;
Page
({
Page
({
changeStr
:
'***'
,
changeStr
:
'***'
,
data
:
{
data
:
{
rankList
:
[],
rankList
:
[],
myRankInfo
:
{},
myRankInfo
:
{},
myRank
:
''
,
myRank
:
''
,
activtyTime
:
''
,
activtyTime
:
''
,
rankPrize
:
[{
rankPrize
:
[{
id
:
1
,
id
:
1
,
name
:
'2999元购物金'
,
name
:
'2999元购物金'
,
w
:
63
,
w
:
63
,
left
:
55
left
:
55
},
{
},
{
id
:
2
,
id
:
2
,
name
:
'1111元购物金'
,
name
:
'1111元购物金'
,
w
:
94
,
w
:
94
,
left
:
40
left
:
40
},
{
},
{
id
:
3
,
id
:
3
,
name
:
'蕉内热皮套装'
,
name
:
'蕉内热皮套装'
,
w
:
102
,
w
:
102
,
left
:
32
left
:
32
},
{
},
{
id
:
4
,
id
:
4
,
name
:
'蕉内家居服'
,
name
:
'蕉内家居服'
,
w
:
110
,
w
:
110
,
left
:
28
left
:
28
},
{
},
{
id
:
5
,
id
:
5
,
name
:
'蕉内袜子礼盒'
,
name
:
'蕉内袜子礼盒'
,
w
:
125
,
w
:
125
,
left
:
24
left
:
24
},
{
},
{
id
:
6
,
id
:
6
,
name
:
'蕉内睡眠眼罩'
,
name
:
'蕉内睡眠眼罩'
,
w
:
140
,
w
:
140
,
left
:
12
left
:
12
}]
}]
},
},
...
@@ -72,33 +72,34 @@ Page({
...
@@ -72,33 +72,34 @@ Page({
})
||
{};
})
||
{};
if
(
success
)
{
if
(
success
)
{
my
.
hideLoading
();
my
.
hideLoading
();
let
myrank
=
data
.
myRankInfo
.
rank
>=
500
?
'500+'
:
data
.
myRankInfo
.
rank
;
if
(
data
.
myRankInfo
&&
data
.
myRankInfo
.
rank
)
{
for
(
let
i
=
0
;
i
<
data
.
list
.
length
;
i
++
){
let
myrank
=
data
.
myRankInfo
.
rank
>=
500
?
'500+'
:
data
.
myRankInfo
.
rank
;
let
len
=
data
.
list
[
i
].
userNick
.
length
;
let
str
=
data
.
myRankInfo
.
userNick
;
let
str
=
data
.
list
[
i
].
userNick
;
let
len
=
str
.
length
;
if
(
len
<=
4
)
{
if
(
len
<=
4
)
{
data
.
list
[
i
].
userNick
=
str
.
substr
(
0
,
0
)
+
this
.
changeStr
+
str
.
substr
(
len
-
1
,
len
-
1
);
data
.
myRankInfo
.
userNick
=
str
.
substr
(
0
,
0
)
+
this
.
changeStr
+
str
.
substr
(
len
-
1
,
len
-
1
);
}
else
{
}
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
)
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
({
// substr
myRankInfo
:
data
.
myRankInfo
,
myRank
:
myrank
})
}
}
let
str
=
data
.
myRankInfo
.
userNick
;
for
(
let
i
=
0
;
i
<
data
.
list
.
length
;
i
++
)
{
let
len
=
str
.
length
;
let
len
=
data
.
list
[
i
].
userNick
.
length
;
if
(
len
<=
4
){
let
str
=
data
.
list
[
i
].
userNick
;
data
.
myRankInfo
.
userNick
=
str
.
substr
(
0
,
0
)
+
this
.
changeStr
+
str
.
substr
(
len
-
1
,
len
-
1
);
if
(
len
<=
4
)
{
}
else
{
data
.
list
[
i
].
userNick
=
str
.
substr
(
0
,
0
)
+
this
.
changeStr
+
str
.
substr
(
len
-
1
,
len
-
1
);
data
.
myRankInfo
.
userNick
=
str
.
substr
(
0
,
Math
.
floor
((
len
-
3
)
/
2
))
+
this
.
changeStr
+
str
.
substr
(
len
-
Math
.
floor
((
len
-
3
)
/
2
)
-
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
({
this
.
setData
({
rankList
:
data
.
list
,
rankList
:
data
.
list
,
myRankInfo
:
data
.
myRankInfo
,
myRank
:
myrank
})
})
}
}
},
},
...
@@ -122,7 +123,11 @@ Page({
...
@@ -122,7 +123,11 @@ Page({
const
dd
=
new
Date
(
time
).
getDate
()
+
''
;
const
dd
=
new
Date
(
time
).
getDate
()
+
''
;
let
m
=
mm
.
padStart
(
2
,
'0'
);
let
m
=
mm
.
padStart
(
2
,
'0'
);
let
d
=
dd
.
padStart
(
2
,
'0'
);
let
d
=
dd
.
padStart
(
2
,
'0'
);
const
t1
=
`
${
yy
}
.
${
m
}
.
${
d
}
`
;
const
t2
=
new
Date
(
time
).
getHours
()
+
''
;
//获取时
const
t3
=
new
Date
(
time
).
getMinutes
()
+
''
;
//获取分
const
t4
=
new
Date
(
time
).
getMilliseconds
()
+
''
;
//获取秒
console
.
log
(
time
,
new
Date
(
time
+
48
*
60
*
60
*
1000
).
toLocaleString
(),
'time'
);
const
t1
=
`
${
yy
}
.
${
m
}
.
${
d
}
`
+
t2
.
padStart
(
2
,
'0'
)
+
":"
+
t3
.
padStart
(
2
,
'0'
);
let
date
=
t1
;
let
date
=
t1
;
return
date
;
return
date
;
},
},
...
...
taobao_jn/debug.log
View file @
0b881d58
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