Skip to content

Commit 351b68c

Browse files
committed
修正手机端warning
1 parent 900d5d7 commit 351b68c

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

app/exam/tpls/phone/index.tpl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
<div class="page-content header">
1717
<div class="list-box bg">
1818
<ol>
19+
{x2;if:is_array($basics)}
1920
{x2;tree:$basics,basic,bid}
2021
<li class="unstyled">
2122
<div class="col-4x">
@@ -33,6 +34,8 @@
3334
</div>
3435
</li>
3536
{x2;endtree}
37+
{x2;else}
38+
{x2;endif}
3639
</ol>
3740
</div>
3841
</div>

app/user/tpls/phone/register.tpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
<input type="password" needle="needle" msg="请输入密码" class="noborder" placeholder="请输入密码">
6868
</div>
6969
</div>
70+
{x2;if:is_array($forms)}
7071
{x2;tree:$forms,form,fid}
7172
<div class="form-group underline">
7273
<div class="col-3 tip">
@@ -76,6 +77,7 @@
7677
{x2;v:form['html']}
7778
</div>
7879
</div>
80+
{x2;endtree}
7981
{x2;endif}
8082
<div class="form-group text-center">
8183
<label class="inline"><input type="radio" name="agreement"><span class="selector">同意《注册协议》</span></label>

0 commit comments

Comments
 (0)