Browse Source

Merge branch 'iteration-20241028-member' into jenkins

lex-xin 1 year ago
parent
commit
3fcc4e8e4c
2 changed files with 3 additions and 4 deletions
  1. 2 3
      src/views/exercise-after-class/index.tsx
  2. 1 1
      src/views/hook/useFee.ts

+ 2 - 3
src/views/exercise-after-class/index.tsx

@@ -282,11 +282,10 @@ export default defineComponent({
       await sysParamConfig();
       const trainings = await getTrainingRecord();
       // 初始化状态
-      
       setRecord(trainings);
       // 是否解锁
       if (state.platformType === 'STUDENT') {
-        if(data.videoData.useStatus === "LOCK") {
+        if(data.videoData?.useStatus === "LOCK") {
           handleShowVip(data.videoData.lessonCoursewareId, "LESSON", "exercise")
           nextTick(() => {
             postMessage({
@@ -453,7 +452,7 @@ export default defineComponent({
       setRecord(trainings, data.videoData.lessonCoursewareId);
       // 是否解锁
       if (state.platformType === 'STUDENT') {
-        if(data.videoData.useStatus === "LOCK") {
+        if(data.videoData?.useStatus === "LOCK") {
           handleShowVip(data.videoData.lessonCoursewareId, "LESSON", "exercise")
           nextTick(() => {
             postMessage({

+ 1 - 1
src/views/hook/useFee.ts

@@ -21,7 +21,7 @@ export const gotoMemberCenter = () => {
     });
     return;
   }
-  location.href = window.location.origin + pathname + `#/member`;
+  location.href = window.location.origin + pathname + `#/member?id=${state.buyVipId}&type=${state.buyVipType}`;
 };
 
 /**验证是否是会员 */