## 如图
![mark](http://qiniu.newthink.cc/blog/20171107-173503725.png)
## 代码
### HTML
```
<foreach name="paymentList" item="v" key="k">
<li>
<div class="payment-area">
<input type="radio" id="input-ALIPAY-1" value="pay_code={$v['code']}" class="radio vam" name="pay_radio">
<label for="">
<img src="/plugins/{$v['type']}/{$v['code']}/{$v['icon']}" width="120" height="40" onClick="change_pay(this);"/>
</label>
</div>
</li>
</foreach>
```
### JS
```
<script>
// 切换支付方式
function change_pay(obj) {
$(obj).parent().siblings('input[name="pay_radio"]').trigger('click');
}
</script>
```
### CSS
```
```