Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
飞
飞鹤小程序
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
FH
飞鹤小程序
Commits
bd491b51
Commit
bd491b51
authored
Oct 25, 2025
by
王炽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
666666
parent
ac921b9e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
7 deletions
+28
-7
index.vue
pages/index/index.vue
+23
-6
integral.js
stores/integral.js
+1
-1
Integral.vue
views/Integral.vue
+4
-0
No files found.
pages/index/index.vue
View file @
bd491b51
...
...
@@ -141,7 +141,7 @@ const handleAuthPhoneClick = () => {
// 检查任务结果并更新全局状态
const
checkAndUpdateTaskResult
=
async
()
=>
{
const
integralStore
=
useIntegralStore
();
await
integralStore
.
queryTodoResult
();
await
integralStore
.
queryTodoResult
Server
();
console
.
log
(
'queryTodoResult:'
,
integralStore
.
queryTodoResult
);
if
(
integralStore
.
queryTodoResult
?.
length
>
0
)
{
...
...
@@ -157,6 +157,7 @@ onMounted(async () => {
//关闭了任务奖励弹窗
const
handleCloseTaskCompleteTips
=
async
()
=>
{
console
.
log
(
'点击了任务奖励弹窗的关闭按钮/好的按钮'
);
await
checkAndUpdateTaskResult
();
}
...
...
@@ -267,7 +268,7 @@ const handleCloseTaskComplete = () => {
};
const
handleAcceptTaskComplete
=
()
=>
{
//当前未用到
console
.
log
(
'接受任务完成奖励'
);
//
console.log('接受任务完成奖励');
// globalStore.isShowTaskComplete = false;
// 这里可以添加接受奖励后的逻辑
};
...
...
@@ -277,6 +278,8 @@ const handleCloseTaskPop = () => {
globalStore
.
closeTaskPop
();
};
//去完成按钮,完成任务
const
handleTaskClick
=
async
(
data
)
=>
{
console
.
log
(
'任务点击:'
,
data
);
...
...
@@ -309,14 +312,28 @@ const handleTaskClick = async (data) => {
url
:
extra1
.
url
});
break
;
case
'
EXCHANGE_GOODS
'
:
//完成首单优选消费
case
'
"FirstOrder"
'
:
//完成首单优选消费
const
extra2
=
JSON
.
parse
(
data
?.
task
?.
taskTodoExtra
?.
extra
);
console
.
log
(
'extra66666:'
,
extra2
);
console
.
log
(
'extra66666
1111
:'
,
extra2
);
jump
({
type
:
JumpType
.
H5
,
url
:
extra2
.
url
type
:
JumpType
.
MINI
,
url
:
'subPackages/xmhMainProcess/member/index?entrySource=xmh_wechatmp_points_recgoodsbot'
,
extra
:
{
envVersion
:
"release"
,
appId
:
"wx4205ec55b793245e"
}
});
break
;
case
'EXCHANGE_GOODS'
:
//消费商品
const
extra3
=
JSON
.
parse
(
data
?.
task
?.
taskTodoExtra
?.
extra
);
if
(
extra3
.
length
>
0
)
{
let
url
=
'subPackages/shopMainProcess/product/index?productId={productId}&skuId={skuId}&entrySource=xmh_wechatmp_points_north'
;
url
=
url
.
replace
(
'{productId}'
,
extra3
[
0
].
itemId
).
replace
(
'{skuId}'
,
extra3
[
0
].
skuId
);
jump
({
type
:
JumpType
.
MINI
,
url
:
url
,
extra
:
{
envVersion
:
"release"
,
appId
:
"wx4205ec55b793245e"
,
embedded
:
true
}
})
}
break
;
case
'FollowWx'
:
//关注公众号
globalStore
.
closeTaskPop
();
// 先关闭TaskPop
setTimeout
(()
=>
{
...
...
stores/integral.js
View file @
bd491b51
...
...
@@ -77,7 +77,7 @@ export const useIntegralStore = defineStore("integral", {
return
res
;
// }
},
async
queryTodoResult
(
isdebug
=
false
)
{
async
queryTodoResult
Server
(
isdebug
=
false
)
{
if
(
isdebug
)
{
this
.
_queryTodoResult
=
queryTodoResultMock
;
return
queryTodoResultMock
;
...
...
views/Integral.vue
View file @
bd491b51
...
...
@@ -2305,6 +2305,8 @@ const handleGoodsItemClick = (goodsItem, googidx) => {
}
;
console.log('
goodsItem
.
url
:
', url);
extra.embedded = true; //半屏拉起小程序
jump({
...
...
@@ -2666,6 +2668,8 @@ const handleGoodsItemClick = (goodsItem, googidx) => {
vipCardMd(vipLevel.value, false);
const item = vipIntegral.value.vipCardInfo;
console.log('
item66666777777
:
', item);
if (item.url == "") {
return;
}
...
...
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