|
@@ -0,0 +1,38 @@
|
|
|
+<!DOCTYPE html>
|
|
|
+<html>
|
|
|
+<head>
|
|
|
+ <meta charset="utf-8">
|
|
|
+ <title>增加操作员</title>
|
|
|
+ <meta name="renderer" content="webkit">
|
|
|
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
|
+ <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
|
|
+</head>
|
|
|
+<script>
|
|
|
+</script>
|
|
|
+<body class="content">
|
|
|
+ <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
|
|
|
+ </fieldset>
|
|
|
+ <script src="../plugins/layui/layui.js"></script>
|
|
|
+ <script>
|
|
|
+ layui.use(['form', 'layedit', 'laydate'], function() {
|
|
|
+
|
|
|
+ var form = layui.form
|
|
|
+ , layer = layui.layer
|
|
|
+ , layedit = layui.layedit
|
|
|
+ , laydate = layui.laydate;
|
|
|
+ var url = document.location.toString();//获取url地址
|
|
|
+ var urlParmStr = url.slice(url.indexOf('?')+1);//获取问号后所有的字符串
|
|
|
+ var arr = urlParmStr.split('&');//通过&符号将字符串分割转成数组
|
|
|
+ var role = arr[0].split("=")[1];//获取数组中第一个参数
|
|
|
+ var branchId = arr[1].split("=")[1];//第二个参数
|
|
|
+ var openUrl = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx10f4bf0a8faf3374&redirect_uri=";
|
|
|
+ var redirect_uri = "http://xubing2.minpay.cc/adm/admin/wxuserManage/addUserTransfer.html?role="+role+"&branchId="+branchId;
|
|
|
+ var cs = '&response_type=code&scope=snsapi_userinfo&state=STATE';
|
|
|
+ redirect_uri = encodeURIComponent(redirect_uri);
|
|
|
+ window.open(openUrl+redirect_uri+cs);
|
|
|
+ })
|
|
|
+
|
|
|
+
|
|
|
+ </script>
|
|
|
+</body>
|
|
|
+</html>
|