Browse Source

生成二维码

xubh 4 years ago
parent
commit
dcffca3788

+ 38 - 0
src/main/webapp/admin/h5AddUser.html

@@ -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>

+ 53 - 0
src/main/webapp/admin/wxuserManage/addUserTransfer.html

@@ -0,0 +1,53 @@
+<!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>
+    <form class="layui-form" action="">
+    </form>
+    <script src="../../js/min-loader-next.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 code = arr[2].split("=")[1];//第三个参数
+
+            $.request({
+                action : '../../PersManageAction/personAdd',
+                data : {
+                    role : role,
+                    code:code,
+                    type : "WX",
+                    channel : "V01",
+                    branchId : branchId
+                },
+                success : function(data) {
+                    layer.alert('操作成功!');
+                    form.render();
+                },
+            });
+
+        })
+
+
+    </script>
+</body>
+</html>

+ 43 - 0
src/main/webapp/admin/wxuserManage/h5AddUser.html

@@ -0,0 +1,43 @@
+<!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>
+    <form class="layui-form" action="">
+    </form>
+    <script src="../../js/min-loader-next.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];//第二个参数
+            alert(1231);
+            var openUrl = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx10f4bf0a8faf3374&redirect_uri=";
+            alert(12312);
+            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';
+
+            window.open(openUrl+redirect_uri+cs);
+        })
+
+
+
+    </script>
+</body>
+</html>