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.
48 lines
2.8 KiB
48 lines
2.8 KiB
<!--pages/bidding/details/index.wxml-->
|
|
<wxs module="formate" src="../../../pages/formate.wxs"></wxs>
|
|
<cu-custom bgColor="bg-white" isBack="{{true}}">
|
|
<view slot="content">下单</view>
|
|
</cu-custom>
|
|
|
|
<view wx:if="{{productInfo}}">
|
|
<view class="flex bg-white" style="width:100%;padding: 24rpx">
|
|
<wux-image width="{{90}}" height="{{90}}" shape="rounded" lazyLoad="true" src="{{productInfo.imgList[0]}}" mode="aspectFill">
|
|
<image class="image-load" slot="loading" src="/assets/image/def_image.png"></image>
|
|
</wux-image>
|
|
<view style="flex:1;padding-left:20rpx;height:90px">
|
|
<view class="flex flex-justify">
|
|
<view class="page-name" style="font-size:15px;font-weight:600">{{productInfo.secondCategoryName || productInfo.firstCategoryName}}</view>
|
|
<view style="font-size:14px">库存:{{formate.formateWeight(productInfo.stock, kg)}}</view>
|
|
</view>
|
|
<view style="width:100%;color:red;font-size:18px;font-weight:600;padding:12rpx 0rpx">单价:{{formate.formatePrice2(unitPrice, kg)}}</view>
|
|
<view style="font-size:14px">发货地址:{{productInfo.locProvinceName}} {{productInfo.locCityName}} {{productInfo.locDistrictName}} {{productInfo.locDetails}}</view>
|
|
</view>
|
|
</view>
|
|
<wux-divider show-text="{{ false }}"></wux-divider>
|
|
<view style="min-height:45px;background-color:white;">
|
|
<view class="bg-white flex flex-justify" style="height:100rpx;padding: 0rpx 32rpx">
|
|
<view class="text-gray" style="font-size:28rpx">购买重量({{kg?'KG' : '吨'}})</view>
|
|
<wux-input-number value="{{quantity}}" controlled="{{true}}" longpress="{{true}}" disabled="{{productInfo.bidType == 2}}" color="stable" min="1" max="{{stock}}" step="{{ kg ? 100 : 1 }}" type="{{kg ? 'number' : 'digit'}}" bind:change="onNumChange" />
|
|
</view>
|
|
<view class="bg-white flex flex-justify" style="height:100rpx;;padding: 0rpx 32rpx">
|
|
<view class="text-gray" style="font-size:28rpx">合计总价</view>
|
|
<text>¥{{formate.formateAmount(totalMoney, kg)}}</text>
|
|
</view>
|
|
</view>
|
|
<view style="height:18rpx"></view>
|
|
<wux-cell-group>
|
|
<wux-cell wx:if="{{addressInfo}}" title="{{addressInfo.provinceName+addressInfo.cityName+addressInfo.districtName+addressInfo.details}}" is-link url="/pages/address/list/index?type=1">
|
|
<view slot="header" class="cuIcon-locationfill text-black" style="width:32rpx;height:32rpx;margin:0rpx 12rpx 0rpx 0rpx">
|
|
</view>
|
|
</wux-cell>
|
|
<wux-cell wx:else title="无收货地址--去添加" is-link url="/pages/address/list/index?type=1">
|
|
<view slot="header" class="cuIcon-locationfill text-black" style="width:32rpx;height:32rpx;margin:0rpx 12rpx 0rpx 0rpx">
|
|
</view>
|
|
</wux-cell>
|
|
</wux-cell-group>
|
|
</view>
|
|
|
|
<view style="padding:48rpx 24rpx" wx:if="{{productInfo}}">
|
|
<wux-button block type="positive" bind:click="toCreateOrder">确定下单</wux-button>
|
|
</view>
|
|
<!-- <wux-dialog id="wux-dialog" /> -->
|