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({
|
||||
|
||||
@@ -1,15 +1,18 @@
|
||||
<template>
|
||||
<view class="fans-item">
|
||||
<image></image>
|
||||
<view class="name">兽兽</view>
|
||||
<view class="date">2017-10-14</view>
|
||||
<image :src="info.friend_frommavatar"></image>
|
||||
<view class="name">{{info.fromMemberNickname}}</view>
|
||||
<view class="date">{{info.fromMemberFriendAddtime}}</view>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {}
|
||||
}
|
||||
},
|
||||
props: {
|
||||
info: Object
|
||||
},
|
||||
};
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
|
||||
@@ -2,11 +2,17 @@
|
||||
<view class="item" @click="toDetailsPage">
|
||||
<image></image>
|
||||
<view class="goods">
|
||||
<view class="status" v-if="cur==4">待处理订单</view>
|
||||
<view class="name u-line-1">心机小黑裙连衣裙赫本风夏季爆款...</view>
|
||||
<view class="">
|
||||
<view class="">
|
||||
编号:{{info.order_sn}}
|
||||
</view>
|
||||
<view class="status" v-if="cur==4">待处理订单</view>
|
||||
</view>
|
||||
|
||||
<view class="name u-line-1">{{info.extend_order_goods[0].goods_name}}</view>
|
||||
<view class="info">
|
||||
<view class="num">共一件商品</view>
|
||||
<view class="price">实付<span>¥199.9</span></view>
|
||||
<view class="num">共{{info.extend_order_goods[0].goods_num}}件商品</view>
|
||||
<view class="price">实付<span>¥{{info.extend_order_goods[0].goods_pay_price}}</span></view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -17,10 +23,12 @@ export default {
|
||||
return {}
|
||||
},
|
||||
props: {
|
||||
cur: [Number, String]
|
||||
cur: [Number, String],
|
||||
info: Object
|
||||
},
|
||||
methods: {
|
||||
toDetailsPage() {
|
||||
console.log(this.info)
|
||||
uni.navigateTo({
|
||||
url: '/pages/index/details?current=' + this.cur
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user