order_detail.wxml 3.9 KB
<view class="content">
  <!-- 地址信息 -->
  <view class="address_box" wx:if="{{info.address1}}" bindtap="{{type==2?'add_address':''}}">
    <view class="name">{{info.address1.name}}  
      <text>{{info.address1.tel}}</text>
    </view>
    <view class="address">
      <image class="tips_img" src="/images/icon_54.png" />
      <view>{{info.address1.area}}{{info.address1.address}}</view>
    </view>
    <image src="/images/icon_41.png" class="youjiantou" />
  </view>
  <view class="line">
    <image src="/images/line.png" />
  </view>

  <view class="content">
 
    <view class="zitem" wx:for="{{info.orderitem}}" wx:key="index">
      <view class="top">
        <view class="zcontent active}}">
          <image class="show_img" src="{{item.product_image}}" mode="aspectFill" />
          <view class="right ractive">
            <view class="word">{{item.product_name}}</view>
            <view class="info">
              <view class="jifen">
                <view class="name">积分</view>
                <text>{{item.product_money}}</text>
                <text style="margin-left: 10rpx;color:#ccc;font-size: 28rpx;">X{{item.num}}</text>
              </view>
            </view>
          </view>
        </view>
      </view>

      <view class="info_box" wx:if="{{type == 3}}">
        <view class="f_item">
          <view class="shop">
            商品积分
            <text>{{item.price*100*item.num/100}}积分</text>
          </view>
        </view>
      </view>
    </view>

    <view class='three'>
      <view class='mask_two'>
        <view>订单编号</view>
        <view class='score'>{{info.order_odd}}</view>
      </view>

      <view class='mask_two'>
        <view>创建时间</view>
        <view class='score'>{{info.createtime}}</view>
      </view>
       <view class='mask_two'>
        <view>订单状态</view>
        <view class='score'>{{info.status_text}}</view>
      </view>

      <view class='mask_two'>
        <view>邮费</view>
        <view class='score' style="color:rgba(242, 0, 0, 1)">{{info.youfei}}积分</view>
      </view>

    </view>
  </view>

</view>

<view class="footer" wx:if="{{type==2}}">
  <view class="submit" catchtap="show_cover">提交</view>
  <view class="jifen"> 合计:
    <text>{{info.money}}积分</text>
  </view>
  <view class="num">共{{info.total_num}}件</view>
</view>


<!-- 支付成功弹框开始 -->
<view class='success_mask' wx:if='{{success}}'>
  <view class='success_diceng'>
    <view class='success_one'>
      <image src='/images/success.png'></image>
    </view>
    <view class='success_font'>支付成功</view>
    <navigator class='success_confirm_btn' open-type="navigateBack">确定</navigator>
  </view>
</view>
<!-- 支付成功弹框结束 -->
<!-- 支付失败弹框开始 -->
<view class='success_mask' wx:if='{{fail}}'>
  <view class='success_diceng'>
    <view class='success_one'>
      <image src='/images/icon_55.png'></image>
    </view>
    <view class='success_font'>支付失败</view>
    <!-- status为1的时候才能支付 -->
    <view class='fail_font' wx:if="{{info.status == 0}}">不在活动时间,您不能支付</view>
    <view class='fail_font' wx:else>所需积分{{order.xy}},积分余额{{order.syjf}}</view>
    <navigator class='success_confirm_btn' open-type="navigateBack">取消支付</navigator>
  </view>
</view>
<!-- 支付失败弹框结束 -->





<view class="cover_box" wx:if="{{cover_type}}">
  <view class="cover_order">
    <view class="all_money">{{info.total_price + info.youfei*100/100}}积分</view>
    <view class="money_item">
      <text>商品积分</text>
      <text>{{info.total_price}}积分</text>
    </view>
    <view class="money_item">
      <text>邮费</text>
      <text>{{info.youfei}}积分</text>
    </view>
    <view class="cover_submit" catchtap="order_pay" data-order="{{info.order_odd}}">确认支付</view>
    <image src="/images/close.png" class="cover_close" catchtap="show_cover" />
  </view>
</view>