Browse Source

bug 修复

lilei 2 years ago
parent
commit
aafdd23bc2
2 changed files with 11 additions and 9 deletions
  1. 2 2
      App.vue
  2. 9 7
      pages/index/index.vue

+ 2 - 2
App.vue

@@ -1,8 +1,8 @@
 <script>
 	export default {
 		globalData: {
-			baseUrl: 'http://192.168.2.113:7002/saas/clz/', // 本地
-			// baseUrl: 'https://md.test.zyucgj.com/saas/clz/', // 预发布
+			// baseUrl: 'http://192.168.2.113:7002/saas/clz/', // 本地
+			baseUrl: 'https://md.test.zyucgj.com/saas/clz/', // 预发布
 			// baseUrl: 'https://car.zyucgj.com/saas/clz/' // 生产
 		},
 		onLaunch: function() {

+ 9 - 7
pages/index/index.vue

@@ -268,13 +268,15 @@
 				promoTerminalList({sn:storeShelf.dealerSn}).then(res => {
 					if(res.status == 200){
 						res.data&&res.data.map(item => {
-							this.carouselList.push({
-								image: item.images,
-								title: item.title,
-								contentType: item.contentType,
-								id: item.id,
-								name: item.name,
-								promoActiveSn: item.promoActiveSn
+							item.imageSet&&item.imageSet.map(k => {
+								this.carouselList.push({
+									image: k,
+									title: item.title,
+									contentType: item.contentType,
+									id: item.id,
+									name: item.name,
+									promoActiveSn: item.promoActiveSn
+								})
 							})
 						})
 					}