You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

147 lines
8.5 KiB

<!--pages/order/post/index.wxml-->
<title title="订单填写"></title>
<view class="box topbox" wx:for="{{product}}" wx:key="index">
<!-- 选择配送方式 -->
<view class="sendwayArea" wx:if="{{from!='cart'}}">
<view class="sendway-item {{item.user_select_type==0?'active':''}}" wx:if="{{item.sku.use_type==0||item.sku.use_type==3}}"
bind:tap="changeUserPost" data-item="{{item}}" data-value="{{0}}" data-index="{{index}}">邮寄</view>
<view class="sendway-item {{item.user_select_type==1?'active':''}}" wx:if="{{item.sku.use_type==1||item.sku.use_type==3}}"
bind:tap="changeUserPost" data-item="{{item}}" data-value="{{1}}" data-index="{{index}}">自提</view>
</view>
<address class="{{item.user_select_type==0?'':'hidden'}}" bind:setAddress="setAddress" wx:if="{{index==0}}"></address>
<view class="pickup-container" wx:if="{{item.user_select_type==1}}">
<view bind:tap="changePickup" data-index="{{index}}" data-item="{{item}}" class="box-title">
<view style="flex-shrink:0" >自提点</view>
<view class="flex-1 textOver">
<text wx:if="{{!item.pickupAddress}}" style="color: #666666;">选择提货地址</text>
<text wx:else>{{item.pickupAddress.title}}</text>
</view>
<image lazy-load class="cha"
src="https://static.ticket.sz-trip.com/uploads/20251028/7b4c134eef979fb0540205d18e168ae1.png" mode=""/>
</view>
<view class="box-title">
<view style="flex-shrink:0" >预留手机号</view>
<view class="flex-1">
<input bindinput="phoneInput" type="number" value="{{item.phone}}" data-item="{{item}}"
data-index="{{index}}" class="weui-input" placeholder="请输入手机号" />
</view>
<image lazy-load class="cha" bindtap="delTel" wx:if="{{item.phone}}" data-index="{{index}}"
src="https://static.ticket.sz-trip.com/jundaosuzhou/images/scenicNew/cha.png" mode=""/>
<view class="cha" v-else></view>
</view>
</view>
<view class="sku-info-container">
<view class="warning-tip" wx:if="{{flag=='mix'||(from=='cart'&&coupon)}}">
<image src="https://static.ticket.sz-trip.com/uploads/20251210/9cad73fff1eaf21f66aa34da4951b2fb.png"></image>
购买须知:使用优惠券的组合订单均不支持部分退款
</view>
<view class="header-title textOver" wx:if="{{from=='cart'}}">
供应商:{{item.product.supplier_name}}
</view>
<view class="skuinfo">
<image lazy-load src="{{item.sku.headimg}}" mode="aspectFill"></image>
<view class="right-info">
<view class="sku-name textOver">
<text class="textOver">{{item.product.title}}</text>
<view class="price"><text>¥</text>{{item.sku.price/100}}</view>
</view>
<view class="info-tips">
<text>{{item.sku.sku_name}}</text>
<text>x{{item.productNum}}</text>
<!-- <view bindtap="showNotice">购买须知 <text class="iconfont icon-you"></text> </view> -->
</view>
</view>
</view>
<view class="box-title" wx:if="{{from!='cart'}}">
<view style="flex:1">购票数量</view>
<view wx:if="{{!kjId && !gp_id}}" class="iconfont icon-sami-select" bindtap="minus" data-index="{{index}}"></view>
<view class="number-box">{{item.productNum}}</view>
<view wx:if="{{!kjId && !gp_id}}" class="iconfont icon-add-select" bindtap="add" data-index="{{index}}"></view>
</view>
<view class="box-title" style="height:auto;min-height:126rpx;position: relative;" wx:if="{{item.sku.is_batch_shipment}}">
<view style="flex:1;white-space:nowrap;margin-right:20rpx;">收货方式</view>
<view class="batch-view">
<view class="flex" bind:tap="changeBatchShip" data-item="{{item}}" data-value="{{0}}" data-index="{{index}}">
<view class="no-select" wx:if="{{item.sku.batch_shipment==1}}"></view>
<image lazy-load class="select-img" mode="aspectFill" src="https://static.ticket.sz-trip.com/jundaosuzhou/images/show/dui.png" wx:else></image>
<text>一次性收货</text>
</view>
<view class="flex" bind:tap="changeBatchShip" data-item="{{item}}" data-value="{{1}}" data-index="{{index}}"
style="margin-left: 30rpx;" wx:if="{{item.sku.is_batch_shipment}}">
<view class="no-select" wx:if="{{item.sku.batch_shipment==0}}"></view>
<image lazy-load class="select-img" mode="aspectFill" src="https://static.ticket.sz-trip.com/jundaosuzhou/images/show/dui.png" wx:else></image>
<text>分批收货<text style="font-size: 24rpx;">(共{{item.sku.batch_count}}次)</text></text>
</view>
<view class="batch-info-tip" wx:if="{{item.sku.is_batch_shipment && item.sku.batch_remark}}">{{item.sku.batch_remark}}</view>
</view>
</view>
<view class="box-title" style="height:auto;min-height:113rpx;" wx:if="{{item.user_select_type==0}}">
<view style="flex:1;white-space:nowrap;margin-right:20rpx;">运费</view>
<view style="display: flex;">
<!-- <text>{{item.postFee?(item.postFee==0?'包邮':("¥"+(item.postFee/100))):item.sku.sku_model.post_template_name}}</text> -->
<text>{{item.postFee?("¥"+(item.postFee/100)):"包邮"}}</text>
<view wx:if="{{item.postFee>0 && item.sku.batch_shipment==1}}">
<text style="padding-left: 10rpx;">x{{item.sku.batch_count}}</text>
<text style="padding-left: 40rpx;">¥{{(item.postFee/100)*item.sku.batch_count}}</text>
</view>
</view>
</view>
<view class="box-title" style="border-bottom: {{from=='cart'?1:0}}px solid #ccc;" wx:if="{{flag!='mix'}}">
<view style="flex-shrink:0" >订单备注:</view>
<input type="text" bindinput="inputRemark" data-index="{{index}}" placeholder="选填"></input>
</view>
<view class="all-money-box" wx:if="{{from=='cart'}}">
小计:<text class="unit">¥</text>
<text class="s-price" wx:if="{{item.sku.batch_shipment==1}}">{{(item.sku.price * item.productNum + item.postFee*item.sku.batch_count || 0) /100}}</text>
<text class="s-price" wx:else>{{(item.sku.price * item.productNum + item.postFee || 0) /100}}</text>
</view>
</view>
<!-- 补贴 -->
<view class="box-title allowance" wx:if="{{allowance_price}}">
<view bindtap="changeAllowance">惠民补贴</view>
<view class="com-flex-tao" bindtap="selectAllowance">
-¥{{allowance_price / 100}}
<image lazy-load src="https://static.ticket.sz-trip.com/uploads/20220602/6ecdbc41527c0c603608686967d4493b.png"
alt="" wx:if="{{select_allowance}}"></image>
<view class="border" wx:else></view>
</view>
</view>
</view>
<coupon bind:getNewCoupon = 'getNewCoupon' id="coupon" wx:if="{{!kjId && !gp_id && flag!='mix' && showYhq}}" money="{{showPrice + postFee}}" sku="{{sku_id}}"></coupon>
<view style="height:113rpx"></view>
<view class="fixed-bottom" wx:if="{{product}}">
<view class="fixed-price-box" wx:if="{{!prizeId}}">
<view wx:if="{{coupon && showYhq}}">
<view wx:if="{{coupon && coupon.activity.discount_type == 'pricebreak'}}">
<text>合计:</text><text
class="price">¥{{((showPrice + postFee - (coupon?coupon.activity.money:0))>0?(showPrice + postFee - (coupon?coupon.activity.money:0)):0)/100}}</text>
</view>
<view wx:else>
<text>合计:</text><text
class="price">¥{{(postFee+showPrice* coupon.activity.fold/10)/100}}</text>
</view>
</view>
<view wx:else>
<text>合计:</text><text
class="price">¥{{showPrice + postFee>0?(showPrice + postFee)/100:0}}</text>
</view>
</view>
<view class="fixed-price-box" wx:else><text>合计:</text><text class="price">¥{{postFee?(0+postFee)/100:0}}</text></view>
<view class="fixed-btn" bindtap="order">下一步</view>
</view>
<view class="mask mask-allowance" wx:if="{{showAllowance}}">
<view bindtap="changeAllowance" class="mask-bg"></view>
<view class="mask-content rule-box">
<view class="rule-title">{{allowance_data.title}}</view>
<rich-text nodes="{{allowance_data.content}}"></rich-text>
</view>
</view>