homepage.wxml 11.0 KB
<view class="head">
  <view class="place">
    <!--<view class="place_name">北京</view>-->
    <picker bindchange="binddoctorChange" value="{{hostipal_index}}" range="{{doctorarray}}" class="commentlsit_date allhospital" range-key='hospital_name'>
      <view class="picker">
        {{doctorarray[hostipal_index].hospital_name}}
      </view>
    </picker>
    <view class="place_img">
      <image src="http://bronet.ibaby88.cn/aicon01@2x.png"></image>
    </view>
  </view>
  <view class="search">
    <view class="search_hospital">
      <input placeholder="搜索医院" class="enterword" bindinput="searchhospital" confirm-type="done" bindconfirm="finish"/>
    </view>
    <view class="searchimg" bindtap="search">
      <image src="http://bronet.ibaby88.cn/aicon02@2x.png"></image>
    </view>
  </view>
</view>
<view class="type">
  <view class="kindtype">
    <view class="kitype_item" bindtap='buildtext'>
      <view class="item_img">
        <image src="http://bronet.ibaby88.cn/aicon03@2x.png"></image>
      </view>
      <view class="strategy_text">
        <view class="strategy">建档攻略</view>
        <view class="strategy_name">北京建档指南</view>
      </view>
    </view>
    <view class="kitype_item" bindtap='seconduse'>
      <view class="item_img">
        <image src="http://bronet.ibaby88.cn/aicon04@2x.png"></image>
      </view>
      <view class="strategy_text">
        <view class="strategy">二手闲置</view>
        <view class="strategy_name">同城母婴跳蚤市场</view>
      </view>
    </view>

    <view class="kitype_item" bindtap="childbirthnote">
      <view class="item_img">
        <image src="http://bronet.ibaby88.cn/aicon05@2x.png"></image>
      </view>
      <view class="strategy_text">
        <view class="strategy">分娩日记</view>
        <view class="strategy_name">过来人的经验分享</view>
      </view>
    </view>
    <view class="kitype_item" bindtap='hostipal'>
      <view class="item_img">
        <image src="http://bronet.ibaby88.cn/aicon06@2x.png"></image>
      </view>
      <view class="strategy_text">
        <view class="strategy">同医院交流群</view>
        <view class="strategy_name">加入孕妈圈</view>
      </view>
    </view>
  </view>
</view>
<!--排序 -->
<view class="kind">
  <view class="search_list">
    <view class="search_item">
      <!-- <view class="allhospital">所有医院</view> -->
      <picker bindchange="bindhospitaltypeChange" value="{{hostipaltype_index}}" range="{{hospitaltypearray}}" class="commentlsit_date allhospital" range-key='name'>
        <view class="picker">
          {{hospitaltypearray[hostipaltype_index].name}}
        </view>
      </picker>
      <view class="place_img">
        <image src="http://bronet.ibaby88.cn/aicon01@2x.png"></image>
      </view>
    </view>
    <view class="search_item">
      <!-- <view class="allhospital">所有服务</view> -->
      <picker bindchange="bindserverChange" value="{{server_index}}" range="{{serverarray}}" class="commentlsit_date allhospital" range-key='name'>
        <view class="picker">
          {{serverarray[server_index].name}}
        </view>
      </picker>
      <view class="place_img">
        <image src="http://bronet.ibaby88.cn/aicon01@2x.png"></image>
      </view>
    </view>
    <view class="search_item">
      <picker bindchange="bindmuitipleChange" value="{{server_index}}" range="{{muitiple}}" class="commentlsit_date allhospital" range-key='name'>
        <view class="picker allhospital">
          {{muitiple[multiple_index].name}}
        </view>
      </picker>
      <!--<view class="allhospital">综合排序</view>-->
      <view class="place_img">
        <image src="http://bronet.ibaby88.cn/aicon01@2x.png"></image>
      </view>
    </view>
  </view>
</view>
<!-- 列表 -->

<view wx:if="{{hostipallist.length==0}}" class="nodata">暂无数据</view>
<view class="list" wx:else>
  <view class="list_item" bindtap='entertail' data-hospitalid="{{item.hospital_id}}" wx:for="{{hostipallist}}" wx:key="">
    <view class="listitem_img">
      <image src="{{item.thumb}}"></image>
    </view>
    <view class="item_content">
      <view class="item_content_name">{{item.title}}</view>
      <view class="item_content_text">
        <view class="price">{{item.price}}</view>
        <!-- 一星 -->
        <view class="rank" wx:if="{{item.star1>=1&&item.star1<=1.4}}">
          <view class="rank_star">
            <image src="http://bronet.ibaby88.cn/aicon07@2x.png"></image>
          </view>
          <view class="rank_star">
            <image src="http://bronet.ibaby88.cn/aicon08@2x.png"></image>
          </view>
          <view class="rank_star">
            <image src="http://bronet.ibaby88.cn/aicon08@2x.png"></image>
          </view>
          <view class="rank_star">
            <image src="http://bronet.ibaby88.cn/aicon08@2x.png"></image>
          </view>
          <view class="rank_star">
            <image src="http://bronet.ibaby88.cn/aicon08@2x.png"></image>
          </view>
        </view>
        <!-- 一颗半星 -->
        <view class="rank" wx:if="{{item.star1>1.4&&item.star1<2}}">
          <view class="rank_star">
            <image src="http://bronet.ibaby88.cn/aicon07@2x.png"></image>
          </view>
          <view class="rank_star">
            <image src="http://bronet.ibaby88.cn/pingban.png"></image>
          </view>
          <view class="rank_star">
            <image src="http://bronet.ibaby88.cn/aicon08@2x.png"></image>
          </view>
          <view class="rank_star">
            <image src="http://bronet.ibaby88.cn/aicon08@2x.png"></image>
          </view>
          <view class="rank_star">
            <image src="http://bronet.ibaby88.cn/aicon08@2x.png"></image>
          </view>
        </view>
        <!--二星-->
        <view class="rank" wx:if="{{item.star1>=2&&item.star1<=2.4}}">
          <view class="rank_star">
            <image src="http://bronet.ibaby88.cn/aicon07@2x.png"></image>
          </view>
          <view class="rank_star">
            <image src="http://bronet.ibaby88.cn/aicon07@2x.png"></image>
          </view>
          <view class="rank_star">
            <image src="http://bronet.ibaby88.cn/aicon08@2x.png"></image>
          </view>
          <view class="rank_star">
            <image src="http://bronet.ibaby88.cn/aicon08@2x.png"></image>
          </view>
          <view class="rank_star">
            <image src="http://bronet.ibaby88.cn/aicon08@2x.png"></image>
          </view>
        </view>
        <!-- 两颗半 -->
        <view class="rank" wx:if="{{item.star1>2.4&&item.star1<3}}">
          <view class="rank_star">
            <image src="http://bronet.ibaby88.cn/aicon07@2x.png"></image>
          </view>
          <view class="rank_star">
            <image src="http://bronet.ibaby88.cn/aicon07@2x.png"></image>
          </view>
          <view class="rank_star">
            <image src="http://bronet.ibaby88.cn/pingban.png"></image>
          </view>
          <view class="rank_star">
            <image src="http://bronet.ibaby88.cn/aicon08@2x.png"></image>
          </view>
          <view class="rank_star">
            <image src="http://bronet.ibaby88.cn/aicon08@2x.png"></image>
          </view>
        </view>

        <!--三星-->
        <view class="rank" wx:if="{{item.star1>=3&&item.star1<=3.4}}">
          <view class="rank_star">
            <image src="http://bronet.ibaby88.cn/aicon07@2x.png"></image>
          </view>
          <view class="rank_star">
            <image src="http://bronet.ibaby88.cn/aicon07@2x.png"></image>
          </view>
          <view class="rank_star">
            <image src="http://bronet.ibaby88.cn/aicon07@2x.png"></image>
          </view>
          <view class="rank_star">
            <image src="http://bronet.ibaby88.cn/aicon08@2x.png"></image>
          </view>
          <view class="rank_star">
            <image src="http://bronet.ibaby88.cn/aicon08@2x.png"></image>
          </view>
        </view>
        <!-- 三颗半 -->
         <view class="rank" wx:if="{{item.star1>3.4&&item.star1<4}}">
          <view class="rank_star">
            <image src="http://bronet.ibaby88.cn/aicon07@2x.png"></image>
          </view>
          <view class="rank_star">
            <image src="http://bronet.ibaby88.cn/aicon07@2x.png"></image>
          </view>
          <view class="rank_star">
            <image src="http://bronet.ibaby88.cn/aicon07@2x.png"></image>
          </view>
          <view class="rank_star">
            <image src="http://bronet.ibaby88.cn/pingban.png"></image>
          </view>
          <view class="rank_star">
            <image src="http://bronet.ibaby88.cn/aicon08@2x.png"></image>
          </view>
        </view>
        <!--四星-->
        <view class="rank" wx:if="{{item.star1>=4&&item.star1<=4.4}}">
          <view class="rank_star">
            <image src="http://bronet.ibaby88.cn/aicon07@2x.png"></image>
          </view>
          <view class="rank_star">
            <image src="http://bronet.ibaby88.cn/aicon07@2x.png"></image>
          </view>
          <view class="rank_star">
            <image src="http://bronet.ibaby88.cn/aicon07@2x.png"></image>
          </view>
          <view class="rank_star">
            <image src="http://bronet.ibaby88.cn/aicon07@2x.png"></image>
          </view>
          <view class="rank_star">
            <image src="http://bronet.ibaby88.cn/aicon08@2x.png"></image>
          </view>
        </view>
        <!-- 四颗半 -->
         <view class="rank" wx:if="{{item.star1>4.4&&item.star1<5}}">
          <view class="rank_star">
            <image src="http://bronet.ibaby88.cn/aicon07@2x.png"></image>
          </view>
          <view class="rank_star">
            <image src="http://bronet.ibaby88.cn/aicon07@2x.png"></image>
          </view>
          <view class="rank_star">
            <image src="http://bronet.ibaby88.cn/aicon07@2x.png"></image>
          </view>
          <view class="rank_star">
            <image src="http://bronet.ibaby88.cn/aicon07@2x.png"></image>
          </view>
          <view class="rank_star">
            <image src="http://bronet.ibaby88.cn/pingban.png"></image>
          </view>
        </view>
        <!--五星-->
        <view class="rank" wx:if="{{item.star1==5}}">
          <view class="rank_star">
            <image src="http://bronet.ibaby88.cn/aicon07@2x.png"></image>
          </view>
          <view class="rank_star">
            <image src="http://bronet.ibaby88.cn/aicon07@2x.png"></image>
          </view>
          <view class="rank_star">
            <image src="http://bronet.ibaby88.cn/aicon07@2x.png"></image>
          </view>
          <view class="rank_star">
            <image src="http://bronet.ibaby88.cn/aicon07@2x.png"></image>
          </view>
          <view class="rank_star">
            <image src="http://bronet.ibaby88.cn/aicon07@2x.png"></image>
          </view>
        </view>
      </view>
      <view class="meter">
        <text class="text_name">{{item.keywords}}</text>
        <text class="kilometer">{{item.distance}}</text>
        
      </view>
      <view class="predit">{{item.keywords2}}</view>
    </view>
  </view>

</view>