You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
2.3 KiB

5 years ago
<!--pages/pbService/sceneComfort/index.wxml-->
<title title="景区舒适度"></title>
<view class="my-top-search">
<view class="my-search-box">
<view class="iconfont icon-sousuo"></view>
<input bindinput="inputKeyword" type="text" placeholder="请输入景区名称"></input>
<view class="my-search-btn" bindtap="search">搜索</view>
</view>
<view class="select-box">
<picker mode="selector" value="{{comfortIndex}}" range="{{comfortLevel}}" range-key="desc" bindchange="changeComfortLevel">
<view class="picker feiyi-picker">
<text style="{{comfortIndex>0?'color:#0B898E':''}}">{{comfortIndex>0?comfortLevel[comfortIndex].desc:"舒适度"}}</text>
<view class="iconfont icon-xia"></view>
</view>
</picker>
<picker mode="selector" value="{{areaIndex}}" range="{{areas}}" range-key="area_name" bindchange="changeArea">
<view class="picker feiyi-picker">
<text style="{{areaIndex>0?'color:#0B898E':''}}">{{areaIndex>0?areas[areaIndex].area_name:'区/县'}}</text>
<view class="iconfont icon-xia"></view>
</view>
</picker>
</view>
<view class="comfort-levels">
<text>舒适度:</text>
<view wx:if="{{index!=0}}" style="color:{{item.color}}" wx:for="{{comfortLevel}}" class="comfort-level">{{item.desc}}</view>
</view>
</view>
<view style="height:220rpx"></view>
<view class="comfort-item" wx:for="{{list}}">
<view class="scene-title">{{item.third_scene_name}}</view>
<view class="comfort-tip">
<image src="https://fastadmin.oss-cn-shenzhen.aliyuncs.com/xcxImages/pbservice/comfort1.png" mode="widthFix"></image>
<text style="margin-right:30rpx">{{areaObj[item.area]}}</text>
<!-- <image src="https://fastadmin.oss-cn-shenzhen.aliyuncs.com/xcxImages/pbservice/comfort2.png" mode="widthFix"></image>
<text>4A级</text> -->
</view>
<view class="progress-item">
<progress percent="{{item.in_count/item.ins_carry_capacity * 100}}" color="{{comfortObj[item.comfort_level].color}}" stroke-width="{{40 * radio}}" border-radius="{{20 * radio}}"></progress>
<view class="progress-text">{{comfortObj[item.comfort_level].name}}/{{item.ins_carry_capacity}}人</view>
</view>
<view class="other-tip">
<text>更新时间:{{item.status_time}}</text>
<text>当前舒适度/瞬时承载量</text>
</view>
</view>