123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143 |
- <!--pages/orders/order-detail.wxml-->
- <view class="container">
- <navigation-bar title=""></navigation-bar>
- <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 wx:if="{{ instrumentsInfo.id }}" class="memberBox {{isAddressInfoTip?'showMemberInfoTip':''}}">
- <view class="memberCon">
- <view class="memberInfoCon">
- <view class="infoCon">
- <image class="tip" src="./images/member.png" />
- <text class="name">{{addressInfo.name}}</text>
- <text class="phone">{{addressInfo.phoneNumber}}</text>
- </view>
- <view class="schoolInfoCon">
- <text class="schoolInfo">收货地址</text><text class="schoolInfoDes">{{addressInfo.addressDes}}</text>
- </view>
- </view>
- <!-- <image class="chevronImg" src="../index/images/chevron.png"></image> -->
- </view>
- </view>
- <view class="order-content">
- <view class="titTip">订单详情</view>
- <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.originalPrice) }}</text>
- </view>
- </view>
- <view class="goods-type">
- <view class="goods-card">{{ goodsInfo.typeName }}</view>
- <view class="goods-num">x1</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.originalPrice) }}</text>
- </view>
- </view>
- <view class="goods-type">
- <view class="goods-card"></view>
- <view class="goods-num">x1</view>
- </view>
- </view>
- </view>
- <view wx:if="{{goodsInfo.originalPrice + (instrumentsInfo.originalPrice || 0) - (goodsInfo.salePrice + (instrumentsInfo.salePrice || 0)) > 0 }}" class="discountCon">
- <view class="discountTip">
- <image src="./images/discount.png"></image>
- <text>优惠活动</text>
- </view>
- <view class="discount">
- <text>-¥</text>
- <text>{{my.formatValue(goodsInfo.originalPrice + (instrumentsInfo.originalPrice || 0) - (goodsInfo.salePrice + (instrumentsInfo.salePrice || 0)))}}</text>
- </view>
- </view>
- <view class="totalPic">
- <text class="titPic">合计</text>
- <text class="stuff">¥</text>
- <numberDisplay number="{{ goodsInfo.salePrice + (instrumentsInfo.salePrice || 0) }}" />
- </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>
- <view class="order-content">
- <view class="titTip">订单信息</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="desc">待支付:</view>
- <text class="stuff">¥</text>
- <numberDisplay number="{{ goodsInfo.salePrice + (instrumentsInfo.salePrice || 0) }}" />
- </view>
- <text wx:if="{{goodsInfo.originalPrice + (instrumentsInfo.originalPrice || 0) - (goodsInfo.salePrice + (instrumentsInfo.salePrice || 0)) > 0 }}" class="discountVal">已优惠 ¥{{my.formatValue(goodsInfo.originalPrice + (instrumentsInfo.originalPrice || 0) - (goodsInfo.salePrice + (instrumentsInfo.salePrice || 0)))}}</text>
- </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>
|