Commit 6ca2e146 by yanju

动态页修改 添加删除功能

parent 2dbfd447
......@@ -20,7 +20,7 @@
</div>
<div class="header-r">
<yun-icon name="down_arrow" size="6px" color="#999" @click.native.stop="clickToShowDrop"></yun-icon>
<yun-icon v-if="userId===$store.state.userProfile.userId" name="down_arrow" size="6px" color="#999" @click.native.stop="clickToShowDrop"></yun-icon>
<dropdown v-if="showDrop">
<li @click="dateDeleteCard(postId)" ref="deleteButton">删除</li>
</dropdown>
......@@ -113,6 +113,7 @@
}
},
data(){
//return
......@@ -215,7 +216,7 @@
this.currentImg = index
},
clickToShowDrop(){
this.pageType==='my'?(this.showDrop=!this.showDrop):null
this.showDrop=!this.showDrop
},
dateGet2Info(){
let info = this.info;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment