<wxs module="filters" src="../../../utils/filter.wxs"></wxs>
<form bindsubmit="submitForm">
    <view class="container">

        <!---------------------购物车进来，有可能多单---------------------->
        <block wx:if="{{is_cart}}">
            <view wx:for="{{cartlist}}" wx:for-index="pidx">
                <view class="use-item bfff bdr_t-14 mgt20">
                    <image class="dp" src='{{imgUrl}}/miniapp/images/goodscategory/new_store.png'></image>
                    <!-- <view>门店：{{item.pname}}</view> -->
                    <view>{{item.pname}}</view>
                </view>
                <view class="order-detail"  bindtap="go_cart_view"  data-idx="{{idx}}" data-pidx="{{pidx}}" wx:for="{{item.goods}}" wx:for-index="idx" wx:for-item="items">
                    <!----商品图片----->
                    <view class="goods-img" style="position: relative">
                        <image wx:if="{{items.is_gift}}" src="{{imgUrl}}/miniapp/images/giveaway.png" class="gift_image"></image>
                        <image class="wh100 bdr14" src="{{items.img_url}}" binderror='cart_set_err' data-err='cartlist[{{pidx}}].goods[{{idx}}].img_url'></image>
                    </view>
                    <!----商品名称规格---->
                    <navigator class="order-cont">
                        <view class="goods-name ellipsis-2">{{items.service_name}}</view>
                        <!-----商品名称规格------>
                        <view class="order-num flex-space-between">
                            <view class="co-red">￥<text class="fs36">{{filters.toFix(items.money,2)}}</text></view>
                            <view class="goods-num">x{{items.goods_num}}</view>
                        </view>
                    </navigator>
                </view>
            </view>
        </block>

        <!------立即购买-------->
        <block wx:else>
                <view class="use-item bfff bdr_t-14 mgt20">
                      <image class="dp" src='{{imgUrl}}/miniapp/images/goodscategory/new_store.png'> </image> <view>{{bn_pickname}}</view></view>
                <view class="order-detail" bindtap="go_view">
                      <view class="goods-img">
                          <image class="wh100 bdr14" src="{{bn_goods.original_img}}" 
                            binderror='cart_set_err' data-err="bn_goods.original_img"></image>
                      </view>
                      <navigator class="order-cont">
                          <view class="goods-name ellipsis-2">{{bn_goods.serviceName}}</view>
                             <!-- 商品属性 -->
                             <!-- <view class="flex-vertical fs28 color-gray n_guige"> -->
                                 <!-- <view class="goods-color"><text>{{filters.show_gui_ge(bn_goods.goods_spec,bn_goods.goods_color)}}</text></view> -->
							 <!-- </view> -->
                             <!-----商品名称规格------>
							 <view class="order-num flex-space-between">
								<view class="co-red">￥<text class="fs36">{{filters.toFix(bn_goods.shop_price,2)}}</text></view>
								<view class="goods-num">x{{bn_goods.buynum}}</view>
							 </view>
                      </navigator>                 
                </view>					
	 </block>





     
	 <view class="information bdr14">				
		<view class="item">
			<view>服务卡金额</view>
			<view class="co-red">￥ {{formData.all_price}}元</view>
		</view>
	</view>
    </view>
     <view class="btn-wrap">
			<view class="pay-amount">
				<view class="payable">应付金额：<text class="co-red">￥{{formData.order_amount}}</text></view>		
			</view>
			<button class="tips-btn" formType="submit" id="submitOrder">提交订单</button>
     </view>
</form>
<warn id="warn"></warn>
