97 lines
2.5 KiB
Vue
97 lines
2.5 KiB
Vue
<template>
|
|
<view>
|
|
<u-navbar
|
|
:safeAreaInsetTop="true"
|
|
:placeholder="true"
|
|
:title="title"
|
|
:fixed="true"
|
|
:autoBack="false"
|
|
leftIconColor="#C39A4B"
|
|
bgColor="#C39A4B"
|
|
titleStyle="font-weight:bold;color:#ffffff;"
|
|
>
|
|
<view
|
|
@click="logout()"
|
|
style="margin-top:2px;margin-right:3px;"
|
|
slot="right"
|
|
>
|
|
<image src="../../static/images/ico_exit.png" style="width:24px;height:24px;"></image>
|
|
</view>
|
|
</u-navbar>
|
|
<view class="hz-flex-row" style="justify-content: center;margin-top:40px;">
|
|
<image src="/static/images/location_fail.png" style="width:160px;height:160px;"></image>
|
|
</view>
|
|
<view class="hz-flex-row hz-font-bolder hz-font-md" style="margin:20px;">
|
|
{{message}}
|
|
</view>
|
|
<view class="hz-font-bolder hz-font-md" style="margin:20px;">
|
|
{{reson}}:{{resonMsg}}
|
|
</view>
|
|
<view class="hz-flex-row hz-spacing" style="justify-content: center;">
|
|
<view @click="checkLocationAndVPN(true)" class="hz-btn hz-bg-primary hz-font-lg hz-font-bold hz-font-color-white hz-text-center" style="width: 150px;">{{$t("region.retry")}}</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
// 数据变量
|
|
userData:null,
|
|
deviceData:null,
|
|
siteData:null,
|
|
// 界面变量
|
|
userName:'',
|
|
title: this.$t("region.title"),
|
|
message:this.$t("region.showMessage"),
|
|
reson: this.$t("region.reson"),
|
|
resonMsg:"",
|
|
}
|
|
},
|
|
onLoad(prop) {
|
|
// 初始化界面
|
|
//uni.setLocale("en") //測試切換語言en or zh-Hant
|
|
this.userData = uni.getStorageSync("userData");
|
|
this.siteData = uni.getStorageSync("siteData");
|
|
if(prop!==null && prop!==undefined && prop.type!==null && prop.type!==undefined && prop.type!==''){
|
|
if(prop.type == '1'){
|
|
this.resonMsg = this.$t("region.resonMsglocationErr")
|
|
}
|
|
if(prop.type == '2'){
|
|
this.resonMsg = this.$t("region.resonMsgVPNErr")
|
|
}
|
|
if(prop.type == '3'){
|
|
this.resonMsg = this.$t("region.resonMsgFunctionErr")
|
|
}
|
|
if(prop.type == '4'){
|
|
this.resonMsg = this.$t("region.resonMsgNotInMacau")
|
|
}
|
|
if(prop.type == '5'){
|
|
this.resonMsg = this.$t("region.resonMsgOpenVPN")
|
|
}
|
|
if(prop.type == '6'){
|
|
this.resonMsg = this.$t("region.resonMsgNotInMacauOpenVpn")
|
|
}
|
|
if(prop.type == '7'){
|
|
this.resonMsg = this.$t("region.resonMsgNotInMacauIP")
|
|
}
|
|
}
|
|
},
|
|
onShow(){
|
|
this.userData = uni.getStorageSync("userData");
|
|
this.userName = this.userData.userName + " (" + this.userData.userId+")";
|
|
},
|
|
methods: {
|
|
|
|
},
|
|
computed:{
|
|
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style>
|
|
|
|
</style>
|