|
@@ -1,4 +1,5 @@
|
|
<template>
|
|
<template>
|
|
|
|
+ <!-- #ifdef H5 -->
|
|
<zj-page-layout
|
|
<zj-page-layout
|
|
:hasFooter="false"
|
|
:hasFooter="false"
|
|
:isScroll="true"
|
|
:isScroll="true"
|
|
@@ -6,52 +7,60 @@
|
|
@refresherrefresh="refresherrefresh"
|
|
@refresherrefresh="refresherrefresh"
|
|
@scrolltolower="scrolltolower">
|
|
@scrolltolower="scrolltolower">
|
|
<view class="common-goods-list">
|
|
<view class="common-goods-list">
|
|
- <view class="item">
|
|
|
|
|
|
+ <view class="item" v-for="(item, index) in dataList" :key="index" @tap="toGoodsDetail(item.id)">
|
|
<view class="top">
|
|
<view class="top">
|
|
<image src="@/static/common/logo.png"></image>
|
|
<image src="@/static/common/logo.png"></image>
|
|
<view class="user">
|
|
<view class="user">
|
|
- <view class="name">张三</view>
|
|
|
|
- <view class="time">23小时前发布</view>
|
|
|
|
|
|
+ <view class="name">{{item.userName}}</view>
|
|
|
|
+ <view class="time">{{item.createTime}}</view>
|
|
</view>
|
|
</view>
|
|
- <view class="price">¥1888.00</view>
|
|
|
|
|
|
+ <view class="price">{{item.amount | priceFilter}}</view>
|
|
</view>
|
|
</view>
|
|
- <view class="title">商品名称</view>
|
|
|
|
- <view class="des">商品描述</view>
|
|
|
|
|
|
+ <view class="title">{{item.title}}</view>
|
|
|
|
+ <view class="des">{{item.content}}</view>
|
|
<view class="imgs">
|
|
<view class="imgs">
|
|
- <image src="@/static/user/other_speech.png"></image>
|
|
|
|
- <image src="@/static/user/other_speech.png"></image>
|
|
|
|
- <image src="@/static/user/other_speech.png"></image>
|
|
|
|
|
|
+ <image :src="imgUrl + it.imgUrl" v-for="(it, idx) in item.goodsFiles" :key="idx"></image>
|
|
</view>
|
|
</view>
|
|
<view class="bottom">
|
|
<view class="bottom">
|
|
- <view class="left-location">天河区棠下</view>
|
|
|
|
|
|
+ <view class="left-location"><text class="iconfont icon-dingwei"></text>{{item.address}}</view>
|
|
<view class="right-btn">
|
|
<view class="right-btn">
|
|
- <u-button text="取消收藏" shape="circle"></u-button>
|
|
|
|
|
|
+ <u-button text="取消点赞" shape="circle"></u-button>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
+
|
|
|
|
+ <Loading :loadStatus="loadStatus" :dataList="dataList" />
|
|
</zj-page-layout>
|
|
</zj-page-layout>
|
|
|
|
+ <!-- #endif -->
|
|
|
|
+ <!-- #ifndef H5 -->
|
|
|
|
+ <web-view :src="webViewHref('/pages/mine/myCollection')"></web-view>
|
|
|
|
+ <!-- #endif -->
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
|
+ // #ifdef H5
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
imgUrl: this.$imageUrl,
|
|
imgUrl: this.$imageUrl,
|
|
dataList: [],
|
|
dataList: [],
|
|
- pageNum: 1,
|
|
|
|
|
|
+ pageNum: 1,
|
|
|
|
+ loadStatus: 0,
|
|
refresherTriggered: false,
|
|
refresherTriggered: false,
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
|
|
async onLoad() {
|
|
async onLoad() {
|
|
- // await this.getList()
|
|
|
|
|
|
+ await this.getList()
|
|
},
|
|
},
|
|
|
|
|
|
methods: {
|
|
methods: {
|
|
//获取列表数据
|
|
//获取列表数据
|
|
async getList() {
|
|
async getList() {
|
|
- this.$api.post('/xxx/xxxlist', {
|
|
|
|
|
|
+ this.$api.get('/likeOrCollect/list', {
|
|
|
|
+ userId: '',
|
|
|
|
+ type: 2,
|
|
pageNum: this.pageNum,
|
|
pageNum: this.pageNum,
|
|
pageSize: 10,
|
|
pageSize: 10,
|
|
}).then(res => {
|
|
}).then(res => {
|
|
@@ -84,8 +93,18 @@
|
|
this.getList();
|
|
this.getList();
|
|
},
|
|
},
|
|
|
|
|
|
|
|
+ toGoodsDetail(id) {
|
|
|
|
+ this.$navToPage({
|
|
|
|
+ url: `/pages/goods/detail?id=${id}`
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ // #endif
|
|
|
|
+ // #ifndef H5
|
|
|
|
+
|
|
|
|
+ // #endif
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|