123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240 |
- <template>
- <view>
- <u-navbar>订单详情</u-navbar>
- <view class="details">
- <view class="details-title">
- <h4>订单明细</h4>
- </view>
- <view class="details-row">
- <p>商品名称 </p>
- <span>{{monthlyRentCard.name}}</span>
- </view>
- <view class="details-row">
- <p>订单金额</p>
- <span>{{regUserCard.payFee?regUserCard.payFee.toFixed(2):0}}元</span>
- </view>
- <view class="details-row">
- <p>月卡卡号</p>
- <span>{{regUserCard.cardNo}}</span>
- </view>
- <view class="details-row">
- <p>订单编号</p>
- <span>{{regUserCard.outOrderNo}}</span>
- </view>
- <view class="details-row">
- <p>购买时间</p>
- <span>{{regUserCard.payTime}}</span>
- </view>
- </view>
- <view class="details">
- <view class="details-title">
- <h4>更多信息</h4>
- </view>
- <!-- <view class="details-row">
- <p>用户昵称 </p>
- <span>{{buyRegUser.nickName?buyRegUser.nickName:'未命名'}}</span>
- </view> -->
- <view class="details-row">
- <p>用户姓名 </p>
- <span>{{buyRegUser.realName?buyRegUser.realName:'未命名'}}</span>
- </view>
- <view class="details-row">
- <p>车牌号 </p>
- <span>{{buyRegUser.carNum?buyRegUser.carNum:'未绑定'}}</span>
- </view>
-
- <view class="details-row">
- <p>联系方式</p>
- <span>{{getPhone(buyRegUser.phone)}}</span>
- </view>
-
- <view class="details-row">
- <p>月卡有效期</p>
- <span>{{regUserCard.startTime?regUserCard.startTime.slice(0,10):''}}至{{regUserCard.endTime?regUserCard.endTime.slice(0,10):''}}</span>
- </view>
-
- </view>
- </view>
- </template>
- <script>
- import {
- parseUnixTime,
- substrMb
- } from '@/utils'
-
- import * as API from '@/apis/finance.js'
-
- export default {
- data() {
- return {
- buyRegUser: {},
- monthlyRentCard: {},
- regUserCard: {},
- }
- },
- onLoad(op) {
- this.id = op.id;
- this.getInfo()
- },
- methods: {
- getPhone(phone){
- var backphone="";
- if(phone){
- backphone=substrMb(phone,0,3)+"****"+substrMb(phone,7,4)
- }
-
- return backphone;
- },
- getInfo() {
- uni.showLoading({
- title: "加载中",
- mask: true,
- })
- API.buyCardDetail({
- id: this.id
- }).then((res) => {
- this.buyRegUser = res.data.buyRegUser
- this.monthlyRentCard = res.data.monthlyRentCard
- this.regUserCard = res.data.regUserCard
- uni.hideLoading()
- }).catch(error => {
- uni.showToast({
- title: error
- })
- })
- }
- }
- }
- </script>
- <style>
- page {
- background-color: #F7F7F7;
- }
- </style>
- <style lang="scss" scoped>
- .detailsBtn {
- margin: 16px;
- .detailsBtn-btn {
- border-color: #185AC6 !important;
- border-radius: 8px !important;
- background: none !important;
- color: #185AC6 !important;
- }
- }
- .details-title {
- margin-bottom: 20px;
- h4 {
- font-weight: normal;
- font-size: 16px;
- position: relative;
- padding-left: 10px;
- &::after {
- content: '';
- position: absolute;
- height: 12px;
- width: 4px;
- background-color: #185ac6;
- left: 0;
- top: 5px;
- }
- }
- }
- .details-row {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-top: 15px;
- p {
- color: #86898C;
- }
- }
- .details-row-sum {
- float: right;
- color: #101010;
- font-size: 14px;
- }
- .details {
- margin: 16px;
- padding: 20px;
- background-color: #fff;
- border-radius: 8px;
- position: relative;
- .details-head {
- text-align: center;
- display: flex;
- align-items: center;
- justify-content: center;
- h4 {
- font-size: 18px;
- font-weight: normal;
- margin-left: 4px;
- }
- }
- .details-price {
- margin-top: 12px;
- margin-bottom: 4px;
- display: flex;
- align-items: flex-end;
- justify-content: center;
- h3 {
- font-size: 36px;
- color: #27B148;
- line-height: 36px;
- margin: 0 4px;
- font-weight: normal;
- }
- span {
- font-size: 20px;
- color: #27B148;
- }
- }
- .details-main {
- text-align: center;
- .withdraw {
- width: 21.3vw;
- height: 21.3vw;
- position: absolute;
- top: 2vw;
- right: 2.5vw;
- }
- p {
- color: #777;
- margin-top: 4px;
- }
- }
- }
- </style>
|