dever 6 éve
szülő
commit
95a6371eae

+ 2 - 2
service/assets/mobile/list_code.html

@@ -12,8 +12,8 @@
     <div class="logo">Jstyle精美</div>
     <div class="info-txt">这里加一行简介</div>
     <div class="tab" node-ids="tab">
-        <div class="li active"><span>预购杂志</span></div>
-        <div class="li"><span>兑换码</span></div>
+        <a class="li active"><span>预购杂志</span></a>
+        <a class="li"><span>兑换码</span></a>
     </div>
     <div class="list" node-id="list">
         <div class="item">

+ 2 - 2
service/assets/mobile/my_code.html

@@ -12,8 +12,8 @@
     <div class="logo">Jstyle精美</div>
     <div class="info-txt">这里加一行简介</div>
     <div class="tab" node-ids="tab">
-        <div class="li"><span>预购杂志</span></div>
-        <div class="li active"><span>兑换码</span></div>
+        <a class="li"><span>预购杂志</span></a>
+        <a class="li active"><span>兑换码</span></a>
     </div>
     <div class="list" node-id="list">
         <div class="item">

+ 2 - 2
service/src/Base.php

@@ -84,8 +84,8 @@ class Base
             $cate['cover'] = $info['pic_gd'];
         }
 
-        $cate['list_link'] = 'location.href=' . $this->url('list_code') . '';
-        $cate['my_link'] = 'location.href=' . $this->url('my_code') . '';
+        $cate['list_link'] = $this->url('list_code');
+        $cate['my_link'] = $this->url('my_code');
         return $cate;
     }
 

+ 2 - 2
service/template/mobile/list_code.php

@@ -16,8 +16,8 @@ $view
 
 //->fetch('.richtext', 'service/base.config#code_desc')
 
-->fetch(array('.tab .li@onclick', 0), 'service/base.config#list_link')
-->fetch(array('.tab .li@onclick', 1), 'service/base.config#my_link')
+->fetch(array('.tab .li@href', 0), 'service/base.config#list_link')
+->fetch(array('.tab .li@href', 1), 'service/base.config#my_link')
 
 # 循环
 ->loop

+ 2 - 2
service/template/mobile/my_code.php

@@ -15,8 +15,8 @@ $view
 ->fetch('.info-txt', 'service/base.config#desc')
 
 //->fetch('.richtext', 'service/base.config#code_desc')
-->fetch(array('.tab .li@onclick', 0), 'service/base.config#list_link')
-->fetch(array('.tab .li@onclick', 1), 'service/base.config#my_link')
+->fetch(array('.tab .li@href', 0), 'service/base.config#list_link')
+->fetch(array('.tab .li@href', 1), 'service/base.config#my_link')
 
 ->loop
 (