From 51f69b267661e36e9707eaa42f921b1f2a64b70e Mon Sep 17 00:00:00 2001 From: yanyan Date: Tue, 23 Jan 2024 17:48:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E7=99=BB=E9=99=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/my-login/my-login.vue | 106 --------------------------- components/my-search/my-search.vue | 74 ------------------- pages.json | 8 +++ pages/index/index.vue | 32 ++++++--- pages/my/my.vue | 13 ++-- subpkg/list/list.vue | 9 +-- subpkg/login/login.vue | 110 +++++++++++++++++++++++++++++ 7 files changed, 153 insertions(+), 199 deletions(-) delete mode 100755 components/my-login/my-login.vue delete mode 100755 components/my-search/my-search.vue create mode 100644 subpkg/login/login.vue diff --git a/components/my-login/my-login.vue b/components/my-login/my-login.vue deleted file mode 100755 index 90e7bdc..0000000 --- a/components/my-login/my-login.vue +++ /dev/null @@ -1,106 +0,0 @@ - - - - - diff --git a/components/my-search/my-search.vue b/components/my-search/my-search.vue deleted file mode 100755 index 45d1870..0000000 --- a/components/my-search/my-search.vue +++ /dev/null @@ -1,74 +0,0 @@ - - - - - diff --git a/pages.json b/pages.json index 0029a9d..6a3c6a6 100644 --- a/pages.json +++ b/pages.json @@ -38,6 +38,14 @@ "navigationBarTextStyle": "black", "enablePullDownRefresh": false } + }, + { + "path" : "login/login", + "style" : + { + "navigationBarTitleText" : "", + "enablePullDownRefresh" : false + } }] }], "globalStyle": { diff --git a/pages/index/index.vue b/pages/index/index.vue index 6f148d2..45b4694 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -6,16 +6,13 @@ - - + @@ -23,7 +20,9 @@ diff --git a/pages/my/my.vue b/pages/my/my.vue index fc39b09..d7c09cf 100644 --- a/pages/my/my.vue +++ b/pages/my/my.vue @@ -25,7 +25,7 @@ - + @@ -39,7 +39,7 @@ - {{item.name}} + {{item.name}} @@ -53,7 +53,7 @@ export default { data() { return { - avatarUrl :"http://localhost:85/profile//2024/01/18/6147d64a3b94d7b3d3cc35aaf8cbfe06.png", + avatarUrl : uni.$http.baseUrl+"/profile//2024/01/18/6147d64a3b94d7b3d3cc35aaf8cbfe06.png", //轮播图数据列表 swiperList: [], //主页功能列表 @@ -85,12 +85,12 @@ const { data: res - } = await uni.$http.post('/small/customImage/listAll') + } = await uni.$http.post('/small/customImage/listAll',{page:"my"}) if (!res.success) return uni.$showMsg() res.data.forEach(item=>{ - //item.uploadPath = uni.$http.baseUrl +item.uploadPath - //this.swiperList.push(item.uploadPath) + item.uploadPath = uni.$http.baseUrl +item.uploadPath + this.swiperList.push(item.uploadPath) }) uni.$showMsg('数据请求成功!') }, @@ -105,7 +105,6 @@ item.uploadPath = uni.$http.baseUrl +item.uploadPath }) this.functionList = res.data; - this.swiperList.push("http://localhost:85/profile//2024/01/18/d8796bd0b80cfbba38585c3462405022.jpeg") uni.$showMsg('数据请求成功!') } }, diff --git a/subpkg/list/list.vue b/subpkg/list/list.vue index 2fc01d0..0e1ee8e 100644 --- a/subpkg/list/list.vue +++ b/subpkg/list/list.vue @@ -21,7 +21,7 @@ - + @@ -106,13 +106,14 @@ } } .nav-list { - display: flex; justify-content: space-around; - margin: 15px 0; + margin: 12px 0; .nav-img { - width: 328rpx; + width: 100%; height: 140rpx; + margin-bottom: 10rpx; + border-radius: 10px; } } diff --git a/subpkg/login/login.vue b/subpkg/login/login.vue new file mode 100644 index 0000000..a458e6a --- /dev/null +++ b/subpkg/login/login.vue @@ -0,0 +1,110 @@ + + + + +