Commit 4046d519 authored by Edwise's avatar Edwise 🍷

接口添加

parent 6f9f8772
......@@ -23,6 +23,7 @@ const request = tbccRequest({
// api handle 列表
const apiList = {
...capi,
/**助力 */
doHelp: {
handle: 'doHelp',
method: 'get',
......@@ -73,45 +74,51 @@ const apiList = {
method: 'get',
isShowLoading: false
},
/**获取用户信息 */
getUserInfo: {
handle: 'getUserInfo',
/**获取游戏信息 */
getGameInfo: {
handle: 'getGameInfo',
method: 'get',
isShowLoading: false
},
/**登录 */
login: {
handle: 'login',
/**参与游戏 */
doJoin: {
handle: 'doJoin',
method: 'get',
isShowLoading: false
},
/**领养猫,提交猫咪信息 */
adoptCat: {
handle: 'adoptCat',
/**游戏结束 */
gameOver: {
handle: 'gameOver',
method: 'get',
isShowLoading: false
},
/**召回信息 */
recallInfo: {
handle: 'recallInfo',
/**游戏中获取本局奖励的温暖值 */
getWarmDetailListByCurGame: {
handle: 'getWarmDetailListByCurGame',
method: 'get',
isShowLoading: false
},
/**召回猫 */
recallCat: {
handle: 'recallCat',
/**获取当前游戏邀请人列表 */
getInviteListByCurGame: {
handle: 'getInviteListByCurGame',
method: 'get',
isShowLoading: false
},
/**兑换奖品 */
exchangeGood: {
handle: 'exchangeGood',
/**游戏中发放温暖值 */
sendWarmsByCurGame: {
handle: 'sendWarmsByCurGame',
method: 'get',
isShowLoading: false
},
/**获取兑换奖品列表 */
exchangeGoodList: {
handle: 'exchangeGoodList',
/**获取排行明细列表 */
getUserRankList: {
handle: 'getUserRankList',
method: 'get',
isShowLoading: false
},
/**获取排行榜奖品列表 */
getRankPrizeList: {
handle: 'getRankPrizeList',
method: 'get',
isShowLoading: false
}
......
......@@ -10,7 +10,7 @@ App({
env,
requestType: 'cloud', // yapi,cloud: 云函数
// requestType: 'local', // yapi,cloud: 云函数
cloudName: 'tmallCat', // 主云函数项目名 tmallCat
cloudName: 'jn', // 主云函数项目名 tmallCat
// cloudName: 'bubbleSurviva', // 主云函数项目名 tmallCat
cloud,
tbcc,
......
......@@ -2,6 +2,9 @@
import resList from '../../resconfig/resList';
import API from '../../api';
const app = getApp();
const { tbcc } = app;
const { commonToast, navigateToOutside, getUserAddress, setClipboard } = tbcc.tb;
Component({
props: {},
data: {
......
......@@ -17,10 +17,10 @@
}
.my-prize-page .my-prize-label {
width: 286rpx;
height: 49rpx;
width: 167rpx;
height: 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%;
}
......@@ -31,7 +31,7 @@
.my-prize-page .my-prize-empty {
text-align: center;
color: #fff;
color: #000;
margin-top: 30rpx;
}
......
......@@ -16,7 +16,7 @@ Page({
endTime: null,//到期时间
task: {
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', //复制
addressBth: '//yun.duiba.com.cn/aurora/assets/82cc3c6d8861334ebaf128c98e3341b687bdc007.png', //填写地址(实物奖品)
getBth: '//yun.dui88.com/duiba-components-c-myprizeget_now.png', //立即领取(除实物奖品外)
......@@ -81,9 +81,9 @@ Page({
}) || {};
if (success && data) {
this.setData({
myPrizeList: data
myPrizeList: data.list
})
this.getEndTime(data)
this.getEndTime(data.list)
}
if (type != 'noLoading') {
my.hideLoading();
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment