Browse Source

合并冲突

master
Gao xiaosong 4 years ago
parent
commit
c2d0529ab5
  1. 4
      pages/order/Logistics/index.vue
  2. 7
      pages/shop/GoodsClass/index.vue
  3. 36
      pages/shop/GoodsList/index.vue

4
pages/order/Logistics/index.vue

@ -135,11 +135,7 @@ export default {
}
express(params)
.then(res => {
<<<<<<< HEAD
this.logisticsList = res.data.traces.reverse()
=======
this.logisticsList = res.data.Traces.reverse();
>>>>>>> 11d6bda8681ad955f5e73286c3478a238ee58593
})
.catch(err => {
uni.showToast({

7
pages/shop/GoodsClass/index.vue

@ -69,7 +69,6 @@ export default {
}
},
mounted: function() {
// document.addEventListener("scroll", this.onScroll, false);
this.loadCategoryData();
},
methods: {
@ -89,7 +88,6 @@ export default {
this.category.forEach((cate, i) => {
if (cate.id === n) index = i;
});
if (index !== this.navActive) {
this.asideTap(index);
}
@ -117,11 +115,8 @@ export default {
asideTap(index) {
this.navActive = index;
}
},
beforeDestroy: function() {
// document.removeEventListener("scroll", this.onScroll, false);
}
};
}
</script>
<style >

36
pages/shop/GoodsList/index.vue

@ -83,7 +83,6 @@ export default {
},
props: {},
data: function() {
// const { s = "", id = 0, title = "" } = this.$yroute.query;
const s = '',
id = 0,
title = ''
@ -129,21 +128,6 @@ export default {
}
},
$yroute(to) {
// if (to.name !== "GoodsList") return;
// const { s = "", id = 0, title = "" } = to.query;
// if (s !== this.where.keyword || id !== this.where.sid) {
// this.where.keyword = s;
// this.loadend = false;
// this.loading = false;
// this.where.page = 1;
// this.where.sid = id;
// this.title = title && id ? title : "";
// this.nows = false;
// this.$set(this, "productList", []);
// this.price = 0;
// this.stock = 0;
// this.getProductList();
// }
},
},
mounted: function() {
@ -160,24 +144,6 @@ export default {
!this.loading && this.getProductList()
},
onHide() {
// this.hostProduct = [];
// this.productList = [];
// this.Switch = true;
// this.where = {
// page: 1,
// limit: 8,
// keyword: s,
// sid: id, //id
// news: 0,
// priceOrder: "",
// salesOrder: ""
// };
// this.loadTitle = "";
// this.loading = false;
// this.loadend = false;
// this.price = 0;
// this.stock = 0;
// this.nows = fals;
},
methods: {
changeRecommendLoading(recommendLoading) {
@ -205,12 +171,10 @@ export default {
uni.setNavigationBarTitle({
title: this.title,
})
// document.title = this.title || this.$yroute.meta.title;
},
getProductList() {
var that = this
this.setWhere()
// if (to.name !== "GoodsList") return;
const { s = '', id = 0, title = '' } = this.$yroute.query
if (s !== this.where.keyword || id !== this.where.sid) {
this.loadend = false

Loading…
Cancel
Save