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.
 

49 lines
2.4 KiB

<!--pages/order/food/index.wxml-->
<title title="订单填写"></title>
<view class="box topbox" wx:if="{{product}}">
<view class="skuinfo">
<image lazy-load src="{{product.sku.headimg}}" mode="aspectFill"></image>
<view class="right-info">
<view class="sku-name textOver2">{{product.product.title}}</view>
<view class="sku-name2 textOver2">{{product.sku.sku_name}}</view>
<!-- <view class="info-tips">
<view class="price"><text>¥</text>{{product.sku.price/100}}</view>
<view bindtap="showNotice">购买须知 <text class="iconfont icon-you"></text> </view>
</view> -->
</view>
<view class="info-tips"><text>¥</text>{{product.sku.price/100}}</view>
</view>
<view class="box-title" style="border-top: none;">
<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 class="box-title">
<view style="flex-shrink:0">联系人:</view>
<input type="text" value="{{user}}" bindinput="userInput" placeholder="输入您的名字"></input>
</view> -->
<view class="box-title">
<view style="flex-shrink:0">手机号:</view>
<input type="number" value="{{tel}}" bindinput="telInput" placeholder="请输入手机号"></input>
</view>
</view>
<coupon id="coupon" bind:getNewCoupon = 'getNewCoupon' money="{{product.sku.price * productNum}}" sku="{{product.sku.id}}" maxCouponObject="{{maxCouponObject}}"></coupon>
<!-- 顺手购组件 -->
<smoothly-order
wx:if="{{product.product.id}}"
id="smoothlyOrderComp"
productId="{{product.product.id}}"
bind:callOtherComp="callOtherCompMethod"
bind:updateTotalPrice="handleUpdateTotalPrice"
></smoothly-order>
<view style="height:113rpx"></view>
<view class="fixed-bottom" wx:if="{{product}}">
<!-- <view class="fixed-price-box"><text>订单金额:</text><text class="price">¥{{((product.sku.price * productNum - (coupon?coupon.activity.money:0))>0?(product.sku.price * productNum - (coupon?coupon.activity.money:0)):0) / 100}}</text></view> -->
<view class="fixed-price-box"><text>订单金额:</text><text class="price">¥{{price}}</text></view>
<view class="fixed-btn" bindtap="order">提交订单</view>
</view>
<notice bind:close="closeNotice" wx:if="{{showNoticeFlag}}" bookingInfo="{{product.sku.sku_model}}" skuName="{{product.sku.sku_name}}"></notice>