From 8eb4e4609daef77bc2f7b072caa8c8c9ac880b39 Mon Sep 17 00:00:00 2001 From: kele <1184860403@qq.com> Date: Thu, 9 Mar 2023 18:45:09 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E6=B7=BB=E5=8A=A0=E5=8F=91?= =?UTF-8?q?=E8=B4=A7=E5=86=85=E5=AE=B9=E8=AF=A6=E6=83=85=EF=BC=8C=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E7=A7=AF=E5=88=86=E5=95=86=E5=9F=8E=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=EF=BC=8C=E5=8F=96=E6=B6=88=E8=AE=A2=E5=8D=95=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E7=A1=AE=E8=AE=A4=E6=A1=86=EF=BC=8C=E7=89=A9=E6=B5=81=E8=BF=BD?= =?UTF-8?q?=E8=B8=AA=E6=A0=B7=E5=BC=8F=E4=BF=AE=E6=94=B9=EF=BC=8C=E6=94=B6?= =?UTF-8?q?=E9=93=B6=E5=8F=B0=E9=A1=B5=E9=9D=A2=E4=BC=98=E5=8C=96=EF=BC=8C?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=B0=8F=E7=A8=8B=E5=BA=8F=E7=9B=B4=E6=92=AD?= =?UTF-8?q?=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 10 + pages/app/score-shop.vue | 2 +- pages/goods/list.vue | 9 + pages/goods/score.vue | 2 +- pages/order/detail.vue | 122 ++++++++-- pages/order/dispatch/content.vue | 87 +++++++ pages/order/express/log.vue | 4 +- pages/order/list.vue | 32 ++- pages/pay/index.vue | 23 +- sheep/api/app.js | 48 ++-- sheep/api/order.js | 9 + .../components/s-block-item/s-block-item.vue | 1 + .../components/s-goods-item/s-goods-item.vue | 80 ++++--- .../components/s-live-block/s-live-block.vue | 111 +++++++++ sheep/components/s-live-card/s-live-card.vue | 226 ++++++++++++++++++ .../s-score-block/s-score-block.vue | 2 +- 16 files changed, 671 insertions(+), 97 deletions(-) create mode 100644 pages/order/dispatch/content.vue create mode 100644 sheep/components/s-live-block/s-live-block.vue create mode 100644 sheep/components/s-live-card/s-live-card.vue diff --git a/pages.json b/pages.json index 74ed57a9..56d1201e 100644 --- a/pages.json +++ b/pages.json @@ -209,6 +209,16 @@ "title": "发票详情" } }, + { + "path": "dispatch/content", + "style": { + "navigationBarTitleText": "发货内容" + }, + "meta": { + "auth": true, + "title": "发货内容" + } + }, { "path": "aftersale/apply", "style": { diff --git a/pages/app/score-shop.vue b/pages/app/score-shop.vue index 4400395f..e00605fe 100644 --- a/pages/app/score-shop.vue +++ b/pages/app/score-shop.vue @@ -43,7 +43,7 @@ }); async function getData(page = 1, list_rows = 5) { state.loadStatus = 'loading'; - let res = await sheep.$api.app.scoreShop({ + let res = await sheep.$api.app.scoreShop.list({ list_rows, page, }); diff --git a/pages/goods/list.vue b/pages/goods/list.vue index 7bfd6773..d7de122e 100644 --- a/pages/goods/list.vue +++ b/pages/goods/list.vue @@ -208,6 +208,8 @@ state.leftGoodsList = []; state.rightGoodsList = []; count = 0; + leftHeight = 0; + rightHeight = 0; } //搜索 function onSearch(e) { @@ -237,6 +239,13 @@ // 点击筛选项 const onFilterItem = (val) => { + if ( + state.currentSort === state.tabList[0].list[val].sort && + state.currentOrder === state.tabList[0].list[val].order + ) { + state.showFilter = false; + return; + } state.curFilter = val; state.tabList[0].name = state.tabList[0].list[val].label; state.currentSort = state.tabList[0].list[val].sort; diff --git a/pages/goods/score.vue b/pages/goods/score.vue index 2bb7d6ce..ee3707c0 100644 --- a/pages/goods/score.vue +++ b/pages/goods/score.vue @@ -184,7 +184,7 @@ } state.goodsId = options.id; // 加载商品信息 - sheep.$api.app.scoreShopDetail(state.goodsId).then((res) => { + sheep.$api.app.scoreShop.detail(state.goodsId).then((res) => { state.skeletonLoading = false; if (res.error === 0) { state.goodsInfo = res.data; diff --git a/pages/order/detail.vue b/pages/order/detail.vue index 4bf7ca95..ffaaac20 100644 --- a/pages/order/detail.vue +++ b/pages/order/detail.vue @@ -76,10 +76,68 @@ 配送方式 - {{ item.dispatch_type_text }} + {{ item.dispatch_type_text }} + +