Commit b4b8bbd1 authored by AU-Pro-mac's avatar AU-Pro-mac

change

parent 22378f38
{"code":68941424.68267184,"success":true}
\ No newline at end of file
{
"success": false,
"success": true,
"code": "sit nulla labore in",
"data":[
{
......
const app = getApp();
import API from '../../api';
import { clickStat } from '../../md';
import resList from '../../resconfig/resList.js'
const { tbcc } = app;
const { SHARE_CONFIG, REDIRECT_URL } = tbcc.constants;
......@@ -90,7 +91,6 @@ Page({
console.info(`%cPage onLoad with query: ${JSON.stringify(query)}`, ConsoleStyle)
if (query.inviteId) this.inviteId = query.inviteId
// 页面加载
// 开场动画
// this.openAnimation().then(async res_ => {
// this.backToPage()
......@@ -98,6 +98,9 @@ Page({
// this.init()
// })
// 打点
clickStat(1, '2')
this.getAuth()
},
......@@ -131,22 +134,26 @@ Page({
API.getActivityBaseInfoById({activityId: app.activityId})
.then(res => {
const { success, message, data } = res
if (!success) {
console.warn(res)
commonToast(res && res.message)
} else {
if (!success) { console.warn(res); commonToast(res && res.message) }
else {
console.log('%c-----活动基本信息\n' + '-----yd.getActivityBaseInfoById\n', ConsoleStyle, data)
}
})
.catch(res => { commonToast(res && res.message); }) || {};
let res = await API.getTaskList({activityId: app.activityId})
.catch(res => { console.warn(res); commonToast(res && res.message); }) || {};
API.getTaskList({activityId: app.activityId})
.then(res => {
const { success, message, data } = res
console.log(res)
console.log('%c--------任务列表\n' + '-----yd.getTaskList\n', ConsoleStyle, data)
if (!success) { console.warn(res); commonToast(res && res.message) }
else {
console.log('%c--------任务列表\n' + '-----yd.getTaskList\n', ConsoleStyle, data)
this.setData({
missionDataList: data
})
}
})
.catch(res => { console.warn(res); commonToast(res && res.message); }) || {};
},
// 分享
......
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