From 3f641219cd68a97c8c8f9f011152a5763d2bba77 Mon Sep 17 00:00:00 2001 From: weipengfei <2187978347@qq.com> Date: Mon, 6 May 2024 17:58:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/orderCanclePopup.vue | 61 ++++++ pages/index/index.vue | 6 +- pages/login/login.vue | 95 +++++---- pages/my/my.vue | 10 +- pagesOrder/detail/detail.vue | 118 +++++------ pagesOrder/order/component/good.vue | 7 +- pagesOrder/order/order.vue | 33 ++- pagesOrder/settle/settle.vue | 1 - store/user.js | 29 +-- .../dist/dev/mp-weixin/pages/index/index.js | 85 ++++---- .../dist/dev/mp-weixin/pages/index/index.wxml | 2 +- .../dist/dev/mp-weixin/pages/login/login.js | 73 ++++--- .../dist/dev/mp-weixin/pages/login/login.json | 2 +- .../dist/dev/mp-weixin/pages/login/login.wxml | 2 +- unpackage/dist/dev/mp-weixin/pages/my/my.js | 13 +- unpackage/dist/dev/mp-weixin/pages/my/my.wxml | 2 +- .../dev/mp-weixin/pagesOrder/detail/detail.js | 195 ++++++++++-------- .../mp-weixin/pagesOrder/detail/detail.json | 2 +- .../mp-weixin/pagesOrder/detail/detail.wxml | 2 +- .../mp-weixin/pagesOrder/detail/detail.wxss | 17 -- .../pagesOrder/order/component/good.js | 34 +-- .../pagesOrder/order/component/good.wxml | 2 +- .../dev/mp-weixin/pagesOrder/order/order.js | 61 ++++-- .../dev/mp-weixin/pagesOrder/order/order.json | 3 +- .../dev/mp-weixin/pagesOrder/order/order.wxml | 2 +- .../dev/mp-weixin/project.private.config.json | 4 +- 26 files changed, 518 insertions(+), 343 deletions(-) create mode 100644 components/orderCanclePopup.vue 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 @@