order.wxml 9.5 KB
<view class="content">
	<!-- 地址信息 -->
	<view class="address_box" wx:if="{{info.address.address}}" bindtap="add_address">
		<view class="name"> {{info.address.name}} 
			<text>{{info.address.mobile}}</text>
		</view>
		<view class="address">
			<image class="tips_img" src="/images/icon_54.png" />
			<view>{{info.address.city_name}} {{info.address.county_name}}{{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" wx:if="{{type==6}}">
		<!-- <shop_item list="{{info.goods}}" type="{{type}}" /> -->
		<view class="item" wx:for="{{info.goods}}" wx:key="index">
			<view class="top" bindtap="lookdetail" data-id="{{item.goods_id}}">
				<image class="check_box" src="{{item.check_type?'/images/check@.png':'/images/check.png'}}"
					wx:if="{{type == 1 || type == 2}}" catchtap="check_item" data-check_type="{{item.check_type}}"
					data-index="{{index}}" />
				<view class="content  contentk{{type==3?'active':''}}">
					<image class="show_img" src="{{type == 3?item.image:type==4?item.image:type==2?item.image:item.image}}"
						mode="aspectFill" bindtap="{{type == 1 || type == 2?'look_detail':''}}" data-id="{{item.product_id}}" />
					<view class="right {{type==3||type==1||type==4?'ractive':''}}">
						<!-- <view class="word">{{type == 3||type==1||type==4?item.name:type==2?item.product_name:item.product.name}}</view> -->
						<view class="word">{{item.name}}</view>
						<view class="guige">
							<view class="guigeitem" wx:for="{{item.spec}}" wx:key="index">{{item.spec_name}}:{{item.spec_value}}
							</view>
						</view>
						<view class="info">
							<view class="jifen">
								<text>{{item.goods_spec.goods_price}}</text>
								<text style="margin-left: 10rpx;color:#ccc;font-size: 28rpx;">X{{item.number}}</text>
							</view>

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

		</view>
		<view class='mask_two' bindtap="selectcoupon" data-id="2" wx:if="{{type==6}}">
		<view>{{coupon!=''?'优惠金额'+info.user_ticket_price1:' 选择优惠券'}}</view>
		<image src="/images/icon_41.png" class="youjiantouk" />
	</view>
	<view class='mask_two' bindtap="selectcoupon" data-id="1"  wx:if="{{type==6}}">
		<view>{{couponone!=''?'优惠金额'+info.user_ticket_price2:' 选择优惠券'}} </view>
		<image src="/images/icon_41.png" class="youjiantouk" />
	</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}}' data-price2="{{item.price2}}">
					<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' wx:if="{{item.price!=null}}">{{item.price2}}积分</view>
							<view class='re_re_score' wx:else>{{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.freight}}元</view>
			</view>
		</view>
	</view>
	<view class="content" wx:else>
		<shop_item list="{{info.products}}" type="{{type}}" />
    <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}}' data-price2="{{item.price2}}">
          <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'wx:if="{{item.price!=null}}">{{item.price2}}积分</view>
               <view class='re_re_score' wx:else>{{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/100}}积分</view>
      </view>
    </view>
	</view>



	<!-- <view class='mask_two' bindtap="lingqucoupon">
		<view>领取优惠券</view>
		<image src="/images/icon_41.png" class="youjiantouk" />
	</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> -->
		<text wx:if="{{type==6}}">{{info.real_total}}元</text>
		<text wx:else>{{choudan_money?(choudan_money + info.total + info.yunfei)/100: (info.total + info.yunfei)/100}}积分</text>
	</view>
	<view class="num">共{{type==6?totalnum: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">
			<text wx:if="{{type==6}}">{{info.real_total}}元</text>
			<text wx:else>{{choudan_money?(choudan_money + info.total + info.yunfei)/100: (info.total + info.yunfei)/100}}积分</text>
		</view>
		<view class="money_item">
			<text>商品价格</text>
			<text wx:if="{{type==6}}">{{info.sum_goods_total}}元</text>
			<text wx:else>{{info.total/100}}积分</text>
		</view>
		<view class="money_item">
			<text>邮费</text>
			<text wx:if="{{type==6}}">{{info.freight}}元</text>
			<text wx:else>{{info.yunfei/100}}积分</text>
		</view>
		<view class="money_item" wx:if='{{type==6}}'>
			<text>优惠</text>
			<text>{{info.user_ticket_price1+info.user_ticket_price2}}元</text>
		</view>
		<view class="cover_submit" catchtap="submit">确认支付</view>
		<image src="/images/close.png" class="cover_close" catchtap="show_cover" />
	</view>
</view>