|
@@ -18,12 +18,23 @@ Page({
|
|
|
|
|
|
|
|
|
data: {
|
|
|
- banner: [{
|
|
|
- "image": "",
|
|
|
- "image": "",
|
|
|
- "image": "",
|
|
|
- }, ],
|
|
|
+ bannerList: [{
|
|
|
+ imgUrl: 'http://img1.baidu.com/it/u=2343623234,438083234&fm=253&app=138&f=JPEG?w=684&h=1216'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ imgUrl: 'http://img1.baidu.com/it/u=2343623234,438083234&fm=253&app=138&f=JPEG?w=684&h=1216'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ imgUrl: 'http://img1.baidu.com/it/u=2343623234,438083234&fm=253&app=138&f=JPEG?w=684&h=1216'
|
|
|
+ }
|
|
|
+ // 添加更多图片对象
|
|
|
+ ],
|
|
|
+ autoplay: true,
|
|
|
+ interval: 3000, // 切换时间间隔
|
|
|
+ duration: 500, // 滑动动画时长
|
|
|
+ circular: true, // 衔接滑动
|
|
|
indexPage: 0,
|
|
|
+ ///是否展示频道
|
|
|
showChannel: false,
|
|
|
////首页
|
|
|
navBarHeight: app.globalData.navBarHeight,
|
|
@@ -257,7 +268,7 @@ Page({
|
|
|
|
|
|
// 回调
|
|
|
mqttCallback(type, option) {
|
|
|
- console.log("gadsfadsfqwerq===" + type + "===" + option);
|
|
|
+ // console.log("gadsfadsfqwerq===" + type + "===" + option);
|
|
|
let payloads = null;
|
|
|
if (option) {
|
|
|
payloads = JSON.parse(option.payload);
|