|
@@ -10,19 +10,7 @@ Page({
|
|
|
data: {
|
|
|
productList: [], //供需列表
|
|
|
//轮播图列表
|
|
|
- swiperBannerList: [{
|
|
|
- id: "001",
|
|
|
- url: "/static/changeImg.png",
|
|
|
- src: ''
|
|
|
- }, {
|
|
|
- id: "002",
|
|
|
- url: "/static/changeImg.png",
|
|
|
- src: ''
|
|
|
- }, {
|
|
|
- id: "003",
|
|
|
- url: "/static/changeImg.png",
|
|
|
- src: ''
|
|
|
- }],
|
|
|
+ swiperBannerList: [],
|
|
|
/* 宫格列表 */
|
|
|
gridList: [{
|
|
|
text: '开单',
|
|
@@ -59,6 +47,11 @@ Page({
|
|
|
wx.navigateTo({
|
|
|
url: '/pages/liveStreaming/index',
|
|
|
})
|
|
|
+ } else {
|
|
|
+ wx.showToast({
|
|
|
+ title: '功能开发中',
|
|
|
+ icon: "none"
|
|
|
+ })
|
|
|
}
|
|
|
},
|
|
|
/* 获得展示区标题 */
|
|
@@ -89,13 +82,20 @@ Page({
|
|
|
}
|
|
|
}
|
|
|
}).then(res => {
|
|
|
- console.log(res)
|
|
|
- if (res.msg != '成功') return;
|
|
|
+ if (res.msg != '成功') return wx.showToast({
|
|
|
+ title: res.data,
|
|
|
+ icon: "none"
|
|
|
+ });
|
|
|
const data = handleList.getYTD(res.data)
|
|
|
const productList = handleList.listOrdering(data);
|
|
|
this.setData({
|
|
|
productList
|
|
|
})
|
|
|
+ });
|
|
|
+ /* 获取轮播图 */
|
|
|
+ const bannerList = getApp().globalData.bannerDataList.filter(value => value.flocation == 'home_head');
|
|
|
+ this.setData({
|
|
|
+ swiperBannerList: bannerList[0].banner
|
|
|
})
|
|
|
},
|
|
|
/* 一键联系 */
|