Explorar el Código

首页跑马灯内容调整为动态获取

ZhangWenQiang hace 6 años
padre
commit
3de7153411
Se han modificado 1 ficheros con 3 adiciones y 8 borrados
  1. 3 8
      pages/index/index.js

+ 3 - 8
pages/index/index.js

@@ -46,13 +46,7 @@ Page({
     canIUse: wx.canIUse('button.open-type.getUserInfo'),
     list: [],
     showNoMore: "没有更多信息...", //显示已无更多
-    broadcastList: [
-      '热心达人!用户孟潞帮朋友找到工作,获得500元推荐入职奖励!',
-      '棒棒哒!用户沈佳宜努力工作了30天,获得3000元入职奖励!',
-      '恭喜恭喜!用户秦寒推荐新用户注册,获得5元推荐注册奖励!',
-      '给你点赞!用户张汉文完成拼工在职30天,获得1000元拼工团奖励!',
-      '厉害了!用户李丽刚刚完善了个人简历,好工作正在赶来的路上!'
-    ],
+    broadcastList: [],
     imgServerUrl: imgServerUrl,
     hasLocation1: false,
   },
@@ -115,7 +109,8 @@ Page({
     Object.assign(paramsObj);
     getBanner(paramsObj).then(data => {
       this.setData({
-        imgList: data.data.bannerList
+        imgList: data.data.bannerList,
+        broadcastList: data.data.broadcastList
       })
     })
   },