jingshuiji/pages/index/newIndex/newIndex.wxml
2025-04-22 14:39:59 +08:00

118 lines
4.6 KiB
Plaintext

<view class="box">
<view class="nav-box" style="padding-top: {{ t }}px;;">
<view class="nav-bar" style="height: {{ h }}px;">
<view class="nav-bar-title" style="height: {{ h }}px;line-height: {{ h }}px;">
</view>
</view>
</view>
<view class="indexBg">
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/Index_bg.png" mode="widthFix" />
</view>
<view class="searchBox">
<view class="searchBox_add" bind:tap="map">
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/Index_add.png" mode="widthFix" />
<!-- 衡水市 -->
<view wx:if="{{!currentCity.city}}">
{{city?city.city:'选择城市'}}
</view>
<view wx:if="{{currentCity.city}}">
{{currentCity.city}}
</view>
</view>
<view class="searchBox_msg">
<view class="iptbox">
<input type="text" value="{{iptMsg}}" bindinput="iptChange" />
<image bind:tap="searchCurrent" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/dervice/deriveSearch.png" mode="widthFix" />
</view>
<view class="map" bind:tap="opMap">
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/Index_map.png" mode="widthFix" />
地图
</view>
</view>
</view>
<view class="swiper">
<swiper bindanimationfinish="swipers">
<swiper-item wx:for="{{bannerList}}" wx:key="index">
<image src="{{picUrl}}{{item.pic}}" mode="widthFix" />
</swiper-item>
</swiper>
<view class="cirList">
<view class="cir{{currentIdx == index?'active':''}}" wx:for="{{bannerList}}" wx:key="index"></view>
</view>
</view>
<view class="tabList">
<view class="tabItem" wx:for="{{tabList}}" bind:tap="desc" wx:key="index" data-url="{{item.url}}">
<view class="tabImg">
<image src="{{item.img}}" mode="widthFix" />
</view>
<view class="tabname">{{item.name}}</view>
</view>
</view>
<view class="Tit">精选服务</view>
<view class="serverList">
<view class="serverItem serverItem1" bind:tap="cf">
<view class="serverTit">榴园厨房</view>
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/server_img1.png" mode="widthFix" />
</view>
<view class="serverItem serverItem2" bind:tap="wybx">
<view class="serverTit">物业报修</view>
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/server_img2.png" mode="widthFix" />
</view>
<view class="serverItem serverItem3" bind:tap="shopEnter">
<view class="serverTit">商家入驻</view>
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/indexSubcontract/_assets/Merchantsettlement.png" mode="widthFix" />
</view>
<view class="serverItem serverItem4" bind:tap="water_filter">
<view class="serverTit">人人爱净水</view>
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/server_img4.png" mode="widthFix" />
</view>
</view>
<view class="List_tabList">
<view class="List_tabItem {{current == 0?'List_active':''}}" bind:tap="changeCurrent" data-idx="0">小区</view>
<view class="List_tabItem {{current == 1?'List_active':''}}" bind:tap="changeCurrent" data-idx="1">服务</view>
<view class="List_tabItem {{current == 2?'List_active':''}}" bind:tap="changeCurrent" data-idx="2">店铺</view>
<view class="List_tabItem {{current == 3?'List_active':''}}" bind:tap="changeCurrent" data-idx="3">团购</view>
<view class="List_tabItem {{current == 4?'List_active':''}}" bind:tap="changeCurrent" data-idx="4">预定</view>
</view>
<view class="List" wx:if="{{current == 0}}">
<tabularCard wx:for="{{CommunityList}}" wx:key="index" item="{{item}}" isLast="{{index === CommunityList.length -1}}" />
</view>
<view class="list" wx:if="{{current == 1}}">
<view class="item_goodsItem" wx:if="{{serverList.length > 0}}" wx:for="{{serverList}}" wx:key="index" bind:tap="ServerDesc" wx:for-item="items" data-appid="{{items.appoint_id}}">
<view class="item_goodsItem_tit">
<image src="{{items.photo}}" mode="aspectFill" />
</view>
<view style="flex: 1;">
<view class="item_goodsItem_name">{{items.title}}</view>
<view class="item_goodsItem_msg">
<view>{{items.price}}</view>
<text>/{{items.unit}}</text>
</view>
</view>
</view>
<van-empty wx:if="{{serverList.length == 0}}" description="暂无内容" />
</view>
<view class="empty" wx:if="{{current != 0 && current != 1}}">
<van-empty description="暂无内容" />
</view>
</view>
<Footer></Footer>