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