cart2_inte.wxml 7.92 KB
<wxs module="filter" src="c_filter.wxs"></wxs>
<wxs src="filter.wxs" module="util"></wxs>
<wxs module="filters" src="../../../utils/filter.wxs"></wxs>

<form bindsubmit="submitForm">
	<view class="container">
		<!--要进行判断地址是否显示---->	
		<view bindtap="enterAddressPage" class="user-mes mgt20" hidden='{{(bn_exp_type==1 && is_b_now==1) || (is_all_zt==1 && is_b_now==0)}}'>
			<!---默认地址显示------>
			<block wx:if="{{user_addr!=null}}">

				<view class="user-contact">
					<text>收货人:</text>{{user_addr.consignee}}{{'   '}}{{user_addr.mobile}}</view>
				<view class="location">
					<view class="address">{{user_addr.more_address}}{{' '}}{{user_addr.address}}</view>
					<view class="pos-icon">
						<image class="wh100 bdr14" src="{{imgUrl}}/miniapp/images/goodscategory/new_position.png"></image>
					</view>
				</view>
				<view class="update-logistics">
					<!-- <image class="arrow-rigth" src="{{imgUrl}}/miniapp/images/new_position.png"></image> -->
					<view class="xc-right"></view>
				</view>
			</block>
			<!---先增地址------>
			<block wx:else>
				<view class="add_new">
					<image class="addr_jia" src="{{imgUrl}}/miniapp/images/jia.png"></image>添加地址
				</view>
			</block>
			<!-- <view class="border-img">
				<image class="wh100" src="{{imgUrl}}/miniapp/images/order/new_dividing_line.png"></image>
			</view> -->
		</view>

		

		<!-- ----立即购买------ -->
		<!-- <view class="xc-border xc-border"></view> -->
		<block wx:if="{{is_b_now==1}}">
			<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>门店:{{bn_pickname}}</view> -->
			</view>
			<view class="order-detail">
				<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" url="/pages/goods/goodsInfo/goodsInfo?goods_id={{bn_goods.goods_id}}">
					<view class="goods-name ellipsis-2">{{bn_goods.goods_name}}</view>
					<!-- 商品属性 -->
					<view class="flex-vertical fs28 xc-ash color-gray n_guige">
						<view class="goods-color">
							<block><text>{{filters.show_gui_ge(bn_goods.goods_spec,bn_goods.goods_color)}}</text></block>
						</view>
					</view>

					<!-----商品名称规格------>
					<view class="order-num  flex-space-between">
						<view class="co-red">
						 	<text wx:if="{{bn_goods.integral}}" class="fs36">{{bn_goods.integral}}积分</text>
							<text wx:if="{{bn_goods.integral && bn_goods.shop_price}}">+</text>
							<block wx:if="{{bn_goods.shop_price}}"> ¥<text class="fs36">{{filters.toFix(bn_goods.shop_price,2)}}</text></block>						
				        </view>
						<view class="goods-num">x{{bn_goods.buynum}}</view>
					</view>
				</navigator>

			</view>
			
			<view class="set-mes bdr_b-14">
				<view wx:if="{{order.store_prom}}">
					<icon color="#f23030" size="16" type="info"></icon>{{order.store_prom}}
				</view>

				<view class="xc-coupon-frame flex-center" data-bn="1" bindtap="open_coupon_list" data-pickid="{{bn_pick}}" wx:if="{{(selected_quan_list && selected_quan_list.length>0) || get_by_quan_list!=null}}">
					<view class="work-frame flex-space-between">
						<view class="work">
							优惠券 <text class="quan_num_show">{{(selected_quan_list?selected_quan_list.length:0)+ (get_by_quan_list?get_by_quan_list.length:0)}}张可用</text>
						</view>
						<view class="xc-right-frame">
							<text wx:if="{{using_quan[bn_pick].is_nouse}}">不使用</text>
							<block wx:else>
								<text wx:if="{{using_quan[bn_pick].money}}">¥{{using_quan[bn_pick].money}}元优惠券</text>
								<text wx:if="{{using_quan[bn_pick].isby}}">包邮券</text>
							</block>
							<view class="xc-right"></view>
						</view>
					</view>
				</view>

				<view class="use-item flex-space-between">
					<view class="flex">
						<view bindtap='setexptype' data-t='1' data-txt='cartlist[{{pidx}}].exp_type' style="padding-right:26rpx;display:{{bn_t_exp_t==2?'none':'flex;align-items:center;'}};">
							<icon color="{{bn_exp_type==1?'red':'gray'}}" size="16" type="success"></icon>
							<view class="yu_er">门店自提</view>
						</view>
						<view bindtap='setexptype' data-t='0' data-txt='cartlist[{{pidx}}].exp_type' style="display:{{bn_t_exp_t==1?'none':'flex;align-items:center;'}};">
							<icon color="{{bn_exp_type==0?'red':'gray'}}" size="16" type="success"></icon>
							<view class="yu_er">快递邮寄</view>
						</view>
					</view>
					<block wx:if="{{bn_exp_type==0}}">
						<view class="flex-vertical" bindtap="show_wu_arr" data-txt='index'>
							<view class="logistics-name">{{wu_arr[index].name}}</view>
							<view class="xc-right"></view>
						</view>
					</block>
				</view>
			</view>
			
			<view class="coupon-mes flex-vertical">
				<view>留言</view>
				<view class="leave-word">
					<input placeholder-class="fs28" placeholder='给商家留言,最多100字' bindinput="keyUpChangeNum" disabled="{{disabled}}"
					 class="word-box" maxlength="100" name="user_note"></input>
				</view>
			</view>

			<!-- ---使用余额---- -->
			<view class="set-mes bdr_t-14" wx:if="{{yuer>0 && formData.all_price>0}}">
				<view class="use-item" bindtap='set_bn_useyuer'>
					<icon color="{{bn_use_money?'red':'gray'}}" size="16" type="success"></icon>
					<view class="yu_er">使用余额 :¥{{yuer}} </view>
				</view>
			</view>
			
		</block>

		<view class="information bdr14">
			<view class="item" wx:if="{{formData.all_price>0}}">
				<view>商品金额</view>
				<view class="co-red">¥ {{formData.all_price}}元</view>
			</view>
			<view class="item" wx:if="{{formData.integral>0}}">
				<view>可用积分{{integral_can}}</view>
				<view class="co-red">{{formData.integral}}积分</view>
			</view>			
			<view class="item" wx:if="{{formData.shipping_price>0}}">
				<view>配送费用</view>
				<view class="co-red">¥ {{formData.shipping_price}}元</view>
			</view>
			<view class="item" wx:if="{{formData.user_money>0}}">
				<view>使用余额</view>
				<view class="co-red">- ¥ {{formData.user_money}}元</view>
			</view>
		</view>
	</view>

	<view class="btn-wrap shadow-1" wx:if="{{show_submit}}">
		<view class="pay-amount">
			<view class="payable">应付金额:<text class="co-red">¥{{formData.order_amount}}</text></view>
			<view class="payable">应付积分:<text class="co-red">{{formData.integral}}积分</text></view>
		</view>
		<button  class="tips-btn" formType="submit" id="submitOrder">提交订单</button>
	</view>
</form>

<!----弹起选择物流名的列表---->
<view wx:if='{{open_express==1}}'>
	<view class="cover-layer flex-center " bindtap='close_express'>
	</view>

	<view class="cx-popup radius {{open_express==1?'up' : 'down'}}">
		<view class="tops flex">
			<view class="top-content fs32">
				<view>选择物流名字</view>
			</view>
			<view class="close-frame" bindtap='close_express'>
				<view class="xc-close-express">×</view>
			</view>
		</view>
		<view class="express_list">
			<view wx:for="{{wu_arr}}" wx:for-item="express_list" wx:for-index="idx">
				<view class="express_list_frame" bindtap="click_express_name" data-shippingcode="{{express_list.shipping_code}}"
				 data-name="{{express_list.name}}" data-idxe="{{idx}}">

					<block wx:if="{{is_express==idx}}">
						<view class="circle white xc-hook fs20 red-b"><text>Γ</text></view>
					</block>
					<block wx:else>
						<view class="circle  xc-hooks"></view>
					</block>
					<view class="fs30">{{express_list.name}}</view>

				</view>
			</view>
		</view>
		<view class="flex click-buttem">
			<view class="xc-determine flex-center" bindtap="determine_expres">
				<view class="flex-vertical  t-c">确定</view>
			</view>
			<view class="xc-confirms flex-center" bindtap="select_default_logistics">
				<view class="flex-vertical  t-c">设为默认</view>
			</view>
		</view>

	</view>
</view>

<warn id="warn"></warn>