FWSystem/target/classes/front/page/pay-success.html

89 lines
3.4 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0,user-scalable=no,minimal-ui">
<title>菩提阁</title>
<link rel="icon" href="./../images/favico.ico">
<!--不同屏幕尺寸根字体设置-->
<script src="./../js/base.js"></script>
<!--element-ui的样式-->
<link rel="stylesheet" href="../../backend/plugins/element-ui/index.css" />
<!-- 引入样式 -->
<link rel="stylesheet" href="../styles/index.css" />
<!--本页面内容的样式-->
<link rel="stylesheet" href="./../styles/pay-success.css" />
</head>
<body>
<div id="pay_success" class="app">
<div class="divHead">
<div class="divTitle">
<i class="el-icon-arrow-left" @click="goBack"></i>
菩提阁
<img src="./../images/home.png" @click="toMainPage"/>
</div>
</div>
<div class="divContent">
<img src="./../images/success.png"/>
<div class="divSuccess">下单成功</div>
<div class="divDesc">预计{{finishTime}}到达</div>
<div class="divDesc1">后厨正在加紧制作中,请耐心等待~</div>
<div class="btnView" @click="toOrderPage">查看订单</div>
</div>
</div>
<!-- 开发环境版本,包含了有帮助的命令行警告 -->
<script src="../../backend/plugins/vue/vue.js"></script>
<!-- 引入组件库 -->
<script src="../../backend/plugins/element-ui/index.js"></script>
<!-- 引入axios -->
<script src="../../backend/plugins/axios/axios.min.js"></script>
<script src="./../js/request.js"></script>
<script>
new Vue({
el:"#pay_success",
data(){
return {
finishTime:''
}
},
computed:{},
created(){
this.getFinishTime()
},
mounted(){},
methods:{
goBack(){
window.requestAnimationFrame(()=>{
window.location.replace('/front/index.html')
})
},
toOrderPage(){
window.requestAnimationFrame(()=>{
window.location.replace('/front/page/order.html')
})
},
toMainPage(){
window.requestAnimationFrame(()=>{
window.location.replace('/front/index.html')
})
},
//获取送达时间
getFinishTime(){
let now = new Date()
let hour = now.getHours() +1
let minute = now.getMinutes()
if(hour.toString().length <2){
hour = '0' + hour
}
if(minute.toString().length <2){
minute = '0' + minute
}
this.finishTime = hour + ':' + minute
},
}
})
</script>
</body>
</html>