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
4046d519
Commit
4046d519
authored
Oct 10, 2020
by
Edwise
🍷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口添加
parent
6f9f8772
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10911 additions
and
29 deletions
+10911
-29
api.js
taobao_jn/client/api.js
+28
-21
app.js
taobao_jn/client/app.js
+1
-1
comrulemodal.js
taobao_jn/client/components/comrulemodal/comrulemodal.js
+3
-0
prizeModal.acss
taobao_jn/client/components/prizeModal/prizeModal.acss
+4
-4
myprize.js
taobao_jn/client/pages/myprize/myprize.js
+3
-3
debug.log
taobao_jn/debug.log
+10872
-0
No files found.
taobao_jn/client/api.js
View file @
4046d519
...
@@ -23,6 +23,7 @@ const request = tbccRequest({
...
@@ -23,6 +23,7 @@ const request = tbccRequest({
// api handle 列表
// api handle 列表
const
apiList
=
{
const
apiList
=
{
...
capi
,
...
capi
,
/**助力 */
doHelp
:
{
doHelp
:
{
handle
:
'doHelp'
,
handle
:
'doHelp'
,
method
:
'get'
,
method
:
'get'
,
...
@@ -73,45 +74,51 @@ const apiList = {
...
@@ -73,45 +74,51 @@ const apiList = {
method
:
'get'
,
method
:
'get'
,
isShowLoading
:
false
isShowLoading
:
false
},
},
/**获取
用户
信息 */
/**获取
游戏
信息 */
get
User
Info
:
{
get
Game
Info
:
{
handle
:
'get
User
Info'
,
handle
:
'get
Game
Info'
,
method
:
'get'
,
method
:
'get'
,
isShowLoading
:
false
isShowLoading
:
false
},
},
/**
登录
*/
/**
参与游戏
*/
log
in
:
{
doJo
in
:
{
handle
:
'
log
in'
,
handle
:
'
doJo
in'
,
method
:
'get'
,
method
:
'get'
,
isShowLoading
:
false
isShowLoading
:
false
},
},
/**
领养猫,提交猫咪信息
*/
/**
游戏结束
*/
adoptCat
:
{
gameOver
:
{
handle
:
'
adoptCat
'
,
handle
:
'
gameOver
'
,
method
:
'get'
,
method
:
'get'
,
isShowLoading
:
false
isShowLoading
:
false
},
},
/**
召回信息
*/
/**
游戏中获取本局奖励的温暖值
*/
recallInfo
:
{
getWarmDetailListByCurGame
:
{
handle
:
'
recallInfo
'
,
handle
:
'
getWarmDetailListByCurGame
'
,
method
:
'get'
,
method
:
'get'
,
isShowLoading
:
false
isShowLoading
:
false
},
},
/**
召回猫
*/
/**
获取当前游戏邀请人列表
*/
recallCat
:
{
getInviteListByCurGame
:
{
handle
:
'
recallCat
'
,
handle
:
'
getInviteListByCurGame
'
,
method
:
'get'
,
method
:
'get'
,
isShowLoading
:
false
isShowLoading
:
false
},
},
/**
兑换奖品
*/
/**
游戏中发放温暖值
*/
exchangeGood
:
{
sendWarmsByCurGame
:
{
handle
:
'
exchangeGood
'
,
handle
:
'
sendWarmsByCurGame
'
,
method
:
'get'
,
method
:
'get'
,
isShowLoading
:
false
isShowLoading
:
false
},
},
/**获取兑换奖品列表 */
/**获取排行明细列表 */
exchangeGoodList
:
{
getUserRankList
:
{
handle
:
'exchangeGoodList'
,
handle
:
'getUserRankList'
,
method
:
'get'
,
isShowLoading
:
false
},
/**获取排行榜奖品列表 */
getRankPrizeList
:
{
handle
:
'getRankPrizeList'
,
method
:
'get'
,
method
:
'get'
,
isShowLoading
:
false
isShowLoading
:
false
}
}
...
...
taobao_jn/client/app.js
View file @
4046d519
...
@@ -10,7 +10,7 @@ App({
...
@@ -10,7 +10,7 @@ App({
env
,
env
,
requestType
:
'cloud'
,
// yapi,cloud: 云函数
requestType
:
'cloud'
,
// yapi,cloud: 云函数
// requestType: 'local', // yapi,cloud: 云函数
// requestType: 'local', // yapi,cloud: 云函数
cloudName
:
'
tmallCat
'
,
// 主云函数项目名 tmallCat
cloudName
:
'
jn
'
,
// 主云函数项目名 tmallCat
// cloudName: 'bubbleSurviva', // 主云函数项目名 tmallCat
// cloudName: 'bubbleSurviva', // 主云函数项目名 tmallCat
cloud
,
cloud
,
tbcc
,
tbcc
,
...
...
taobao_jn/client/components/comrulemodal/comrulemodal.js
View file @
4046d519
...
@@ -2,6 +2,9 @@
...
@@ -2,6 +2,9 @@
import
resList
from
'../../resconfig/resList'
;
import
resList
from
'../../resconfig/resList'
;
import
API
from
'../../api'
;
import
API
from
'../../api'
;
const
app
=
getApp
();
const
{
tbcc
}
=
app
;
const
{
commonToast
,
navigateToOutside
,
getUserAddress
,
setClipboard
}
=
tbcc
.
tb
;
Component
({
Component
({
props
:
{},
props
:
{},
data
:
{
data
:
{
...
...
taobao_jn/client/components/prizeModal/prizeModal.acss
View file @
4046d519
...
@@ -17,10 +17,10 @@
...
@@ -17,10 +17,10 @@
}
}
.my-prize-page .my-prize-label {
.my-prize-page .my-prize-label {
width:
286
rpx;
width:
167
rpx;
height: 4
9
rpx;
height: 4
0
rpx;
margin: 140rpx auto 40rpx;
margin: 140rpx auto 40rpx;
background: url('//yun.duiba.com.cn/
aurora/assets/a15fe07a819f3f6deb271725b37468030523dc05
.png') no-repeat;
background: url('//yun.duiba.com.cn/
spark/assets/myPrizeTitle.ed095f3772339f3920623585c92fc271ac4dc3ea
.png') no-repeat;
background-size: 100% 100%;
background-size: 100% 100%;
}
}
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
.my-prize-page .my-prize-empty {
.my-prize-page .my-prize-empty {
text-align: center;
text-align: center;
color: #
fff
;
color: #
000
;
margin-top: 30rpx;
margin-top: 30rpx;
}
}
...
...
taobao_jn/client/pages/myprize/myprize.js
View file @
4046d519
...
@@ -16,7 +16,7 @@ Page({
...
@@ -16,7 +16,7 @@ Page({
endTime
:
null
,
//到期时间
endTime
:
null
,
//到期时间
task
:
{
task
:
{
image
:
{
image
:
{
bg
:
'//yun.duiba.com.cn/
aurora/assets/7283d715cc5c7d13a5f498d15f5f5b9f4d9c29e5
.jpg'
,
//背景图
bg
:
'//yun.duiba.com.cn/
spark/assets/myprizeBg.1f636c459b0a7e272f3cc65c80c7bc2a88bc2833
.jpg'
,
//背景图
copyIcon
:
'//yun.dui88.com/duiba-components-c-myprizemyprize_copy_code.png'
,
//复制
copyIcon
:
'//yun.dui88.com/duiba-components-c-myprizemyprize_copy_code.png'
,
//复制
addressBth
:
'//yun.duiba.com.cn/aurora/assets/82cc3c6d8861334ebaf128c98e3341b687bdc007.png'
,
//填写地址(实物奖品)
addressBth
:
'//yun.duiba.com.cn/aurora/assets/82cc3c6d8861334ebaf128c98e3341b687bdc007.png'
,
//填写地址(实物奖品)
getBth
:
'//yun.dui88.com/duiba-components-c-myprizeget_now.png'
,
//立即领取(除实物奖品外)
getBth
:
'//yun.dui88.com/duiba-components-c-myprizeget_now.png'
,
//立即领取(除实物奖品外)
...
@@ -81,9 +81,9 @@ Page({
...
@@ -81,9 +81,9 @@ Page({
})
||
{};
})
||
{};
if
(
success
&&
data
)
{
if
(
success
&&
data
)
{
this
.
setData
({
this
.
setData
({
myPrizeList
:
data
myPrizeList
:
data
.
list
})
})
this
.
getEndTime
(
data
)
this
.
getEndTime
(
data
.
list
)
}
}
if
(
type
!=
'noLoading'
)
{
if
(
type
!=
'noLoading'
)
{
my
.
hideLoading
();
my
.
hideLoading
();
...
...
taobao_jn/debug.log
View file @
4046d519
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