From 60b7567e6dd5e0ee0bf660ef85a15513d1524145 Mon Sep 17 00:00:00 2001 From: Penny <2500338766@qq.com> Date: Fri, 24 Mar 2023 01:45:36 +0800 Subject: [PATCH] feature:fixbug --- manifest.json | 2 +- pages.json | 6 +-- pages/atlas/atlas.vue | 39 ++++++++++++++------ pages/userInfo/myCollection/myCollection.vue | 23 ++++++------ pages/userInfo/question/question.vue | 2 +- pages/userInfo/secretSign/secretSign.vue | 2 +- pages/userInfo/setting/setting.vue | 4 +- pages/userInfo/userInfo.vue | 10 ++--- utils/request.js | 36 ++++++++---------- 9 files changed, 68 insertions(+), 56 deletions(-) diff --git a/manifest.json b/manifest.json index c5b6ba2..cb6dbda 100644 --- a/manifest.json +++ b/manifest.json @@ -1,5 +1,5 @@ { - "name" : "节点壁纸", + "name" : "次元意境", "appid" : "__UNI__EDB5E94", "description" : "", "versionName" : "1.0.0", diff --git a/pages.json b/pages.json index 8df640e..9cd35fc 100644 --- a/pages.json +++ b/pages.json @@ -3,7 +3,7 @@ { "path": "pages/index/indexProto", "style": { - "navigationBarTitleText": "", + "navigationBarTitleText": "次元意境", "enablePullDownRefresh": true } }, @@ -17,7 +17,7 @@ { "path": "pages/creator/creator", "style": { - "navigationBarTitleText": "艺术家", + "navigationBarTitleText": "画廊", "enablePullDownRefresh": true } }, @@ -122,7 +122,7 @@ "pagePath": "pages/creator/creator", "iconPath": "static/art-default.png", "selectedIconPath": "static/art-select.png", - "text": "艺术家" + "text": "画廊" }, { "pagePath": "pages/atlas/atlas", diff --git a/pages/atlas/atlas.vue b/pages/atlas/atlas.vue index 0dc5f90..94626fb 100644 --- a/pages/atlas/atlas.vue +++ b/pages/atlas/atlas.vue @@ -27,7 +27,8 @@ import { listType, signImgList, - querySignImg + querySignImg, + querySignImgBySignName } from '@/api/atlas.js' export default { data() { @@ -75,18 +76,34 @@ methods: { search(res) { if (res.value) { - uni.setStorage({ - key: 'atlas_detailId', - data: { - signName: res.value, - type:'search' - }, - success() { - uni.navigateTo({ - url: './atlasList' + console.log('res.value',res.value); + const params = { + pageNum: 1, + pageSize: 10, + signName: res.value + } + querySignImgBySignName(params).then(response =>{ + console.log('response',response); + if (response.data.code != 200) { + uni.showToast({ + title: response.data.msg, + icon: 'none', + }) + }else{ + uni.setStorage({ + key: 'atlas_detailId', + data: { + signName: res.value, + type:'search' + }, + success() { + uni.navigateTo({ + url: './atlasList' + }) + } }) } - }) + }); } else { uni.showToast({ title: '请输入要搜索的标签名', diff --git a/pages/userInfo/myCollection/myCollection.vue b/pages/userInfo/myCollection/myCollection.vue index 92b7e7f..1489db5 100644 --- a/pages/userInfo/myCollection/myCollection.vue +++ b/pages/userInfo/myCollection/myCollection.vue @@ -28,18 +28,18 @@ imgHeight: 0, // 图片高 pageNum: 1, pageSize: 4, - loadStatus:'noMore', //加载样式:more - 加载前样式,loading - 加载中样式,noMore - 没有数据样式 - isLoadMore:false, //是否加载中 + loadStatus:'noMore', //加载样式:more - 加载前样式,loading - 加载中样式,noMore - 没有数据样式 + isLoadMore:false, //是否加载中 } }, - created() { - let that = this; - that.userInfo = uni.getStorageSync('userInfo') - if (that.userInfo) { - that.pageNum = 1; - that.$refs.waterfallRef && that.$refs.waterfallRef.init(); - that.getImgList() - } + onShow() { + let that = this; + that.userInfo = uni.getStorageSync('userInfo') + if (that.userInfo) { + that.pageNum = 1; + that.$refs.waterfallRef && that.$refs.waterfallRef.init(); + that.getImgList() + } }, // 下拉刷新 onPullDownRefresh() { @@ -90,9 +90,10 @@ // 前往详情页 targetDetail(item) { if (item.id) { + console.log('图片为',item) uni.setStorage({ key: 'detailId', - data: item.id, + data: item.imgId, success() { uni.navigateTo({ url: '../../creator/imgDetail' diff --git a/pages/userInfo/question/question.vue b/pages/userInfo/question/question.vue index e135641..9e9e438 100644 --- a/pages/userInfo/question/question.vue +++ b/pages/userInfo/question/question.vue @@ -1,6 +1,6 @@