123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156 |
- <!--pages/orders/order-detail.wxml-->
- <view class="container">
- <navigation-bar title="{{statusList[status].title}}"></navigation-bar>
- <view class="topTitle">
- {{statusList[status].content}}
- </view>
- <scroll-view class="record-list {{ status==='WAIT_PAY'?'waitList':'' }}" type="list" scroll-y>
- <!-- <view class="order-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 class="order-content">
- <view class="item-content first-item-content">
- <image class='goods-icon' src="{{ goodsInfo.pic }}" mode="" />
- <view class="goods-desc">
- <view class="goodsInfo">
- <view class="goods-name">{{ goodsInfo.name }}</view>
- <view class="goods-price">
- <text class="stuff">¥</text>
- <text class="priceZ">{{ my.formatValue(goodsInfo.salePrice) }}</text>
- </view>
- </view>
- <view class="goods-type">
- <view class="goods-card">{{ goodsInfo.typeName }}</view>
- <view class="goods-num">{{ "原价¥"+my.formatValue(goodsInfo.originalPrice) }}</view>
- </view>
- </view>
- </view>
- <view wx:if="{{ instrumentsInfo.id }}" class="item-content">
- <image class='goods-icon' src="{{ instrumentsInfo.pic }}" mode="" />
- <view class="goods-desc">
- <view class="goodsInfo">
- <view class="goods-name">{{ instrumentsInfo.name }}</view>
- <view class="goods-price">
- <text class="stuff">¥</text>
- <text class="priceZ">{{ my.formatValue(instrumentsInfo.salePrice) }}</text>
- </view>
- </view>
- <view class="goods-type">
- <view class="goods-card"></view>
- <view class="goods-num">{{ "原价¥"+my.formatValue(instrumentsInfo.originalPrice) }}</view>
- </view>
- </view>
- </view>
- </view>
- <view class="order-content">
- <view class="titTip priceTip">价格明细</view>
- <view class="priceDetails">
- <view class="priceLeft">
- <text>商品总价</text>
- <text>{{ "共"+ (instrumentsInfo.id?'2':'1') +"件" }}</text>
- </view>
- <view class="priceRight">
- <text class="stuff">¥</text>
- <numberDisplay number="{{ goodsInfo.originalPrice + (instrumentsInfo.originalPrice || 0) }}" />
- </view>
- </view>
- <view wx:if="{{ goodsInfo.originalPrice + (instrumentsInfo.originalPrice || 0) - (goodsInfo.salePrice + (instrumentsInfo.salePrice || 0)) > 0 }}" class="priceDetails">
- <view class="priceLeft">
- <text>优惠金额</text>
- </view>
- <view class="priceRight discountTip">
- <text class="stuff">-¥</text>
- <numberDisplay number="{{ goodsInfo.originalPrice + (instrumentsInfo.originalPrice || 0) - (goodsInfo.salePrice + (instrumentsInfo.salePrice || 0)) }}" />
- </view>
- </view>
- <view class="priceDetails sumTip">
- <view class="priceLeft">
- </view>
- <view class="priceRight">
- <text class="titPic">共计:</text>
- <text class="stuff">¥</text>
- <numberDisplay number="{{ goodsInfo.salePrice + (instrumentsInfo.salePrice || 0) }}" />
- </view>
- </view>
- </view>
- <view class="order-content" wx:if="{{ instrumentsInfo.id }}">
- <view class="titTip">收货信息</view>
- <view class="memberInfo">
- <text>收货人</text>
- <text>{{ addressInfo.name }}</text>
- </view>
- <view class="memberInfo">
- <text>手机号码</text>
- <text>{{ addressInfo.phoneNumber }}</text>
- </view>
- <view class="memberInfo">
- <text>收货地址</text>
- <text>{{ addressInfo.addressDes }}</text>
- </view>
- </view>
- <view class="order-content">
- <view class="titTip">订单信息</view>
- <view class="memberInfo">
- <text>会员名称</text>
- <text>{{ memberInfo.name }}</text>
- </view>
- <view class="memberInfo">
- <text>手机号码</text>
- <text>{{ memberInfo.phone }}</text>
- </view>
- <view class="memberInfo">
- <text>学校信息</text>
- <text>{{ memberInfo.schoolInfo }}</text>
- </view>
- <view class="memberInfo">
- <text>订单编号</text>
- <view class="orderInfoRight">
- <text>{{ orderInfo.orderNo }}</text>
- <view class="copy" bind:tap="onCopy" data-orderno="{{orderInfo.orderNo}}">复制</view>
- </view>
- </view>
- <view class="memberInfo">
- <text>创建时间</text>
- <text>{{ orderInfo.createTime }}</text>
- </view>
- </view>
- <view class="bottomBlock"></view>
- <!-- <view class="order-time">
- <view class="order-item">
- <view class="title">订单号</view>
- <view class="value">2133442226668</view>
- </view>
- <view class="order-item">
- <view class="title">下单时间</view>
- <view class="value">2023-07-12 18:12:45</view>
- </view>
- </view> -->
- </scroll-view>
- <view wx:if="{{status==='WAIT_PAY'}}" class="order-btn">
- <view class="priceCon">
- <view class="price">
- <view class="goodsNum">{{ "共"+ (instrumentsInfo.id?'2':'1') +"件" }}</view>
- <view class="desc">需支付:</view>
- <text class="stuff">¥</text>
- <numberDisplay number="{{ goodsInfo.salePrice + (instrumentsInfo.salePrice || 0) }}" />
- </view>
- </view>
- <button type="primary" bind:tap="onSubmit">{{ '继续支付' }}</button>
- </view>
- <!-- 客服 -->
- <!-- <service wx:if="{{serviceShow}}"></service> -->
- </view>
- <wxs module="my">
- var formatValue = function (value) {
- return parseFloat(value).toFixed(2);
- }
- module.exports = {
- formatValue: formatValue
- }
- </wxs>
|