index.php
1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
use yii\helpers\Url;
$baseUrl = Url::base(true);
$assets = $this->getAssetManager();
$asset = $assets->getBundle('app\wx\assets\AppAsset');
function img($file, $path = '/i/')
{
return \Yii::$app->request->baseUrl . $path.$file;
}
?>
<style>
</style>
<div class="views">
<div class="view view-main">
<?=$this->render("@app/views/widgets/ui-loading")?>
</div>
</div>
<?=$this->render('pages/index-template', ['asset' => $asset])?>
<?=$this->render('pages/rank-template', ['asset' => $asset])?>
<?=$this->render('pages/submit-template', ['asset' => $asset])?>
<?=$this->render('pages/cost-list-template', ['asset' => $asset])?>
<?=$this->render('pages/repairing-template', ['asset' => $asset])?>
<script>
require.config({baseUrl: $site.assets_url + '/js/',urlArgs : "v=" + require.version});
require([
'order-app'
],
function(app){
app.bootstrap({
baseUrl: $site.base_url
});
});
</script>
<?=$this->render("@app/views/widgets/stat-code")?>