|
|
|
@ -187,6 +187,8 @@ |
|
|
|
loadStatus: 'more', |
|
|
|
tab1Checked: 'quanbu', |
|
|
|
tab2Checked: 'quanbu', |
|
|
|
userId:uni.getStorageSync('id'), |
|
|
|
userId:JSON.parse(uni.getStorageSync('area')).id, |
|
|
|
loadStatus: 'more', |
|
|
|
totalPages: 1, |
|
|
|
menuButtonInfo: {} |
|
|
|
@ -212,6 +214,26 @@ |
|
|
|
checkTabs2(type) { |
|
|
|
this.tab2Checked = type |
|
|
|
}, |
|
|
|
getOrderList(){ |
|
|
|
this.tui.request("/mall/order/create", "POST", payload, false, false).then(res => { |
|
|
|
uni.hideLoading(); |
|
|
|
if (res.success && res.result) { |
|
|
|
let orderId = res.result.id; |
|
|
|
let totalAmount = res.result.totalAmount; |
|
|
|
this.backendTotalAmount = totalAmount; |
|
|
|
this.currentOrderId = orderId; |
|
|
|
this.createdOrderInfo = res.result; |
|
|
|
this.$refs.payPopup.open('bottom'); |
|
|
|
} else { |
|
|
|
uni.showToast({ |
|
|
|
title: res.message || '下单失败', |
|
|
|
icon: 'none' |
|
|
|
}); |
|
|
|
} |
|
|
|
}).catch(err => { |
|
|
|
uni.hideLoading(); |
|
|
|
}); |
|
|
|
}, |
|
|
|
back() { |
|
|
|
uni.navigateBack() |
|
|
|
} |
|
|
|
|