Commit 41dfe5f87223178f7697548748b7ac8f4f9baaf0
1 parent
986c4074
Exists in
master
app-wx(v0.1.0 build 21)
1. F 统一底部toolbar 的HTML来源
Showing
10 changed files
with
28 additions
and
51 deletions
Show diff stats
app-wx/config/params.php
app-wx/modules/order/views/default/pages/cost-list-template.php
... | ... | @@ -99,7 +99,7 @@ $baseUrl = Url::base(true); |
99 | 99 | </div> |
100 | 100 | <div class="btn-submit"> 提交 </div> |
101 | 101 | </div> |
102 | - <?=$this->render('toolbar-template', ['asset' => $asset, 'active' => 'order'])?> | |
102 | + <?=$this->render("@app/views/layouts/toolbar-template", ['asset' => $asset, 'active' => 'order'])?> | |
103 | 103 | </div> |
104 | 104 | </div> |
105 | 105 | </script> | ... | ... |
app-wx/modules/order/views/default/pages/index-template.php
... | ... | @@ -55,7 +55,7 @@ $baseUrl = Url::base(true); |
55 | 55 | <div class="order-list" id="index-order-list-box"></div> |
56 | 56 | </div> |
57 | 57 | <div class="add-btn-cls"><img style="width:4rem;" src="<?=$baseUrl?>/i/order/order_enter.png" /></div> |
58 | - <?=$this->render('toolbar-template', ['asset' => $asset, 'active' => 'order'])?> | |
58 | + <?=$this->render("@app/views/layouts/toolbar-template", ['asset' => $asset, 'active' => 'order'])?> | |
59 | 59 | </div> |
60 | 60 | </div> |
61 | 61 | </script> | ... | ... |
app-wx/modules/order/views/default/pages/order-details-template.php
... | ... | @@ -207,7 +207,7 @@ $baseUrl = Url::base(true); |
207 | 207 | </div> |
208 | 208 | {{/js_compare}} |
209 | 209 | </div> |
210 | - <?=$this->render('toolbar-template', ['asset' => $asset, 'active' => 'order'])?> | |
210 | + <?=$this->render("@app/views/layouts/toolbar-template", ['asset' => $asset, 'active' => 'order'])?> | |
211 | 211 | </div> |
212 | 212 | </div> |
213 | 213 | </script> | ... | ... |
app-wx/modules/order/views/default/pages/submit-template.php
... | ... | @@ -144,7 +144,7 @@ $baseUrl = Url::base(true); |
144 | 144 | <div class="submit-btn-cls">提交</div> |
145 | 145 | </div> |
146 | 146 | </div> |
147 | - <?=$this->render('toolbar-template', ['asset' => $asset, 'active' => 'order'])?> | |
147 | + <?=$this->render("@app/views/layouts/toolbar-template", ['asset' => $asset, 'active' => 'order'])?> | |
148 | 148 | </div> |
149 | 149 | </div> |
150 | 150 | </script> | ... | ... |
app-wx/modules/order/views/default/pages/toolbar-template.php
... | ... | @@ -1,22 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -use yii\helpers\Url; | |
4 | - | |
5 | -$baseUrl = Url::base(true); | |
6 | -?> | |
7 | -<style> | |
8 | - .mytoolbar {background:#fff;} | |
9 | - .mytoolbar .toolbar-inner{background:#fff;} | |
10 | - .mytoolbar span.tabbar-label{font-size: 1rem;} | |
11 | - .mytoolbar a.active{color:#FF8728} | |
12 | - | |
13 | - .mytoolbar, .mytoolbar a{color:#7C7A7A} | |
14 | -</style> | |
15 | -<div class="toolbar tabbar mytoolbar"> | |
16 | - <div class="toolbar-inner"> | |
17 | - <a href="javascript:window.location.replace('<?=$baseUrl?>/user/#about')" class="tab-link <?php if('about' == $active){echo "active";}?>"> <span class="tabbar-label">关于我们</span></a> | |
18 | - <a href="javascript:window.location.replace('<?=$baseUrl?>/user/#regulation')" class="tab-link <?php if('regulation' == $active){echo "active";}?>"><span class="tabbar-label">维修流程标准</span></a> | |
19 | - <a href="javascript:window.location.href = '<?=$baseUrl?>/order/#index'" class="tab-link <?php if('order' == $active){echo "active";}?>"> <span class="tabbar-label">维修管理</span></a> | |
20 | - | |
21 | - </div> | |
22 | -</div> |
app-wx/modules/user/views/default/pages/about-template.php
... | ... | @@ -25,7 +25,7 @@ $baseUrl = Url::base(true); |
25 | 25 | </div> |
26 | 26 | </div> |
27 | 27 | </div> |
28 | - <?=$this->render('toolbar-template', ['asset' => $asset, 'active' => 'about'])?> | |
28 | + <?=$this->render("@app/views/layouts/toolbar-template", ['asset' => $asset, 'active' => 'about'])?> | |
29 | 29 | </div> |
30 | 30 | </div> |
31 | 31 | </script> | ... | ... |
app-wx/modules/user/views/default/pages/regulation-template.php
... | ... | @@ -16,7 +16,7 @@ $baseUrl = Url::base(true); |
16 | 16 | <div class="page-content" id="regulation_content"> |
17 | 17 | |
18 | 18 | </div> |
19 | - <?=$this->render('toolbar-template', ['asset' => $asset, 'active' => 'regulation'])?> | |
19 | + <?=$this->render("@app/views/layouts/toolbar-template", ['asset' => $asset, 'active' => 'regulation'])?> | |
20 | 20 | </div> |
21 | 21 | </div> |
22 | 22 | </script> | ... | ... |
app-wx/modules/user/views/default/pages/toolbar-template.php
... | ... | @@ -1,22 +0,0 @@ |
1 | -<?php | |
2 | - | |
3 | -use yii\helpers\Url; | |
4 | - | |
5 | -$baseUrl = Url::base(true); | |
6 | -?> | |
7 | -<style> | |
8 | - .mytoolbar {background:#fff;} | |
9 | - .mytoolbar .toolbar-inner{background:#fff;} | |
10 | - .mytoolbar span.tabbar-label{font-size: 1rem;} | |
11 | - .mytoolbar a.active{color:#FF8728} | |
12 | - | |
13 | - .mytoolbar, .mytoolbar a{color:#7C7A7A} | |
14 | -</style> | |
15 | -<div class="toolbar tabbar mytoolbar"> | |
16 | - <div class="toolbar-inner"> | |
17 | - <a href="javascript:window.location.replace('<?=$baseUrl?>/user/#about')" class="tab-link <?php if('about' == $active){echo "active";}?>"> <span class="tabbar-label">关于我们</span></a> | |
18 | - <a href="javascript:window.location.replace('<?=$baseUrl?>/user/#regulation')" class="tab-link <?php if('regulation' == $active){echo "active";}?>"><span class="tabbar-label">维修流程标准</span></a> | |
19 | - <a href="javascript:window.location.href = '<?=$baseUrl?>/order/#index'" class="tab-link <?php if('order' == $active){echo "active";}?>"> <span class="tabbar-label">维修管理</span></a> | |
20 | - | |
21 | - </div> | |
22 | -</div> |
... | ... | @@ -0,0 +1,21 @@ |
1 | +<?php | |
2 | + | |
3 | +use yii\helpers\Url; | |
4 | + | |
5 | +$baseUrl = Url::base(true); | |
6 | +?> | |
7 | +<style> | |
8 | + .mytoolbar {background:#fff;} | |
9 | + .mytoolbar .toolbar-inner{background:#fff;} | |
10 | + .mytoolbar span.tabbar-label{font-size: 1rem;} | |
11 | + .mytoolbar a.active{color:#FF8728} | |
12 | + | |
13 | + .mytoolbar, .mytoolbar a{color:#7C7A7A} | |
14 | +</style> | |
15 | +<div class="toolbar tabbar mytoolbar"> | |
16 | + <div class="toolbar-inner"> | |
17 | + <a href="javascript:window.location.replace('<?=$baseUrl?>/user/#about')" class="tab-link <?php if('about' == $active){echo "active";}?>"> <span class="tabbar-label">关于我们</span></a> | |
18 | + <a href="javascript:window.location.replace('<?=$baseUrl?>/user/#regulation')" class="tab-link <?php if('regulation' == $active){echo "active";}?>"><span class="tabbar-label">维修流程标准</span></a> | |
19 | + <a href="javascript:window.location.replace('<?=$baseUrl?>/order/#index')" class="tab-link <?php if('order' == $active){echo "active";}?>"> <span class="tabbar-label">维修管理</span></a> | |
20 | + </div> | |
21 | +</div> | ... | ... |