This commit is contained in:
2020-06-30 18:06:50 +08:00
parent c7136c2c11
commit dc69746320
21 changed files with 471 additions and 1315 deletions

View File

@@ -78,7 +78,8 @@
export default {
data() {
return {
current: 0
current: 0,
orderInfo: {}
}
},
onLoad(option) {
@@ -87,6 +88,15 @@ export default {
this.setTitle();
},
methods: {
getOrderInfo(id) {
this.$u.api.getOrderInfo({
order_id: id,
}).then(res => {
if(res.errCode == 0) {
this.orderInfo = res.data;
}
})
},
setTitle(){
let title = ''
switch (this.current) {

View File

@@ -112,8 +112,18 @@ export default {
this.current = Number(option.current);
this.swiperCurrent = this.current;
}
this.getOrderList();
},
methods: {
getOrderList() {
this.$u.api.getOrderList({
page: this.page,
}).then(res => {
if(res.errCode == 0) {
}
})
},
reachBottom() {
// console.log(this.page);
if(this.page >= 3) return;