|
@@ -9,6 +9,9 @@
|
|
|
<view class="error-text">
|
|
<view class="error-text">
|
|
|
{{errorMsg}}
|
|
{{errorMsg}}
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+ <view class="error-but">
|
|
|
|
|
+ <button @click="closeSys">退出程序</button>
|
|
|
|
|
+ </view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
@@ -32,7 +35,13 @@ export default {
|
|
|
mounted() {
|
|
mounted() {
|
|
|
|
|
|
|
|
},
|
|
},
|
|
|
- methods: {}
|
|
|
|
|
|
|
+ methods: {
|
|
|
|
|
+ closeSys(){
|
|
|
|
|
+ let userAgent = navigator.userAgent;
|
|
|
|
|
+ if (userAgent.indexOf('Firefox') !== -1 || userAgent.indexOf('Chrome') !== -1) return window.location.href = 'about: blank';
|
|
|
|
|
+ return window.opener = null,window.open('about: blank', '_self'),window.close();
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
</script>
|
|
</script>
|
|
@@ -44,7 +53,7 @@ export default {
|
|
|
height: 100vh;
|
|
height: 100vh;
|
|
|
background: #131E30;
|
|
background: #131E30;
|
|
|
.error-content{
|
|
.error-content{
|
|
|
- padding-top: 260rpx;
|
|
|
|
|
|
|
+ padding-top: 300rpx;
|
|
|
.error-icon{
|
|
.error-icon{
|
|
|
text-align: center;
|
|
text-align: center;
|
|
|
text{
|
|
text{
|
|
@@ -58,6 +67,19 @@ export default {
|
|
|
font-weight: 600;
|
|
font-weight: 600;
|
|
|
color: #7388a7;
|
|
color: #7388a7;
|
|
|
}
|
|
}
|
|
|
|
|
+ .error-but{
|
|
|
|
|
+ button{
|
|
|
|
|
+ width: calc(100% - 60rpx);
|
|
|
|
|
+ height: 82rpx;
|
|
|
|
|
+ line-height: 82rpx;
|
|
|
|
|
+ border: 0;
|
|
|
|
|
+ border-radius: 6rpx;
|
|
|
|
|
+ background: #3e526b;
|
|
|
|
|
+ color: #FFFFFF;
|
|
|
|
|
+ letter-spacing: 4rpx;
|
|
|
|
|
+ margin-top: 40rpx;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
}
|
|
}
|