Kaynağa Gözat

修改视屏显示逻辑

lex-xin 4 yıl önce
ebeveyn
işleme
7a83e9e0ae

BIN
dist/app.8b1a3dd6a72f6f492a4c.js.gz


Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
dist/app.df3d4989ca154887831f.js


BIN
dist/app.df3d4989ca154887831f.js.gz


+ 1 - 0
dist/css/ExamRecord.09e90b26.css

@@ -0,0 +1 @@
+.appRecord[data-v-59f91cd2]{height:100vh;overflow-y:auto;overflow-x:hidden}.appRecord .container[data-v-59f91cd2]{margin-bottom:20px}[data-v-59f91cd2] .van-cell{padding:14px 16px;font-size:16px;color:#333}[data-v-59f91cd2] .van-cell .van-cell__value{width:40%;text-align:left;-webkit-box-flex:1;-ms-flex:auto;flex:auto;color:#999}[data-v-59f91cd2] .van-cell .error{color:#ff3535}[data-v-59f91cd2] .van-cell .success{color:#2dc7aa}.section[data-v-59f91cd2]{margin-top:10px}.van-button--default[data-v-59f91cd2]{border:0;color:#2dc7aa;font-size:15px;height:.5rem;line-height:.52rem}[data-v-59f91cd2] .van-button__text{display:-webkit-box;display:-ms-flexbox;display:flex}.arrow[data-v-59f91cd2]{min-width:1em;font-size:1.2em;line-height:inherit;margin-left:5px}.custom-image[data-v-59f91cd2]{padding-top:.8rem}.custom-image[data-v-59f91cd2] .van-empty__image{width:1.8rem;height:1.88rem}.custom-image[data-v-59f91cd2] .van-empty__description{color:#999}

+ 0 - 1
dist/css/ExamRecord.4ccc1b41.css

@@ -1 +0,0 @@
-.appRecord[data-v-3d75b0bc]{height:100vh;overflow-y:auto;overflow-x:hidden}.appRecord .container[data-v-3d75b0bc]{margin-bottom:20px}[data-v-3d75b0bc] .van-cell{padding:14px 16px;font-size:16px;color:#333}[data-v-3d75b0bc] .van-cell .van-cell__value{width:40%;text-align:left;-webkit-box-flex:1;-ms-flex:auto;flex:auto;color:#999}[data-v-3d75b0bc] .van-cell .error{color:#ff3535}[data-v-3d75b0bc] .van-cell .success{color:#2dc7aa}.section[data-v-3d75b0bc]{margin-top:10px}.van-button--default[data-v-3d75b0bc]{border:0;color:#2dc7aa;font-size:15px;height:.5rem;line-height:.52rem}[data-v-3d75b0bc] .van-button__text{display:-webkit-box;display:-ms-flexbox;display:flex}.arrow[data-v-3d75b0bc]{min-width:1em;font-size:1.2em;line-height:inherit;margin-left:5px}.custom-image[data-v-3d75b0bc]{padding-top:.8rem}.custom-image[data-v-3d75b0bc] .van-empty__image{width:1.8rem;height:1.88rem}.custom-image[data-v-3d75b0bc] .van-empty__description{color:#999}

+ 0 - 1
dist/css/LookVideo.c180d365.css

@@ -1 +0,0 @@
-.lookVideo[data-v-8db0a15c]{min-height:100vh;background-color:#fff;overflow-x:hidden;overflow-y:auto}.video[data-v-8db0a15c]{width:100%;height:2rem;background:#f6f6f6}

+ 1 - 0
dist/css/LookVideo.d4d61219.css

@@ -0,0 +1 @@
+.lookVideo[data-v-578bae90]{min-height:100vh;background-color:#fff;overflow-x:hidden;overflow-y:auto}.video[data-v-578bae90]{width:100%;height:2rem;background:#f6f6f6}

Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
dist/index.html


Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
dist/js/ExamRecord.3fcea621.js


+ 1 - 0
dist/js/LookVideo.838f090a.js

@@ -0,0 +1 @@
+(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["LookVideo"],{"3ace":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"lookVideo"},e._l(e.videoUrl,(function(e){return n("div",{key:e},[n("video",{staticClass:"video",attrs:{controls:"controls","webkit-playsinline":"true",type:"video/mp4",preload:"auto",src:e}})])})),0)},o=[],r=n("cf45"),a={name:"lookVideo",data:function(){var e=localStorage.getItem("examVideoUrl"),t=decodeURIComponent(e);return t=t.split(","),{headerStatus:!1,videoUrl:t}},mounted:function(){var e=this.$route.query;e.Authorization&&localStorage.setItem("Authorization",decodeURI(e.Authorization)),Object(r["a"])().android||Object(r["a"])().iPhone?document.title="考级回看":this.headerStatus=!0}},d=a,c=(n("f830"),n("2877")),u=Object(c["a"])(d,i,o,!1,null,"578bae90",null);t["default"]=u.exports},cf45:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return r}));var i=function(){var e=navigator.userAgent;return{trident:e.indexOf("Trident")>-1,presto:e.indexOf("Presto")>-1,webKit:e.indexOf("AppleWebKit")>-1,gecko:e.indexOf("Gecko")>-1&&-1==e.indexOf("KHTML"),mobile:!!e.match(/AppleWebKit.*Mobile.*/),ios:!!e.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),android:e.indexOf("EXAMAPPA")>-1||e.indexOf("Adr")>-1,iPhone:e.indexOf("EXAMAPPI")>-1,iPad:e.indexOf("iPad")>-1,webApp:-1==e.indexOf("Safari"),weixin:e.indexOf("MicroMessenger")>-1,qq:" qq"==e.match(/\sQQ/i)}},o=function(e){var t=parseFloat(e);if(isNaN(t))return"0.00";t=Math.round(100*t)/100;var n=t.toString(),i=n.indexOf(".");i<0&&(i=n.length,n+=".");while(n.length<=i+2)n+="0";return n},r=function(e){return decodeURIComponent((new RegExp("[?|&]"+e+"=([^&;]+?)(&|#|;|$)").exec(location.href)||[,""])[1].replace(/\+/g,"%20"))||null}},f558:function(e,t,n){},f830:function(e,t,n){"use strict";var i=n("f558"),o=n.n(i);o.a}}]);

+ 0 - 1
dist/js/LookVideo.a0a16434.js

@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["LookVideo"],{"3ace":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"lookVideo"},e._l(e.videoUrl,(function(e){return n("div",{key:e},[n("video",{staticClass:"video",attrs:{controls:"controls","webkit-playsinline":"true",type:"video/mp4",preload:"auto",src:e}})])})),0)},o=[],r=n("cf45"),a={name:"lookVideo",data:function(){var e=this.$route.query,t=decodeURIComponent(e.url);return t=t.split(","),{headerStatus:!1,videoUrl:t}},mounted:function(){var e=this.$route.query;e.Authorization&&localStorage.setItem("Authorization",decodeURI(e.Authorization)),Object(r["a"])().android||Object(r["a"])().iPhone?document.title="考级回看":this.headerStatus=!0}},d=a,c=(n("ee10"),n("2877")),u=Object(c["a"])(d,i,o,!1,null,"8db0a15c",null);t["default"]=u.exports},cbd1:function(e,t,n){},cf45:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return r}));var i=function(){var e=navigator.userAgent;return{trident:e.indexOf("Trident")>-1,presto:e.indexOf("Presto")>-1,webKit:e.indexOf("AppleWebKit")>-1,gecko:e.indexOf("Gecko")>-1&&-1==e.indexOf("KHTML"),mobile:!!e.match(/AppleWebKit.*Mobile.*/),ios:!!e.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),android:e.indexOf("EXAMAPPA")>-1||e.indexOf("Adr")>-1,iPhone:e.indexOf("EXAMAPPI")>-1,iPad:e.indexOf("iPad")>-1,webApp:-1==e.indexOf("Safari"),weixin:e.indexOf("MicroMessenger")>-1,qq:" qq"==e.match(/\sQQ/i)}},o=function(e){var t=parseFloat(e);if(isNaN(t))return"0.00";t=Math.round(100*t)/100;var n=t.toString(),i=n.indexOf(".");i<0&&(i=n.length,n+=".");while(n.length<=i+2)n+="0";return n},r=function(e){return decodeURIComponent((new RegExp("[?|&]"+e+"=([^&;]+?)(&|#|;|$)").exec(location.href)||[,""])[1].replace(/\+/g,"%20"))||null}},ee10:function(e,t,n){"use strict";var i=n("cbd1"),o=n.n(i);o.a}}]);

+ 3 - 4
src/views/app/ExamRecord.vue

@@ -67,6 +67,7 @@
 	export default {
 		name: "appRecord",
 		data() {
+			localStorage.removeItem('examVideoUrl')
 			return {
 				headerStatus: false,
 				noDataImg: require('../../assets/images/level/noData.png'),
@@ -125,6 +126,7 @@
 				})
 			},
 			onVideoLook(videoUrl) { // 查看视频
+				localStorage.setItem('examVideoUrl', encodeURIComponent(videoUrl))
 				if(browser().android) {
 					// eslint-disable-next-line
 					EXAM.postMessage(JSON.stringify({
@@ -133,10 +135,7 @@
 					}))
 				} else {
 					this.$router.push({
-						path: '/lookVideo',
-						query: {
-							url: encodeURIComponent(videoUrl)
-						}
+						path: '/lookVideo'
 					})
 				}
 			},

+ 3 - 2
src/views/app/LookVideo.vue

@@ -11,8 +11,9 @@
 	export default {
 		name: "lookVideo",
 		data() {
-			const query = this.$route.query
-			let tempUrl = decodeURIComponent(query.url)
+			// const query = this.$route.query
+			const examVideoUrl = localStorage.getItem('examVideoUrl')
+			let tempUrl = decodeURIComponent(examVideoUrl)
 			tempUrl = tempUrl.split(',')
 			return {
 				headerStatus: false,

Bu fark içinde çok fazla dosya değişikliği olduğu için bazı dosyalar gösterilmiyor