Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
简
简醇歌手活动-20240425
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
SparkProjects
简醇歌手活动-20240425
Commits
962a4f14
Commit
962a4f14
authored
May 06, 2024
by
吴江涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
该接口路径,开放邀请码
parent
81783dd7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
47 additions
and
51 deletions
+47
-51
task.js
src/packages/wm-cloud-db_index/component/task/task.js
+44
-48
index.js
src/packages/wm-cloud-db_index/db_index/index.js
+1
-1
dbrequest.js
src/packages/wm-cloud-db_index/utils/db_api/dbrequest.js
+2
-2
No files found.
src/packages/wm-cloud-db_index/component/task/task.js
View file @
962a4f14
...
@@ -33,52 +33,51 @@ Component({
...
@@ -33,52 +33,51 @@ Component({
},
},
/** 获取任务列表 */
/** 获取任务列表 */
async
getTaskList
()
{
async
getTaskList
()
{
// const res = await getTaskInfo();
const
res
=
await
getTaskInfo
();
// if (res && res.success) {
if
(
res
&&
res
.
success
)
{
// this.setData({
this
.
setData
({
// taskList: res.data.item || []
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
:
"完成首购任务"
,
})
})
})
}
// 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
)
{
async
handleClickDoComplete
(
e
)
{
...
@@ -94,9 +93,6 @@ Component({
...
@@ -94,9 +93,6 @@ Component({
}
}
/** 每日登录 */
/** 每日登录 */
case
item
.
code
.
startsWith
(
"sign"
):
{
case
item
.
code
.
startsWith
(
"sign"
):
{
wx
.
navigateTo
({
url
:
'url'
,
})
break
;
break
;
}
}
/** 分享任务 */
/** 分享任务 */
...
...
src/packages/wm-cloud-db_index/db_index/index.js
View file @
962a4f14
...
@@ -46,7 +46,7 @@ Page({
...
@@ -46,7 +46,7 @@ Page({
onLoad
:
async
function
(
options
)
{
onLoad
:
async
function
(
options
)
{
/** 获取邀请码 */
/** 获取邀请码 */
//
this.getShareCode();
this
.
getShareCode
();
// const q = decodeURIComponent(options.q) // 获取到二维码原始链接内容
// const q = decodeURIComponent(options.q) // 获取到二维码原始链接内容
// const scancode_time = parseInt(options.scancode_time) // 获取用户扫码时间 UNIX 时间戳
// const scancode_time = parseInt(options.scancode_time) // 获取用户扫码时间 UNIX 时间戳
...
...
src/packages/wm-cloud-db_index/utils/db_api/dbrequest.js
View file @
962a4f14
...
@@ -112,14 +112,14 @@ export const userRecord = {
...
@@ -112,14 +112,14 @@ export const userRecord = {
// 任务接口
// 任务接口
export
const
getTaskInfoParam
=
{
export
const
getTaskInfoParam
=
{
url
:
"/weimocloud/projectx/
taskInfo
"
,
url
:
"/weimocloud/projectx/
queryTasks
"
,
method
:
"GET"
,
method
:
"GET"
,
header
:
{}
header
:
{}
}
}
// 获取邀请码
// 获取邀请码
export
const
getShareCodeParam
=
{
export
const
getShareCodeParam
=
{
url
:
"/weimocloud/projectx/ge
tShar
eCode"
,
url
:
"/weimocloud/projectx/ge
nInvit
eCode"
,
method
:
"GET"
,
method
:
"GET"
,
header
:
{}
header
:
{}
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment