51 lines
1.4 KiB
HTML
51 lines
1.4 KiB
HTML
|
<html lang="cn">
|
||
|
<head>
|
||
|
<meta charset="utf-8">
|
||
|
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" name="viewport" />
|
||
|
<title>{{.Title}}</title>
|
||
|
<link rel="stylesheet" href="/static/cdn/element-ui/2.15.7/theme-chalk/index.min.css">
|
||
|
<script src="/static/cdn/vue/2.6.11/vue.min.js"></script>
|
||
|
<script src="/static/cdn/element-ui/2.15.7/index.js"></script>
|
||
|
<script src="/static/js/functions.js"></script>
|
||
|
</head>
|
||
|
<body>
|
||
|
<body>
|
||
|
<div id="app">
|
||
|
<template>
|
||
|
<el-result icon="success" title="访客授权跳转">
|
||
|
</el-result>
|
||
|
</template>
|
||
|
</div>
|
||
|
</body>
|
||
|
|
||
|
</body>
|
||
|
<script>
|
||
|
var KEFU_ID='{{.kefuId}}';
|
||
|
var REFER='{{.Refer}}';
|
||
|
var ENT_ID='{{.EntId}}';
|
||
|
var APP_ID='{{.AppId}}';
|
||
|
var HOST=trim('{{.Host}}',"/");
|
||
|
</script>
|
||
|
<script>
|
||
|
new Vue({
|
||
|
el: '#app',
|
||
|
delimiters:["<{","}>"],
|
||
|
data: {
|
||
|
},
|
||
|
methods: {
|
||
|
redirect(){
|
||
|
setTimeout(function () {
|
||
|
var url="https://open.weixin.qq.com/connect/oauth2/authorize?appid="+APP_ID+"&redirect_uri="+HOST+"/chatIndex%3Fent_id="+ENT_ID+"%26kefu_id="+KEFU_ID+"&response_type=code&scope=snsapi_userinfo#wechat_redirect"
|
||
|
document.location.href=url;
|
||
|
},1000);
|
||
|
}
|
||
|
},
|
||
|
mounted:function(){
|
||
|
},
|
||
|
created: function () {
|
||
|
this.redirect();
|
||
|
}
|
||
|
})
|
||
|
</script>
|
||
|
</html>
|