ソースを参照

长护险首页设置

seamong 6 年 前
コミット
bdd7b9e66c
1 ファイル変更17 行追加17 行削除
  1. 17 17
      www/protected/modules/ch/views/web/index.php

+ 17 - 17
www/protected/modules/ch/views/web/index.php

@@ -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
@@ -59,13 +59,13 @@
       var uri = location.href;
       if (!userID2 || !appToken2) {
         localStorage.clear();
-        location.href = '<?php echo Yii::app()->request->baseUrl . 'index.php?r=j/web/wxIndex'; ?>';
+        location.href = '<?php echo Yii::app()->request->baseUrl . 'index.php?r=ch/web/wxIndex'; ?>';
       }
 
       if (uri.indexOf('state=yiguanjia') > -1 && userID2 && appToken2) {
-        window.location.href = 'http://common.yiguanjia.me/index.php?r=j/web/index';
+        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 = '';