mykehu.wxml 5.0 KB
<view class='mykehuhead'>
  <view class="mykehuleft">我的客户</view>
  <view class="addkehu" bindtap="addkehu">添加新客户</view>
</view>

<view class="kehubox morenke" wx:if="{{showmoren}}">
  <view class="kehuitem" bindtap="select" data-item="{{morenkehu}}">

    <view class="itemleftimg">
      <image src="/img/address.png"></image>
    </view>

    <view class="itemmiddle">
      <view class="itemmiddletop">{{morenkehu.customer_name}} {{morenkehu.contact_name}}</view>
      <view class="itemmiddlebottom">{{morenkehu.receive_name}} {{morenkehu.mobile}} </view>
      <view class="itemmiddlebottom">{{morenkehu.address}}</view>

    </view>

    <view class="delimg">
      <view class="itemright edigtupian" catchtap='editkehu' data-id="{{morenkehu.id}}">
        <image src="/img/editaddress.png"></image>
      </view>

      <view class="itemright" catchtap='delkehu' data-id="{{morenkehu.id}}">
        <image src="/img/delshan.png"></image>
      </view>
    </view>
  </view>
</view>
<!-- <view class="kehubox">
  <view class="kehuitem" wx:for="{{kehulist}}" wx:key="" bindtap="select" data-item="{{item}}">
    <view class="itemleftimg">
      <image src="/img/address.png"></image>
    </view>

    <view class="itemmiddle">
      <view class="itemmiddletop">{{item.customer_name}} {{item.mobile}}</view>
      <view class="itemmiddlebottom">{{item.region}} {{item.address}}</view>
    </view>

      <view class="delimg">
      <view class="itemright edigtupian" catchtap='editkehu' data-id="{{item.id}}">
        <image src="/img/editaddress.png"></image>
      </view>

      <view class="itemright" catchtap='delkehu' data-id="{{item.id}}">
        <image src="/img/delshan.png"></image>
      </view>
    </view>

  </view>

</view> -->


<view class='city_box'>
  <view class='city_left'>
    <scroll-view style='width:100%;height:100%;' scroll-with-animation scroll-into-view='{{cityListId}}' class="citybox" scroll-y='true' scroll-top="{{scrollHeight}}">
      <!-- <view class="hot">
        <view class="hotimg">
          <image src="{{url}}bicon_08@2x.png"></image>
        </view>

        <view class="hotzi">
          <image src="{{url}}bicon_07@2x.png"></image>
        </view>
      </view> -->
      <!-- <view class='new_city'>

        <view class='new_city_box'>
          <view class='new_city_text' wx:for='{{newcity}}' wx:key='this' data-types='new' catchtap='cityTap' data-val='{{item}}'>
            <view class="hotgood" bindtap="jumpbrand" data-id="{{item.id}}">
              <view class="imgleft">
                <image src="{{item.logo}}" mode='aspectFit'></image>
              </view>
              <view class="contentright">
                <view class="contenttop">{{item.name}}</view>
                <view class="contenbottom">
                  <text class="textname">{{item.sort_name}}</text>
                  <text class="textname">{{item.country}}</text>
                  <text class="textname">{{item.city}}</text>
                  <text class="textname">{{item.odor_name}}</text>
                </view>
              </view>

            </view>

          </view>
        </view>
      </view> -->



      <view class='city_list_box'>
        <block wx:for='{{kehulist}}' wx:key='this' wx:for-item='letterItem' wx:for-index='letterIndex'>
          <view class='city_first_letter' id='{{letterItem.acronym}}'>{{letterItem.acronym}}</view>
          <!-- {{item.cityName}} -->
          <view class='city_name' wx:for='{{letterItem.list}}' id='{{letterItem.acronym}}' wx:key='this' data-types='list' bindtap="jumpbrand" data-id="{{item.id}}" data-index='{{index}}' data-val='{{item}}'>

            <!-- <view class="imgleft">
              <image src="{{item.logo}}" mode="aspectFit"></image>
            </view> -->
            <view class="contentright">
              <view class="contenttop">{{item.acronym}}</view>
           


              <view class="kehuitem" bindtap="select" data-item="{{item}}">
                <view class="itemleftimg">
                  <image src="/img/address.png"></image>
                </view>

                <view class="itemmiddle">
                  <view class="itemmiddletop">{{item.customer_name}} {{item.contact_name}}</view>
                  <view class="itemmiddlebottom">{{item.receive_name}} {{item.mobile}}</view>
                   <view class="itemmiddlebottom">{{item.address}}</view>
                </view>

                <view class="delimg">
                  <view class="itemright edigtupian" catchtap='editkehu' data-id="{{item.id}}">
                    <image src="/img/editaddress.png"></image>
                  </view>

                  <view class="itemright" catchtap='delkehu' data-id="{{item.id}}">
                    <image src="/img/delshan.png"></image>
                  </view>
                </view>

              </view>
            </view>

          </view>
        </block>
      </view>
    </scroll-view>
  </view>
  <view class='city_right'>
    <text class='letter_item' wx:for='{{letter}}' wx:key='this' catchtap='letterTap' data-item='{{item}}'>{{item}}</text>
  </view>
</view>