Нет описания

personal.html 5.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
  6. <meta name="apple-mobile-web-app-capable" content="yes">
  7. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  8. <link rel="stylesheet" href="../layui/css/layui.mobile.css" />
  9. <link href="../css/commonstyle.css" rel="stylesheet" />
  10. <!--<link href="/css/mui.css" rel="stylesheet" />-->
  11. <script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js?1.1"></script>
  12. <title>郑州市第一人民医院</title>
  13. <style>
  14. html,body{
  15. height: 100%;
  16. }
  17. .mui-content .boxs{
  18. height: 215px;
  19. width: 215px;
  20. background: #158FEF;
  21. color: #fff;
  22. border-radius: 50%;
  23. color: #FFFFFF;
  24. font-size: 18px;
  25. margin: 65px auto;
  26. }
  27. .mui-content .boxs i.Scan{
  28. display: inline-block;margin-top: 40px;color:#FFFFFF; font-size: 85px;
  29. margin-bottom: 5px;
  30. }
  31. .logoWord{
  32. position: absolute;
  33. bottom: 25px;
  34. left: 0;
  35. right: 0;
  36. color: #666666;
  37. font-size: 14px;
  38. }
  39. .logoWord:after ,.logoWord:before{
  40. position: absolute;
  41. width: 32%;
  42. bottom: 6px;
  43. height: 1px;
  44. content: '';
  45. -webkit-transform: scaleY(.5);
  46. transform: scaleY(.5);
  47. background-color: #666666;
  48. }
  49. .logoWord:after{
  50. right: 0;
  51. left: 15px;
  52. }
  53. .logoWord:before {
  54. right: 15px;
  55. }
  56. </style>
  57. </head>
  58. <body>
  59. <div class="mui-content">
  60. <!--扫码框-->
  61. <div class="boxs" id="QRcode">
  62. <i class="iconfont Scan" style="">&#xe608;</i>
  63. <p >点击扫码下单</p>
  64. <!--<button class="mui-btn mui-btn-13A " style="font-size: 16px;margin-top" id="QRcode">快速扫码报修</button>-->
  65. <!--<button class="mui-btn " style="font-size: 16px;" id="HMoperation">手动录入报修</button>-->
  66. </div>
  67. <div class="logoWord">
  68. 郑州市第一人民医院
  69. </div>
  70. </div>
  71. <script src="../layui/layui.js?1.1"></script>
  72. <script src="../js/mui.min.js?1.1"></script>
  73. <script src="../js/zepto.js?1.1"></script>
  74. <script src="../js/jquery.min.js?1.1"></script>
  75. <script src="../Script/Common/huayi.config.js?1.1"></script>
  76. <script>
  77. $.ajax({
  78. type: "get",
  79. url: huayi.config.callcenter_url + "wechatapi/api/home/getinfo?fromUrl=" + location.href.split('#')[0], //自己填写请求地址
  80. data: {},
  81. dataType: 'json',
  82. success: function (result) {
  83. // console.log(result.data.appid)
  84. wx.config({
  85. // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
  86. debug: false,
  87. // 必填,公众号的唯一标识
  88. appId: result.data.appid,
  89. // 必填,生成签名的时间戳
  90. timestamp: "" + result.data.timestamp,
  91. // 必填,生成签名的随机串
  92. nonceStr: result.data.nonce,
  93. // 必填,签名,见附录1
  94. signature: result.data.signature,
  95. // 必填,需要使用的JS接口列表,
  96. jsApiList: ['scanQRCode']
  97. });
  98. }
  99. })
  100. wx.error(function (res) {
  101. // alert("出错了:" + res.errMsg); //这个地方的好处就是wx.config配置错误,会弹出窗口哪里错误,然后根据微信文档查询即可。
  102. });
  103. wx.ready(function () {
  104. // wx.checkJsApi({
  105. // jsApiList: ['checkJsApi'],
  106. // success: function(res) {
  107. //
  108. // }
  109. // });
  110. //点击按钮扫描二维码
  111. $('#QRcode').on('tap',scanQRCode);
  112. // $('.Scan').on('tap',scanQRCode);
  113. });
  114. //手动录入工单跳转
  115. $('#HMoperation').on('tap', function () {
  116. window.location.href = 'index.html'
  117. });
  118. function scanQRCode(){
  119. wx.scanQRCode({
  120. needResult: 1, // 默认为0,扫描结果由微信处理,1则直接返回扫描结果,
  121. scanType: ["qrCode"], // 可以指定扫二维码还是一维码,默认二者都有
  122. success: function (res) {
  123. var result = res.resultStr; // 当needResult 为 1 时,扫码返回的结果
  124. // window.location.href=result;
  125. //
  126. var b = result.split('id=');
  127. var type = b[1].split('&type=');
  128. if (type[1] == '2') {
  129. //window.location.href = 'EquipmentMessage.html?id=' + type[0] +'&r='+ Math.random();
  130. window.location.replace("EquipmentMessage.html?id="+ type[0]+"&r=" + Math.random());
  131. } else if (type[1] == '1') {
  132. window.location.href = 'choosePage.html?id=' + type[0] +'&r='+ Math.random();
  133. }
  134. },
  135. error: function (res) {
  136. var result = res.resultStr;
  137. }
  138. });
  139. }
  140. </script>
  141. </body>
  142. </html>