lex-xin 4 月之前
父節點
當前提交
dc965a5240
共有 2 個文件被更改,包括 5 次插入3 次删除
  1. 3 2
      src/views/coursewarePlay/index.tsx
  2. 2 1
      src/views/hook/useFee.ts

+ 3 - 2
src/views/coursewarePlay/index.tsx

@@ -55,7 +55,6 @@ export default defineComponent({
           handleStop();
           handleStop();
         }
         }
         if (value === "visible") {
         if (value === "visible") {
-          data.currentId = state.buyVipId || data.currentId;
           getDetail('visible', data.currentId)
           getDetail('visible', data.currentId)
           getRefLevel(data.currentId)
           getRefLevel(data.currentId)
         }
         }
@@ -123,6 +122,7 @@ export default defineComponent({
     const headeRef = ref();
     const headeRef = ref();
     const data = reactive({
     const data = reactive({
       currentId: route.query.id as any,
       currentId: route.query.id as any,
+      lessonCoursewareId: "",
       detail: null as any,
       detail: null as any,
       refLevelList: [] as any, // 课堂类型
       refLevelList: [] as any, // 课堂类型
       knowledgePointList: [] as any,
       knowledgePointList: [] as any,
@@ -299,6 +299,7 @@ export default defineComponent({
         const result = res.data || {}
         const result = res.data || {}
         result.lessonTargetDesc = result.lessonTargetDesc ? result.lessonTargetDesc.replace(/\n/g, "<br />") : ""
         result.lessonTargetDesc = result.lessonTargetDesc ? result.lessonTargetDesc.replace(/\n/g, "<br />") : ""
         data.detail = result;
         data.detail = result;
+        data.lessonCoursewareId = result.lessonCoursewareId
         if (res?.data?.lockFlag) {
         if (res?.data?.lockFlag) {
           postMessage({
           postMessage({
             api: 'courseLoading',
             api: 'courseLoading',
@@ -1212,7 +1213,7 @@ export default defineComponent({
 
 
               // 判断当前选择的课程类型是否开通
               // 判断当前选择的课程类型是否开通
               if(item.useStatus === "LOCK") {
               if(item.useStatus === "LOCK") {
-                handleShowVip(data.currentId, "LESSON")
+                handleShowVip(data.lessonCoursewareId, "LESSON")
                 return
                 return
               }
               }
 
 

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

@@ -11,7 +11,8 @@ export const gotoMemberCenter = () => {
     pathname = '/mdaya/'
     pathname = '/mdaya/'
   }
   }
   if (browserInfo.isApp) {
   if (browserInfo.isApp) {
-    const url = window.location.origin + pathname + `#/member?id=${state.buyVipId}&type=${state.buyVipType}`;
+    // const url = window.location.origin + pathname + `#/member?id=${state.buyVipId}&type=${state.buyVipType}`;
+    const url = `https://test.gym.lexiaoya.cn/mdaya/#/member?id=${state.buyVipId}&type=${state.buyVipType}`;
     postMessage({
     postMessage({
       api: 'openWebView',
       api: 'openWebView',
       content: {
       content: {