|
|
|
|
<!--pages/order/scene/index.wxml-->
|
|
|
|
|
<title title="订单填写"></title>
|
|
|
|
|
<view class="product-info" wx:if="{{product}}">
|
|
|
|
|
<view class="product-title">{{product.product.title}}</view>
|
|
|
|
|
<!-- <view class="product-price">{{product.sku.price/100}}</view> -->
|
|
|
|
|
</view>
|
|
|
|
|
<!-- <date product="{{product}}"></date> -->
|
|
|
|
|
<view class="box">
|
|
|
|
|
<view class="box-title">
|
|
|
|
|
<view style="flex:1">购票数量</view>
|
|
|
|
|
<view class="iconfont icon-sami-select" bindtap="minus"></view>
|
|
|
|
|
<view class="number-box">{{productNum}}</view>
|
|
|
|
|
<view class="iconfont icon-add-select" bindtap="add"></view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<contact wx:if="{{type==0}}" bind:setLinkman="setLinkman"></contact>
|
|
|
|
|
<address wx:else bind:setAddress="setAddress"></address>
|
|
|
|
|
<view class="box" wx:if="{{product.sku.sku_model.recharge.length>0}}">
|
|
|
|
|
<view class="box-title">
|
|
|
|
|
<view style="flex:1">请选择充值金额</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="fill-box">
|
|
|
|
|
<view bindtap="setSku" data-index="{{index}}" class="fill-item{{index==skuIndex?' active':''}}" wx:for="{{product.sku.sku_model.recharge}}">{{item/100}}元</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="box">
|
|
|
|
|
<view class="box-title">
|
|
|
|
|
<view style="flex:1">请选择</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="fill-box">
|
|
|
|
|
<view wx:if="{{product.sku.sku_model.fetch_type!='post'}}" class="fill-item{{type==0?' active':''}}" bindtap="changeType" data-type="0">自取</view>
|
|
|
|
|
<view wx:if="{{product.sku.sku_model.fetch_type!='selffetch'}}" class="fill-item{{type==1?' active':''}}" bindtap="changeType" data-type="1">邮寄</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<coupon bind:getNewCoupon = 'getNewCoupon' id="coupon" money="{{productNum *(product.sku.price + 1 * (product.sku.sku_model.recharge[skuIndex] || 0)) + 1 *postFee}}" sku="{{product.sku.id}}"></coupon>
|
|
|
|
|
|
|
|
|
|
<view class="box" wx:if="{{type==1}}">
|
|
|
|
|
<view class="box-title">
|
|
|
|
|
<view style="flex:1">运费</view>
|
|
|
|
|
<view>{{postFee?(postFee==0?'包邮':(postFee/100)):product.sku.sku_model.post_template_name}}</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view style="height:113rpx"></view>
|
|
|
|
|
<view class="fixed-bottom" wx:if="{{product}}">
|
|
|
|
|
<view class="fixed-price-box"><text>合计:</text><text class="price">¥{{((productNum * (product.sku.price + 1 * (product.sku.sku_model.recharge[skuIndex] || 0)) + 1 * postFee - (coupon?coupon.activity.money:0))<0?0:(productNum * (product.sku.price + 1 * (product.sku.sku_model.recharge[skuIndex] || 0)) + 1 * postFee - (coupon?coupon.activity.money:0))) /100}}</text></view>
|
|
|
|
|
<view class="fixed-btn" bindtap="order">提交订单</view>
|
|
|
|
|
</view>
|