Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
RB_StrongestBrain_250520
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
RB_StrongestBrain_250520
Commits
468eae6a
Commit
468eae6a
authored
May 23, 2025
by
cc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
md
parent
36866f36
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
3 deletions
+17
-3
MD.ts
src/MD.ts
+2
-0
task.ts
src/store/task.ts
+15
-3
No files found.
src/MD.ts
View file @
468eae6a
...
@@ -59,6 +59,7 @@ export function handleLogExposure(id: number | string, id2: number | string = 1)
...
@@ -59,6 +59,7 @@ export function handleLogExposure(id: number | string, id2: number | string = 1)
dpm
:
`
${
appId
}
.110.
${
id
}
.
${
id2
}
`
,
dpm
:
`
${
appId
}
.110.
${
id
}
.
${
id2
}
`
,
dcm
,
dcm
,
domain
,
domain
,
dom
,
appId
,
appId
,
});
});
}
}
...
@@ -68,6 +69,7 @@ export function handleLogClick(id: number | string, id2: number | string = 1) {
...
@@ -68,6 +69,7 @@ export function handleLogClick(id: number | string, id2: number | string = 1) {
dpm
:
`
${
appId
}
.110.
${
id
}
.
${
id2
}
`
,
dpm
:
`
${
appId
}
.110.
${
id
}
.
${
id2
}
`
,
dcm
,
dcm
,
domain
,
domain
,
dom
,
appId
,
appId
,
});
});
}
}
src/store/task.ts
View file @
468eae6a
...
@@ -4,7 +4,6 @@ import store from "./store";
...
@@ -4,7 +4,6 @@ import store from "./store";
// import modalStore from "./modal";
// import modalStore from "./modal";
import
{
saveCookies
,
setCookies
}
from
"./fetcher"
;
import
{
saveCookies
,
setCookies
}
from
"./fetcher"
;
import
shareStore
from
"./share"
;
import
shareStore
from
"./share"
;
// import { handleLogClick } from "../../MD";
import
{
isWeChat
}
from
"../utils/share"
;
import
{
isWeChat
}
from
"../utils/share"
;
import
{
getUrlParam
,
windowJumpUrl
}
from
"../utils/utils"
;
import
{
getUrlParam
,
windowJumpUrl
}
from
"../utils/utils"
;
import
{
appJump
}
from
"../utils/sensors.js"
;
import
{
appJump
}
from
"../utils/sensors.js"
;
...
@@ -12,6 +11,7 @@ import { CHANNEL_PARAMS, TASK_CODE } from "../utils/constants";
...
@@ -12,6 +11,7 @@ import { CHANNEL_PARAMS, TASK_CODE } from "../utils/constants";
import
{
Toast
}
from
"@grace/ui"
;
import
{
Toast
}
from
"@grace/ui"
;
import
{
ModalCtrl
}
from
"@/core/ctrls/ModalCtrl"
;
import
{
ModalCtrl
}
from
"@/core/ctrls/ModalCtrl"
;
import
LongImgPop
from
"@/panels/longImgPop/longImgPop.jsx"
;
import
LongImgPop
from
"@/panels/longImgPop/longImgPop.jsx"
;
import
{
handleLogClick
,
handleLogExposure
}
from
"../MD"
;
interface
TaskItem
{
interface
TaskItem
{
jumpUrl
?:
string
;
jumpUrl
?:
string
;
...
@@ -38,6 +38,18 @@ const taskStore = makeAutoObservable({
...
@@ -38,6 +38,18 @@ const taskStore = makeAutoObservable({
});
});
if
((
success
&&
data
))
{
if
((
success
&&
data
))
{
this
.
taskList
=
data
?.
item
||
[];
this
.
taskList
=
data
?.
item
||
[];
(
data
?.
item
||
[]).
map
((
item
,
index
)
=>
{
console
.
log
(
'item?.taskStatus'
,
item
?.
taskStatus
)
if
(
item
?.
taskStatus
==
0
){
if
(
item
?.
code
==
'invite'
){
handleLogExposure
(
35
,
3
)
}
else
{
handleLogExposure
(
35
,
1
)
}
}
else
if
(
item
?.
taskStatus
==
1
){
handleLogExposure
(
35
,
2
)
}
})
}
}
},
},
...
@@ -45,7 +57,7 @@ const taskStore = makeAutoObservable({
...
@@ -45,7 +57,7 @@ const taskStore = makeAutoObservable({
async
doTask
(
item
)
{
async
doTask
(
item
)
{
// jumpUrl 后端已经根据渠道返回对应的链接
// jumpUrl 后端已经根据渠道返回对应的链接
const
{
code
,
jumpUrl
}
=
item
||
{};
const
{
code
,
jumpUrl
}
=
item
||
{};
handleLogClick
(
35
,
1
)
switch
(
true
)
{
switch
(
true
)
{
//签到
//签到
case
code
==
"sign"
:
case
code
==
"sign"
:
...
@@ -177,7 +189,7 @@ const taskStore = makeAutoObservable({
...
@@ -177,7 +189,7 @@ const taskStore = makeAutoObservable({
async
getTaskPrize
(
item
)
{
async
getTaskPrize
(
item
)
{
const
{
id
,
code
,
prizePendingCode
}
=
item
||
{};
const
{
id
,
code
,
prizePendingCode
}
=
item
||
{};
handleLogClick
(
35
,
2
)
const
{
success
,
data
}
=
await
API
.
sendPrize
({
const
{
success
,
data
}
=
await
API
.
sendPrize
({
taskId
:
id
,
taskId
:
id
,
taskCode
:
code
,
taskCode
:
code
,
...
...
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