1.
vue:<span class="g24">{{item.status | transferStatus}}</span>
transferStatus:function(status){ let s = { 0:'待付款', 10:'已付款', 20:'已作废' } return s[status] || status; }
2.
react:<span>{this.getTransferPayStatus(record.status)}</span>
getTransferPayStatus(status) { switch(status) { case 0: return '待付款' break case 10: return '已付款' break case 20: return '已作废' break } }
3.小程序通过wxs来进行转化