update api
This commit is contained in:
@@ -1,24 +1,24 @@
|
||||
<template>
|
||||
<view class="content-item">
|
||||
<view class="image">
|
||||
<image class="cover"></image>
|
||||
<image src="/static/image/user/5.png" class="play-icon" v-if="cur==1"></image>
|
||||
<image class="cover" :src="info.article_pic"></image>
|
||||
<image src="/static/image/user/5.png" class="play-icon" v-if="type==2"></image>
|
||||
</view>
|
||||
<view class="right" @click="toDetailsPage">
|
||||
<u-icon name="close" color="#999999" size="27" @click.stop="showPopup"></u-icon>
|
||||
<view class="tags u-line-2">#配饰就该这么搭#</view>
|
||||
<view class="right" >
|
||||
<u-icon name="close" color="#999999" size="27" @click="showPopup(info.article_id)"></u-icon>
|
||||
<view class="tags u-line-2" @click="toDetailsPage">{{info.article_title}}</view>
|
||||
<view class="data">
|
||||
<view>
|
||||
<image src="/static/image/user/2.png"></image>
|
||||
<text>2.5w</text>
|
||||
<text>{{info.comment_num}}</text>
|
||||
</view>
|
||||
<view>
|
||||
<image src="/static/image/user/3.png"></image>
|
||||
<text>2.5w</text>
|
||||
<text>{{info.collect_num}}</text>
|
||||
</view>
|
||||
<view>
|
||||
<image src="/static/image/user/4.png"></image>
|
||||
<text>2.5w</text>
|
||||
<text>{{info.like_num}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -30,15 +30,23 @@ export default {
|
||||
return {}
|
||||
},
|
||||
props: {
|
||||
cur: [Number, String],
|
||||
info:{
|
||||
type: Object,
|
||||
default: null
|
||||
},
|
||||
type:{
|
||||
type: Number,
|
||||
default: 1
|
||||
},
|
||||
delItem: {
|
||||
type: Function,
|
||||
default: null
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
showPopup() {
|
||||
this.delItem();
|
||||
showPopup(id) {
|
||||
console.log(12345,id)
|
||||
this.$emit("del",id)
|
||||
},
|
||||
toDetailsPage() {
|
||||
uni.navigateTo({
|
||||
|
||||
Reference in New Issue
Block a user