分类首页样式调整,需求发布接口对接

This commit is contained in:
”chenxuelian“
2023-01-31 22:35:12 +08:00
parent e4faef661c
commit 22d4ab414a
4 changed files with 47 additions and 26 deletions

View File

@@ -88,8 +88,8 @@
let data = res.data.data
for (const item of data) {
item.pub_time = dateFormatXwDetail(item.pub_time)
item.images = item.images.split(';')
item.images = item.images.map(item1 => {
const imagesList = item.images && item.images.length > 0 ? item.images.split(';') : []
item.images = imagesList.map(item1 => {
item1 = uni.getStorageSync('img_url') + '/' + item1
return item1
})
@@ -116,9 +116,15 @@
},
//修改我的需求
editIdeasAndNeeds(item) {
uni.reLaunch({
url: '/pages/ideasAndNeeds/ideasAndNeeds?item=' + JSON.stringify(item) + '&index=' + this
.tabCurrent
const tabCurrent = this .tabCurrent
uni.removeStorage({ //删除Storage
key:'update_item',
success: () => {
uni.setStorageSync('update_item', item);
uni.reLaunch({
url: '/pages/ideasAndNeeds/ideasAndNeeds?item=update_item' + '&index=' + tabCurrent
})
}
})
},
//二次确认删除我的需求或创意