Просмотр исходного кода

修改获取公告内容接口

xiaoxin 1 год назад
Родитель
Сommit
4041aa2661
1 измененных файлов с 6 добавлено и 5 удалено
  1. 6 5
      pages/index/index.vue

+ 6 - 5
pages/index/index.vue

@@ -44,8 +44,8 @@
 				<image src="../../static/images/index/gonggao.png" style="width: 140rpx;height: 50rpx;" mode=""></image>
 				<view class="flex-sub margin-left-sm">
 					<swiper class="swiper" autoplay="1500" :vertical='true' style="height: 40rpx;overflow: hidden;">
-						<swiper-item class="" v-for="(item,index) in noticeList" :key='index'>
-							<text>{{item.title}}</text>
+						<swiper-item>
+							<text>{{noticeList.value}}</text>
 						</swiper-item>
 					</swiper>
 				</view>
@@ -362,7 +362,7 @@
 				}],
 				userId: '',
 				src1: '../../static/images/index/xia.png',
-				noticeList: [],
+				noticeList: {},
 				show: false,
 				typeShow: false,
 				current: 1,
@@ -894,9 +894,10 @@
 					page: 1,
 					limit: 100
 				}
-				this.$Request.get("/app/notice/selectNoticeList", data).then(res => {
+				this.$Request.get("/app/common/type/432", data).then(res => {
 					if (res.code == 0) {
-						this.noticeList = res.data.list
+						this.noticeList = res.data
+						// console.log(this.noticeList,999);
 					}
 				});
 			},