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
9067d195
Commit
9067d195
authored
Sep 30, 2020
by
zhangjinzhou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码暂存
parent
76132b49
Changes
40
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
40 changed files
with
23857 additions
and
112 deletions
+23857
-112
api.js
taobao_mini/client/api.js
+70
-10
app.js
taobao_mini/client/app.js
+1
-1
app.json
taobao_mini/client/app.json
+6
-7
comci_shu_yong_wan.axml
...ent/components/comci_shu_yong_wan/comci_shu_yong_wan.axml
+1
-1
comci_shu_yong_wan.js
...lient/components/comci_shu_yong_wan/comci_shu_yong_wan.js
+12
-5
comdan_chuang_ren_qi_pai_ming1.js
...chuang_ren_qi_pai_ming1/comdan_chuang_ren_qi_pai_ming1.js
+1
-1
comdui_huan_xin_pin.js
...ent/components/comdui_huan_xin_pin/comdui_huan_xin_pin.js
+1
-1
comhuo_de_sui_pian.js
...lient/components/comhuo_de_sui_pian/comhuo_de_sui_pian.js
+1
-1
comxin_ren_li_bao.js
.../client/components/comxin_ren_li_bao/comxin_ren_li_bao.js
+1
-1
comxuan_xie_dan_chuang.js
...mponents/comxuan_xie_dan_chuang/comxuan_xie_dan_chuang.js
+5
-2
debug.log
taobao_mini/client/debug.log
+23284
-0
mock.js
taobao_mini/client/mock.js
+2
-1
tmallCat.doCardDraw.json
taobao_mini/client/mocks/tmallCat.doCardDraw.json
+8
-0
tmallCat.doHelp.json
taobao_mini/client/mocks/tmallCat.doHelp.json
+6
-0
tmallCat.getActivityBaseInfoById.json
...o_mini/client/mocks/tmallCat.getActivityBaseInfoById.json
+16
-0
tmallCat.getChartList.json
taobao_mini/client/mocks/tmallCat.getChartList.json
+33
-0
tmallCat.getDrawTimes.json
taobao_mini/client/mocks/tmallCat.getDrawTimes.json
+7
-0
tmallCat.getInviteAwardsList.json
taobao_mini/client/mocks/tmallCat.getInviteAwardsList.json
+33
-0
tmallCat.getMyPrizeList.json
taobao_mini/client/mocks/tmallCat.getMyPrizeList.json
+7
-0
tmallCat.getPickShoesList.json
taobao_mini/client/mocks/tmallCat.getPickShoesList.json
+28
-0
tmallCat.getUserCardInfo.json
taobao_mini/client/mocks/tmallCat.getUserCardInfo.json
+25
-0
tmallCat.getUserInfo.json
taobao_mini/client/mocks/tmallCat.getUserInfo.json
+0
-15
tmallCat.getVipInfo.json
taobao_mini/client/mocks/tmallCat.getVipInfo.json
+8
-0
tmallCat.login.json
taobao_mini/client/mocks/tmallCat.login.json
+7
-0
tmallCat.pickShoes.json
taobao_mini/client/mocks/tmallCat.pickShoes.json
+7
-0
tmallCat.receiveEnamePrize.json
taobao_mini/client/mocks/tmallCat.receiveEnamePrize.json
+8
-0
tmallCat.receiveObjectPrize.json
taobao_mini/client/mocks/tmallCat.receiveObjectPrize.json
+7
-0
tmallCat.takeCollectedPrize.json
taobao_mini/client/mocks/tmallCat.takeCollectedPrize.json
+9
-0
tmallCat.takeFirstPrize.json
taobao_mini/client/mocks/tmallCat.takeFirstPrize.json
+7
-0
tmallCat.takeInvitePrize.json
taobao_mini/client/mocks/tmallCat.takeInvitePrize.json
+10
-0
tmallCat.takeRankPrize.json
taobao_mini/client/mocks/tmallCat.takeRankPrize.json
+9
-0
pageji_sui_pian_ye1.axml
...client/pages/pageji_sui_pian_ye1/pageji_sui_pian_ye1.axml
+54
-52
pageji_sui_pian_ye1.js
...i/client/pages/pageji_sui_pian_ye1/pageji_sui_pian_ye1.js
+170
-5
pageji_sui_pian_ye1.json
...client/pages/pageji_sui_pian_ye1/pageji_sui_pian_ye1.json
+3
-1
pagepai_xingitem.js
...ao_mini/client/pages/pagepai_xingitem/pagepai_xingitem.js
+1
-1
pagepin_tu_xian_shi.js
...i/client/pages/pagepin_tu_xian_shi/pagepin_tu_xian_shi.js
+1
-1
pageshou_ye_xuan_zhong.axml
.../pages/pageshou_ye_xuan_zhong/pageshou_ye_xuan_zhong.axml
+1
-1
pageshou_ye_xuan_zhong.js
...nt/pages/pageshou_ye_xuan_zhong/pageshou_ye_xuan_zhong.js
+4
-2
pagexiao_xie_zi.js
taobao_mini/client/pages/pagexiao_xie_zi/pagexiao_xie_zi.js
+1
-1
request.js
taobao_mini/client/tbcc-sdk/lib/request.js
+2
-2
No files found.
taobao_mini/client/api.js
View file @
9067d195
...
...
@@ -12,6 +12,66 @@ const request = tbccRequest({
// api handle 列表
const
apiList
=
{
...
capi
,
pickShoes
:
{
handle
:
'pickShoes'
,
method
:
'post'
,
isShowLoading
:
false
},
takeFirstPrize
:
{
handle
:
'takeFirstPrize'
,
method
:
'post'
,
isShowLoading
:
false
},
takeRankPrize
:
{
handle
:
'takeRankPrize'
,
method
:
'post'
,
isShowLoading
:
false
},
doCardDraw
:
{
handle
:
'doCardDraw'
,
method
:
'post'
,
isShowLoading
:
false
},
takeCollectedPrize
:
{
handle
:
'takeCollectedPrize'
,
method
:
'post'
,
isShowLoading
:
false
},
getUserCardInfo
:
{
handle
:
'getUserCardInfo'
,
method
:
'post'
,
isShowLoading
:
false
},
getDrawTimes
:
{
handle
:
'getDrawTimes'
,
method
:
'post'
,
isShowLoading
:
false
},
getChartList
:
{
handle
:
'getChartList'
,
method
:
'post'
,
isShowLoading
:
false
},
takeInvitePrize
:
{
handle
:
'takeInvitePrize'
,
method
:
'post'
,
isShowLoading
:
false
},
login
:
{
handle
:
'login'
,
method
:
'post'
,
isShowLoading
:
false
},
getActivityBaseInfoById
:
{
handle
:
'getActivityBaseInfoById'
,
method
:
'get'
,
isShowLoading
:
false
},
getMyPrizeList
:
{
handle
:
'getMyPrizeList'
,
method
:
'get'
,
isShowLoading
:
false
},
receiveObjectPrize
:
{
handle
:
'receiveObjectPrize'
,
method
:
'get'
,
...
...
@@ -22,24 +82,24 @@ const apiList = {
method
:
'get'
,
isShowLoading
:
false
},
getMyPrizeList
:
{
handle
:
'
getMyPrizeList
'
,
doHelp
:
{
handle
:
'
doHelp
'
,
method
:
'get'
,
isShowLoading
:
false
},
get
ActivityBaseInfoById
:
{
handle
:
'get
ActivityBaseInfoById
'
,
get
VipInfo
:
{
handle
:
'get
VipInfo
'
,
method
:
'get'
,
isShowLoading
:
false
},
get
UserInfo
:
{
handle
:
'get
UserInfo
'
,
method
:
'
ge
t'
,
get
InviteAwardsList
:
{
handle
:
'get
InviteAwardsList
'
,
method
:
'
pos
t'
,
isShowLoading
:
false
},
login
:
{
handle
:
'
login
'
,
method
:
'
ge
t'
,
getPickShoesList
:
{
handle
:
'
getPickShoesList
'
,
method
:
'
pos
t'
,
isShowLoading
:
false
}
};
...
...
taobao_mini/client/app.js
View file @
9067d195
...
...
@@ -7,7 +7,7 @@ cloud.init({
App
({
requestType
:
'cloud'
,
// yapi,cloud: 云函数
requestType
:
'
yapi
'
,
// yapi,cloud: 云函数
requestType
:
'
local
'
,
// yapi,cloud: 云函数
cloudName
:
'tmallCat'
,
// 主云函数项目名 tmallCat
// cloudName: 'bubbleSurviva', // 主云函数项目名 tmallCat
cloud
,
...
...
taobao_mini/client/app.json
View file @
9067d195
{
"pages"
:
[
"pages/index/index"
,
"pages/pageshop/pageshop"
,
"pages/myprize/myprize"
"pages/pageji_sui_pian_ye1/pageji_sui_pian_ye1"
,
"pages/pagepai_xingitem/pagepai_xingitem"
,
"pages/pagepin_tu_xian_shi/pagepin_tu_xian_shi"
,
"pages/pageshou_ye_xuan_zhong/pageshou_ye_xuan_zhong"
,
"pages/pagexiao_xie_zi/pagexiao_xie_zi"
],
"window"
:
{
"enableSkia"
:
"true"
,
"allowsBounceVertical"
:
"NO"
}
"window"
:
{}
}
\ No newline at end of file
taobao_mini/client/components/comci_shu_yong_wan/comci_shu_yong_wan.axml
View file @
9067d195
...
...
@@ -9,7 +9,7 @@
今日免费次数已用完 再召唤x位好友就能获得xxx
</label>
</view>
<image class="an_niu_guan_bi_dan_chuang209" src={{resList['a112b3c0-8002-48f5-aa63-8b8d50baa359'].url}} />
<image class="an_niu_guan_bi_dan_chuang209" src={{resList['a112b3c0-8002-48f5-aa63-8b8d50baa359'].url}}
onTap="onModalClose"
/>
<image class="an_niu208" src={{resList['b3e41ca9-d486-47ca-8ed6-804d19e77aa8'].url}} />
</view>
</view>
...
...
taobao_mini/client/components/comci_shu_yong_wan/comci_shu_yong_wan.js
View file @
9067d195
...
...
@@ -3,13 +3,20 @@
import
resList
from
'../../resconfig/resList'
;
Component
({
props
:
{},
data
:
{},
methods
:
{},
data
:
{
resList
:
resList
},
methods
:
{
onModalClose
(){
const
{
onModalClose
}
=
this
.
props
;
onModalClose
&&
onModalClose
();
}
},
onInit
(
props
)
{
this
.
setData
(
this
.
data
||
{
this
.
setData
({
resList
:
resList
});
}
}
,
});
\ No newline at end of file
taobao_mini/client/components/comdan_chuang_ren_qi_pai_ming1/comdan_chuang_ren_qi_pai_ming1.js
View file @
9067d195
...
...
@@ -7,7 +7,7 @@ Component({
methods
:
{},
onInit
(
props
)
{
this
.
setData
(
this
.
data
||
{
this
.
setData
({
resList
:
resList
});
}
...
...
taobao_mini/client/components/comdui_huan_xin_pin/comdui_huan_xin_pin.js
View file @
9067d195
...
...
@@ -7,7 +7,7 @@ Component({
methods
:
{},
onInit
(
props
)
{
this
.
setData
(
this
.
data
||
{
this
.
setData
({
resList
:
resList
});
}
...
...
taobao_mini/client/components/comhuo_de_sui_pian/comhuo_de_sui_pian.js
View file @
9067d195
...
...
@@ -7,7 +7,7 @@ Component({
methods
:
{},
onInit
(
props
)
{
this
.
setData
(
this
.
data
||
{
this
.
setData
({
resList
:
resList
});
}
...
...
taobao_mini/client/components/comxin_ren_li_bao/comxin_ren_li_bao.js
View file @
9067d195
...
...
@@ -7,7 +7,7 @@ Component({
methods
:
{},
onInit
(
props
)
{
this
.
setData
(
this
.
data
||
{
this
.
setData
({
resList
:
resList
});
}
...
...
taobao_mini/client/components/comxuan_xie_dan_chuang/comxuan_xie_dan_chuang.js
View file @
9067d195
...
...
@@ -3,11 +3,14 @@
import
resList
from
'../../resconfig/resList'
;
Component
({
props
:
{},
data
:
{},
data
:
{
ruleModalVisible
:
false
,
},
methods
:
{},
onInit
(
props
)
{
this
.
setData
(
this
.
data
||
{
this
.
setData
({
resList
:
resList
});
}
...
...
taobao_mini/client/debug.log
View file @
9067d195
This diff is collapsed.
Click to expand it.
taobao_mini/client/mock.js
View file @
9067d195
const
mock
=
{
getUserInfo
:
require
(
'../../project/src/canvas/game/mock/miniTb/tmallCat.getUserInfo.json'
)
getUserInfo
:
require
(
'./mocks/tmallCat.pickShoes.json'
),
pickShoes
:
require
(
'./mocks/tmallCat.pickShoes.json'
),
}
export
default
mock
;
taobao_mini/client/mocks/tmallCat.doCardDraw.json
0 → 100644
View file @
9067d195
{
"success"
:
true
,
"message"
:
""
,
"data"
:
{
"cardType"
:
1
,
"uncommon"
:
false
}
}
\ No newline at end of file
taobao_mini/client/mocks/tmallCat.doHelp.json
0 → 100644
View file @
9067d195
{
"success"
:
true
,
"message"
:
""
,
"data"
:
{
}
}
\ No newline at end of file
taobao_mini/client/mocks/tmallCat.getActivityBaseInfoById.json
0 → 100644
View file @
9067d195
{
"success"
:
true
,
"message"
:
""
,
"data"
:
{
"rule"
:
"活动规则test233"
,
"startTime"
:
1601445959737
,
"endTime"
:
1601455959737
,
"awardReceiveExpiredTime"
:
1601445959737
,
"source1"
:
50
,
"source2"
:
"1"
,
"shoesList"
:{
"shoesType"
:
1
,
"shoesName"
:
"山海"
}
}
}
\ No newline at end of file
taobao_mini/client/mocks/tmallCat.getChartList.json
0 → 100644
View file @
9067d195
{
"success"
:
true
,
"message"
:
""
,
"data"
:
{
"myData"
:
{
"rank"
:
3
,
"userNick"
:
"张三"
,
"count"
:
13
},
"list"
:
[
{
"rank"
:
1
,
"userNick"
:
"张1"
,
"count"
:
17
},
{
"rank"
:
2
,
"userNick"
:
"张2"
,
"count"
:
16
},
{
"rank"
:
3
,
"userNick"
:
"张3"
,
"count"
:
13
},
{
"rank"
:
4
,
"userNick"
:
"张4"
,
"count"
:
10
}
]
}
}
\ No newline at end of file
taobao_mini/client/mocks/tmallCat.getDrawTimes.json
0 → 100644
View file @
9067d195
{
"success"
:
true
,
"message"
:
""
,
"data"
:
{
"drawTimes"
:
2
}
}
\ No newline at end of file
taobao_mini/client/mocks/tmallCat.getInviteAwardsList.json
0 → 100644
View file @
9067d195
{
"success"
:
true
,
"message"
:
"网络异常"
,
"data"
:
{
"list"
:
[
{
"type"
:
1
,
"status"
:
1
,
"rewards"
:
3
,
"times"
:
5
},
{
"type"
:
1
,
"status"
:
1
,
"rewards"
:
3
,
"times"
:
5
},
{
"type"
:
1
,
"status"
:
1
,
"rewards"
:
3
,
"times"
:
5
},
{
"type"
:
1
,
"status"
:
1
,
"rewards"
:
3
,
"times"
:
5
}
],
"inviteCount"
:
6
}
}
\ No newline at end of file
taobao_mini/client/mocks/tmallCat.getMyPrizeList.json
0 → 100644
View file @
9067d195
{
"success"
:
true
,
"message"
:
""
,
"data"
:
{
"list"
:
[]
}
}
\ No newline at end of file
taobao_mini/client/mocks/tmallCat.getPickShoesList.json
0 → 100644
View file @
9067d195
{
"success"
:
true
,
"message"
:
"网络异常"
,
"data"
:
{
"list"
:[
{
"shoesType"
:
1
,
"count"
:
1
},
{
"shoesType"
:
2
,
"count"
:
1
},
{
"shoesType"
:
3
,
"count"
:
1
},
{
"shoesType"
:
4
,
"count"
:
1
},
{
"shoesType"
:
5
,
"count"
:
1
}
]
}
}
\ No newline at end of file
taobao_mini/client/mocks/tmallCat.getUserCardInfo.json
0 → 100644
View file @
9067d195
{
"success"
:
true
,
"message"
:
"网络异常"
,
"data"
:
{
"shoesName"
:
"山海"
,
"cardCountList"
:
{
"1"
:
1
,
"2"
:
1
,
"3"
:
1
,
"4"
:
1
,
"5"
:
1
,
"6"
:
1
,
"7"
:
1
,
"8"
:
1
,
"9"
:
0
},
"collectedCount"
:
100
,
"canTakeRankPrize"
:
false
,
"shoesType"
:
1
,
"inviteResult"
:
{
"inviteCount"
:
13
,
"addDrawTimes"
:
12
}
}
}
\ No newline at end of file
taobao_mini/client/mocks/tmallCat.getUserInfo.json
deleted
100644 → 0
View file @
76132b49
{
"success"
:
true
,
"message"
:
""
,
"data"
:
{
"catType"
:
2
,
"userNick"
:
"Edwise"
,
"energy"
:
100
,
"happyCoin"
:
1000
,
"experience"
:
50
,
"level"
:
"1"
,
"avatar"
:
"https://yun.duiba.com.cn/spark/assets/a3ae99684afa9a1f8d94f4c95ee6f1ed81de9996.png"
,
"sence"
:
3
,
"catName"
:
"喵喵喵"
}
}
\ No newline at end of file
taobao_mini/client/mocks/tmallCat.getVipInfo.json
0 → 100644
View file @
9067d195
{
"success"
:
true
,
"message"
:
"网络异常"
,
"data"
:
{
"isVip"
:
true
,
"url"
:
""
}
}
\ No newline at end of file
taobao_mini/client/mocks/tmallCat.login.json
0 → 100644
View file @
9067d195
{
"success"
:
true
,
"message"
:
"网络异常"
,
"data"
:
{
"openId"
:
"233"
}
}
\ No newline at end of file
taobao_mini/client/mocks/tmallCat.pickShoes.json
0 → 100644
View file @
9067d195
{
"success"
:
true
,
"message"
:
""
,
"data"
:
{
}
}
\ No newline at end of file
taobao_mini/client/mocks/tmallCat.receiveEnamePrize.json
0 → 100644
View file @
9067d195
{
"success"
:
true
,
"message"
:
"网络异常"
,
"data"
:
{
"drawStatus"
:
2
,
"remark"
:
"Edwise"
}
}
\ No newline at end of file
taobao_mini/client/mocks/tmallCat.receiveObjectPrize.json
0 → 100644
View file @
9067d195
{
"success"
:
true
,
"message"
:
""
,
"data"
:
{
}
}
\ No newline at end of file
taobao_mini/client/mocks/tmallCat.takeCollectedPrize.json
0 → 100644
View file @
9067d195
{
"success"
:
true
,
"message"
:
"网络异常"
,
"data"
:
{
"name"
:
"山海"
,
"type"
:
"test"
,
"image"
:
""
}
}
\ No newline at end of file
taobao_mini/client/mocks/tmallCat.takeFirstPrize.json
0 → 100644
View file @
9067d195
{
"success"
:
true
,
"message"
:
"网络异常"
,
"data"
:
{
"cardType"
:
2
}
}
\ No newline at end of file
taobao_mini/client/mocks/tmallCat.takeInvitePrize.json
0 → 100644
View file @
9067d195
{
"success"
:
true
,
"message"
:
""
,
"data"
:
{
"cardType"
:
2
,
"uncommon"
:
true
,
"rewardType"
:
1
,
"addDrawTimes"
:
10
}
}
\ No newline at end of file
taobao_mini/client/mocks/tmallCat.takeRankPrize.json
0 → 100644
View file @
9067d195
{
"success"
:
true
,
"message"
:
""
,
"data"
:
{
"name"
:
"奖品名称"
,
"type"
:
1
,
"image"
:
""
}
}
\ No newline at end of file
taobao_mini/client/pages/pageji_sui_pian_ye1/pageji_sui_pian_ye1.axml
View file @
9067d195
<view class="ji_sui_pian_ye1">
<view class="ji_sui_pian_ye">
<image class="bg373" src={{resList['1780c2b8-d760-4b3e-ad7c-6307d2175c1f'].url}} />
<view class="biao_ti370">
<image class="biao_ti372" src={{resList['a8f4ca0b-1d76-4102-9b09-db91e5433432'].url}} />
<image class="fu_biao_ti371" src={{resList['c7b16b65-2073-4990-a658-efcd93f7b396'].url}} />
</view>
<image class="gui_ze369" src={{resList['cc6b2cc6-4dbf-42f2-9572-778937b2e681'].url}} />
<image class="jiang_pin368" src={{resList['87b6a773-0837-452a-8c62-21f0b4c48c5e'].url}} />
<image class="ren_qi_pai_ming367" src={{resList['6adbb53d-b804-4cba-8111-a6259a427427'].url}} />
<view class="pin_tu_shou_ye" />
<view class="tou_xiang">
<image class="tuo_yuan2" src={{resList['92692d66-bf25-4f1f-a7dc-0d3bf593f341'].url}} />
<image class="tu_ceng807" src={{resList['bf7dc60a-aca9-4da5-b98b-08e02f772376'].url}} />
<label class="x_ren_qi_wang358">X人气王</label>
<label class="ni_yi_shou_ji612_sui_pian">你已收集6/12碎片</label>
</view>
<image class="an_niu_li_ji_ji_sui_pian" src={{resList['30c5d013-608d-4765-b231-c1d435ee1f19'].url}} />
<image class="an_niu_dui_huan_xin_pin" src={{resList['c0e71c1a-8067-43f2-9113-a645a2bc39a7'].url}} />
<label class="zai_zhao_huanxxh_hao_you_bi_de_xi_you_sui_pian">再召唤xxh好友必得稀有碎片</label>
<image class="sheng_yu_ci_shu" src={{resList['8f262c3b-86f1-4b1a-9e7e-8b844d5efbc9'].url}} />
<label class="label">3</label>
<view class="jin_du_tiao">
<image class="jin_du_tiao_di" src={{resList['58912507-647f-4a58-b39c-329d60e6837c'].url}} />
<image class="jin_du_tiao3" src={{resList['842b63d5-759a-49af-871a-6ee7ed7a2776'].url}} />
<image class="lei_ji_zhao_huan" src={{resList['df271fd1-f3cb-406e-bb99-4289d9409283'].url}} />
<view class="dui_ying_wen_an357">
<label class="tu_ceng3_wei_hao_you">3位好友</label>
<label class="tu_ceng10_wei_hao_you">10位好友</label>
<label class="tu_ceng16_wei_hao_you">16位好友</label>
<label class="tu_ceng20_wei_hao_you">20位好友</label>
</view>
</view>
<view class="zhao_huan_jiang_li351">
<image class="zhao_huan_jiang_li356" src={{resList['8fbf9012-ffe2-4cf2-8c07-a2a87d934ca4'].url}} />
<view class="dui_ying_wen_an352">
<label class="ji_sui_pian355">集碎片</label>
<label class="ji_sui_pian354">集碎片</label>
<label class="ji_sui_pian353">集碎片</label>
<label class="jie_suo_suo_you_sui_pian">解锁所有碎片</label>
</view>
<image class="jiang_li1" src={{resList['8d19373e-4e3e-4e70-9680-05c3bcc62e17'].url}} />
<image class="jiang_li3" src={{resList['6e700792-ef90-41c9-84c9-e612036d562d'].url}} />
<image class="jiang_li3_dai_ling_qu" src={{resList['6051efa0-3126-426e-a6af-42c6f69b0f61'].url}} />
<image class="jiang_li4_wei_jie_suo" src={{resList['555129ab-ec32-4ad5-a449-0046f119ec68'].url}} />
</view>
<image class="liang_xi_li_he" src={{resList['7fb3c7fb-a7f5-40dc-a162-531dfe5db559'].url}} />
<image class="ren_qi_chou_jiang" src={{resList['920fe1a1-ec52-4f1e-a210-ae8872b9cb0c'].url}} />
<image class="zhao_huan_hao_you" src={{resList['c4629d16-a5a5-412e-a741-7b5da6ced209'].url}} />
<image class="hui_yuan_zhuan_qu350" src={{resList['aaece988-6b4d-47fc-bdb5-279412a963fe'].url}} />
<image class="shuang11_hui_chang349" src={{resList['c74691ef-78ff-425c-94df-e62a72c9955b'].url}} />
</view>
</view>
\ No newline at end of file
<view class="ji_sui_pian_ye">
<image class="bg373" src={{resList['1780c2b8-d760-4b3e-ad7c-6307d2175c1f'].url}} />
<view class="biao_ti370">
<image class="biao_ti372" src={{resList['a8f4ca0b-1d76-4102-9b09-db91e5433432'].url}} />
<image class="fu_biao_ti371" src={{resList['c7b16b65-2073-4990-a658-efcd93f7b396'].url}} />
</view>
<image class="gui_ze369" src={{resList['cc6b2cc6-4dbf-42f2-9572-778937b2e681'].url}} onTap="onshowRule" />
<image class="jiang_pin368" src={{resList['87b6a773-0837-452a-8c62-21f0b4c48c5e'].url}} onTap="changeScene" />
<image class="ren_qi_pai_ming367" src={{resList['6adbb53d-b804-4cba-8111-a6259a427427'].url}} />
<view class="pin_tu_shou_ye" />
<view class="tou_xiang">
<image class="tuo_yuan2" src={{resList['92692d66-bf25-4f1f-a7dc-0d3bf593f341'].url}} />
<image class="tu_ceng807" src={{resList['bf7dc60a-aca9-4da5-b98b-08e02f772376'].url}} />
<label class="x_ren_qi_wang358">{{nickname}}</label>
<label class="ni_yi_shou_ji612_sui_pian">你已收集{{collectedCount}}/9碎片</label>
</view>
<image class="an_niu_li_ji_ji_sui_pian" a:if="{{mainbtnV==1}}" src={{resList['30c5d013-608d-4765-b231-c1d435ee1f19'].url}} />
<image class="an_niu_dui_huan_xin_pin" a:if="{{mainbtnV!=1}}" src={{resList['c0e71c1a-8067-43f2-9113-a645a2bc39a7'].url}} onTap="getestapi" />
<label class="zai_zhao_huanxxh_hao_you_bi_de_xi_you_sui_pian">再召唤xxh好友必得稀有碎片</label>
<image class="sheng_yu_ci_shu" src={{resList['8f262c3b-86f1-4b1a-9e7e-8b844d5efbc9'].url}} />
<label class="label">3</label>
<view class="jin_du_tiao">
<image class="jin_du_tiao_di" src={{resList['58912507-647f-4a58-b39c-329d60e6837c'].url}} />
<image class="jin_du_tiao3" src={{resList['842b63d5-759a-49af-871a-6ee7ed7a2776'].url}} />
<image class="lei_ji_zhao_huan" src={{resList['df271fd1-f3cb-406e-bb99-4289d9409283'].url}} />
<view class="dui_ying_wen_an357">
<label class="tu_ceng3_wei_hao_you">3位好友</label>
<label class="tu_ceng10_wei_hao_you">10位好友</label>
<label class="tu_ceng16_wei_hao_you">16位好友</label>
<label class="tu_ceng20_wei_hao_you">20位好友</label>
</view>
</view>
<view class="zhao_huan_jiang_li351">
<image class="zhao_huan_jiang_li356" src={{resList['8fbf9012-ffe2-4cf2-8c07-a2a87d934ca4'].url}} />
<view class="dui_ying_wen_an352">
<label class="ji_sui_pian355">集碎片</label>
<label class="ji_sui_pian354">集碎片</label>
<label class="ji_sui_pian353">集碎片</label>
<label class="jie_suo_suo_you_sui_pian">解锁所有碎片</label>
</view>
<image class="jiang_li1" src={{resList['8d19373e-4e3e-4e70-9680-05c3bcc62e17'].url}} />
<image class="jiang_li3" src={{resList['6e700792-ef90-41c9-84c9-e612036d562d'].url}} />
<image class="jiang_li3_dai_ling_qu" src={{resList['6051efa0-3126-426e-a6af-42c6f69b0f61'].url}} />
<image class="jiang_li4_wei_jie_suo" src={{resList['555129ab-ec32-4ad5-a449-0046f119ec68'].url}} />
</view>
<image class="liang_xi_li_he" a:if="{{giftV==2}}" src={{resList['7fb3c7fb-a7f5-40dc-a162-531dfe5db559'].url}} />
<image class="ren_qi_chou_jiang" a:if="{{giftV==1}}" src={{resList['920fe1a1-ec52-4f1e-a210-ae8872b9cb0c'].url}} />
<image class="zhao_huan_hao_you" src={{resList['c4629d16-a5a5-412e-a741-7b5da6ced209'].url}} />
<image class="hui_yuan_zhuan_qu350" src={{resList['aaece988-6b4d-47fc-bdb5-279412a963fe'].url}} />
<image class="shuang11_hui_chang349" src={{resList['c74691ef-78ff-425c-94df-e62a72c9955b'].url}} />
</view>
</view>
<rule-modal a:if="{{ruleModalVisible}}" onModalClose="closeRuleModal"></rule-modal>
\ No newline at end of file
taobao_mini/client/pages/pageji_sui_pian_ye1/pageji_sui_pian_ye1.js
View file @
9067d195
'use strict'
;
const
app
=
getApp
();
const
{
tbcc
}
=
app
;
import
resList
from
'../../resconfig/resList'
;
//import API from '../../api';
import
API
from
'../../api'
;
const
{
commonToast
,
getAuthUserInfo
,
navigateToOutside
}
=
tbcc
.
tb
;
Page
({
data
:
{},
data
:
{
ruleModalVisible
:
false
,
//规则弹窗
prizeVisible
:
false
,
//奖品
rankVisible
:
false
,
//排行榜
//活动基本信息
rule
:
""
,
startTime
:
0
,
endTime
:
0
,
awardReceiveExpiredTime
:
1
,
source1
:
""
,
source2
:
""
,
shoesList
:
[],
//用户信息
selected
:
0
,
//0还未获得信息,1用户未选鞋,2用户已选鞋
mainbtnV
:
1
,
//1收集碎片,2兑换新品
giftV
:
1
,
//1新手礼包,2惊喜礼包,3锦鲤礼包
sharepro
:
0
,
//累计召唤进度
nickname
:
"张三"
,
avatar
:
"//yun.duiba.com.cn/spark/assets/28092c7c919a2c8ea9b750fb79abd2416ba8f90f.png"
,
shoesName
:
""
,
cardCountList
:{},
collectedCount
:
0
,
shoesType
:
0
,
inviteResult
:{},
},
onLoad
(
props
)
{
this
.
setData
(
this
.
data
||
{
// this.getAuth();
this
.
setData
({
resList
:
resList
});
}
},
/**
* 获取用户授权信息
*/
async
getAuth
()
{
const
userInfo
=
await
getAuthUserInfo
().
catch
(
err
=>
{
console
.
log
(
'未授权成功'
,
err
);
});
if
(
userInfo
)
{
console
.
log
(
'userInfo'
,
userInfo
);
const
{
nickName
,
avatar
}
=
userInfo
;
app
.
nickName
=
nickName
;
app
.
avatar
=
avatar
;
this
.
login
();
}
},
/**
* 登录接口
*/
async
login
()
{
const
{
nickName
,
avatar
}
=
app
;
const
{
success
}
=
await
API
.
login
({
userNick
:
nickName
,
avatar
}).
catch
(
res
=>
{
commonToast
(
res
&&
res
.
message
);
})
||
{};
if
(
success
)
{
this
.
init
();
}
},
/**
* 登录完毕,请求其余数据
*/
async
init
()
{
console
.
log
(
"获取基本信息"
);
this
.
getactivityData
();
},
/**
* 获取基本信息
*/
async
getactivityData
()
{
const
activityInfo
=
await
API
.
getActivityBaseInfoById
().
catch
(
res
=>
{
commonToast
(
res
&&
res
.
message
);
})
||
{};
const
{
success
,
data
}
=
activityInfo
;
if
(
success
)
{
const
{
rule
,
startTime
,
endTime
,
awardReceiveExpiredTime
,
source1
,
source2
,
shoesList
}
=
data
;
this
.
setData
({
rule
:
rule
,
startTime
:
startTime
,
endTime
:
endTime
,
awardReceiveExpiredTime
:
awardReceiveExpiredTime
,
source1
:
source1
,
source2
:
source2
,
shoesList
:
shoesList
})
}
},
/**
* 更新用户信息
*/
async
getAuthUserInfo
()
{
const
userinfo
=
await
API
.
getUserCardInfo
().
catch
(
res
=>
{
commonToast
(
res
&&
res
.
message
);
})
||
{};
const
{
success
,
data
}
=
userinfo
;
if
(
success
)
{
const
{
shoesName
,
cardCountList
,
collectedCount
,
canTakeRankPrize
,
shoesType
,
inviteResult
}
=
data
;
let
selected
=
2
;
if
(
!
shoesName
&&
this
.
data
.
selected
==
0
){
//当前未选择鞋子
selected
=
1
;
}
this
.
setData
({
selected
:
selected
,
shoesName
:
shoesName
,
cardCountList
:
cardCountList
,
collectedCount
:
collectedCount
,
canTakeRankPrize
:
canTakeRankPrize
,
shoesType
:
shoesType
,
inviteResult
:
inviteResult
});
}
else
{
if
(
this
.
data
.
selected
==
0
){
this
.
setData
({
selected
:
1
});
}
}
},
/**
* 新人礼
*/
checkOpenNgift
(){
},
/**
* 进来新老会员区分
*/
async
checkIsNew
(){
const
uvipinfo
=
await
API
.
getVipInfo
().
catch
(
res
=>
{
commonToast
(
res
&&
res
.
message
);
})
||
{};
const
{
success
,
data
}
=
uvipinfo
;
if
(
success
){
const
{
isVip
,
url
}
=
data
;
if
(
!
isVip
){
//跳转到
}
}
},
onshowRule
()
{
this
.
setData
({
ruleModalVisible
:
true
})
},
closeRuleModal
()
{
this
.
setData
({
ruleModalVisible
:
false
})
},
changeScene
()
{
my
.
navigateTo
({
url
:
'/pages/pageshou_ye_xuan_zhong/pageshou_ye_xuan_zhong'
});
},
async
getestapi
()
{
const
{
success
,
data
}
=
await
API
.
doCardDraw
().
catch
(
res
=>
{
commonToast
(
res
&&
res
.
message
);
})
||
{};
if
(
success
&&
data
)
{
console
.
log
(
"api请求成功"
,
data
);
}
}
});
\ No newline at end of file
taobao_mini/client/pages/pageji_sui_pian_ye1/pageji_sui_pian_ye1.json
View file @
9067d195
{
"usingComponents"
:
{}
"usingComponents"
:
{
"rule-modal"
:
"/components/comci_shu_yong_wan/comci_shu_yong_wan"
}
}
\ No newline at end of file
taobao_mini/client/pages/pagepai_xingitem/pagepai_xingitem.js
View file @
9067d195
...
...
@@ -6,7 +6,7 @@ Page({
data
:
{},
onLoad
(
props
)
{
this
.
setData
(
this
.
data
||
{
this
.
setData
({
resList
:
resList
});
}
...
...
taobao_mini/client/pages/pagepin_tu_xian_shi/pagepin_tu_xian_shi.js
View file @
9067d195
...
...
@@ -6,7 +6,7 @@ Page({
data
:
{},
onLoad
(
props
)
{
this
.
setData
(
this
.
data
||
{
this
.
setData
({
resList
:
resList
});
}
...
...
taobao_mini/client/pages/pageshou_ye_xuan_zhong/pageshou_ye_xuan_zhong.axml
View file @
9067d195
...
...
@@ -13,6 +13,6 @@
<view class="xuan_xiescroll1" />
</view>
<view class="pin_tu_xuan_xie1" />
<image class="an_niu414" src={{resList['a996f17c-f61c-44ab-a337-0b96a1a8b5af'].url}} />
<image class="an_niu414" src={{resList['a996f17c-f61c-44ab-a337-0b96a1a8b5af'].url}}
onTap="toshouye"
/>
</view>
</view>
\ No newline at end of file
taobao_mini/client/pages/pageshou_ye_xuan_zhong/pageshou_ye_xuan_zhong.js
View file @
9067d195
...
...
@@ -6,9 +6,11 @@ Page({
data
:
{},
onLoad
(
props
)
{
this
.
setData
(
this
.
data
||
{
this
.
setData
({
resList
:
resList
});
},
toshouye
(){
my
.
navigateBack
();
}
});
\ No newline at end of file
taobao_mini/client/pages/pagexiao_xie_zi/pagexiao_xie_zi.js
View file @
9067d195
...
...
@@ -6,7 +6,7 @@ Page({
data
:
{},
onLoad
(
props
)
{
this
.
setData
(
this
.
data
||
{
this
.
setData
({
resList
:
resList
});
}
...
...
taobao_mini/client/tbcc-sdk/lib/request.js
View file @
9067d195
...
...
@@ -53,7 +53,7 @@ const request = ({ cloud, cloudName, requestType = 'cloud' }) => {
const
requestMock
=
()
=>
{
const
mockUrlPrefix
=
{
ams
:
'https://ams.dui88.com/server/index.php?g=Web&c=Mock&o=simple&projectID=218&uri='
,
yapi
:
'https://docs.dui88.com/mock/14
0/'
local
:
'http://localhost:300
0/'
};
const
mockUrl
=
null
;
const
requestPrefix
=
mockUrl
||
mockUrlPrefix
[
requestType
];
...
...
@@ -103,7 +103,7 @@ const request = ({ cloud, cloudName, requestType = 'cloud' }) => {
// console.log('requestCloud', _cloudName, handle, params);
// return requestType === 'ams' ? requestAms() : requestCloud();
return
(
requestType
===
'ams'
||
requestType
===
'
yapi
'
)
?
requestMock
()
:
requestCloud
();
return
(
requestType
===
'ams'
||
requestType
===
'
local
'
)
?
requestMock
()
:
requestCloud
();
};
};
...
...
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