|
@@ -9,7 +9,6 @@
|
|
|
|
|
|
<!-- banner -->
|
|
<!-- banner -->
|
|
<view wx:if="{{bannerList.length>0}}" class="banner_container">
|
|
<view wx:if="{{bannerList.length>0}}" class="banner_container">
|
|
-
|
|
|
|
<swiper class="swiper" indicator-dots="{{bannerList.length>1}}" autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}" circular="{{circular}}" indicator-active-color="#FFFFFF" indicator-color="#999999">
|
|
<swiper class="swiper" indicator-dots="{{bannerList.length>1}}" autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}" circular="{{circular}}" indicator-active-color="#FFFFFF" indicator-color="#999999">
|
|
<block wx:for="{{bannerList}}" wx:key="index">
|
|
<block wx:for="{{bannerList}}" wx:key="index">
|
|
<swiper-item>
|
|
<swiper-item>
|
|
@@ -18,16 +17,26 @@
|
|
</block>
|
|
</block>
|
|
</swiper>
|
|
</swiper>
|
|
</view>
|
|
</view>
|
|
|
|
+ <!-- banner -->
|
|
|
|
+ <!-- <view wx:if="{{bannerList.length>0}}" class="banner_container" style="width: calc(100vw - 64rpx); border-radius: 16rpx;">
|
|
|
|
+ <swiper style="width: calc(100vw - 64rpx); border-radius: 16rpx;" indicator-dots="{{bannerList.length>1}}" autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}" circular="{{circular}}" indicator-active-color="#FFFFFF" indicator-color="#999999">
|
|
|
|
+ <block wx:for="{{bannerList}}" wx:key="index">
|
|
|
|
+ <swiper-item style="width: calc(100vw - 64rpx); border-radius: 16rpx;">
|
|
|
|
+ <image class="banner_item" style="width: calc(100vw - 64rpx); border-radius: 16px;" src="{{item.pic}}" mode="aspectFill" bindtap="onTapBanner" data-item="{{item}}" lazy-load="true"></image>
|
|
|
|
+ </swiper-item>
|
|
|
|
+ </block>
|
|
|
|
+ </swiper>
|
|
|
|
+ </view> -->
|
|
|
|
|
|
<view class="add_device_public" bind:tap="jumpToAddDevice">
|
|
<view class="add_device_public" bind:tap="jumpToAddDevice">
|
|
<image mode="heightFix" src="./../../img/add_device.png" style="width: 48rpx;height: 48rpx;"></image>
|
|
<image mode="heightFix" src="./../../img/add_device.png" style="width: 48rpx;height: 48rpx;"></image>
|
|
<view style="color: white; margin-left: 8rpx; font-size: 32rpx;">添加设备</view>
|
|
<view style="color: white; margin-left: 8rpx; font-size: 32rpx;">添加设备</view>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
- <scroll-view scroll-y="true" style="height: calc(100vh - 152rpx - 296rpx - 46rpx - 105rpx - {{safeBottomHeight}}rpx - 5rpx - {{navBarHeight}}px); padding-top: 10rpx; padding-bottom: 10rpx;">
|
|
|
|
|
|
+ <scroll-view scroll-y="true" style="height: calc(100vh - 152rpx - 296rpx - 46rpx - 105rpx - {{safeBottomHeight}}rpx - 5rpx - {{navBarHeight}}px);">
|
|
<block wx:key="key" wx:for-item="item" wx:for-index="index" wx:for="{{deviceList}}">
|
|
<block wx:key="key" wx:for-item="item" wx:for-index="index" wx:for="{{deviceList}}">
|
|
|
|
|
|
- <view class="item_public" style="border: {{item.state && item.state === 'online'&&deviceListSelect === index ? '6rpx solid #6546A3' : item.state && item.state === 'online'?'2rpx solid #6546A3':'2rpx solid #F2F5F7'}}; flex-direction: row; display: flex;" data-item="{{item}}" data-index="{{index}}" bind:tap="onTapItem">
|
|
|
|
|
|
+ <view class="item_public" style="border: {{item.state && item.state === 'online'&&deviceListSelect === index ? '6rpx solid #6546A3' : item.state && item.state === 'online'?'2rpx solid #6546A3':'2rpx solid #F2F5F7'}}; flex-direction: row; display: flex; margin-top: 10rpx; margin-bottom: {{index==0?deviceList.length-1:0}}rpx; " data-item="{{item}}" data-index="{{index}}" bind:tap="onTapItem">
|
|
|
|
|
|
<view style="width: 264rpx; height: 200rpx;">
|
|
<view style="width: 264rpx; height: 200rpx;">
|
|
<image class="item_public_image" src="{{item.imageUrl}}" style="opacity: {{item.state && item.state === 'online' ? '1' : '0.5'}};" mode="aspectFit" lazy-load="true" webp="true"></image>
|
|
<image class="item_public_image" src="{{item.imageUrl}}" style="opacity: {{item.state && item.state === 'online' ? '1' : '0.5'}};" mode="aspectFit" lazy-load="true" webp="true"></image>
|
|
@@ -69,11 +78,11 @@
|
|
<view wx:else>
|
|
<view wx:else>
|
|
|
|
|
|
<!-- 频道 -->
|
|
<!-- 频道 -->
|
|
- <view wx:if="{{indexPage==1&&deviceListSelect!=null&&deviceList.length>deviceListSelect&&deviceList[deviceListSelect].connectType===3}}" class="mair" style="height: calc(100vh - 105rpx - {{safeBottomHeight}}rpx - 22rpx - {{navBarHeight}}px);">
|
|
|
|
|
|
+ <view wx:if="{{deviceListSelect!=null&&deviceList.length>deviceListSelect&&deviceList[deviceListSelect].connectType===3}}" class="mair" style="height: calc(100vh - 105rpx - {{safeBottomHeight}}rpx - 22rpx - {{navBarHeight}}px);">
|
|
<view class="play-info">
|
|
<view class="play-info">
|
|
<view class="info">
|
|
<view class="info">
|
|
<image src="./../../img/blak.png" class="black" mode="scaleToFill"></image>
|
|
<image src="./../../img/blak.png" class="black" mode="scaleToFill"></image>
|
|
- <image src="./../../img/mm.png" class="mode" mode="scaleToFill"></image>
|
|
|
|
|
|
+ <image src="./../../img/mm.png" class="mode" mode="widthFix"></image>
|
|
<image class="logo" mode="heightFix" src="./../../img/logo.png"></image>
|
|
<image class="logo" mode="heightFix" src="./../../img/logo.png"></image>
|
|
<view wx:if="{{actionIndex !== null}}" style="opacity: 0.8; text-shadow:0px 0px 4px #6D00FF;" class="fm">
|
|
<view wx:if="{{actionIndex !== null}}" style="opacity: 0.8; text-shadow:0px 0px 4px #6D00FF;" class="fm">
|
|
FM.{{actionIndex !== null ? (actionIndex + 1 < 10 ? "0" + (actionIndex + 1) : actionIndex + 1) : 00}} </view>
|
|
FM.{{actionIndex !== null ? (actionIndex + 1 < 10 ? "0" + (actionIndex + 1) : actionIndex + 1) : 00}} </view>
|