邓洁 : 编辑接口
This commit is contained in:
@@ -8,15 +8,15 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="content">
|
||||
<ShowShopList v-if="listId == 0" :isEdit="true" :showStyle="1" :shopInfoList="searchInfoList"
|
||||
@delItem="handleDel"></ShowShopList>
|
||||
<ShowShopList v-if="listId == 0" :isEdit="true" :showStyle="1" :shopInfoList="searchInfoList" @delItem="handleDel"
|
||||
@updateItem="handleUpdate1"></ShowShopList>
|
||||
<SearchShopList v-if="listId == 1" :searchInfoList="searchInfoList" :is-edit="true" :showStyle="1"
|
||||
@delItem="handleDel" @updateItem="handleUpdate">
|
||||
@delItem="handleDel" @updateItem="handleUpdate2">
|
||||
</SearchShopList>
|
||||
<ShowShopList v-if="listId == 3" :is-edit="true" :showStyle="2" :shopInfoList="searchInfoList"
|
||||
@delItem="handleDel"></ShowShopList>
|
||||
@delItem="handleDel" @updateItem="handleUpdate3"></ShowShopList>
|
||||
<ShowShopList v-if="listId == 2" :is-edit="true" :showStyle="2" :shopInfoList="searchInfoList"
|
||||
@delItem="handleDel"></ShowShopList>
|
||||
@delItem="handleDel" @updateItem="handleUpdate4"></ShowShopList>
|
||||
<ShowShopList v-if="listId == 4" :showStyle="0" :shopInfoList="matchList"></ShowShopList>
|
||||
</view>
|
||||
</view>
|
||||
@@ -49,12 +49,33 @@
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
handleUpdate(searchid) {
|
||||
handleUpdate1(searchid) {
|
||||
console.log('页面更新');
|
||||
// uni.navigateTo({
|
||||
// url: '/pages/publishAddress/publishAddress?item=update_item' + '&index=' +
|
||||
// tabCurrent
|
||||
// })
|
||||
uni.navigateTo({
|
||||
url: '/pages/publish/publishTransfer/publishTransfer?item=' + 1 + '&id=' +
|
||||
searchid
|
||||
})
|
||||
},
|
||||
handleUpdate2(searchid) {
|
||||
console.log('页面更新');
|
||||
uni.navigateTo({
|
||||
url: '/pages/publish/publishAddress/publishAddress?item=' + 2 + '&id=' +
|
||||
searchid
|
||||
})
|
||||
},
|
||||
handleUpdate3(searchid) {
|
||||
console.log('页面更新');
|
||||
uni.navigateTo({
|
||||
url: '/pages/publish/publishInvestment/publishInvestment?item=' + 3 + '&id=' +
|
||||
searchid
|
||||
})
|
||||
},
|
||||
handleUpdate4(searchid) {
|
||||
console.log('页面更新');
|
||||
uni.navigateTo({
|
||||
url: '/pages/publish/publishRent/publishRent?item=' + 4 + '&id=' +
|
||||
searchid
|
||||
})
|
||||
},
|
||||
handleDel(shopid) {
|
||||
console.log('页面删除', this.listId + 1, shopid);
|
||||
@@ -116,6 +137,8 @@
|
||||
}
|
||||
},
|
||||
onLoad: function(option) {
|
||||
console.log('option', option.listId);
|
||||
this.listId = option.listId
|
||||
wx.setNavigationBarTitle({
|
||||
title: option.titletext
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user