|
@@ -212,8 +212,9 @@
|
|
|
tongyongList: [],
|
|
|
epcList: [],
|
|
|
epc_Count:'',
|
|
|
- xiaoshouList:[]
|
|
|
-
|
|
|
+ xiaoshouList:[],
|
|
|
+ page:1,
|
|
|
+ total_page:1
|
|
|
}
|
|
|
},
|
|
|
onLoad(opt) {
|
|
@@ -267,17 +268,22 @@
|
|
|
});
|
|
|
this.$http('advancedEpc/findApplicableModelsPc', {
|
|
|
epc_id:this.epc_id,
|
|
|
- partnum:this.partsnum
|
|
|
+ partnum:this.partsnum,
|
|
|
+ page:this.page,
|
|
|
}, 'GET').then(res => {
|
|
|
uni.hideLoading();
|
|
|
|
|
|
- this.epcList = res.data.result.list;
|
|
|
+
|
|
|
this.epc_Count = res.data.result.total_count;
|
|
|
+
|
|
|
+ this.total_page = res.data.result.total_page;
|
|
|
+ var list = res.data.result.list;
|
|
|
+ this.epcList = this.epcList.concat(list)
|
|
|
});
|
|
|
},
|
|
|
topClick(index) {
|
|
|
this.tabIndex = index
|
|
|
-
|
|
|
+ this.page = 1;
|
|
|
if (this.tabIndex == 0) {
|
|
|
// 配件信息
|
|
|
this.getItemData();
|
|
@@ -299,6 +305,35 @@
|
|
|
// // this.getItemData();
|
|
|
// }
|
|
|
},
|
|
|
+ },
|
|
|
+ onReachBottom() {
|
|
|
+
|
|
|
+ // if (this.tabIndex == 0) {
|
|
|
+ // // 配件信息
|
|
|
+ // this.getItemData();
|
|
|
+ // }
|
|
|
+ // // else if (this.tabIndex == 1) {
|
|
|
+ // // // 维修工时
|
|
|
+ // // // this.getItemData();
|
|
|
+ // // }
|
|
|
+ // else if (this.tabIndex == 1) {
|
|
|
+ // // 通用件
|
|
|
+ // // this.getTongData();
|
|
|
+ // }
|
|
|
+ // else
|
|
|
+ if (this.tabIndex == 2) {
|
|
|
+ // EPC车型
|
|
|
+ if (this.page <= this.total_page) {
|
|
|
+ this.page++;
|
|
|
+
|
|
|
+ this.getCarModelData()()
|
|
|
+ }
|
|
|
+ }
|
|
|
+ // else if (this.tabIndex == 4) {
|
|
|
+ // // 4S销售车型
|
|
|
+ // // this.getItemData();
|
|
|
+ // }
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
</script>
|