affirm-order.wxml 3.9 KB
<!--pages/affirm-order/affirm-order.wxml-->
<view class="container">
  <!-- 地址 -->
  <view class="address" catchtap="selectAdd">
    <view class="userName">{{userData.name}}</view>
    <view class="userTell">{{userData.phone}}</view>
    <view class="default" wx:if="{{userData.delFlag==1}}">默认</view>
    <view class="userAddress">{{userData.area}}{{userData.address}}</view>
    <view class="arrow">
      <image src="/images/04-01/arrow.png"></image>
    </view>
  </view>

  
   <!-- 配送时间 -->
   <view class="timeBox">
    <view class="calendar ">
      <image src="/images/04-01/rili.png"></image>
    </view>
    <!-- <view class="timeTitle">配送时间:</view>
    <view class="selectTime">{{}}</view> -->
    <view class="section">
      <picker mode="date" value="{{date}}" start="{{startTime}}" bindchange="bindDateChange">
        <view class="picker">
          配送时间: {{date}}
        </view>
      </picker>
    </view>
  </view>
  <!-- 商品列表 -->
  <view class="cartList">
    <view class="cartListItem" wx:for="{{cartList}}">
      <!-- <view class="itemLeft">
        <view data-type="{{checkType}}" bindtap="checkEvent" data-index="{{index}}">
          <image src="/images/04-01/uncheck.png" wx:if="{{checkType==1}}"></image>
          <image src="/images/04-01/check.png" wx:if="{{checkType==0}}"></image>
        </view>
      </view> -->
      <view class="itemRight">
        <view class="productPic">
          <image src="{{goodsData.goodsImg}}"></image>
        </view>
        <view style="width:381rpx">
          <view class="productName">{{goodsData.goodsName}}</view>
          <view class="productDetail">{{goodsData.goodsAttributes}}</view>
          <view class="productPrice">
            <view class="price">¥{{goodsData.goodsPrice}}</view>
            <view class="num">
              <view class="reduce" catchtap="dec">
                <image src="/images/04-01/reduce.png"></image>
              </view>
              <view class="numContent">{{count}}</view>
              <view class="add" catchtap="add">
                <image src="/images/04-01/add.png"></image>
              </view>
            </view>
          </view>
        </view>
      </view>
    </view>
  </view>
  <!-- 买家留言 -->
  <view class="messageBox">
    <view class="messageTitle">买家留言:</view>
    <textarea name="" id="" cols="30" rows="10" value="{{content}}" placeholder="留言建议提前协商50字之内" maxlength="{{maxlength}}"
      bindinput="userInput"></textarea>
    <view class="numLength">{{length}}/50</view>
  </view>
  <!-- 优惠券 -->
  <view class="discountCard" wx:if="{{goodsData.type==2}}">
    <view>优惠券</view>
    <view class="discountBox" bindtap="goCardList">
      <!-- <view class="discountText" wx:if="{{type==0}}">无门槛使用{{}}</view>
      <view class="discountText" wx:if="{{type==2}}"></view>
      <view class="discountText" wx:if="{{type==1}}">满{{amount}}使用</view> -->
      <view class="discountText" wx:if="{{type==1}}">{{discountText}}</view>
      <view class="arrowRight">
        <image src="/images/04-01/arrow.png"></image>
      </view>
    </view>
  </view>
  <!-- 商品总额 -->
  <view class="allMoney">
    <view class="prodeuctMoney moneyPublic">
      <view class="txt">商品总额</view>
      <view class="money txt">¥{{goodsData.priceTotal}}</view>
    </view>
    <view class="carriage moneyPublic">
      <view class="txt">配送费</view>
      <view class="money txt">¥{{goodsData.free}}</view>
    </view>
  </view>
  <!-- 立即购买 -->
  <view class="bottomBox">
    <view class="bottomLeft">
      <view class="text">合计:</view>
      <view class="priceBox">
        <view class="price">¥</view>
        <view>{{goodsData.payment}}</view>
      </view>
    </view>
    <view class="buyBtn" bindtap="creatOrder" wx:if="{{goodsData.type==2}}">立即购买</view>
    <view class="buyBtn" bindtap="change" wx:if="{{goodsData.type==1}}">立即兑换</view>
  </view>
</view>