56 lines
1.9 KiB
HTML
56 lines
1.9 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>支付宝扫码授权</title>
|
|
<script src="__STATIC__/js/jquery-3.1.1.js"></script>
|
|
<script src="__STATIC__/js/jquery.cookie.js"></script>
|
|
<script src="__STATIC__/ext/layui/layui.js"></script>
|
|
<script>
|
|
layui.use(['layer', 'upload', 'element'], function() {});
|
|
window.ns_url = {
|
|
baseUrl: "ROOT_URL/",
|
|
route: ['{:request()->module()}', '{:request()->controller()}', '{:request()->action()}'],
|
|
shop_module: '{$shop_module}',
|
|
SHOPIMG: 'SHOP_IMG'
|
|
};
|
|
</script>
|
|
<script src="__STATIC__/js/common.js"></script>
|
|
<link rel="stylesheet" type="text/css" href="__STATIC__/ext/layui/css/layui.css" />
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<div><img style='width: 240px;align-content: center;'src='{$qr_auth}?v={:time()}'></div>
|
|
<div>请商户使用支付宝扫码授权</div>
|
|
<div class="layui-input-block">
|
|
<textarea id="auth_url" type="text" name="title" lay-verify="title" autocomplete="off" placeholder="请输入标题" class="layui-textarea">
|
|
{$auth_url}
|
|
</textarea>
|
|
<button class="layui-btn layui-btn-primary" onclick="ns.copy('auth_url')">复制链接</button>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
<style>
|
|
.container {
|
|
text-align: center;
|
|
margin: 10px auto;
|
|
width: 750px;
|
|
}
|
|
.item{
|
|
display: inline-block;
|
|
width: 100px;
|
|
background-color: #ff266e;
|
|
}
|
|
</style>
|
|
<script>
|
|
// layui.use('layer', function(){
|
|
// let msg='授权接入';
|
|
// var layer = layui.layer;
|
|
// var index = parent.layer.getFrameIndex(window.name); //当前iframe层的索引
|
|
// layer.msg(msg);
|
|
// setTimeout(function(){
|
|
// parent.layer.close(index); //再执行关闭
|
|
// },3000)
|
|
// });
|
|
</script>
|
|
</html> |