xuqiaoying 3 жил өмнө
parent
commit
8a5fa3388f
1 өөрчлөгдсөн 20 нэмэгдсэн , 0 устгасан
  1. 20 0
      pages/index/index.vue

+ 20 - 0
pages/index/index.vue

@@ -515,6 +515,26 @@ export default {
 		courseList() {
 			var param = this.paramList[0];
 			// /app/common/goods/list
+			// this.$http({
+			// 	url: '/app/common/activity/recommend/list',
+			// 	method: 'get',
+			// 	data: {
+			// 		platform: 1,
+			// 		status: 1,
+			// 	},
+			// 	noToken: true
+			// }).then((res) => {
+			// 	console.log('s---->', res)
+			// 	if (res.data.code == 200) {
+			// 		this.list1 = res.data.rows && (res.data.rows[0].goodsList || [])
+			// 		this.list1 = this.list1.sort((a, b) => a.sort - b.sort)
+          	// 		// this.goodsList2 = goodsList2.sort((a, b) => a.sort - b.sort);
+			// 		this.total1 = res.data.rows[0].goodsList.length
+			// 		if (this.list1.length === this.total1) {
+			// 			this.showStatus1 = true
+			// 		}
+			// 	}
+			// })
 			this.$api.goodsList(param).then(res => {
 				if (res.data.code == 200) {
 					this.list1 = res.data.rows || []