Authored by zhangxiaoru

金额为0时隐藏付款方式

... ... @@ -112,6 +112,7 @@ const getPayCod = (param) => {
if (result && result[2] && result[2].data && result[2].data.payment_amount) {
resu.payment = result[2].data.payment_amount;
} else {
resu.match = false;
}
... ... @@ -154,6 +155,8 @@ const getPayAli = (param) => {
if (result && result[2] && result[2].data && result[2].data.payment_amount) {
resu.payment = result[2].data.payment_amount;
resu.payWay = result[2].data.payment_amount === 0 ? false : true;
} else {
resu.match = false;
}
... ...
... ... @@ -22,10 +22,12 @@
<td>付款金额</td>
<td>¥{{payment}}</td>
</tr>
{{#if payWay}}
<tr>
<td>付款方式</td>
<td>支付宝</td>
</tr>
{{/if}}
</table>
</div>
<div class="btn-c">
... ...
... ... @@ -34,7 +34,6 @@
}
.info-table-c {
height: 160px;
border-bottom: solid 1px #e0e0e0;
padding: 20px 25px;
background-color: #fff;
... ...