解决订单发现的问题
parent
75365c428d
commit
ebf0d585fc
|
@ -326,10 +326,10 @@ export default {
|
||||||
// this.loadData(this.status);
|
// this.loadData(this.status);
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
if (this.tabCurrentIndex) {
|
if (!this.tabCurrentIndex) {
|
||||||
this.initData(this.tabCurrentIndex);
|
this.initData(0);
|
||||||
} else {
|
} else {
|
||||||
this.initData(0);
|
|
||||||
}
|
}
|
||||||
// this.loadData(this.status);
|
// this.loadData(this.status);
|
||||||
},
|
},
|
||||||
|
@ -341,6 +341,7 @@ export default {
|
||||||
*/
|
*/
|
||||||
let status = Number(options.status);
|
let status = Number(options.status);
|
||||||
this.status = status;
|
this.status = status;
|
||||||
|
|
||||||
this.tabCurrentIndex = status;
|
this.tabCurrentIndex = status;
|
||||||
// if (status == 0) {
|
// if (status == 0) {
|
||||||
// this.loadData(status);
|
// this.loadData(status);
|
||||||
|
@ -434,6 +435,7 @@ export default {
|
||||||
*/
|
*/
|
||||||
loadData(index) {
|
loadData(index) {
|
||||||
this.params.pageNumber = this.navList[index].pageNumber;
|
this.params.pageNumber = this.navList[index].pageNumber;
|
||||||
|
// this.params.tag = this.orderStatus[index].orderStatus;
|
||||||
getOrderList(this.params).then((res) => {
|
getOrderList(this.params).then((res) => {
|
||||||
uni.stopPullDownRefresh();
|
uni.stopPullDownRefresh();
|
||||||
if (!res.data.success) {
|
if (!res.data.success) {
|
||||||
|
|
Loading…
Reference in New Issue