|
@@ -1,39 +1,31 @@
|
|
|
<!--pages/orders/order-detail.wxml-->
|
|
|
<view class="container">
|
|
|
- <navigation-bar title="{{ goodsInfo.orderNo ? '订单详情' : '核对订单' }}"></navigation-bar>
|
|
|
+ <navigation-bar title="{{ goodsInfo.orderNo ? '待付款' : '确认订单' }}"></navigation-bar>
|
|
|
|
|
|
<scroll-view class="record-list" type="list" scroll-y>
|
|
|
<view class="scroll-container">
|
|
|
- <view class="order-status" wx:if="{{statusList[status]}}">
|
|
|
- <view class="status">
|
|
|
- <image src="{{ statusList[status].logo }}"></image>
|
|
|
- <text>{{ statusList[status].title }}</text>
|
|
|
- </view>
|
|
|
- <view class="tips">{{ statusList[status].content }}</view>
|
|
|
- </view>
|
|
|
-
|
|
|
<!-- 添加地址 -->
|
|
|
- <view wx:if="{{ hasInstrument && !goodsInfo.orderNo }}" class="addBuyer" bind:tap="onSelectAddress">
|
|
|
- <image src="./images/address-top.png" mode="widthFix" class="addressTop"></image>
|
|
|
+ <view wx:if="{{ hasInstrument }}" class="addBuyer" bind:tap="onSelectAddress">
|
|
|
<view class="addBuyer-left">
|
|
|
- <image src="./images/icon-address.png" class="icon-man"></image>
|
|
|
- <view class="info" wx:if="{{ receiveAddress }}">
|
|
|
- <view class="users">
|
|
|
- {{ receiveAddressInfo.addressDetail }}
|
|
|
- </view>
|
|
|
+ <view class="info selected" wx:if="{{ receiveAddress }}">
|
|
|
<view class="address">
|
|
|
- <text>{{ receiveAddressInfo.name }}</text>
|
|
|
+ <image src="./images/icon-address.png" class="icon-man {{ receiveAddress ? 'selected' : '' }}"></image>
|
|
|
+ <text class="userName">{{ receiveAddressInfo.name }}</text>
|
|
|
<text>{{ receiveAddressInfo.phoneNumber }}</text>
|
|
|
</view>
|
|
|
+ <view class="users">
|
|
|
+ {{ receiveAddressInfo.addressDetail }}
|
|
|
+ </view>
|
|
|
</view>
|
|
|
<view class="info" wx:else>
|
|
|
<view class="users">
|
|
|
+ <image src="./images/icon-address.png" class="icon-man {{ receiveAddress ? 'selected' : '' }}"></image>
|
|
|
新建收货地址
|
|
|
</view>
|
|
|
- <view class="address">请填写您的收货地址与信息</view>
|
|
|
+ <!-- <view class="address">请填写您的收货地址与信息</view> -->
|
|
|
</view>
|
|
|
</view>
|
|
|
- <image src="./images/icon-arrow-right.png" class="arrow-right"></image>
|
|
|
+ <image wx:if="{{ !goodsInfo.orderNo }}" src="./images/icon-arrow-right.png" class="arrow-right"></image>
|
|
|
</view>
|
|
|
|
|
|
<view class="order-content">
|
|
@@ -48,85 +40,39 @@
|
|
|
<view>
|
|
|
<text class="goods-card" wx:if="{{ item.typePeriod }}">{{ item.typePeriod }}</text>
|
|
|
</view>
|
|
|
- <view class="goods-num">x 1</view>
|
|
|
+ <view class="goods-num">优惠前 ¥{{ item.originalPrice }}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
<view class="goodsInfos">
|
|
|
- <view class="goodsInfo-item">
|
|
|
- <text class="title">商品总额</text>
|
|
|
-
|
|
|
- <view class="goods-price">
|
|
|
- <text class="stuff">¥</text>
|
|
|
- <text class="priceZ">{{ goodsInfo.integerPart }}</text>
|
|
|
- <text class="priceF">.{{ goodsInfo.decimalPart }}</text>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
-
|
|
|
- <view class="goodsInfo-item" wx:if="{{ goodsInfo.allOriginPrice > goodsInfo.allSalePrice }}">
|
|
|
- <text class="title">惊喜优惠</text>
|
|
|
-
|
|
|
- <!-- <view class="calc-price">-¥ {{ goodsInfo.allDiscountPrice }}</view> -->
|
|
|
- <view class="goods-price calc-price">
|
|
|
- <text class="stuff">¥</text>
|
|
|
- <text class="priceZ">{{ goodsInfo.discountIntegerPart }}</text>
|
|
|
- <text class="priceF">.{{ goodsInfo.discountDecimalPart }}</text>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
-
|
|
|
<view class="qrcode-line"></view>
|
|
|
|
|
|
<view class="goodsInfo-count">
|
|
|
<view class="goods-price">
|
|
|
- <text class="before">共{{ goodsInfo.goodsList.length }}件:</text>
|
|
|
+ <text class="before">共{{ goodsInfo.goodsList.length }}件,共减</text>
|
|
|
+ <text class="stuff red">¥</text>
|
|
|
+ <text class="priceZ">{{ goodsInfo.discountIntegerPart }}.{{ goodsInfo.discountDecimalPart }}</text>
|
|
|
+ <!-- <text class="priceF">.{{ goodsInfo.decimalPart }}</text> -->
|
|
|
+ <text class="afterTxt">应付:</text>
|
|
|
<text class="stuff">¥</text>
|
|
|
- <text class="priceZ">{{ goodsInfo.integerPart }}</text>
|
|
|
- <text class="priceF">.{{ goodsInfo.decimalPart }}</text>
|
|
|
+ <text class="afterPrice">{{ goodsInfo.integerPart }}.{{ goodsInfo.decimalPart }}</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
- <view class="wechat-section" wx:if="{{ !goodsInfo.orderNo }}">
|
|
|
- <view class="wechat-left">
|
|
|
- <image src="./images/icon-wechat.png"></image>
|
|
|
- 微信支付
|
|
|
+ <view class="buyUsers">
|
|
|
+ <view class="users">
|
|
|
+ <text>{{ goodsInfo.userBeneficiaryInfo.name }}</text>{{ goodsInfo.userBeneficiaryInfo.phoneNumber }}
|
|
|
</view>
|
|
|
+ <view class="detail">{{goodsInfo.userBeneficiaryInfo.schoolInfo}}</view>
|
|
|
|
|
|
- <image src="./images/icon-checkbox.png" class="checkbox"></image>
|
|
|
+ <image class="buyuser_img" mode="widthFix" src="./images/buyuser.png"></image>
|
|
|
</view>
|
|
|
|
|
|
-
|
|
|
<view class="order-time" wx:if="{{ goodsInfo.orderNo }}">
|
|
|
- <block wx:if="{{ receiveAddress }}">
|
|
|
- <template is="address" data="{{ receiveAddressInfo }}"></template>
|
|
|
- <view class="line"></view>
|
|
|
- <block wx:if="{{ isExpanded }}">
|
|
|
- <block wx:if="{{ userBeneficiaryId }}">
|
|
|
- <template is="schoolInfo" data="{{ userBeneficiaryInfo }}"></template>
|
|
|
- <view class="line" wx:if="{{ !receiveAddress }}"></view>
|
|
|
- </block>
|
|
|
- <template is="orderInfo" data="{{ goodsInfo }}"></template>
|
|
|
- </block>
|
|
|
- </block>
|
|
|
- <block wx:else>
|
|
|
- <block wx:if="{{ userBeneficiaryId }}">
|
|
|
- <template is="schoolInfo" data="{{ userBeneficiaryInfo }}"></template>
|
|
|
- <view class="line" wx:if="{{ !receiveAddress }}"></view>
|
|
|
- </block>
|
|
|
- <block wx:if="{{ isExpanded || !userBeneficiaryId }}">
|
|
|
- <template is="orderInfo" data="{{ goodsInfo }}"></template>
|
|
|
- </block>
|
|
|
- </block>
|
|
|
-
|
|
|
- <view class="order-item" bind:tap="onExpanded" wx:if="{{ userBeneficiaryId }}">
|
|
|
- <view class="title">更多信息</view>
|
|
|
- <view class="value {{ isExpanded ? 'expanded' : '' }}">
|
|
|
- {{ isExpanded ? '收起' : '展开' }}
|
|
|
- <image src="./images/icon-down.png" class="iconDown"></image>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
+ <template is="orderInfo" data="{{ goodsInfo }}"></template>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
@@ -135,87 +81,23 @@
|
|
|
<view class="more">
|
|
|
<view class="price-section">
|
|
|
<view class="price">
|
|
|
- <view class="desc">共计</view>
|
|
|
+ <view class="desc">应付:</view>
|
|
|
<view class="currentPrice">
|
|
|
<text class="stuff">¥</text>
|
|
|
<text class="priceZ">{{ goodsInfo.integerPart }}</text>
|
|
|
<text class="priceF">.{{ goodsInfo.decimalPart }}</text>
|
|
|
</view>
|
|
|
-
|
|
|
- <text class="line"></text>
|
|
|
-
|
|
|
- <text class="discountPrice">优惠 ¥{{ goodsInfo.allDiscountPrice }}</text>
|
|
|
</view>
|
|
|
+ <view class="discountPrice">共减 <text>¥{{ goodsInfo.allDiscountPrice }}</text></view>
|
|
|
</view>
|
|
|
- <button type="primary" bind:tap="onSubmit">{{ goodsInfo.orderNo ? '继续支付' : '提交' }}</button>
|
|
|
+ <button type="primary" bind:tap="onSubmit">{{ goodsInfo.orderNo ? '继续支付' : '立即支付' }}</button>
|
|
|
</view>
|
|
|
</view>
|
|
|
</scroll-view>
|
|
|
|
|
|
-
|
|
|
-
|
|
|
- <van-popup show="{{ addressShow }}" safe-area-inset-bottom="{{false}}" lock-scroll="{{true}}" bind:close="onCloseAddress" position="bottom" round z-index="101" bind:after-leave="onAddressAfterLeave">
|
|
|
- <view class="addressContainer" wx:if="{{ !addressAfterLeave }}">
|
|
|
- <image src="./images/icon-close1.png" class="icon-close" bind:tap="onCloseAddress" />
|
|
|
- <view class="pop-address-title">
|
|
|
- {{ id ? '修改收货地址' : '新建收货地址' }}
|
|
|
- </view>
|
|
|
-
|
|
|
- <van-cell-group border="{{ false }}" class="cell-group">
|
|
|
- <van-field model:value="{{ name }}" label="收货人" placeholder="请填写收货人姓名" placeholder-style="color: #bbb" />
|
|
|
- <van-field model:value="{{ phoneNumber }}" label="电话号码" type="number" placeholder-style="color: #bbb" placeholder="请输入手机号码" maxlength="11" />
|
|
|
- <van-field value="{{ provinceName ? provinceName + '/' + cityName + '/' + regionName : '' }}" label="选择地区" placeholder-style="color: #bbb" placeholder="请选择省/市/区" readonly is-link bind:tap="onShowAreaList" />
|
|
|
- <van-field model:value="{{ detailAddress }}" label="详细地址" type="textarea" placeholder-style="color: #bbb" placeholder="请填写小区/楼号/单元/门牌号" input-class="textarea" autosize maxlength="100" />
|
|
|
- </van-cell-group>
|
|
|
-
|
|
|
- <view class="pop-btn-group">
|
|
|
- <button class="submit-btn" bind:tap="onOperationAddress">确认</button>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </van-popup>
|
|
|
-
|
|
|
- <!-- 地区 -->
|
|
|
- <van-popup round="{{true}}" lock-scroll="{{true}}" z-index="{{103}}" show="{{showArea}}" position="bottom" safe-area-inset-bottom="{{false}}" bind:close="onCloseAreaList">
|
|
|
- <van-area id='area1' areaList="{{areaList}}" visible-item-count="9" item-height="46" value="{{ regionCode }}" bind:cancel="onCloseAreaList" bind:confirm="submitArea" />
|
|
|
- </van-popup>
|
|
|
<!-- <service popShow="{{ showService }}" bind:changePop="changePop"></service> -->
|
|
|
</view>
|
|
|
|
|
|
-
|
|
|
-<template name="address">
|
|
|
- <view class="order-item">
|
|
|
- <view class="title">收货人</view>
|
|
|
- <view class="value">{{ receiveAddressInfo.name }}</view>
|
|
|
- </view>
|
|
|
- <view class="order-item">
|
|
|
- <view class="title">电话号码</view>
|
|
|
- <view class="value">{{ receiveAddressInfo.phoneNumber }}</view>
|
|
|
- </view>
|
|
|
- <view class="order-item">
|
|
|
- <view class="title">收货地址</view>
|
|
|
- <view class="value">{{ receiveAddressInfo.addressDetail }}</view>
|
|
|
- </view>
|
|
|
-</template>
|
|
|
-
|
|
|
-<template name="schoolInfo">
|
|
|
- <view class="order-item">
|
|
|
- <view class="title">享用者姓名</view>
|
|
|
- <view class="value">{{ userBeneficiaryInfo.name }}</view>
|
|
|
- </view>
|
|
|
- <view class="order-item">
|
|
|
- <view class="title">电话号码</view>
|
|
|
- <view class="value">{{ userBeneficiaryInfo.phoneNumber }}</view>
|
|
|
- </view>
|
|
|
- <view class="order-item">
|
|
|
- <view class="title">学校信息</view>
|
|
|
- <view class="value">{{ userBeneficiaryInfo.schoolInfo }}</view>
|
|
|
- </view>
|
|
|
-
|
|
|
- <!-- name: beneficiary.name,
|
|
|
- phoneNumber: beneficiary.phone,
|
|
|
- schoolInfo: tempSchoolAddress.join('') -->
|
|
|
-</template>
|
|
|
-
|
|
|
<template name="orderInfo">
|
|
|
<view class="order-item">
|
|
|
<view class="title">订单编号</view>
|
|
@@ -224,7 +106,7 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="order-item">
|
|
|
- <view class="title">创建时间</view>
|
|
|
+ <view class="title line">下单时间</view>
|
|
|
<view class="value">{{ goodsInfo.createTime }}</view>
|
|
|
</view>
|
|
|
</template>
|