Commit 585dc3de authored by 罗超's avatar 罗超

2

parent d55f4bf6
......@@ -7,7 +7,7 @@
background-color: #fff;
}
.Order_List {
.OrderItem {
width: 100%;
height: auto;
background-color: #fff;
......@@ -20,18 +20,25 @@
.Order_Top {
display: flex;
justify-content: space-between;
align-items: center;
margin: 30rpx 0;
}
.Order_Number {
color: #111111;
font-size: 26rpx;
.Order_label {
color: #AFB0B5;
font-size: 24rpx;
}
.Order_Name {
.Order_Number {
color: #0000ff;
font-size: 28rpx;
}
.courseName {
font-size: 40rpx;
margin-bottom: 20rpx;
font-weight: 500;
color: #000000;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
......@@ -49,67 +56,103 @@
color: #2FB4FB;
}
.Order_Bottom {
.p-lc-c {
display: flex;
justify-content: space-between;
margin-top: 32rpx;
}
align-items: center;
color: #B3B3B5;
.text_tree {
white-space: normal;
color: #111111;
font-size: 20rpx;
font-weight: bold;
margin-bottom: 20rpx;
}
.Order_TipList {
margin-bottom: 17rpx;
color: #111111;
.p-lc-item {
flex: 1;
text-align: center;
font-size: 24rpx;
display: inline-block;
}
.Order_tips {
margin-right: 30rpx;
display: inline-block;
width: 120rpx;
text-align-last: justify;
color: #999999;
.p-lc-item:last-child .item-val {
border: none;
}
.Order_Status {
font-size: 36rpx;
.item-val {
color: #8E8D92;
font-size: 32rpx;
font-weight: bold;
box-sizing: border-box;
padding: 10rpx 0;
margin: 10rpx 0;
display: block;
border-right: 1rpx solid #C7C7C7;
}
.di {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 100%
}
/* image {
width: 20px;
height: 20px;
} */
</style>
<template>
<view class="orderList">
<van-empty description="暂无数据" v-if="orderList.length === 0" />
<view v-if="orderList.length > 0">
<view class="Order_List" v-for="(item,index) in orderList" :key="index">
<view class="OrderItem" v-for="(item,index) in orderList" :key="index">
<view class="courseName">{{item.CourseName}}</view>
<view class="Order_Top">
<view class="Order_Number">订单号:{{item.OrderId}}</view>
<view class="Order_Status">
<text class="Order_Complete" v-if="item.OrderState==1">正常</text>
<text class="Order_Cancel" v-if="item.OrderState==2">退学</text>
<text class="Order_Cancel" v-if="item.OrderState==3">取消</text>
<text class="Order_noPay" v-if="item.OrderState==4">待付款</text>
</view>
<view class="Order_label">订单号:</view>
<view class="Order_Number">#{{item.OrderId}}</view>
</view>
<view class="Order_Bottom">
<view style="width:100%;">
<view class="Order_Name">{{item.CourseName}}</view>
<view class="text_tree">{{item.ClassName}}</view>
<view class="Order_TipList">
<view class="Order_tips">客户</view>
<text>{{item.GuestName}}</text>
<view class="p-lc-c">
<view class="p-lc-item">
<view>客户</view>
<view class="item-val">
{{item.GuestName}}
</view>
<view class="di">学员</view>
</view>
<view class="p-lc-item">
<view>总课时</view>
<view class="item-val">
{{item.TotalHours}}
</view>
<view class="Order_TipList">
<view class="Order_tips">完成课时</view>
<text>{{item.CompleteHours}}</text>
<view class="di">课时</view>
</view>
<view class="p-lc-item">
<view>完成课时</view>
<view class="item-val">
{{item.CompleteHours}}
</view>
<view class="di">课时</view>
</view>
<view class="p-lc-item">
<view>状态</view>
<view class="item-val">
<image
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/educationStu/zhengchang.png"
mode="heightFix" style="height:36rpx" v-if="item.OrderState==1"></image>
<image
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/educationStu/tuixue.png"
mode="heightFix" style="height:36rpx" v-if="item.OrderState==2"></image>
<image
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/educationStu/quxiao.png"
mode="heightFix" style="height:36rpx" v-if="item.OrderState==3"></image>
<image
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/educationStu/daifukuan.png"
mode="heightFix" style="height:36rpx" v-if="item.OrderState==4"></image>
</view>
<view class="Order_TipList">
<view class="Order_tips">总课时</view>
<text>{{item.TotalHours}}</text>
<view class="di">
<text v-if="item.OrderState==1">正常</text>
<text v-if="item.OrderState==2">退学</text>
<text v-if="item.OrderState==3">取消</text>
<text v-if="item.OrderState==4">待付款</text>
</view>
</view>
</view>
......
......@@ -279,7 +279,7 @@
.courseInfo {
/* height: 535rpx; */
background-color: #ebebeb;
padding: 35rpx;
padding: 40rpx 35rpx;
margin-bottom: 70rpx;
}
......
@font-face {
font-family: "iconfont"; /* Project id 2734547 */
src: url('//at.alicdn.com/t/font_2734547_dxj3l449tva.woff2?t=1631176297771') format('woff2'),
url('//at.alicdn.com/t/font_2734547_dxj3l449tva.woff?t=1631176297771') format('woff'),
url('//at.alicdn.com/t/font_2734547_dxj3l449tva.ttf?t=1631176297771') format('truetype');
src: url('//at.alicdn.com/t/font_2734547_dmciakf5o5.woff2?t=1642156587432') format('woff2'),
url('//at.alicdn.com/t/font_2734547_dmciakf5o5.woff?t=1642156587432') format('woff'),
url('//at.alicdn.com/t/font_2734547_dmciakf5o5.ttf?t=1642156587432') format('truetype');
}
.iconfont {
......@@ -13,6 +13,22 @@
-moz-osx-font-smoothing: grayscale;
}
.icon-tuixue:before {
content: "\e639";
}
.icon-quxiao:before {
content: "\e933";
}
.icon-daifukuai:before {
content: "\e650";
}
.icon-zhengchang:before {
content: "\e616";
}
.icon-caidanzu:before {
content: "\e647";
}
......@@ -35,4 +51,4 @@
.icon-radio1:before {
content: "\e600";
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment