Compare commits

..

3 Commits

Author SHA1 Message Date
xiaomeng cf8e60e949 Merge pull request '1' (#187) from pc-master into portal
Reviewed-on: #187
2024-11-07 06:11:53 +00:00
sunmeng 6f5610b40d 1 2024-11-07 14:10:49 +08:00
sunmeng b319f08bb6 1 2024-11-07 11:43:35 +08:00
5 changed files with 123 additions and 13 deletions

6
package-lock.json generated
View File

@ -5376,9 +5376,9 @@
"dev": true
},
"node_modules/ezuikit-js": {
"version": "7.7.7",
"resolved": "https://registry.npmjs.org/ezuikit-js/-/ezuikit-js-7.7.7.tgz",
"integrity": "sha512-VRkQN5u7bTdSwCqQYk3db7lR2kiXdCrMzr/rwmRZww8xqeXaghgttPjjI/kS+u/xVMAkl6hp9+47Yxs/zBRB8A=="
"version": "7.7.10",
"resolved": "https://registry.npmmirror.com/ezuikit-js/-/ezuikit-js-7.7.10.tgz",
"integrity": "sha512-mpySnXY3F4LzW0R262IZIFBfp3fpDNVaB5UBAeO/IhofZii+2UD0p5Oc/2BrPfjADmcZnGCMOvJ92hlUMkk5EQ=="
},
"node_modules/fast-deep-equal": {
"version": "3.1.3",

View File

@ -11,6 +11,7 @@
<noscript>
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
</noscript>
<script src="../src/assets/js/ek.js"></script>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>

View File

@ -10,6 +10,16 @@
isMobile:false
}
},
watch:{
"$route"(newName, oldName) {
var routerNow = this.$route.name;
if(routerNow=='videoLive'){
this.isMobile=true
}else{
this.isMobile=false
}
},
},
created(){
if (sessionStorage.getItem("store") ) { //sessionStorage
this.$store.replaceState(Object.assign({}, this.$store.state,JSON.parse(sessionStorage.getItem("store"))))
@ -17,15 +27,7 @@
window.addEventListener("beforeunload",()=>{ //vuexsessionStorage
sessionStorage.setItem("store",JSON.stringify(this.$store.state))
})
if (
navigator.userAgent.match(
/(iPhone|iPod|Android|ios|iOS|iPad|Backerry|WebOS|Symbian|Windows Phone|Phone)/i
)
) {
this.isMobile=true
} else {
this.isMobile=false
}
},
mounted(){
let inputList = document.querySelectorAll('input');

108
src/assets/js/ek.js 100644

File diff suppressed because one or more lines are too long

View File

@ -240,7 +240,6 @@ export default {
}
}
</script>
<style lang="scss" scoped>
.videoLive {
width: 7.5rem;