zs 2 лет назад
Родитель
Сommit
5f6eb7c4f9
2 измененных файлов с 12 добавлено и 13 удалено
  1. 10 11
      pagesMy/collection/market.vue
  2. 2 2
      pagesMy/order/after.vue

+ 10 - 11
pagesMy/collection/market.vue

@@ -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') {

+ 2 - 2
pagesMy/order/after.vue

@@ -27,8 +27,8 @@
 									<view class="other_1">
 										商品规格:<text>{{item.goods.name||'暂无'}}</text>
 									</view>
-									<view class="other_1">
-										退款:<text>¥{{item.money||'暂无'}}</text>
+									<view class="other_1" v-if="item.type!='2'">
+										退款:<text>¥{{item.money||0}}</text>
 									</view>
 									<view class="other_1">
 										申请时间:<text>{{item.apply_time||'暂无'}}</text>