|
@@ -4,23 +4,23 @@
|
|
|
<view class="one">
|
|
|
<scroll-view scroll-y="true" class="scroll-view" @scrolltolower="toPage">
|
|
|
<view class="list-scroll-view">
|
|
|
- <view class="list" v-for="(item, index) in list" :key="index" @click="toView(item)">
|
|
|
+ <view class="list" v-for="(item, index) in list" :key="index" @tap="toView(item)">
|
|
|
<image class="image"
|
|
|
- :src="item.goods.file&&item.goods.file.length>0?item.goods.file[0].url:''" mode="">
|
|
|
+ :src="item.file&&item.file.length>0?item.file[0].url:''" mode="">
|
|
|
</image>
|
|
|
<view class="name">
|
|
|
- {{item.goods.name||'暂无'}}
|
|
|
+ {{item.name||'暂无'}}
|
|
|
</view>
|
|
|
<view class="money">
|
|
|
<text>¥</text>
|
|
|
- <text>{{item.goods.sell_money}}</text>
|
|
|
+ <text>{{item.sell_money}}</text>
|
|
|
</view>
|
|
|
<view class="other">
|
|
|
<view class="other_1">
|
|
|
- {{item.goods.view_num||0}}人浏览
|
|
|
+ {{item.view_num||0}}人浏览
|
|
|
</view>
|
|
|
<view class="other_2">
|
|
|
- <text @click="toDel(item)" class="iconfont icon-del"></text>
|
|
|
+ <text @tap.stop="toDel(item)" class="iconfont icon-del"></text>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -54,7 +54,7 @@
|
|
|
const that = this;
|
|
|
that.clearPage();
|
|
|
uni.navigateTo({
|
|
|
- url: `/pagesHome/order/detail?id=${e.goods._id}`
|
|
|
+ url: `/pagesHome/order/detail?id=${e._id}`
|
|
|
})
|
|
|
},
|
|
|
// 删除
|
|
@@ -72,7 +72,7 @@
|
|
|
});
|
|
|
const arr = await that.$api(`/storeGoods`, 'POST', {
|
|
|
customer: user._id,
|
|
|
- goods: e.goods._id
|
|
|
+ goods: e._id
|
|
|
});
|
|
|
if (arr.errcode == '0') {
|
|
|
uni.showToast({
|
|
@@ -114,10 +114,9 @@
|
|
|
let user = that.user;
|
|
|
let info = {
|
|
|
skip: that.skip,
|
|
|
- limit: that.limit,
|
|
|
- customer: user._id
|
|
|
+ limit: that.limit
|
|
|
}
|
|
|
- const res = await that.$api(`/storeGoods`, 'GET', {
|
|
|
+ const res = await that.$api(`/storeGoods/userView`, 'GET', {
|
|
|
...info
|
|
|
})
|
|
|
if (res.errcode == '0') {
|