index.wxml 2.71 KB
Newer Older
1
<!--static/nativeComponents/AreaNavigation/index.wxml-->
2 3
<van-sticky offset-top="{{showSpokesManHome?44:0}}" wx:if="{{datas.componentData.scrollPosition}}">
<view class="area-navigation clearfix" style="background-color:{{datas.componentData.backgroundColor}}">
4 5 6
  <view style="width:100%;display:flex;">
    <view class="area-l" style="font-size:{{datas.componentData.fontSize / 16 + 'em'}};color:{{datas.componentData.fontColor}};font-weight:{{datas.componentData.fontWeight}}" bindtap="changeOtherCity">
      <view class="antt ant-gongsidizhi"></view>
1  
程智春 committed
7
      <text class="title">{{positionName}}</text>
8 9 10
      <van-icon name="arrow-down" style="margin-left:4rpx" />
    </view>
    <view class="area-r">
程智春 committed
11
      <input class="area-search" type="text" bindtap="toSearchPage" style="background-color:{{datas.componentData.searchBgColor}};font-size:{{datas.componentData.searchFontSize / 16 + 'em'}};color:{{datas.componentData.searchFontColor}};font-weight:{{datas.componentData.searchFontWeight}}">
12 13 14 15 16 17 18 19 20 21 22
      
      </input>
    </view>
  </view>
</view>
</van-sticky>
<view wx:if="{{!datas.componentData.scrollPosition}}">
  <view class="area-navigation clearfix" style="background-color:{{datas.componentData.backgroundColor}}">
    <view style="width:100%;display:flex;">
      <view class="area-l" style="font-size:{{datas.componentData.fontSize / 16 + 'em'}};color:{{datas.componentData.fontColor}};font-weight:{{datas.componentData.fontWeight}}" bindtap="changeOtherCity">
        <view class="antt ant-gongsidizhi"></view>
1  
程智春 committed
23
        <text class="title">{{positionName}}</text>
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
        <van-icon name="arrow-down" style="margin-left:4rpx" />
      </view>
      <view class="area-r">
        <input class="area-search" type="text" style="background-color:{{datas.componentData.searchBgColor}};font-size:{{datas.componentData.searchFontSize / 16 + 'em'}};color:{{datas.componentData.searchFontColor}};font-weight:{{datas.componentData.searchFontWeight}}">
        
        </input>
      </view>
    </view>
  </view>
</view>

<van-dialog
  show="{{noShow}}"
  use-slot
  showConfirmButton="{{false}}"
>
  <view class="change-dialog">
    <view style="line-height:60rpx">您所在的地区暂未开放</view>
    <view class="change-btn">切换其他城市</view>
  </view>
</van-dialog>

<van-dialog
  show="{{changeShow}}"
  use-slot
  showConfirmButton="{{false}}"
>
  <view class="change-dialog">
    <view style="line-height:60rpx">
      定位显示为{{ positionCity.regionName }}
    </view>
    <view class="change-btn line-clamp1" bindtap="changeTo">
      切换到{{ positionCity.regionName }}
    </view>
    <view class="continue line-clamp1" bindtap="continueBrowser">
程智春 committed
59
      继续浏览{{ designateAreaObj.regionName }}
60 61 62 63
    </view>
  </view>
  
</van-dialog>