orderdetail.wxml 5.3 KB
<view class="content">
  <!-- 地址信息 -->
  <view class="address_box" bindtap="add_address">
    <view class="name">{{info.address.name}}
      <text>{{info.address.tel}}</text>
    </view>
    <view class="address">
      <image class="tips_img" src="/images/icon_54.png" />
      <view>{{info.address.area}}{{info.address.address}}</view>
    </view>
    <image src="/images/icon_41.png" class="youjiantou" />
  </view>

  <!-- <view class="on_address" wx:else bindtap="add_address">
    <image src="/images/icon_46.png" />
    <view>暂无收货地址,
      <text>去添加</text>
    </view>
  </view> -->
  <view class="line">
    <image src="/images/line.png" />
  </view>

  <view class="content">
     <view class="list">
    <view class="listitem flex" bindtap="newdetail" wx:for="{{info.products}}" wx:key="no" data-id="{{item.id}}">
      <view class="listright">
        <image src="{{item.images[0]}}" mode="widthFix "></image>
      </view>
      <view class="listleft ">
        <view class="commontwo ">{{item.name}} <text class="sold">x{{item.sold}}</text></view>
        <view class="leftbottom flexone ">
          <view class="botleft ">¥{{item.price2==null?item.price:item.price2}}</view>
          
        </view>
      </view>
      
    </view>

  </view>
    <view class='recommend' wx:if="{{info.coudanProduct.length>0}}">
      <view class='re_one'>*您支付后还剩{{info.choudan}}积分为您推荐了以下凑单产品!</view>
      <scroll-view class='re_goods' scroll-x scroll-left="0">
        <view class='re_item' wx:for='{{info.coudanProduct}}' wx:key='index' bindtap='chooseGoods' data-index="{{index}}" data-id="{{item.id}}" data-num="{{item.num?item.num:1}}" data-check='{{item.check}}' data-price='{{item.price}}'>
          <view class='re_re_item {{item.check?"active":""}}'>
            <view class='triangle' wx:if='{{item.check}}'>
              <image src='/images/bingo.png' class='bingo'></image>
            </view>
            <view class='re_re_img'>
              <image src='{{item.images[0]}}' mode='aspectFill'></image>
            </view>
            <view class='re_bottom'>
              <view class='re_re_name'>{{item.name}}</view>
              <view class='re_re_score'>{{item.price}}积分</view>
            </view>

            <!-- 数量操作 -->
            <view class="num_box">
              <image class="num_btn" src="/images/reduce.png" data-check='{{item.check}}' data-index="{{index}}" data-id="{{item.id}}" data-type="0" data-num="{{item.num?item.num:1}}" catchtap="num_change" />
              <text>{{item.num?item.num:1}}</text>
              <image class="num_btn" src="/images/add.png" data-check='{{item.check}}' data-index="{{index}}" data-id="{{item.id}}" data-type="1" data-num="{{item.num?item.num:1}}" catchtap="num_change" />
            </view>
          </view>
        </view>
      </scroll-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.date}}</view>
      </view>

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

<!-- <view class="footer">
  <view class="submit" catchtap="show_cover">提交</view>
  <view class="jifen"> 合计:
    <text>{{choudan_money?choudan_money + info.total + info.yunfei*100/100: info.total + info.yunfei*100/100}}积分</text>
  </view>
  <view class="num">共{{info.totalnum}}件</view>
</view> -->
<concat/>

<!-- 支付成功弹框开始 -->
<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">{{choudan_money?choudan_money + info.total + info.yunfei*100/100: info.total + info.yunfei*100/100}}积分</view>
    <view class="money_item">
      <text>商品积分</text>
      <text>{{choudan_money?choudan_money + info.total:info.total}}积分</text>
    </view>
    <view class="money_item">
      <text>邮费</text>
      <text>{{info.yunfei}}积分</text>
    </view>
    <view class="cover_submit" catchtap="submit">确认支付</view>
    <image src="/images/close.png" class="cover_close" catchtap="show_cover" />
  </view>
</view>