|
<view class="order-view">
<view
class="address"
hover-class="address-hover"
bindtap="navigateToAddress"
wx:if="{{ hasAddress }}"
>
<view class="left">
<image class="icon" src="/resources/common/location.png"></image>
</view>
<view class="content">
<view class="top">
<text class="name">{{ address.userName }}</text>
<text class="phone">{{ address.telNumber }}</text>
</view>
<view class="bottom">{{ address.combination }}</view>
</view>
<view class="right">
<view class="icon arrow"></view>
</view>
</view>
<view
class="address authorization"
hover-class="address-hover"
bindtap="navigateToAddress"
wx:elif="{{ !hasAddress }}"
>
<view class="plus"></view>
<text>新建地址</text>
</view>
<view class="goods-container" wx:if="{{ isLoading }}">
<view class="goods">
<view class="left">
<image src="{{ goodsInfo.goods_img }}" mode="aspectFit"></image>
</view>
<view class="right">
<view class="top">
<text class="title">{{ goodsInfo.name }}</text>
<text class="inventory" wx:if="{{ goodsInfo.inventory > 0 && goodsInfo.goods_status != 2 }}"
>仅剩{{ goodsInfo.inventory }}个</text
>
<text class="inventory" wx:else>库存不足</text>
</view>
<view class="bottom">
<view class="price-group">
<view class="price1">
<text class="symbol">¥</text>
<text class="value">{{ goodsInfo.price / 100 }}</text>
</view>
<view class="price2" wx:if="{{ goodsInfo.price_type === 3 }}">
<text class="value">¥{{ goodsInfo.price2 / 100 }}</text>
</view>
</view>
<stepper
num="{{ num }}"
bindstepperChanged="bindstepperChanged"
wx:if="{{ goodsInfo.inventory > 0 }}"
></stepper>
</view>
</view>
</view>
</view>
</view>
<import src="/template/btn/btn.wxml"></import>
<view class="btn-footer">
<view
class="btn-footer-container {{hasAddress && goodsInfo.inventory > 0 && goodsInfo.goods_status != 2 ? '' : 'btn-footer-container-disabled'}}">
<view class="left" wx:if="{{ total > 0 & goodsInfo.inventory > 0 && goodsInfo.goods_status != 2 }}">
<text class="money">¥{{ total / 100 }}</text>
</view>
<view class="right">
<template
is="iconBtn"
data="{{btnClass: 'button4', btnTxt: goodsInfo.inventory > 0 && goodsInfo.goods_status != 2 ? '立即支付' : '库存不足', disabled: !(hasAddress && goodsInfo.inventory > 0 && goodsInfo.goods_status != 2), action: 'confirm'}}"
></template>
</view>
</view>
</view>
|