lex 2 anos atrás
pai
commit
865597ff98

+ 1 - 1
dist/assets/index-legacy.2f626f6e.js → dist/assets/index-legacy.746a129b.js

@@ -2,7 +2,7 @@
 activeInfo:{},popupStatus:false,wxStatus:false,behaviorId:getRandomKey(),selectMusic:{},hiddenProperty:null};},computed:{activityMusic:function activityMusic(){var activeInfo=this.activeInfo;return activeInfo.activityMusicVoList||[];},// 用户是否有中选的曲子
 userSelectMusic:function userSelectMusic(){var status=false;this.activityMusic.forEach(function(item){if(item.join===1){status=true;}});return status;}},mounted:function mounted(){var _this=this;return _asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee(){var visibilityChangeEvent;return regeneratorRuntime.wrap(function _callee$(_context){while(1){switch(_context.prev=_context.next){case 0:_context.next=2;return _this.getMusicInfo();case 2:if(browser().isApp){_context.next=8;break;}_this.popupStatus=true;removeAuth();return _context.abrupt("return");case 8:if(!(state.platformType==='TEACHER')){_context.next=13;break;}_this.onBackDialog('请使用酷乐秀学生端扫码打开');return _context.abrupt("return");case 13:_this.hiddenProperty='hidden'in document?'hidden':'webkitHidden'in document?'webkitHidden':'mozHidden'in document?'mozHidden':null;visibilityChangeEvent=_this.hiddenProperty.replace(/hidden/i,'visibilitychange');document.addEventListener(visibilityChangeEvent,_this.onVisibilityChange);case 16:// 判断活动状态的活动时间
 _this.checkActivityTime();case 17:case"end":return _context.stop();}}},_callee);}))();},methods:{onVisibilityChange:function onVisibilityChange(){if(!document[this.hiddenProperty]){this.getMusicInfo();}},getMusicInfo:function getMusicInfo(){var _this2=this;return _asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee2(){var res;return regeneratorRuntime.wrap(function _callee2$(_context2){while(1){switch(_context2.prev=_context2.next){case 0:_context2.prev=0;_context2.next=3;return request.post('/api-student/open/activity/info/'+_this2.id);case 3:res=_context2.sent;_this2.activeInfo=res.data;document.title=_this2.activeInfo.activityName;_context2.next=10;break;case 8:_context2.prev=8;_context2.t0=_context2["catch"](0);case 10:case"end":return _context2.stop();}}},_callee2,null,[[0,8]]);}))();},checkActivityTime:function checkActivityTime(){// 判断活动状态的活动时间
-try{var activeInfo=this.activeInfo;if(activeInfo.activityState===0){Dialog.alert({message:'活动已结束,感谢你的关注!',theme:'round-button',confirmButtonColor:'#2dc7aa'});this.onBackDialog('活动已结束,感谢你的关注!');return false;}var nowTime=dayjs();var startTime=dayjs(activeInfo.activityStart);var endTime=dayjs(activeInfo.activityEnd);if(dayjs(nowTime).isBefore(dayjs(startTime))){this.onBackDialog('活动尚未开始,请您耐心等待!');return false;}else if(!dayjs(nowTime).isBefore(dayjs(endTime))){this.onBackDialog('活动已结束,感谢你的关注!');return false;}return true;}catch(_unused2){//
+try{var activeInfo=this.activeInfo;if(activeInfo.activityState!==1){Dialog.alert({message:'活动已结束,感谢你的关注!',theme:'round-button',confirmButtonColor:'#2dc7aa'});this.onBackDialog('活动已结束,感谢你的关注!');return false;}var nowTime=dayjs();var startTime=dayjs(activeInfo.activityStart);var endTime=dayjs(activeInfo.activityEnd);if(dayjs(nowTime).isBefore(dayjs(startTime))){this.onBackDialog('活动尚未开始,请您耐心等待!');return false;}else if(!dayjs(nowTime).isBefore(dayjs(endTime))){this.onBackDialog('活动已结束,感谢你的关注!');return false;}return true;}catch(_unused2){//
 }},onBackDialog:function onBackDialog(str){Dialog.alert({message:str,theme:'round-button',confirmButtonColor:'#2dc7aa'}).then(function(){postMessage({api:'back'});});},onJoinActve:function onJoinActve(){var _this3=this;return _asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee3(){var activeInfo,_res$data,res;return regeneratorRuntime.wrap(function _callee3$(_context3){while(1){switch(_context3.prev=_context3.next){case 0:activeInfo=_this3.activeInfo;_context3.prev=1;if(_this3.checkActivityTime()){_context3.next=4;break;}return _context3.abrupt("return");case 4:if(!(activeInfo.registrationMethod==='CHARGE')){_context3.next=18;break;}_context3.next=7;return request.post('/api-student/userOrder/getPendingOrder',{data:{goodType:'ACTI_REGIST',bizId:activeInfo.id}});case 7:res=_context3.sent;// 判断是否是收费活动
 orderStatus.orderObject.orderType='ACTI_REGIST';orderStatus.orderObject.orderName=activeInfo.activityName;orderStatus.orderObject.orderDesc=activeInfo.activityName;orderStatus.orderObject.actualPrice=activeInfo.registrationPrice;orderStatus.orderObject.orderNo=((_res$data=res.data)===null||_res$data===void 0?void 0:_res$data.orderNo)||'';orderStatus.orderObject.recomUserId=_this3.recomUserId;orderStatus.orderObject.orderList=[{orderType:'ACTI_REGIST',goodsName:activeInfo.activityName,activityId:activeInfo.id,actualPrice:activeInfo.registrationPrice,recomUserId:_this3.recomUserId}];_this3.$router.push({path:'/orderDetail',query:{orderType:'ACTI_REGIST',activityId:activeInfo.id}});_context3.next=22;break;case 18:_context3.next=20;return request.post("/api-student/activity/joinActivity/".concat(activeInfo.id));case 20:// 成功通知
 Notify({type:'success',message:'报名成功'});_this3.getMusicInfo();case 22:_context3.next=26;break;case 24:_context3.prev=24;_context3.t0=_context3["catch"](1);case 26:case"end":return _context3.stop();}}},_callee3,null,[[1,24]]);}))();},onOpenMusic:function onOpenMusic(){var _this4=this;return _asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee4(){var selectMusic,browserInfo,url;return regeneratorRuntime.wrap(function _callee4$(_context4){while(1){switch(_context4.prev=_context4.next){case 0:_context4.prev=0;selectMusic=_this4.selectMusic;if(!(selectMusic.join!==1)){_context4.next=6;break;}_context4.next=5;return request.post("/api-student/activity/evaluation/".concat(selectMusic.evaluationId));case 5:_this4.selectMusic.join=1;case 6:_this4.popupStatus=false;browserInfo=browser();url=qs.stringifyUrl({url:location.origin+'/accompany',query:{id:selectMusic.musicSheetId,behaviorId:_this4.behaviorId,client:browserInfo.isTeacher?'teacher':'student',setting:JSON.stringify({mode:'EVALUATING',resets:['SPEED'],difficulty:_this4.activeInfo.evaluationDifficulty,feeType:'FREE',submitData:{evaluationId:_this4.selectMusic.evaluationId}})}});postMessage({api:'openAccompanyWebView',content:{url:url,orientation:0,isHideTitle:true,statusBarTextColor:false,isOpenLight:true}});_context4.next=14;break;case 12:_context4.prev=12;_context4.t0=_context4["catch"](0);case 14:case"end":return _context4.stop();}}},_callee4,null,[[0,12]]);}))();},onOpenApp:function onOpenApp(){//

Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
dist/assets/index-legacy.78a7d9c9.js


Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
dist/assets/index-legacy.b253ff30.js


Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
dist/assets/index.2c81c3ca.js


Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
dist/assets/index.40d0084b.js


Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
dist/assets/index.b404ac15.js


Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
dist/assets/polyfills-legacy.5924a30f.js


Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
dist/assets/teacher-legacy.043bb283.js


Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
dist/assets/teacher.641ebfbf.js


+ 4 - 4
dist/index.html

@@ -35,11 +35,11 @@
     <meta name="msapplication-tap-highlight" content="no" />
     <title>酷乐秀</title>
     <script src="./flexible.js" charset="UTF-8"></script>
-    <script type="module" crossorigin src="./assets/index.c134cba2.js"></script>
+    <script type="module" crossorigin src="./assets/index.40d0084b.js"></script>
     <link rel="modulepreload" href="./assets/vendor.d0a55a8b.js">
     <link rel="modulepreload" href="./assets/index.831b5104.js">
-    <link rel="stylesheet" href="./assets/vendor.68261ebd.css">
     <link rel="stylesheet" href="./assets/index.cb2212cc.css">
+    <link rel="stylesheet" href="./assets/vendor.68261ebd.css">
     <link rel="stylesheet" href="./assets/index.5062a520.css">
     <script type="module">!function(){try{new Function("m","return import(m)")}catch(o){console.warn("vite: loading legacy build because dynamic import is unsupported, syntax error above should be ignored");var e=document.getElementById("vite-legacy-polyfill"),n=document.createElement("script");n.src=e.src,n.onload=function(){System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))},document.body.appendChild(n)}}();</script>
   </head>
@@ -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.11b78793.js"></script>
-    <script nomodule id="vite-legacy-entry" data-src="./assets/index-legacy.745ea550.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
+    <script nomodule id="vite-legacy-polyfill" src="./assets/polyfills-legacy.5924a30f.js"></script>
+    <script nomodule id="vite-legacy-entry" data-src="./assets/index-legacy.b253ff30.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
   </body>
 </html>

+ 4 - 4
dist/teacher.html

@@ -35,11 +35,11 @@
     <meta name="msapplication-tap-highlight" content="no" />
     <title>酷乐秀</title>
     <script src="./flexible.js" charset="UTF-8"></script>
-    <script type="module" crossorigin src="./assets/teacher.a2c5c90c.js"></script>
+    <script type="module" crossorigin src="./assets/teacher.641ebfbf.js"></script>
     <link rel="modulepreload" href="./assets/vendor.d0a55a8b.js">
     <link rel="modulepreload" href="./assets/index.831b5104.js">
-    <link rel="stylesheet" href="./assets/index.cb2212cc.css">
     <link rel="stylesheet" href="./assets/vendor.68261ebd.css">
+    <link rel="stylesheet" href="./assets/index.cb2212cc.css">
     <link rel="stylesheet" href="./assets/index.5062a520.css">
     <script type="module">!function(){try{new Function("m","return import(m)")}catch(o){console.warn("vite: loading legacy build because dynamic import is unsupported, syntax error above should be ignored");var e=document.getElementById("vite-legacy-polyfill"),n=document.createElement("script");n.src=e.src,n.onload=function(){System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))},document.body.appendChild(n)}}();</script>
   </head>
@@ -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.11b78793.js"></script>
-    <script nomodule id="vite-legacy-entry" data-src="./assets/teacher-legacy.ac32a0ec.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
+    <script nomodule id="vite-legacy-polyfill" src="./assets/polyfills-legacy.5924a30f.js"></script>
+    <script nomodule id="vite-legacy-entry" data-src="./assets/teacher-legacy.043bb283.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
   </body>
 </html>

+ 1 - 1
src/student/share-active/track-review-activity/index.tsx

@@ -102,7 +102,7 @@ export default defineComponent({
       // 判断活动状态的活动时间
       try {
         const activeInfo = this.activeInfo
-        if (activeInfo.activityState === 0) {
+        if (activeInfo.activityState !== 1) {
           Dialog.alert({
             message: '活动已结束,感谢你的关注!',
             theme: 'round-button',

+ 1 - 1
src/teacher/share-page/track-review-activity/index.tsx

@@ -57,7 +57,7 @@ export default defineComponent({
       // 判断活动状态的活动时间
       try {
         const activeInfo = this.activeInfo
-        if (activeInfo.activityState === 0) {
+        if (activeInfo.activityState !== 1) {
           Dialog.alert({
             message: '活动已结束,感谢你的关注!',
             theme: 'round-button',

Alguns arquivos não foram mostrados porque muitos arquivos mudaram nesse diff