diff --git a/components/orderCanclePopup.vue b/components/orderCanclePopup.vue new file mode 100644 index 0000000..09d1473 --- /dev/null +++ b/components/orderCanclePopup.vue @@ -0,0 +1,61 @@ + + + + + \ No newline at end of file diff --git a/pages/index/index.vue b/pages/index/index.vue index 5f05f5c..c185b6a 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -7,7 +7,7 @@ - + @@ -217,6 +217,7 @@ const changeOrder = (order) => { console.log('排序', order); where.value.order = order; + getGoodList(); } const where = ref({ @@ -236,6 +237,8 @@ if(leftActive.value=='') class_all = topActive.value; if(topActive.value=='') class_all = ''; if(class_all) class_id = ""; //只能带其中一个 + if (loadmore) where.value.page_no++; + else where.value.page_no=1; goodListApi({ ...where.value, class_all: class_all, @@ -249,6 +252,7 @@ // 商品列表触底 const loadMoreGood = () => { console.log('触底了'); + getGoodList(true); } const goodClassList = ref([]); // 一级分类 diff --git a/pages/login/login.vue b/pages/login/login.vue index 3200376..5816357 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -1,24 +1,23 @@