Showing
2 changed files
with
10 additions
and
4 deletions
@@ -96,10 +96,12 @@ | @@ -96,10 +96,12 @@ | ||
96 | <label>直接输入优惠码: </label> | 96 | <label>直接输入优惠码: </label> |
97 | <input type="text" class="textbox" id="juancode" /> | 97 | <input type="text" class="textbox" id="juancode" /> |
98 | </li> | 98 | </li> |
99 | - <li> | ||
100 | - <input name="juangroup" type="radio" value=""> | ||
101 | - <label>YOHOXXXXXXX免费卷 </label> | ||
102 | - </li> | 99 | + {{#each juanlist}} |
100 | + <li> | ||
101 | + <input name="juangroup" type="radio" value="{{value}}"> | ||
102 | + <label>{{name}} </label> | ||
103 | + </li> | ||
104 | + {{/each}} | ||
103 | </ul> | 105 | </ul> |
104 | 106 | ||
105 | </div> | 107 | </div> |
@@ -20,6 +20,10 @@ class SaveController extends AbstractAction | @@ -20,6 +20,10 @@ class SaveController extends AbstractAction | ||
20 | 'piaotypes'=>array( | 20 | 'piaotypes'=>array( |
21 | array('name'=>'个人','value'=>'001'), | 21 | array('name'=>'个人','value'=>'001'), |
22 | array('name'=>'公司','value'=>'002') | 22 | array('name'=>'公司','value'=>'002') |
23 | + ), | ||
24 | + 'juanlist'=>array( | ||
25 | + array('name'=>'YOHOXXXXXX优惠卷','value'=>'001'), | ||
26 | + array('name'=>'爽1111优惠卷','value'=>'002') | ||
23 | ) | 27 | ) |
24 | ) | 28 | ) |
25 | ); | 29 | ); |
-
Please register or login to post a comment