export default { data() { return { } }, computed: { }, methods: { toPayOrder(item){ let api = '' if([0, 1].includes(item.shopState)){ api = 'createOrderTwo' }else{ api = 'createSumOrderAgain' } this.$api(api, { orderId : item.id, addressId : item.addressId }, res => { if(res.code == 200){ uni.requestPaymentWxPay(res) .then(res => { uni.showToast({ title: '支付成功', icon: 'none' }) this.getData() }).catch(n => { this.getData() }) } }) }, } }