Commit 6ca2e146 by yanju

动态页修改 添加删除功能

parent 2dbfd447
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
</div> </div>
<div class="header-r"> <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"> <dropdown v-if="showDrop">
<li @click="dateDeleteCard(postId)" ref="deleteButton">删除</li> <li @click="dateDeleteCard(postId)" ref="deleteButton">删除</li>
</dropdown> </dropdown>
...@@ -113,6 +113,7 @@ ...@@ -113,6 +113,7 @@
} }
}, },
data(){ data(){
//return //return
...@@ -215,7 +216,7 @@ ...@@ -215,7 +216,7 @@
this.currentImg = index this.currentImg = index
}, },
clickToShowDrop(){ clickToShowDrop(){
this.pageType==='my'?(this.showDrop=!this.showDrop):null this.showDrop=!this.showDrop
}, },
dateGet2Info(){ dateGet2Info(){
let info = this.info; 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