Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
ZheShangBank_TaoQuan_20240612
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
ZheShangBank_TaoQuan_20240612
Commits
8ca068bd
Commit
8ca068bd
authored
Jun 27, 2024
by
俞嘉婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 任务跳转
parent
816c432b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
AppTool.ts
assets/AppTool.ts
+4
-1
TaskCenter.ts
assets/Scripts/TaskCenter.ts
+3
-3
No files found.
assets/AppTool.ts
View file @
8ca068bd
...
@@ -43,11 +43,14 @@ export function isLogin() {
...
@@ -43,11 +43,14 @@ export function isLogin() {
}
}
export
function
appJump
(
url
)
{
export
function
appJump
(
url
)
{
console
.
info
(
'22222'
)
sendWebNet
(
"/autoLogin/tempSaveCookie"
,
null
,
null
,
true
)
sendWebNet
(
"/autoLogin/tempSaveCookie"
,
null
,
null
,
true
)
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
console
.
info
(
'3333'
)
res
?.
data
&&
localStorage
.
setItem
(
"db_zheshang_cookie"
,
res
.
data
);
res
?.
data
&&
localStorage
.
setItem
(
"db_zheshang_cookie"
,
res
.
data
);
})
})
.
finally
(()
=>
{
.
finally
(()
=>
{
console
.
info
(
'44444'
)
window
[
"MarsJSBridge"
].
invoke
(
"pushPage"
,
{
window
[
"MarsJSBridge"
].
invoke
(
"pushPage"
,
{
uri
:
url
,
uri
:
url
,
});
});
...
...
assets/Scripts/TaskCenter.ts
View file @
8ca068bd
...
@@ -35,9 +35,7 @@ export default class TaskCenter {
...
@@ -35,9 +35,7 @@ export default class TaskCenter {
/** 任务处理中心 */
/** 任务处理中心 */
static
async
handleClickTask
(
item
:
any
=
{})
{
static
async
handleClickTask
(
item
:
any
=
{})
{
const
{
code
,
jumpUrl
:
url
=
""
,
id
}
=
item
;
const
{
code
,
jumpUrl
,
id
}
=
item
;
const
jumpUrl
=
url
?.
split
(
"$$$"
)?.[
1
];
/** 邀请任务 */
/** 邀请任务 */
if
(
code
?.
startsWith
(
"it"
))
{
if
(
code
?.
startsWith
(
"it"
))
{
...
@@ -86,6 +84,7 @@ export default class TaskCenter {
...
@@ -86,6 +84,7 @@ export default class TaskCenter {
}
}
/** 行方任务 */
/** 行方任务 */
else
if
(
code
?.
startsWith
(
"bank_"
))
{
else
if
(
code
?.
startsWith
(
"bank_"
))
{
console
.
info
(
'11111'
)
beforeDoComplete
(
item
,
async
()
=>
{
beforeDoComplete
(
item
,
async
()
=>
{
// if (!item?.extra || item?.extra == 0) { // 未领取任务 调领取行方任务接口
// if (!item?.extra || item?.extra == 0) { // 未领取任务 调领取行方任务接口
// await sendWebNetWithToken(
// await sendWebNetWithToken(
...
@@ -100,6 +99,7 @@ export default class TaskCenter {
...
@@ -100,6 +99,7 @@ export default class TaskCenter {
// appJump(ju mpUrl)
// appJump(ju mpUrl)
// }
// }
// location.href = jumpUrl;
// location.href = jumpUrl;
console
.
info
(
'jumpUrl'
,
jumpUrl
)
jumpUrl
&&
appJump
(
jumpUrl
);
jumpUrl
&&
appJump
(
jumpUrl
);
})
})
}
}
...
...
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