Commit 4046d519 authored by Edwise's avatar Edwise 🍷

接口添加

parent 6f9f8772
...@@ -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
}, },
/**获取用户信息 */ /**获取游戏信息 */
getUserInfo: { getGameInfo: {
handle: 'getUserInfo', handle: 'getGameInfo',
method: 'get', method: 'get',
isShowLoading: false isShowLoading: false
}, },
/**登录 */ /**参与游戏 */
login: { doJoin: {
handle: 'login', handle: 'doJoin',
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
} }
......
...@@ -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,
......
...@@ -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: {
......
...@@ -17,10 +17,10 @@ ...@@ -17,10 +17,10 @@
} }
.my-prize-page .my-prize-label { .my-prize-page .my-prize-label {
width: 286rpx; width: 167rpx;
height: 49rpx; height: 40rpx;
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;
} }
......
...@@ -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();
......
This source diff could not be displayed because it is too large. You can view the blob instead.
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