dengjie :解决点赞、收藏、客服电话等问题
This commit is contained in:
@@ -79,7 +79,7 @@
|
||||
},
|
||||
onLoad(options) {
|
||||
console.log(options)
|
||||
if(options && options.index) {
|
||||
if (options && options.index) {
|
||||
console.log(options)
|
||||
options.index = options.index - 1
|
||||
this.tabChange(options)
|
||||
@@ -91,7 +91,6 @@
|
||||
//获取创意发布
|
||||
getIdeasAndNeeds() {
|
||||
this.$apiServe.getIdeasAndNeeds(this.type).then(res => {
|
||||
console.log('获取创意发布&需求发布', res.data.data);
|
||||
let data = res.data.data
|
||||
for (const item of data) {
|
||||
item.pub_time = dateFormatXwDetail(item.pub_time)
|
||||
@@ -123,15 +122,16 @@
|
||||
},
|
||||
//修改我的需求
|
||||
editIdeasAndNeeds(item) {
|
||||
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
|
||||
})
|
||||
}
|
||||
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
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
//二次确认删除我的需求或创意
|
||||
|
||||
Reference in New Issue
Block a user