|
@@ -1,15 +1,15 @@
|
|
|
-<?php //$host = $_SERVER['HTTP_HOST']; /*资源路径设置*/ ?>
|
|
|
-<?php //$newVersion = time() /*时间戳*/ ?>
|
|
|
+<?php $host = $_SERVER['HTTP_HOST']; /*资源路径设置*/ ?>
|
|
|
+<?php $newVersion = time() /*时间戳*/ ?>
|
|
|
<!doctype html>
|
|
|
<html lang="en">
|
|
|
<head>
|
|
|
<title>长护险</title>
|
|
|
-<!-- <style>-->
|
|
|
-<!-- * {-->
|
|
|
-<!-- margin: 0;-->
|
|
|
-<!-- padding: 0;-->
|
|
|
-<!-- }-->
|
|
|
-<!-- </style>-->
|
|
|
+ <style>
|
|
|
+ * {
|
|
|
+ margin: 0;
|
|
|
+ padding: 0;
|
|
|
+ }
|
|
|
+ </style>
|
|
|
<meta charset="UTF-8">
|
|
|
<meta name="viewport"
|
|
|
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
|
@@ -36,12 +36,12 @@
|
|
|
(function () {
|
|
|
var ua = navigator.userAgent.toLowerCase();
|
|
|
<?php
|
|
|
-// if (isset($from_channel)) {
|
|
|
-// echo "var from_channel = '$from_channel';";
|
|
|
-// if (!empty($userId2) && $from_channel == 'baidu') {
|
|
|
-// echo "var bd_userId = localStorage.setItem('bd_userId', '" . $userId2 . "');";
|
|
|
-// }
|
|
|
-// }
|
|
|
+ if (isset($from_channel)) {
|
|
|
+ echo "var from_channel = '$from_channel';";
|
|
|
+ if (!empty($userId2) && $from_channel == 'baidu') {
|
|
|
+ echo "var bd_userId = localStorage.setItem('bd_userId', '" . $userId2 . "');";
|
|
|
+ }
|
|
|
+ }
|
|
|
?>
|
|
|
if (ua.match(/MicroMessenger/i) == 'micromessenger') {
|
|
|
<?php
|
|
@@ -65,7 +65,7 @@
|
|
|
if (uri.indexOf('state=yiguanjia') > -1 && userID2 && appToken2) {
|
|
|
window.location.href = 'http://common.yiguanjia.me/index.php?r=ch/web/index';
|
|
|
}
|
|
|
- // document.write('<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"><\/script>');
|
|
|
+ document.write('<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"><\/script>');
|
|
|
}
|
|
|
if (location.hash == '#rd') {
|
|
|
location.hash = '';
|