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
652d96d8
Commit
652d96d8
authored
Oct 10, 2020
by
zhangjinzhou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码暂存
parent
c5ab0653
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
9762 additions
and
28 deletions
+9762
-28
comsui_pian_dan_chuang.js
...mponents/comsui_pian_dan_chuang/comsui_pian_dan_chuang.js
+1
-1
debug.log
taobao_mini/client/debug.log
+9716
-0
tmallCat.doCardDraw.json
taobao_mini/client/mocks/tmallCat.doCardDraw.json
+1
-1
tmallCat.getInviteAwardsList.json
taobao_mini/client/mocks/tmallCat.getInviteAwardsList.json
+1
-1
tmallCat.getUserCardInfo.json
taobao_mini/client/mocks/tmallCat.getUserCardInfo.json
+2
-2
pageshou_ye.acss
taobao_mini/client/pages/pageshou_ye/pageshou_ye.acss
+10
-5
pageshou_ye.axml
taobao_mini/client/pages/pageshou_ye/pageshou_ye.axml
+2
-2
pageshou_ye.js
taobao_mini/client/pages/pageshou_ye/pageshou_ye.js
+29
-16
No files found.
taobao_mini/client/components/comsui_pian_dan_chuang/comsui_pian_dan_chuang.js
View file @
652d96d8
...
@@ -45,7 +45,7 @@ Component({
...
@@ -45,7 +45,7 @@ Component({
let
subtit
=
""
;
let
subtit
=
""
;
if
(
btntype
==
1
)
{
if
(
btntype
==
1
)
{
tit
=
"你获得了"
+
cardType
+
"碎片"
;
tit
=
"你获得了"
+
cardType
+
"碎片"
;
if
(
nearchashare
&&
nearchaprize
.
length
>
0
){
if
(
nearchashare
&&
nearchaprize
.
length
>
0
&&
nearchashare
<=
3
){
subtit
=
"再召唤"
+
nearchashare
+
"位好友就能获得"
+
nearchaprize
;
subtit
=
"再召唤"
+
nearchashare
+
"位好友就能获得"
+
nearchaprize
;
}
}
}
else
if
(
btntype
==
2
)
{
}
else
if
(
btntype
==
2
)
{
...
...
taobao_mini/client/debug.log
View file @
652d96d8
This source diff could not be displayed because it is too large. You can
view the blob
instead.
taobao_mini/client/mocks/tmallCat.doCardDraw.json
View file @
652d96d8
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
"success"
:
true
,
"success"
:
true
,
"message"
:
""
,
"message"
:
""
,
"data"
:
{
"data"
:
{
"cardType"
:
1
,
"cardType"
:
2
,
"uncommon"
:
true
"uncommon"
:
true
}
}
}
}
\ No newline at end of file
taobao_mini/client/mocks/tmallCat.getInviteAwardsList.json
View file @
652d96d8
...
@@ -28,6 +28,6 @@
...
@@ -28,6 +28,6 @@
"times"
:
30
"times"
:
30
}
}
],
],
"inviteCount"
:
30
"inviteCount"
:
17
}
}
}
}
\ No newline at end of file
taobao_mini/client/mocks/tmallCat.getUserCardInfo.json
View file @
652d96d8
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
"success"
:
true
,
"success"
:
true
,
"message"
:
"网络异常"
,
"message"
:
"网络异常"
,
"data"
:
{
"data"
:
{
"shoesName"
:
""
,
"shoesName"
:
"
jijia
"
,
"cardCountList"
:
{
"cardCountList"
:
{
"1"
:
99
,
"1"
:
99
,
"2"
:
1
,
"2"
:
1
,
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
"8"
:
0
,
"8"
:
0
,
"9"
:
0
"9"
:
0
},
},
"collectedCount"
:
9
,
"collectedCount"
:
2
,
"canTakeRankPrize"
:
false
,
"canTakeRankPrize"
:
false
,
"shoesType"
:
1
,
"shoesType"
:
1
,
"inviteResult"
:
{
"inviteResult"
:
{
...
...
taobao_mini/client/pages/pageshou_ye/pageshou_ye.acss
View file @
652d96d8
.shou_ye {
.shou_ye {
top: 0rpx;
/* top: 50%;
left: 0rpx;
left: 50%; */
/* margin-top: -100rpx; */
/* margin-left: -375rpx; */
/* right: 0rpx; */
/* bottom: 0rpx; */
width: 750rpx;
width: 750rpx;
height: 1624rpx;
height: 1624rpx;
display: block;
display: block;
...
@@ -1228,6 +1232,7 @@
...
@@ -1228,6 +1232,7 @@
position: absolute;
position: absolute;
font-size: 22rpx;
font-size: 22rpx;
color: #ffffff;
color: #ffffff;
letter-spacing: 1rpx;
transform-origin: 0rpx 0rpx 0rpx;
transform-origin: 0rpx 0rpx 0rpx;
text-align: center;
text-align: center;
}
}
...
@@ -1693,17 +1698,17 @@
...
@@ -1693,17 +1698,17 @@
}
}
.shou_ye .botnode .homedi .hui_yuan_zhuan_qu {
.shou_ye .botnode .homedi .hui_yuan_zhuan_qu {
width: 304rpx;
width: 304rpx;
height:
266
rpx;
height:
192
rpx;
opacity: 1;
opacity: 1;
display: block;
display: block;
left: 52rpx;
left: 52rpx;
top: 4
46
rpx;
top: 4
50
rpx;
position: absolute;
position: absolute;
transform-origin: 0rpx 0rpx 0rpx;
transform-origin: 0rpx 0rpx 0rpx;
}
}
.shou_ye .botnode .homedi .shuang_shi_yi_zhuan_qu {
.shou_ye .botnode .homedi .shuang_shi_yi_zhuan_qu {
width: 304rpx;
width: 304rpx;
height:
266
rpx;
height:
192
rpx;
opacity: 1;
opacity: 1;
display: block;
display: block;
left: 392rpx;
left: 392rpx;
...
...
taobao_mini/client/pages/pageshou_ye/pageshou_ye.axml
View file @
652d96d8
<view class="style1">
<view class="style1">
<
view class="shou_ye
" disable-scroll="{{canscroll}}">
<
scroll-view class="shou_ye" scroll-y="{{true}}" scroll-top="{{100}}
" disable-scroll="{{canscroll}}">
<image class="bg" src={{resList['05608aab-d250-45fe-9cd0-6c55b3a7b821'].url}} />
<image class="bg" src={{resList['05608aab-d250-45fe-9cd0-6c55b3a7b821'].url}} />
<view class="homescroll" />
<view class="homescroll" />
<view class="topnode">
<view class="topnode">
...
@@ -197,7 +197,7 @@
...
@@ -197,7 +197,7 @@
<image class="shuang_shi_yi_zhuan_qu" onTap="registerD11" src={{resList['e9a0ad73-6fe7-40bd-98cc-9a985bc413e7'].url}} />
<image class="shuang_shi_yi_zhuan_qu" onTap="registerD11" src={{resList['e9a0ad73-6fe7-40bd-98cc-9a985bc413e7'].url}} />
</view>
</view>
</view>
</view>
</view>
</
scroll-
view>
</view>
</view>
<dialog-modal a:if="{{showdia}}"></dialog-modal>
<dialog-modal a:if="{{showdia}}"></dialog-modal>
<view class="page-game" disable-scroll="true">
<view class="page-game" disable-scroll="true">
...
...
taobao_mini/client/pages/pageshou_ye/pageshou_ye.js
View file @
652d96d8
...
@@ -113,6 +113,11 @@ Page({
...
@@ -113,6 +113,11 @@ Page({
app
.
nickName
=
"张三"
;
app
.
nickName
=
"张三"
;
app
.
avatar
=
"//yun.duiba.com.cn/spark/assets/头像test.30f8cbe95c93400e90281b524e1ab7685b7ccb16.png"
;
app
.
avatar
=
"//yun.duiba.com.cn/spark/assets/头像test.30f8cbe95c93400e90281b524e1ab7685b7ccb16.png"
;
this
.
login
();
this
.
login
();
console
.
log
(
"onload========>"
);
},
firstShow
(
e
){
console
.
log
(
"firstshow"
,
Document
);
},
},
onReady
()
{
onReady
()
{
let
main
=
this
.
spark_startEngine
();
//main.addEventListener....
let
main
=
this
.
spark_startEngine
();
//main.addEventListener....
...
@@ -377,7 +382,7 @@ Page({
...
@@ -377,7 +382,7 @@ Page({
if
(
nearchashare
>
0
)
{
if
(
nearchashare
>
0
)
{
nearchatxt
=
"再召唤"
+
nearchashare
+
"好友必得"
+
nearchaprize
;
nearchatxt
=
"再召唤"
+
nearchashare
+
"好友必得"
+
nearchaprize
;
}
}
console
.
log
(
"sharepropos
"
,
sharepropos
);
console
.
log
(
"sharepropos
55555555===>"
,
sharepropos
,
nearchatxt
,
nearchashare
);
this
.
setData
({
this
.
setData
({
inviteAwardList
:
list
,
inviteAwardList
:
list
,
inviteCount
:
inviteCount
,
inviteCount
:
inviteCount
,
...
@@ -450,7 +455,8 @@ Page({
...
@@ -450,7 +455,8 @@ Page({
const
{
success
,
data
}
=
firstprize
;
const
{
success
,
data
}
=
firstprize
;
if
(
success
)
{
if
(
success
)
{
let
{
cardType
}
=
data
;
let
{
cardType
}
=
data
;
let
spimg
=
resList
[
"shanhai2"
].
url
;
let
cardname
=
this
.
data
.
shoesName
;
let
spimg
=
resList
[
cardname
+
""
+
cardType
].
url
;
let
uncommon
=
false
;
let
uncommon
=
false
;
let
btntype
=
uncommon
?
2
:
1
;
let
btntype
=
uncommon
?
2
:
1
;
this
.
setData
({
this
.
setData
({
...
@@ -666,8 +672,10 @@ Page({
...
@@ -666,8 +672,10 @@ Page({
let
drawTimes
=
this
.
data
.
drawTimes
;
let
drawTimes
=
this
.
data
.
drawTimes
;
if
(
drawTimes
<
1
)
{
//无次数
if
(
drawTimes
<
1
)
{
//无次数
let
infotit
=
"今日免费次数已用完"
;
let
infotit
=
"今日免费次数已用完"
;
if
(
this
.
data
.
nearchashare
>
0
)
{
if
(
this
.
data
.
nearchashare
>
0
&&
this
.
data
.
nearchashare
<=
3
)
{
infotit
+=
"
\n
再召唤"
+
this
.
data
.
nearchashare
+
"好友就能获得"
+
this
.
data
.
nearchaprize
;
infotit
+=
"
\n
再召唤"
+
this
.
data
.
nearchashare
+
"好友就能获得"
+
this
.
data
.
nearchaprize
;
}
else
{
//有个每次最多抽取次数
infotit
+=
"
\n
请明日再来"
;
}
}
this
.
setData
({
this
.
setData
({
infobtntype
:
2
,
infobtntype
:
2
,
...
@@ -677,22 +685,24 @@ Page({
...
@@ -677,22 +685,24 @@ Page({
this
.
openInfo
();
this
.
openInfo
();
return
;
return
;
}
}
//
let docardata = await API.doCardDraw().catch(res => {
let
docardata
=
await
API
.
doCardDraw
().
catch
(
res
=>
{
//
commonToast(res && res.message);
commonToast
(
res
&&
res
.
message
);
//
}) || {};
})
||
{};
let
docardata
=
{
//
let docardata = {
"success"
:
true
,
//
"success": true,
"message"
:
""
,
//
"message": "",
"data"
:
{
//
"data": {
"cardType"
:
1
,
//
"cardType": 1,
"uncommon"
:
true
//
"uncommon": true
}
//
}
}
//
}
const
{
success
,
data
}
=
docardata
;
const
{
success
,
data
}
=
docardata
;
console
.
log
(
"抽卡结果"
,
docardata
);
console
.
log
(
"抽卡结果"
,
docardata
);
if
(
success
)
{
if
(
success
)
{
const
{
cardType
,
uncommon
}
=
data
;
const
{
cardType
,
uncommon
}
=
data
;
let
spimg
=
resList
[
"shanhai2"
].
url
;
let
cardname
=
this
.
data
.
shoesName
;
console
.
log
(
cardname
,
cardType
);
let
spimg
=
resList
[
cardname
+
""
+
cardType
].
url
;
let
btntype
=
uncommon
?
2
:
1
;
let
btntype
=
uncommon
?
2
:
1
;
this
.
setData
({
this
.
setData
({
cardType
:
cardType
,
cardType
:
cardType
,
...
@@ -724,6 +734,7 @@ Page({
...
@@ -724,6 +734,7 @@ Page({
*/
*/
onShareSp
()
{
onShareSp
()
{
console
.
log
(
"分享碎片"
);
console
.
log
(
"分享碎片"
);
this
.
shareAct
();
},
},
/**
/**
* 助力-会员直接加入游戏
* 助力-会员直接加入游戏
...
@@ -861,7 +872,9 @@ Page({
...
@@ -861,7 +872,9 @@ Page({
if
(
success
)
{
if
(
success
)
{
let
{
cardType
,
uncommon
,
rewardType
,
addDrawTimes
}
=
data
;
let
{
cardType
,
uncommon
,
rewardType
,
addDrawTimes
}
=
data
;
if
(
cardType
)
{
//给卡片
if
(
cardType
)
{
//给卡片
let
spimg
=
resList
[
"shanhai2"
].
url
;
let
cardname
=
this
.
data
.
shoesName
;
let
spimg
=
resList
[
cardname
+
""
+
cardType
].
url
;
let
btntype
=
uncommon
?
2
:
1
;
let
btntype
=
uncommon
?
2
:
1
;
this
.
setData
({
this
.
setData
({
cardType
:
cardType
,
cardType
:
cardType
,
...
...
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