<view class="borderBottom">
	<block wx:if="{{isUser}}">
		<view class="order-address" wx:if="{{platIndex == 0}}">
			<block wx:if="{{address != ''}}">
				<navigator url="../address/address?type=selectAddress" hover-class="none">
					<image class="address-icon" src="/static/icon/address_icon.png" mode="widthFix"></image>
					<image class="arrows-right" src="/static/icon/arrow_left.png" mode="widthFix"></image>
					<view class="order-address-name nowrap">
						收货人：{{address.name}}<text>{{address.mobile}}</text>
					</view>
					<view class="order-address-text">收货地址：{{address.all_address}}</view>
				</navigator>
			</block>
			<block wx:else>
				<view class="order-add-address">
					<navigator url="/pages/address/address?type=selectAddress">
						<image class="order-add-address-img" src="/static/icon/add.png"></image>添加地址
					</navigator>
				</view>
			</block>
			<image class="order-address-back" src="/static/img/address_back.png" mode="widthFix"></image>
		</view>
	</block>

	<!-- tab选项 -->
	<view class="order-tab">
		<view wx:for="{{indexArr}}" wx:key="indexArr" class="order-tab-item {{indexId == item.id ? 'active':''}}" data-id="{{item.id}}" bindtap="orderTab">
			{{item.classtitle}}
		</view>
	</view>

	<!-- 提示文字 -->
	<view class="goods-tips">
		<image src="/static/img/gift_box.png"></image>
		平安好车主超级福利专享
	</view>

	<!-- 活动商品 -->
	<view class="order-goods">
		<view class="goods-goods-li">
			<image class="goods-img" src="{{params[paramsIndex].cover}}" mode="aspectFill" bindtap="clickImg" data-img="{{params[paramsIndex].cover}}"></image>
			<view class="goods-body">
				<view class="nowrap goods-name">{{goodCont.title}}</view>
				<view class="nowrap goods-text">{{goodCont.subtitle}}</view>
				<view class="goods-cont">
					<view class="goods-price"><text>￥</text>{{params[paramsIndex].price}}</view>
					<view class="good-number">
						<view class="good-number-btn" bindtap="goodsNumber" data-type="remove">-</view>
						<input class="good-number-input" disabled value="{{params[paramsIndex].number}}" type="number" bindblur="goodsNumberInput"></input>
						<view class="good-number-btn" bindtap="goodsNumber" data-type="plus">+</view>
					</view>
				</view>
			</view>
		</view>
	</view>

	<!-- 券赠送 -->
	<block wx:if="{{params[paramsIndex].have_coupon != 0}}">
		<view class="uni-border-bottom goodsCoupon" wx:for="{{params[paramsIndex].coupon}}" wx:key="coupon">
			<view class="goodsCoupon-left">
				<image class="goodsCoupon-img" mode="scaleToFill" src="/static/img/activity_coupon.png"></image>
				<view class="goodsCoupon-number">
					<text>￥</text>{{item.amount}}
				</view>
				<view class="goodsCoupon-btn">
					比优特电子券
				</view>
				<view class="goodsCoupon-tips"><text>赠</text></view>
			</view>
			<view class="goodsCoupon-right">
				<view class="goodsCoupon-name">{{item.title}}</view>
				<view class="goodsCoupon-sheet">
					<view>卡数(张)</view>
					<text>x</text> {{item.number}}
				</view>
			</view>
		</view>
	</block>

	<!-- 礼盒 -->
	<block wx:if="{{params[paramsIndex].have_gift != 0}}">
		<view class="goodsCoupon" wx:for="{{params[paramsIndex].gift}}" wx:key="gift">
			<view class="goodsCoupon-left goodsCoupon-box">
				<image src="{{item.cover}}" mode="scaleToFill" class="goodsBox-img" bindtap="clickImg" data-img="{{item.cover}}"></image>
				<view class="goodsBox-tips"><text>赠</text></view>
			</view>
			<view class="goodsCoupon-right goodsCoupon-box-right">
				<view class="goodsCoupon-name goodsCoupon-name-box">{{item.title}}</view>
				<view class="goodsCoupon-text" wx:if="{{item.subtitle != null}}">{{item.subtitle}}</view>
				<view class="goodsCoupon-cost">原价：{{item.amount}}元</view>
				<view class="goodsCoupon-sheet">
					<view class="goodsCoupon-price">活动：0.00元</view>
					<text>x</text> {{item.number}}
				</view>
			</view>
		</view>
	</block>

	<!-- 小计 -->
	<view class="uni-border-top goodsLabel">
		小计<text>￥{{params[paramsIndex].amount}}</text>
	</view>

	<view class="rightsLabel">
		<view class="rightsLabel-left">请选择提交方式</view>
		<view class="rightsLabel-right rightsLabel-range">
			<picker range="{{platformCp}}" range-key="name" value="{{platIndex}}" bindchange="platBind">
				<view class="tabs-text">
					{{platformCp[platIndex].name}}
				</view>
			</picker>
			<image class="rightsLabel-row" src="/static/icon/rightsArrow.png"></image>
		</view>
	</view>

	<view class="rightsLabel" wx:if="{{platIndex == 0}}">
		<view class="rightsLabel-left">快递</view>
		<view class="rightsLabel-free">
			免运费 包邮
		</view>
	</view>
</view>

<view class="order-footer" wx:if="{{isUser}}">
	<view class="order-footer-total nowrap">
		应付金额：
		<text class="order-footer-total-price">￥{{params[paramsIndex].amount}}</text>
	</view>
	<button class="order-footer-btn" size="mini" bindtap="submitOrder">微信支付</button>
</view>

<view class="order-login-footer" wx:else bindtap="loginGo">
	请先微信授权登录
</view>