335 lines
6.1 KiB
Vue
335 lines
6.1 KiB
Vue
<template>
|
||
<view class="con">
|
||
<view class="content">
|
||
|
||
|
||
<view class="box_">
|
||
<view class="box-top">
|
||
|
||
<view class="icon-huang">
|
||
已报名
|
||
</view>
|
||
</view>
|
||
<view class="box-ds">
|
||
<view class="left-box">
|
||
<image :src="imagesUrl + orderOne.driveSchoolCourse.photo" mode=""></image>
|
||
</view>
|
||
<view class="">
|
||
<view class="box-title">{{orderOne.driveSchoolCourse.automatic}}</view>
|
||
<view class="wrap-box" style=" margin-bottom: 5px;">
|
||
<view class="icon-lv">{{orderOne.driveSchoolCourse.license}}</view>
|
||
<view class="icon-h">{{orderOne.driveSchoolCourse.name}}</view>
|
||
</view>
|
||
<view class="wrap-box">
|
||
<view class="price_">¥{{orderOne.driveSchoolCourse.price}}</view>
|
||
<view class="sc">{{orderOne.driveSchoolCourse.price}}</view>
|
||
</view>
|
||
</view>
|
||
|
||
</view>
|
||
|
||
<view class="liang-box">
|
||
<view class="lb-box" style="margin-bottom: 5px;">
|
||
<view class="">订单编号:</view>
|
||
<view style="color: #333333;">{{orderOne.orderNumber}}</view>
|
||
</view>
|
||
<view class="lb-box">
|
||
<view class="">联系人:</view>
|
||
<view style="color: #333333;">{{orderOne.name}}</view>
|
||
</view>
|
||
<view class="lb-box">
|
||
<view class="">联系电话:</view>
|
||
<view style="color: #333333;">{{orderOne.phone}}</view>
|
||
</view>
|
||
<view class="lb-box">
|
||
<view class="">身份证号:</view>
|
||
<view style="color: #333333;">{{orderOne.identity}}</view>
|
||
</view>
|
||
|
||
</view>
|
||
|
||
<!-- <view class="right-icon">
|
||
<view class="">实付:</view>
|
||
<view style="font-size: 20px;color: #FB423B;">¥1700</view>
|
||
</view> -->
|
||
</view>
|
||
<view class="box_">
|
||
<view class="liang-box" style="border: none; padding: 0px;">
|
||
<view class="lb-box" style="margin-bottom: 5px;">
|
||
<view class="">报名订金:</view>
|
||
<view style="color: #333333;">¥{{orderOne.driveSchoolCourse.reserveMoney}}</view>
|
||
</view>
|
||
<view class="lb-box">
|
||
<view class="">缴纳尾款:</view>
|
||
<view style="color: #333333;">¥{{orderOne.driveSchoolCourse.price}}</view>
|
||
</view>
|
||
<view class="lb-box"
|
||
style="border-top: 1px solid #DDDDDD; box-sizing: border-box; padding-top: 10px; margin-top: 10px;">
|
||
<view class="">合计:</view>
|
||
<view style="color: #FB423B;font-weight: bold; ">
|
||
¥{{Number(orderOne.driveSchoolCourse.price) + Number(orderOne.driveSchoolCourse.reserveMoney)}}
|
||
</view>
|
||
</view>
|
||
|
||
|
||
</view>
|
||
</view>
|
||
|
||
|
||
|
||
</view>
|
||
</view>
|
||
</template>
|
||
|
||
<script>
|
||
import request from "@/utils/request.js"
|
||
import {imagesUrl} from "@/config.js"
|
||
export default {
|
||
data() {
|
||
return {
|
||
tabindex: 0,
|
||
tablist: [{
|
||
name: '全部订单'
|
||
},
|
||
{
|
||
name: '已报名'
|
||
},
|
||
{
|
||
name: '已付款'
|
||
},
|
||
{
|
||
name: '已面签'
|
||
}
|
||
],
|
||
id: null,
|
||
orderOne: null,
|
||
}
|
||
},
|
||
onLoad: function(option) {
|
||
this.id = option.id
|
||
},
|
||
onShow() {
|
||
this.findOrderOne()
|
||
},
|
||
onPullDownRefresh() {
|
||
console.log("刷新");
|
||
uni.stopPullDownRefresh()
|
||
},
|
||
onReachBottom() {
|
||
// this.show = true
|
||
setTimeout(() => {
|
||
console.log("加载执行");
|
||
}, 2000)
|
||
},
|
||
|
||
methods: {
|
||
async findOrderOne() {
|
||
let res = await request({
|
||
url: `/system/pay/${this.id}`,
|
||
method: 'get'
|
||
})
|
||
this.orderOne = res.data
|
||
},
|
||
getindex(index) {
|
||
this.tabindex = index
|
||
},
|
||
goDetails() {
|
||
uni.navigateTo({
|
||
url: '/pages/index/Details'
|
||
})
|
||
},
|
||
|
||
}
|
||
}
|
||
</script>
|
||
|
||
<style scoped lang="scss">
|
||
.con {
|
||
width: 100%;
|
||
background: #f4f5f6;
|
||
height: 100vh;
|
||
}
|
||
|
||
.content {
|
||
width: 100%;
|
||
background: #f4f5f6;
|
||
box-sizing: border-box;
|
||
padding-top: 10px;
|
||
}
|
||
|
||
.tab-list {
|
||
width: 100%;
|
||
height: 50px;
|
||
background: #fff;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
}
|
||
|
||
.tab-box {
|
||
width: 25%;
|
||
text-align: center;
|
||
font-weight: 400;
|
||
font-size: 14px;
|
||
}
|
||
|
||
.lv-size {
|
||
font-weight: bold;
|
||
font-size: 14px;
|
||
color: #4AA76F !important;
|
||
}
|
||
|
||
.gang {
|
||
width: 16px;
|
||
height: 3px;
|
||
// background: #4AA76F;
|
||
margin: 0px auto;
|
||
margin-top: 10px;
|
||
}
|
||
|
||
.lv-gang {
|
||
background: #4AA76F !important;
|
||
|
||
}
|
||
|
||
.box_ {
|
||
width: 95%;
|
||
margin: 15px auto;
|
||
background: #FFFFFF;
|
||
border-radius: 8px;
|
||
box-sizing: border-box;
|
||
padding: 15px;
|
||
}
|
||
|
||
.box-top {
|
||
width: 100%;
|
||
border-bottom: 1px solid #DDDDDD;
|
||
box-sizing: border-box;
|
||
padding-bottom: 10px;
|
||
margin-bottom: 10px;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
}
|
||
|
||
.icon-huang {
|
||
font-weight: bold;
|
||
font-size: 18px;
|
||
color: #EDA23A;
|
||
}
|
||
|
||
.h-title {
|
||
font-size: 12px;
|
||
color: #333333;
|
||
margin-bottom: 10px;
|
||
}
|
||
|
||
.hui-x {
|
||
font-size: 12px;
|
||
color: #999999;
|
||
}
|
||
|
||
.box-ds {
|
||
display: flex;
|
||
align-items: center;
|
||
|
||
}
|
||
|
||
.left-box {
|
||
width: 106px;
|
||
height: 66px;
|
||
overflow: hidden;
|
||
border-radius: 6px;
|
||
margin-right: 10px;
|
||
|
||
image {
|
||
width: 100%;
|
||
height: 100%;
|
||
}
|
||
}
|
||
|
||
.box-title {
|
||
font-weight: 800;
|
||
font-size: 14px;
|
||
color: #333333;
|
||
margin-bottom: 5px;
|
||
}
|
||
|
||
.wrap-box {
|
||
width: 100%;
|
||
box-sizing: border-box;
|
||
display: flex;
|
||
align-items: center;
|
||
flex-wrap: wrap;
|
||
|
||
}
|
||
|
||
.icon-lv {
|
||
background: #E6F5F0;
|
||
border-radius: 2px 2px 2px 2px;
|
||
|
||
box-sizing: border-box;
|
||
padding: 5px;
|
||
font-weight: 400;
|
||
font-size: 10px;
|
||
font-size: 10px;
|
||
color: #4AA76F;
|
||
margin-right: 10px;
|
||
}
|
||
|
||
.icon-h {
|
||
background: #FFEDD4;
|
||
border-radius: 2px 2px 2px 2px;
|
||
|
||
box-sizing: border-box;
|
||
padding: 5px;
|
||
font-weight: 400;
|
||
font-size: 10px;
|
||
font-size: 10px;
|
||
color: #EDA23A;
|
||
}
|
||
|
||
.price_ {
|
||
font-weight: bold;
|
||
font-size: 14px;
|
||
color: #FB423B;
|
||
margin-right: 15px;
|
||
}
|
||
|
||
.sc {
|
||
font-size: 10px;
|
||
color: #AAAAAA;
|
||
text-decoration-line: line-through;
|
||
text-transform: none;
|
||
}
|
||
|
||
.liang-box {
|
||
border-top: 1px solid #DDDDDD;
|
||
|
||
box-sizing: border-box;
|
||
padding: 10px 0px;
|
||
margin-top: 10px;
|
||
}
|
||
|
||
.lb-box {
|
||
width: 100%;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
font-size: 12px;
|
||
color: #999999;
|
||
margin-bottom: 5px;
|
||
|
||
}
|
||
|
||
.right-icon {
|
||
width: 100%;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: flex-end;
|
||
font-size: 12px;
|
||
font-weight: bold;
|
||
margin-top: 10px;
|
||
|
||
}
|
||
</style> |