order.wxml 2.54 KB
<!--packageActivity/pages/order/order.wxml-->
<view class="visitor-box">
  <view class="img-bg">
    <image webp src="{{IMGURL}}visitor_bg.png?v={{img_version}}"></image>
  </view>
  <view class="content">
    <view class="title">
      <view>总订单<text> · {{allNum}}</text></view>
      <view>今日订单<text> · {{todayNum}}</text></view>
    </view>
    <view class="list-box">
      <block wx:for="{{list}}" wx:key="index">
        <view class="list-item" style="background-image: {{statusBackgroundColor[item.orderStatus]}};">
          <view class="top">
            <view class="top-left">
              <image webp src="{{item.customerImageUrl ? item.customerImageUrl : IMGURL+'default_avatar.png'}}"></image>
              <view class="name-mobile">
                <view class="name">
                  {{item.customerNickName || ""}}
                </view>
                <view class="mobile">{{item.customerPhone || ""}}</view>
              </view>
            </view>
            <view class="top-right">
              <image wx:if="{{item.customerPhone}}" webp src="{{IMGURL}}activity_order_phone_icon.png" bind:tap="callPhone" data-mobile="{{item.customerPhone}}"></image>
              <image wx:if="{{item.userWechartNo}}" webp src="{{IMGURL}}activity_order_wechart_icon.png" bind:tap="copyWechart" data-wechartno="{{item.userWechartNo}}"></image>
            </view>
          </view>
          <view class="bottom">
            <image webp src="{{item.activityImg}}"></image>
            <view class="activity">
              <view class="name">{{item.activityName}} <text>¥{{item.orderPrice}}</text></view>
              <view class="activity-type">{{item.activityName+'-'+activityTypList[0]}}</view>
              <view class="time">下单时间<text>{{item.time}}</text></view>
            </view>
          </view>
          <view class="order-status">
            <image webp src="{{IMGURL}}order_status_{{item.orderStatus}}.png"></image>
            <text style="color: {{statusColor[item.orderStatus]}};">{{orderStatusImgList[item.orderStatus]}}</text>
          </view>
          <view wx:if="{{item.orderStatus == 7}}" class="btn-box"><view class="btn" bind:tap="showPopup" data-item="{{item}}">预约安装</view></view>
        </view>
      </block>
    </view>
    <view class="no-data" wx:if="{{!list.length}}">
      <image webp src="{{IMGURL}}no_order_data.png"></image>
      <view class="text">暂无订单</view>
    </view>
  </view>
</view>
<!-- 预约安装弹窗 -->
<install-popup show="{{showPopup}}" data="{{installItem}}"></install-popup>