Commit 962a4f14 authored by 吴江涛's avatar 吴江涛

该接口路径,开放邀请码

parent 81783dd7
......@@ -33,52 +33,51 @@ Component({
},
/** 获取任务列表 */
async getTaskList () {
// const res = await getTaskInfo();
// if (res && res.success) {
// this.setData({
// taskList: res.data.item || []
// })
// }
// return
this.setData({
taskList: Array.from({length: 7}).fill({
buttonText: "去完成",
code: "invite",
completedSize: 0,
desc: null,
extra: '{"answerTimes":1,"drawTimes":0}',
icon: "//yun.duiba.com.cn/polaris/Image2.b9419702802eff6ec5ba50ac072086df45409bfd.jpg",
id: "0l0cha7n",
index: null,
indexes: null,
intervalLimitSize: 1,
intervalType: 4,
jumpUrl: "/",
options: [
{
degree: null,
icon: null,
icon2: null,
id: "sp_draw_times",
index: null,
name: "完成任务发放答题次数占位道具",
prizeId: "sp_draw_times",
prizeType: null,
refId: null,
refType: null,
sendCount: 1,
},
],
playwayId: "task_1",
prizePendingCode: null,
prizePendingCodeList: null,
ruleId: "spPrize@sp_draw_times@1",
sendPrize: null,
subTitle: "抽奖次数+1",
taskStatus: 0,
title: "完成首购任务",
const res = await getTaskInfo();
if (res && res.success) {
this.setData({
taskList: res.data.item || []
})
})
}
// this.setData({
// taskList: Array.from({length: 7}).fill({
// buttonText: "去完成",
// code: "invite",
// completedSize: 0,
// desc: null,
// extra: '{"answerTimes":1,"drawTimes":0}',
// icon: "//yun.duiba.com.cn/polaris/Image2.b9419702802eff6ec5ba50ac072086df45409bfd.jpg",
// id: "0l0cha7n",
// index: null,
// indexes: null,
// intervalLimitSize: 1,
// intervalType: 4,
// jumpUrl: "/",
// options: [
// {
// degree: null,
// icon: null,
// icon2: null,
// id: "sp_draw_times",
// index: null,
// name: "完成任务发放答题次数占位道具",
// prizeId: "sp_draw_times",
// prizeType: null,
// refId: null,
// refType: null,
// sendCount: 1,
// },
// ],
// playwayId: "task_1",
// prizePendingCode: null,
// prizePendingCodeList: null,
// ruleId: "spPrize@sp_draw_times@1",
// sendPrize: null,
// subTitle: "抽奖次数+1",
// taskStatus: 0,
// title: "完成首购任务",
// })
// })
},
/** 点击去完成 */
async handleClickDoComplete (e) {
......@@ -94,9 +93,6 @@ Component({
}
/** 每日登录 */
case item.code.startsWith("sign"): {
wx.navigateTo({
url: 'url',
})
break;
}
/** 分享任务 */
......
......@@ -46,7 +46,7 @@ Page({
onLoad: async function (options) {
/** 获取邀请码 */
// this.getShareCode();
this.getShareCode();
// const q = decodeURIComponent(options.q) // 获取到二维码原始链接内容
// const scancode_time = parseInt(options.scancode_time) // 获取用户扫码时间 UNIX 时间戳
......
......@@ -112,14 +112,14 @@ export const userRecord = {
// 任务接口
export const getTaskInfoParam = {
url: "/weimocloud/projectx/taskInfo",
url: "/weimocloud/projectx/queryTasks",
method: "GET",
header: {}
}
// 获取邀请码
export const getShareCodeParam = {
url: "/weimocloud/projectx/getShareCode",
url: "/weimocloud/projectx/genInviteCode",
method: "GET",
header: {}
}
\ No newline at end of file
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