Authored by zhangxiaoru

金额为0时隐藏付款方式

@@ -112,6 +112,7 @@ const getPayCod = (param) => { @@ -112,6 +112,7 @@ const getPayCod = (param) => {
112 112
113 if (result && result[2] && result[2].data && result[2].data.payment_amount) { 113 if (result && result[2] && result[2].data && result[2].data.payment_amount) {
114 resu.payment = result[2].data.payment_amount; 114 resu.payment = result[2].data.payment_amount;
  115 +
115 } else { 116 } else {
116 resu.match = false; 117 resu.match = false;
117 } 118 }
@@ -154,6 +155,8 @@ const getPayAli = (param) => { @@ -154,6 +155,8 @@ const getPayAli = (param) => {
154 155
155 if (result && result[2] && result[2].data && result[2].data.payment_amount) { 156 if (result && result[2] && result[2].data && result[2].data.payment_amount) {
156 resu.payment = result[2].data.payment_amount; 157 resu.payment = result[2].data.payment_amount;
  158 + resu.payWay = result[2].data.payment_amount === 0 ? false : true;
  159 +
157 } else { 160 } else {
158 resu.match = false; 161 resu.match = false;
159 } 162 }
@@ -22,10 +22,12 @@ @@ -22,10 +22,12 @@
22 <td>付款金额</td> 22 <td>付款金额</td>
23 <td>¥{{payment}}</td> 23 <td>¥{{payment}}</td>
24 </tr> 24 </tr>
  25 + {{#if payWay}}
25 <tr> 26 <tr>
26 <td>付款方式</td> 27 <td>付款方式</td>
27 <td>支付宝</td> 28 <td>支付宝</td>
28 </tr> 29 </tr>
  30 + {{/if}}
29 </table> 31 </table>
30 </div> 32 </div>
31 <div class="btn-c"> 33 <div class="btn-c">
@@ -34,7 +34,6 @@ @@ -34,7 +34,6 @@
34 } 34 }
35 35
36 .info-table-c { 36 .info-table-c {
37 - height: 160px;  
38 border-bottom: solid 1px #e0e0e0; 37 border-bottom: solid 1px #e0e0e0;
39 padding: 20px 25px; 38 padding: 20px 25px;
40 background-color: #fff; 39 background-color: #fff;