modified 适配页面显示

This commit is contained in:
zhaoxiang 2016-11-07 00:45:29 +08:00
parent bb21eac180
commit 1aedcb4efd
7 changed files with 25 additions and 22 deletions

View File

@ -9,12 +9,15 @@ namespace app\index\controller;
class Help extends Base {
public function index(){
$this->display();
return $this->fetch();
}
public function pro1(){
$this->display();
return $this->fetch();
}
public function pro2(){
$this->display();
return $this->fetch();
}
public function pro3(){
return $this->fetch();
}
}

View File

@ -10,7 +10,7 @@ namespace app\index\controller;
class Product extends Base {
public function index(){
$this->assign('pro',config('PROVINCE'));
$this->display();
return $this->fetch();
}
public function buy(){
$data = $this->request->post();

View File

@ -112,7 +112,7 @@ class User extends Base {
$this->success('注册成功!', url('User/index'), true);
}
}else{
$this->display();
return $this->fetch();
}
}
@ -140,7 +140,7 @@ class User extends Base {
$this->success('密码重置成功!', url('User/index'), true);
}
}else{
$this->display();
return $this->fetch();
}
}

View File

@ -1,5 +1,5 @@
{extend name="help/base" /}
{block name="myContent">
{block name="content"}
<div class="dir">
<h4 class="display-h4">引导页</h4>
<p class="p-indent">帮助用户进行先前设定。</p>

View File

@ -1,5 +1,5 @@
{extend name="help/base" /}
{block name="myContent">
{block name="content"}
<div class="dir">
<h4 class="display-h4">引导页</h4>
<p class="p-indent">帮助用户进行先前设定。</p>

View File

@ -36,7 +36,7 @@
</div>
<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
<h3 class="display-h4"><a class="btn btn-danger btn-lg" href="{:url('Product/index')}">去获取Go!Pano系列产品 <i class="icon-angle-right"></i></a></h3>
<if condition="$proNum">
{if condition="$proNum"}
<div class="table-responsive">
<table class="table" style="table-layout:fixed;">
<thead>
@ -48,31 +48,31 @@
</tr>
</thead>
<tbody>
<volist name="proList" id="vo">
{volist name="proList" id="vo"}
<tr>
<td>{$vo['proName']}</td>
<if condition="$vo['status']">
<if condition="$vo['type'] eq 1">
{if condition="$vo['status']"}
{if condition="$vo['type'] eq 1"}
<td><span>已购买</span></td>
<td><a href="#" class="btn btn-sm btn-default">立即下载</a></td>
<elseif condition="$vo['type'] eq 2"/>
{elseif condition="$vo['type'] eq 2"/}
<td><span>已下载</span></td>
<td><a href="{:url('Product/index')}" class="btn btn-sm btn-default">购买正式版</a></td>
<else />
{else /}
<td colspan="2"><span>已经购买</span></td>
</if>
<else/>
{/if}
{else/}
<td colspan="2"><span>等待审核</span></td>
</if>
{/if}
<td>{$vo['addTime'] | date='Y-m-d H:i:s',###}</td>
</tr>
</volist>
{/volist}
</tbody>
</table>
</div>
<else />
{else /}
<p class="tc p100"><a href="{:url('Product/index')}">~您还没有购买过任何产品~<br>去获取产品</a></p>
</if>
{/if}
</div>
</div>
</div>

View File

@ -226,9 +226,9 @@
<label for="">您的位置</label>
<div class="">
<select name="location" id="" class="form-control">
<volist name="pro" id="vo">
{volist name="pro" id="vo"}
<option value="{$key}">{$vo}</option>
</volist>
{/volist}
</select>
</div>
</div>