71 lines
2.5 KiB
HTML
71 lines
2.5 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
|
|
<title>首页</title>
|
|
<link rel="stylesheet" href="css/reset.css">
|
|
<link rel="stylesheet" href="css/style.css">
|
|
<script src="js/rem.js"></script>
|
|
</head>
|
|
<body>
|
|
<div id="app">
|
|
<img src="images/background.png" alt="" class="background">
|
|
<img src="images/mid-text.png" alt="" class="mid-text">
|
|
<a href="venue-guide.html" class="go-inside">
|
|
<img src="images/go-inside.png" alt="">
|
|
</a>
|
|
</div>
|
|
<script src="js/vue.js"></script>
|
|
<script src="js/jquery-2.1.4.min.js"></script>
|
|
<script src="js/ajax.js "></script>
|
|
<script>
|
|
var vue = new Vue({
|
|
el: '#app',
|
|
data: {
|
|
url: '',
|
|
deviceCode: '',
|
|
backgroundImg: ''
|
|
},
|
|
methods: {
|
|
getBackgroundImg: function () {
|
|
var self = this
|
|
doGetForm(self.url + '/app/showvenue/getshowvenuebydevicecoderelease/' + self.deviceCode, {}, null, function (code, data) {
|
|
console.log(data)
|
|
})
|
|
}
|
|
},
|
|
mounted: function () {
|
|
// var url = window.AppInterface.getBaseUrl()
|
|
// var deviceCode = window.AppInterface.getDeviceCode()
|
|
var url = 'https://www.wgink.ink/show'
|
|
// var url = 'http://192.168.0.115:8086/show'
|
|
var deviceCode = 'RKZ01H12'
|
|
this.url = url
|
|
this.deviceCode = deviceCode
|
|
localStorage.setItem('url', url)
|
|
localStorage.setItem('deviceCode', deviceCode)
|
|
this.getBackgroundImg()
|
|
var timer
|
|
$('.mid-text').on({
|
|
touchstart: function () {
|
|
timer = setTimeout(function () {
|
|
timer = ''
|
|
AppInterface.showPwdDialog()
|
|
}, 2000)
|
|
},
|
|
touchmove: function () {
|
|
clearTimeout(timer)
|
|
timer = ''
|
|
},
|
|
touchend: function () {
|
|
clearTimeout(timer)
|
|
timer = ''
|
|
}
|
|
})
|
|
}
|
|
})
|
|
</script>
|
|
</body>
|
|
</html>
|