Commit b9cee113 authored by 王炽's avatar 王炽

66666

parent a889ca63
...@@ -564,8 +564,6 @@ const checkAndUpdateTaskResult = async () => { ...@@ -564,8 +564,6 @@ const checkAndUpdateTaskResult = async () => {
globalStore.taskCompletePoints = integralStore.queryTodoResult.data[0]?.actualCredits; globalStore.taskCompletePoints = integralStore.queryTodoResult.data[0]?.actualCredits;
globalStore.taskCompleteTitle = integralStore.queryTodoResult.data[0]?.taskName; globalStore.taskCompleteTitle = integralStore.queryTodoResult.data[0]?.taskName;
} }
await integralStore.getSigninAndTaskInfoJSON();//刷新任务接口
}; };
const handleClose = () => { const handleClose = () => {
......
...@@ -284,6 +284,8 @@ const handleTaskComplete = async (taskIdParam) => { ...@@ -284,6 +284,8 @@ const handleTaskComplete = async (taskIdParam) => {
}else{ }else{
console.info('taskCompleteJSON res error:', integralStore.queryTodoResult); console.info('taskCompleteJSON res error:', integralStore.queryTodoResult);
} }
await integralStore.getSigninAndTaskInfo();//刷新任务接口
}; };
onShow(async () => { onShow(async () => {
...@@ -508,9 +510,10 @@ const handleTaskClick = async (data) => { ...@@ -508,9 +510,10 @@ const handleTaskClick = async (data) => {
const extra3 = JSON.parse(data?.task?.taskTodoExtra?.extra); const extra3 = JSON.parse(data?.task?.taskTodoExtra?.extra);
if (extra3.length > 0) { if (extra3.length > 0) {
const idx = Math.floor(Math.random() * extra3.length);
let url = let url =
'subPackages/shopMainProcess/product/index?productId={productId}&skuId={skuId}&entrySource=xmh_wechatmp_points_north'; '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); url = url.replace('{productId}', extra3[idx].itemId).replace('{skuId}', extra3[idx].skuId);
jump({ jump({
type: JumpType.MINI, type: JumpType.MINI,
url: url, url: url,
......
...@@ -3071,13 +3071,13 @@ const handleViewBenefits = () => { ...@@ -3071,13 +3071,13 @@ const handleViewBenefits = () => {
}; };
// 任务按钮点击事件 // 任务按钮点击事件
const handleTaskButtonClick = () => { const handleTaskButtonClick = async () => {
// jump({ // jump({
// type: JumpType.INNER, // type: JumpType.INNER,
// url: '/activities/1015/home' // url: '/activities/1015/home'
// }) // })
// return // return
await integralStore.getSigninAndTaskInfo();//刷新任务接口
console.log('任务按钮点击'); console.log('任务按钮点击');
console.log('taskTodo数据:', integralStore?.signinAndTaskInfo?.data?.taskTodo); console.log('taskTodo数据:', integralStore?.signinAndTaskInfo?.data?.taskTodo);
globalStore.showTaskPop(integralStore?.signinAndTaskInfo?.data?.taskTodo); globalStore.showTaskPop(integralStore?.signinAndTaskInfo?.data?.taskTodo);
......
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