api
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user