Browse Source

更新打包

lex 3 years ago
parent
commit
65fd6b8398

+ 2 - 1
dist/assets/index-legacy.c485372f.js → dist/assets/index-legacy.3bf7757e.js

@@ -2,4 +2,5 @@
 groupId:query.groupId,live:{},wxStatus:false};},computed:{userInfo:function userInfo(){var _planList$,_planList$2;var live=this.live;var planList=live.planList||[];var startTime=((_planList$=planList[0])===null||_planList$===void 0?void 0:_planList$.startTime)||new Date();var endTime=((_planList$2=planList[0])===null||_planList$2===void 0?void 0:_planList$2.endTime)||new Date();return{headUrl:live.avatar,username:live.userName,id:live.teacherId,startTime:"".concat(dayjs(startTime).format('YYYY-MM-DD')," ").concat(dayjs(startTime).format('HH:mm'),"~").concat(dayjs(endTime).format('HH:mm'))||'',lessonPrice:live.coursePrice,buyNum:live.studentCount||0,lessonNum:live.courseNum||0,// 课时数
 lessonDesc:live.courseIntroduce,lessonCoverUrl:live.backgroundPic||live.backgroundPicTemplate,lessonName:live.courseGroupName};},courseInfo:function courseInfo(){var tempArr=[];var coursePlanList=this.live.planList||[];coursePlanList.forEach(function(item){var startTime=item.startTime||new Date();var endTime=item.endTime||new Date();tempArr.push({courseTime:"".concat(dayjs(startTime).format('YYYY-MM-DD')," ").concat(dayjs(startTime).format('HH:mm'),"~").concat(dayjs(endTime).format('HH:mm')),coursePlan:item.plan,roomUid:item.roomUid,liveState:item.liveState,id:item.courseId});});return tempArr||[];}},mounted:function mounted(){var _this=this;return _asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee(){var res;return regeneratorRuntime.wrap(function _callee$(_context){while(1){switch(_context.prev=_context.next){case 0:_context.prev=0;if(browser().isApp){if(state.platformType==='STUDENT'){// 自动跳转到学生端视频课详情购买页
 window.location.replace("".concat(location.origin,"/student/#/liveDetail??").concat(qs.stringify(_this.$route.query)));}else if(state.platformType==='TEACHER'){Dialog.alert({title:'提示',message:'请使用酷乐秀学生端扫码打开',confirmButtonColor:'#2dc7aa'}).then(function(){postMessage({api:'back'});});}}else{// 如果不在app里面则不需要唤起操作
-_this.reCall();}_context.next=4;return request.get('/api-teacher/courseGroup/queryLiveCourseInfo',{params:{groupId:_this.groupId}});case 4:res=_context.sent;_this.live=res.data||{};_context.next=10;break;case 8:_context.prev=8;_context.t0=_context["catch"](0);case 10:case"end":return _context.stop();}}},_callee,null,[[0,8]]);}))();},methods:{reCall:function reCall(){var _location=location,origin=_location.origin;var str=origin+'/student/#/liveDetail';var params=this.$route.query;str+="?recomUserId=".concat(this.recomUserId,"&groupId=").concat(params.groupId);shareCall(str,{});},onShare:function onShare(){var _this2=this;if(browser().weixin){this.wxStatus=true;return;}this.reCall();setTimeout(function(){_this2.$router.push('/download');},3000);}},render:function render(){var _this3=this;return createVNode("div",{"class":[styles['live-detail'],'mb12']},[createVNode(UserDetail,{"userInfo":this.userInfo},null),createVNode(SectionDetail,{"border":true},{default:function _default(){return[createVNode("p",{"class":styles.introduction},[_this3.userInfo.lessonDesc])];}}),createVNode(SectionDetail,{"title":"课程列表","icon":"courseList","border":true},{default:function _default(){return[createVNode(CoursePlanStep,{"courseInfo":_this3.courseInfo},null)];}}),createVNode(ColSticky,{"position":"bottom"},{default:function _default(){return[createVNode("div",{"class":['btnGroup'],"style":{paddingTop:'12px'}},[createVNode(Button,{"block":true,"round":true,"type":"primary","onClick":_this3.onShare},{default:function _default(){return[createTextVNode("\u4E0B\u8F7D\u9177\u4E50\u79C0\u8FDB\u5165\u8BFE\u7A0B")];}})])];}}),this.wxStatus&&createVNode("div",{"class":styles.wxpopup,"onClick":function onClick(){_this3.wxStatus=false;}},[createVNode("img",{"src":getAssetsHomeFile('wx_bg.png'),"alt":""},null)])]);}}));}};});})();
+_this.reCall();}_context.next=4;return request.post('/api-teacher/open/liveShareProfit',{data:{bizId:_this.groupId,userId:_this.recomUserId}});case 4:res=_context.sent;_this.live=res.data.liveCourseGroup||{};_context.next=10;break;case 8:_context.prev=8;_context.t0=_context["catch"](0);case 10:case"end":return _context.stop();}}},_callee,null,[[0,8]]);}))();},methods:{reCall:function reCall(){var _location=location,origin=_location.origin;var str=origin+'/student/#/liveDetail';var params=this.$route.query;str+="?recomUserId=".concat(this.recomUserId,"&groupId=").concat(params.groupId);shareCall(str,{});},onShare:function onShare(){if(browser().weixin){this.wxStatus=true;return;}this.reCall();setTimeout(function(){// this.$router.push('/download')
+window.location.href=location.origin+'/student/#/download';},3000);}},render:function render(){var _this2=this;return createVNode("div",{"class":[styles['live-detail'],'mb12']},[createVNode(UserDetail,{"userInfo":this.userInfo},null),createVNode(SectionDetail,{"border":true},{default:function _default(){return[createVNode("p",{"class":styles.introduction},[_this2.userInfo.lessonDesc])];}}),createVNode(SectionDetail,{"title":"课程列表","icon":"courseList","border":true},{default:function _default(){return[createVNode(CoursePlanStep,{"courseInfo":_this2.courseInfo},null)];}}),createVNode(ColSticky,{"position":"bottom"},{default:function _default(){return[createVNode("div",{"class":['btnGroup'],"style":{paddingTop:'12px'}},[createVNode(Button,{"block":true,"round":true,"type":"primary","onClick":_this2.onShare},{default:function _default(){return[createTextVNode("\u4E0B\u8F7D\u9177\u4E50\u79C0\u8FDB\u5165\u8BFE\u7A0B")];}})])];}}),this.wxStatus&&createVNode("div",{"class":styles.wxpopup,"onClick":function onClick(){_this2.wxStatus=false;}},[createVNode("img",{"src":getAssetsHomeFile('wx_bg.png'),"alt":""},null)])]);}}));}};});})();

File diff suppressed because it is too large
+ 0 - 0
dist/assets/index-legacy.bbde2575.js


File diff suppressed because it is too large
+ 0 - 0
dist/assets/index.8bbd54b4.js


File diff suppressed because it is too large
+ 0 - 0
dist/assets/index.91e0e9c6.js


File diff suppressed because it is too large
+ 0 - 0
dist/assets/index.cb93c46f.js


File diff suppressed because it is too large
+ 0 - 0
dist/assets/polyfills-legacy.ac28be26.js


File diff suppressed because it is too large
+ 0 - 0
dist/assets/teacher-legacy.47c084fa.js


File diff suppressed because it is too large
+ 0 - 0
dist/assets/teacher.f856ed84.js


+ 1 - 1
dist/index.html

@@ -49,7 +49,7 @@
     
     <!-- <script type="module" src="/src/teacher/main.ts"></script> -->
     <script nomodule>!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",(function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()}),!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}();</script>
-    <script nomodule id="vite-legacy-polyfill" src="./assets/polyfills-legacy.f282cbd3.js"></script>
+    <script nomodule id="vite-legacy-polyfill" src="./assets/polyfills-legacy.ac28be26.js"></script>
     <script nomodule id="vite-legacy-entry" data-src="./assets/index-legacy.f2081062.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
   </body>
 </html>

+ 3 - 3
dist/teacher.html

@@ -35,7 +35,7 @@
     <meta name="msapplication-tap-highlight" content="no" />
     <title>酷乐秀</title>
     <script src="./flexible.js" charset="UTF-8"></script>
-    <script type="module" crossorigin src="./assets/teacher.eb8094e8.js"></script>
+    <script type="module" crossorigin src="./assets/teacher.f856ed84.js"></script>
     <link rel="modulepreload" href="./assets/vendor.75c233d7.js">
     <link rel="modulepreload" href="./assets/index.035040a1.js">
     <link rel="stylesheet" href="./assets/index.cb2212cc.css">
@@ -48,7 +48,7 @@
     <div id="app"></div>
     
     <script nomodule>!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",(function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()}),!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}();</script>
-    <script nomodule id="vite-legacy-polyfill" src="./assets/polyfills-legacy.f282cbd3.js"></script>
-    <script nomodule id="vite-legacy-entry" data-src="./assets/teacher-legacy.e8c384cc.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
+    <script nomodule id="vite-legacy-polyfill" src="./assets/polyfills-legacy.ac28be26.js"></script>
+    <script nomodule id="vite-legacy-entry" data-src="./assets/teacher-legacy.47c084fa.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
   </body>
 </html>

+ 48 - 16
src/student/down-load/download.tsx

@@ -32,29 +32,61 @@ export default defineComponent({
         return
       }
 
+      // 线上地址
       // https://itunes.apple.com/cn/app/id1626971149?mt=8   学院
       // https://itunes.apple.com/cn/app/id1626971695?mt=8   酷乐秀
-      // clx-teacher-domain.apk
-      // clx-student-domain.apk
+      // https://appstore.ks3-cn-beijing.ksyuncs.com/clx-student-domain.apk
+      // https://appstore.ks3-cn-beijing.ksyuncs.com/clx-teacher-domain.apk
+
+      // 酷乐秀 安卓 DEV:
+      // 老师端:https://www.pgyer.com/N2U3https://www.pgyer.com/cooleshow
+      // 学生端:https://www.pgyer.com/70e7https://www.pgyer.com/cooleshow_student
+      // 测试环境
+      // https://www.pgyer.com/powy iOS酷乐秀学生端
+      // https://www.pgyer.com/iO0m iOS 酷乐秀老师端
+      let urlIos = ''
+      let urlAndroid = ''
+      if (location.origin.indexOf('online.culixue.com') > -1) {
+        if (this.type === 'student') {
+          urlIos = 'https://itunes.apple.com/cn/app/id1626971695?mt=8'
+          urlAndroid =
+            'https://appstore.ks3-cn-beijing.ksyuncs.com/clx-student-domain.apk'
+        } else if (this.type === 'teacher') {
+          urlIos = 'https://itunes.apple.com/cn/app/id1626971149?mt=8'
+          urlAndroid =
+            'https://appstore.ks3-cn-beijing.ksyuncs.com/clx-teacher-domain.apk'
+        }
+      } else {
+        if (this.type === 'student') {
+          urlIos = 'https://www.pgyer.com/powy'
+          urlAndroid = 'https://www.pgyer.com/70e7'
+        } else {
+          urlIos = 'https://www.pgyer.com/iO0m'
+          urlAndroid = 'https://www.pgyer.com/N2U3'
+        }
+      }
+
       if (
         browser().ios ||
         /(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)
       ) {
-        if (this.type == 'student') {
-          window.location.href =
-            'https://itunes.apple.com/cn/app/id1626971695?mt=8'
-        } else if (this.type == 'teacher') {
-          window.location.href =
-            'https://itunes.apple.com/cn/app/id1626971149?mt=8'
-        }
+        window.location.href = urlIos
+        // if (this.type == 'student') {
+        //   window.location.href =
+        //     'https://itunes.apple.com/cn/app/id1626971695?mt=8'
+        // } else if (this.type == 'teacher') {
+        //   window.location.href =
+        //     'https://itunes.apple.com/cn/app/id1626971149?mt=8'
+        // }
       } else if (/(Android)/i.test(navigator.userAgent)) {
-        if (this.type == 'student') {
-          window.location.href =
-            'https://appstore.ks3-cn-beijing.ksyuncs.com/clx-student-domain.apk'
-        } else if (this.type == 'teacher') {
-          window.location.href =
-            'https://appstore.ks3-cn-beijing.ksyuncs.com/clx-teacher-domain.apk'
-        }
+        window.location.href = urlAndroid
+        // if (this.type == 'student') {
+        //   window.location.href =
+        //     'https://appstore.ks3-cn-beijing.ksyuncs.com/clx-student-domain.apk'
+        // } else if (this.type == 'teacher') {
+        //   window.location.href =
+        //     'https://appstore.ks3-cn-beijing.ksyuncs.com/clx-teacher-domain.apk'
+        // }
       } else {
         this.$toast('请用手机或移动设备打开')
       }

+ 8 - 9
src/teacher/share-page/share-live/index.tsx

@@ -101,15 +101,13 @@ export default defineComponent({
         this.reCall()
       }
 
-      const res = await request.get(
-        '/api-teacher/courseGroup/queryLiveCourseInfo',
-        {
-          params: {
-            groupId: this.groupId
-          }
+      const res = await request.post('/api-teacher/open/liveShareProfit', {
+        data: {
+          bizId: this.groupId,
+          userId: this.recomUserId
         }
-      )
-      this.live = res.data || {}
+      })
+      this.live = res.data.liveCourseGroup || {}
     } catch {
       //
     }
@@ -129,7 +127,8 @@ export default defineComponent({
       }
       this.reCall()
       setTimeout(() => {
-        this.$router.push('/download')
+        // this.$router.push('/download')
+        window.location.href = location.origin + '/student/#/download'
       }, 3000)
     }
   },

+ 3 - 1
src/teacher/share-page/share-video/index.tsx

@@ -85,6 +85,8 @@ export default defineComponent({
     } catch {
       //
     }
+
+    console.log()
   },
   methods: {
     reCall() {
@@ -102,7 +104,7 @@ export default defineComponent({
       }
       this.reCall()
       setTimeout(() => {
-        this.$router.push('/download')
+        window.location.href = location.origin + '/student/#/download'
       }, 3000)
     }
   },

Some files were not shown because too many files changed in this diff