From 3e54b76123ff42f229f7d8a93f975c468341af80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=93=E5=B9=B3=E8=89=BA?= <52643018@qq.com> Date: Wed, 29 Sep 2021 19:18:51 +0800 Subject: [PATCH 01/13] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=95=86=E5=AE=B6?= =?UTF-8?q?=E4=B8=AD=E5=BF=83=E6=B4=BB=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/js/config.js | 2 +- pages.json | 14 + pages/business/activity/add.vue | 522 +++++++++++++++++++++++++++++++ pages/business/activity/list.vue | 302 ++++++++++++++++++ pages/business/center/center.vue | 15 + 5 files changed, 854 insertions(+), 1 deletion(-) create mode 100644 pages/business/activity/add.vue create mode 100644 pages/business/activity/list.vue diff --git a/common/js/config.js b/common/js/config.js index 0d601a8..4279dca 100644 --- a/common/js/config.js +++ b/common/js/config.js @@ -16,7 +16,7 @@ export default { //https://demo-guojiang-ec-api.guojiang.club/ baseUrl: process.env.NODE_ENV === 'development' ? - 'http://192.168.3.165/' : 'https://v3-ec-admin-dev.guojiang.club/', // 运行时自动替换变量 + 'http://192.168.3.81/' : 'https://v3-ec-admin-dev.guojiang.club/', // 运行时自动替换变量 }, PACKAGES: { activity: false, diff --git a/pages.json b/pages.json index 7be0500..cb8ff74 100644 --- a/pages.json +++ b/pages.json @@ -503,6 +503,20 @@ "navigationBarTitleText": "商家登录" , "navigationStyle":"custom" } + }, + { + "path": "pages/business/activity/add", + "style": { + "navigationBarTitleText": "新增活动" , + "navigationStyle":"custom" + } + }, + { + "path": "pages/business/activity/list", + "style": { + "navigationBarTitleText": "活动列表" , + "navigationStyle":"custom" + } } ], "globalStyle": { diff --git a/pages/business/activity/add.vue b/pages/business/activity/add.vue new file mode 100644 index 0000000..f1d529a --- /dev/null +++ b/pages/business/activity/add.vue @@ -0,0 +1,522 @@ + + + + + diff --git a/pages/business/activity/list.vue b/pages/business/activity/list.vue new file mode 100644 index 0000000..350bd08 --- /dev/null +++ b/pages/business/activity/list.vue @@ -0,0 +1,302 @@ + + + + + diff --git a/pages/business/center/center.vue b/pages/business/center/center.vue index 08391fe..b05c7f1 100644 --- a/pages/business/center/center.vue +++ b/pages/business/center/center.vue @@ -96,6 +96,21 @@ + + + 我的活动 + + + + + 新增活动 + + + + 活动列表 + + + From 567277dc4cb672fd781ddcd273e60360eba7ec2e Mon Sep 17 00:00:00 2001 From: Enzo <1284707383@qq.com> Date: Wed, 29 Sep 2021 19:27:40 +0800 Subject: [PATCH 02/13] =?UTF-8?q?=E4=B8=80=E7=B3=BB=E5=88=97=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/business/payment/money.vue | 2 +- pages/discover/discoverdetails.vue | 16 ++++++++-------- pages/index/index/index.vue | 8 ++++++-- pages/order/newdetail/newdetail.vue | 22 ++++++++++++++++++++++ pages/user/my/center.vue | 9 +++++---- pages/user/my/myEventRegistrationList.vue | 2 +- pages/user/my/myregister.vue | 2 +- 7 files changed, 44 insertions(+), 17 deletions(-) diff --git a/pages/business/payment/money.vue b/pages/business/payment/money.vue index d11f221..ae25a7e 100644 --- a/pages/business/payment/money.vue +++ b/pages/business/payment/money.vue @@ -7,7 +7,7 @@ - + diff --git a/pages/discover/discoverdetails.vue b/pages/discover/discoverdetails.vue index c6db11b..816c9ad 100644 --- a/pages/discover/discoverdetails.vue +++ b/pages/discover/discoverdetails.vue @@ -54,7 +54,7 @@ {{commentitem.user.nick_name}} {{commentitem.user.mobile_replace}} - {{commentitem.content}}{{commentitem.created_at}} + {{commentitem.content}}{{commentitem.created_at}} @@ -110,17 +110,17 @@ - - - + + + {{discover_details.likes_count}} - - + + {{discover_details.view_count}} - - + + {{discover_details.comments_count}} diff --git a/pages/index/index/index.vue b/pages/index/index/index.vue index 1107d99..dbc975b 100644 --- a/pages/index/index/index.vue +++ b/pages/index/index/index.vue @@ -317,7 +317,7 @@ 购物车 - {{car_num}} + {{car_num || 0}} @@ -556,7 +556,11 @@ }) .then(res => { if (res.data.code == 200) { - this.car_num = res.data.data; + if(res.data.data == null) { + this.car_num = 0; + }else { + this.car_num = res.data.data; + } } else { wx.showModal({ content: '请下拉页面刷新重试', diff --git a/pages/order/newdetail/newdetail.vue b/pages/order/newdetail/newdetail.vue index f4a6278..974d7a6 100644 --- a/pages/order/newdetail/newdetail.vue +++ b/pages/order/newdetail/newdetail.vue @@ -146,6 +146,18 @@ + + + + + 待付款 + + + 取消订单 + 立即付款 + + + @@ -286,6 +298,16 @@ } From 7a37c679eee39774e070dceb1b767552e458339c Mon Sep 17 00:00:00 2001 From: Enzo <1284707383@qq.com> Date: Wed, 29 Sep 2021 20:32:54 +0800 Subject: [PATCH 06/13] =?UTF-8?q?=E4=B8=80=E7=B3=BB=E5=88=97=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index/activity/detail.vue | 5 ++++- pages/index/activity/hot.vue | 5 ++++- pages/order/index/onlineorder.vue | 17 ++++++++++++++++- pages/order/newdetail/newdetail.vue | 11 ++++++++++- 4 files changed, 34 insertions(+), 4 deletions(-) diff --git a/pages/index/activity/detail.vue b/pages/index/activity/detail.vue index 7670590..a073beb 100644 --- a/pages/index/activity/detail.vue +++ b/pages/index/activity/detail.vue @@ -71,7 +71,10 @@ api: 'api/activity/detail', data: { activity_id: this.activity_id - } + }, + header: { + Authorization: this.$cookieStorage.get('user_token') + }, }) .then(res => { if (res.data.code == 200) { diff --git a/pages/index/activity/hot.vue b/pages/index/activity/hot.vue index 7abdfc0..28cb287 100644 --- a/pages/index/activity/hot.vue +++ b/pages/index/activity/hot.vue @@ -114,7 +114,10 @@ api: 'api/activity', data:{ is_expired: this.tab_current+1 - } + }, + header: { + Authorization: this.$cookieStorage.get('user_token') + }, }) .then(res => { let tab_item = this.tab_list[this.tab_current]; diff --git a/pages/order/index/onlineorder.vue b/pages/order/index/onlineorder.vue index 483f9e2..888de67 100644 --- a/pages/order/index/onlineorder.vue +++ b/pages/order/index/onlineorder.vue @@ -18,9 +18,10 @@ - + 订单编号{{item2.order_no}} + 自提 @@ -341,6 +342,20 @@