From fa45ab2dbf9afe31bf6da14a3c4b95e9925623b2 Mon Sep 17 00:00:00 2001 From: huliyong <2783385703@qq.com> Date: Mon, 6 Jan 2025 16:20:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.js | 2 +- pages.json | 6 ++++++ pages/index/center.vue | 12 +++++++++++- pages/index/index.vue | 21 ++++++++++++--------- pages_order/home/journalism.vue | 11 ++++++----- pages_order/home/newsDetail.vue | 2 +- 6 files changed, 37 insertions(+), 17 deletions(-) diff --git a/config.js b/config.js index 1660015..8ece511 100644 --- a/config.js +++ b/config.js @@ -6,7 +6,7 @@ import uvUI from '@/uni_modules/uv-ui-tools' Vue.use(uvUI); // 当前环境 -const type = 'dev' +const type = 'prod' // 环境配置 diff --git a/pages.json b/pages.json index 0fa6b7f..009084e 100644 --- a/pages.json +++ b/pages.json @@ -87,6 +87,12 @@ { "path": "home/introduce" }, + { + "path": "home/newsDetail" + }, + { + "path": "home/journalism" + }, { "path": "order/createOrder" }, diff --git a/pages/index/center.vue b/pages/index/center.vue index 183fa9e..ba99b9c 100644 --- a/pages/index/center.vue +++ b/pages/index/center.vue @@ -131,6 +131,17 @@ 帮助与反馈 + + + + + 我的地址 + + + + 退出登录 + + @@ -430,7 +441,6 @@ .box { display: flex; width: 100%; - justify-content: space-around; margin-bottom: 20rpx; .boxs { diff --git a/pages/index/index.vue b/pages/index/index.vue index 56964e9..2bf3ef8 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -41,19 +41,18 @@ --> + @click="$utils.navigateTo(`/pages_order/home/journalism`)"> - + {{ item.title }} @@ -204,7 +203,10 @@ //获取首页广告 getRiceAdList() { - this.$api('getRiceProductList', res => { + this.$api('getRiceProductList', { + pageNo: 1, + pageSize: 4, + }, res => { if (res.code == 200) { this.adList = res.result.records } @@ -349,13 +351,14 @@ flex-direction: column; align-items: center; justify-content: center; - width: 20%; + width: 25%; background: white; border-radius: 10px; image { - width: 100rpx; - height: 100rpx; + width: 140rpx; + height: 140rpx; + border-radius: 10rpx; } .title { diff --git a/pages_order/home/journalism.vue b/pages_order/home/journalism.vue index f5a8f60..c1ea127 100644 --- a/pages_order/home/journalism.vue +++ b/pages_order/home/journalism.vue @@ -1,17 +1,18 @@