update api

This commit is contained in:
cmxdd
2020-07-29 20:35:33 +08:00
parent fef56d1b52
commit 243e1f93bd
13 changed files with 622 additions and 177 deletions

View File

@@ -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({