zs %!s(int64=2) %!d(string=hai) anos
pai
achega
fc0a8f9b7d
Modificáronse 2 ficheiros con 9 adicións e 55 borrados
  1. 7 5
      pagesRest/activity/info.vue
  2. 2 50
      pagesRest/recom/index.vue

+ 7 - 5
pagesRest/activity/info.vue

@@ -9,10 +9,11 @@
 					<view class="two">
 						<view class="list" v-for="(item,index) in list" :key="index" @tap="toBuy(item)">
 							<view class="img">
-								<image class="image" :src="item.goods.file&&item.goods.file.length?item.goods.file[0].url:''" mode=""></image>
+								<image class="image" :src="item.file&&item.file.length?item.file[0].url:''" mode="">
+								</image>
 							</view>
 							<view class="name">
-								<text>{{item.goods.name}}</text>
+								<text>{{item.goods_name}}</text>
 							</view>
 							<view class="money">
 								<view class="money_1">
@@ -95,7 +96,8 @@
 					uni.setNavigationBarTitle({
 						title: res.data.act_time.title
 					});
-					if (res.data.content.value) res.data.content.value = res.data.content.value.replace(/\<img/gi, '<img class="rich-img"');
+					if (res.data.content.value) res.data.content.value = res.data.content.value.replace(/\<img/gi,
+						'<img class="rich-img"');
 					that.$set(that, `info`, res.data);
 					that.search()
 				}
@@ -106,7 +108,7 @@
 				let info = {
 					skip: that.skip,
 					limit: that.limit,
-					platformAct: that.id
+					platform_act: that.id
 				}
 				let res = await that.$api(`/goodsJoinAct`, 'GET', {
 					...info,
@@ -146,7 +148,7 @@
 			toBuy(e) {
 				const that = this;
 				uni.navigateTo({
-					url: `/pagesHome/order/detail?id=${e.goods._id}`
+					url: `/pagesHome/order/detail?id=${e.goods}`
 				})
 			},
 			// 清空列表

+ 2 - 50
pagesRest/recom/index.vue

@@ -10,7 +10,8 @@
 						<view class="one_2">
 							<view class="list" v-for="(item,index) in list" :key="index" @tap="toBuy(item)">
 								<view class="list_1">
-									<image class="image" :src="item.file&&item.file.length>0?item.file[0].url:''" mode=""></image>
+									<image class="image" :src="item.file&&item.file.length>0?item.file[0].url:''"
+										mode=""></image>
 								</view>
 								<view class="name textOver">
 									{{item.name}}
@@ -222,55 +223,6 @@
 				}
 			}
 		}
-
-		// .one {
-		// 	padding: 2vw;
-		// 	background-color: #ffffff;
-
-		// 	.image {
-		// 		width: 100%;
-		// 		height: 200px;
-		// 		box-shadow: 0 0 5px #f1f1f1;
-		// 		border-radius: 10px;
-		// 	}
-		// }
-
-		// .two {
-		// 	position: relative;
-		// 	flex-grow: 1;
-
-		// 	// .pubu {
-		// 	// 	// column-count: 2;
-		// 	// 	// column-gap: 3vw;
-		// 	// 	display: flex;
-		// 	// 	justify-content: space-between;
-		// 	// 	flex-wrap: wrap;
-
-		// 	// 	.list {
-		// 	// 		width: 43vw;
-		// 	// 		// break-inside: avoid;
-		// 	// 		margin: 0 0 2vw 0;
-		// 	// 		box-shadow: 0 0 5px #f1f1f1;
-		// 	// 		padding: 2vw;
-		// 	// 		border-radius: 5px;
-
-		// 	// 		.list_1 {
-		// 	// 			margin: 0 0 1vw 0;
-
-		// 	// 			.image {
-		// 	// 				width: 100%;
-		// 	// 				height: 30vh;
-		// 	// 				border-radius: 10px;
-		// 	// 				box-shadow: 0 0 5px #f1f1f1;
-		// 	// 			}
-		// 	// 		}
-
-		// 	// 		.name {
-		// 	// 			font-size: 16px;
-		// 	// 		}
-		// 	// 	}
-		// 	// }
-		// }
 	}
 
 	.scroll-view {