no message
This commit is contained in:
parent
2ace436134
commit
7a4b0e3b0c
@ -823,6 +823,86 @@
|
||||
line-height: 32px;
|
||||
padding: 19px 0;
|
||||
}
|
||||
.content .details-box .consult-list .consult-item {
|
||||
width: calc(50% - 5px);
|
||||
background-color: #ffffff;
|
||||
border: 1px solid #ebebeb;
|
||||
border-radius: 12px;
|
||||
padding: 20px 15px 20px 20px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.content .details-box .consult-list .consult-item .school {
|
||||
font-weight: 650;
|
||||
font-style: normal;
|
||||
font-size: 16px;
|
||||
color: #000000;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
.content .details-box .consult-list .consult-item .school .img {
|
||||
height: 27px;
|
||||
margin-right: 11px;
|
||||
}
|
||||
.content .details-box .consult-list .consult-item .info-item {
|
||||
font-size: 14px;
|
||||
margin-bottom: 10px;
|
||||
color: #7f7f7f;
|
||||
}
|
||||
.content .details-box .consult-list .consult-item .info-item .info-major {
|
||||
margin-right: 11px;
|
||||
}
|
||||
.content .details-box .consult-list .consult-item .info-item .info-value {
|
||||
color: #333333;
|
||||
}
|
||||
.content .details-box .consult-list .consult-item .info-item .line-between {
|
||||
margin: 0 9px;
|
||||
background-color: #d7d7d7;
|
||||
height: 14px;
|
||||
width: 1px;
|
||||
}
|
||||
.content .details-box .consult-list .consult-item .info-item .info-item-results {
|
||||
padding: 0 5px;
|
||||
height: 22px;
|
||||
background-color: #f6f6f6;
|
||||
border-radius: 37px;
|
||||
font-size: 13px;
|
||||
color: #72db86;
|
||||
font-family: "ArialMT", "Arial", sans-serif;
|
||||
}
|
||||
.content .details-box .consult-list .consult-item .info-xiaobox {
|
||||
width: 296px;
|
||||
height: 46px;
|
||||
background-color: #f6f6f6;
|
||||
border-radius: 6px;
|
||||
padding: 0 11px;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
.content .details-box .consult-list .consult-item .info-xiaobox .info-content {
|
||||
font-size: 14px;
|
||||
color: #7f7f7f;
|
||||
line-height: 26px;
|
||||
}
|
||||
.content .details-box .consult-list .consult-item .bottom {
|
||||
justify-content: space-between;
|
||||
}
|
||||
.content .details-box .consult-list .consult-item .bottom .bottom-left {
|
||||
font-size: 13px;
|
||||
color: #aaaaaa;
|
||||
}
|
||||
.content .details-box .consult-list .consult-item .bottom .bottom-left .bottom-avatar {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
border-radius: 50%;
|
||||
margin-right: 4px;
|
||||
}
|
||||
.content .details-box .consult-list .consult-item .bottom .numerical-box .item-bottom-item {
|
||||
margin-left: 16px;
|
||||
font-size: 12px;
|
||||
color: #aaaaaa;
|
||||
}
|
||||
.content .details-box .consult-list .consult-item .bottom .numerical-box .item-bottom-item .item-bottom-icon {
|
||||
width: 14px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
.else {
|
||||
width: 290px;
|
||||
background: -webkit-linear-gradient(270.00883066deg, #f7fbf7 0%, #eaf6ea 100%);
|
||||
|
@ -936,6 +936,103 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.consult-list {
|
||||
.consult-item {
|
||||
// width: 331px;
|
||||
width: calc(50% - 5px);
|
||||
background-color: rgba(255, 255, 255, 1);
|
||||
border: 1px solid rgba(235, 235, 235, 1);
|
||||
border-radius: 12px;
|
||||
padding: 20px 15px 20px 20px;
|
||||
margin-bottom: 10px;
|
||||
.school {
|
||||
.img {
|
||||
height: 27px;
|
||||
margin-right: 11px;
|
||||
}
|
||||
|
||||
font-weight: 650;
|
||||
font-style: normal;
|
||||
font-size: 16px;
|
||||
color: #000000;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.info-item {
|
||||
font-size: 14px;
|
||||
margin-bottom: 10px;
|
||||
color: #7f7f7f;
|
||||
|
||||
.info-major {
|
||||
margin-right: 11px;
|
||||
}
|
||||
|
||||
.info-value {
|
||||
color: #333333;
|
||||
}
|
||||
|
||||
.line-between {
|
||||
margin: 0 9px;
|
||||
background-color: #d7d7d7;
|
||||
height: 14px;
|
||||
width: 1px;
|
||||
}
|
||||
|
||||
.info-item-results {
|
||||
padding: 0 5px;
|
||||
height: 22px;
|
||||
background-color: rgba(246, 246, 246, 1);
|
||||
border-radius: 37px;
|
||||
font-size: 13px;
|
||||
color: #72db86;
|
||||
font-family: "ArialMT", "Arial", sans-serif;
|
||||
}
|
||||
}
|
||||
|
||||
.info-xiaobox {
|
||||
width: 296px;
|
||||
height: 46px;
|
||||
background-color: rgba(246, 246, 246, 1);
|
||||
border-radius: 6px;
|
||||
padding: 0 11px;
|
||||
margin-bottom: 16px;
|
||||
|
||||
.info-content {
|
||||
font-size: 14px;
|
||||
color: #7f7f7f;
|
||||
line-height: 26px;
|
||||
}
|
||||
}
|
||||
|
||||
.bottom {
|
||||
justify-content: space-between;
|
||||
|
||||
.bottom-left {
|
||||
font-size: 13px;
|
||||
color: #aaaaaa;
|
||||
.bottom-avatar {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
border-radius: 50%;
|
||||
margin-right: 4px;
|
||||
}
|
||||
}
|
||||
|
||||
.numerical-box {
|
||||
.item-bottom-item {
|
||||
margin-left: 16px;
|
||||
.item-bottom-icon {
|
||||
width: 14px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
font-size: 12px;
|
||||
color: #aaaaaa;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -1244,8 +1341,6 @@
|
||||
}
|
||||
position: relative;
|
||||
|
||||
|
||||
|
||||
.state {
|
||||
background-color: #ffffff;
|
||||
border: 1px solid #ebebeb;
|
||||
|
1481
html/details.html
1481
html/details.html
File diff suppressed because it is too large
Load Diff
BIN
img/bi-icon.png
Normal file
BIN
img/bi-icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.4 KiB |
BIN
img/discuss-icon.png
Normal file
BIN
img/discuss-icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.7 KiB |
BIN
img/expression-icon.png
Normal file
BIN
img/expression-icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.2 KiB |
BIN
img/u884.png
Normal file
BIN
img/u884.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.2 KiB |
38
js/common.js
38
js/common.js
@ -161,3 +161,41 @@ function getBaseData() {
|
||||
function openShowWindow() {
|
||||
showWindow("login", "https://passport.gter.net/login/ajax", "get", -1, { cover: true })
|
||||
}
|
||||
|
||||
function strtimeago(dateStr, type = 1) {
|
||||
dateStr = dateStr + "" // 反之传入的不是字符串
|
||||
dateStr = dateStr.replaceAll("-", "/") // 修改格式
|
||||
var minute = 1000 * 60 //把分,时,天,周,半个月,一个月用毫秒表示
|
||||
var hour = minute * 60
|
||||
var day = hour * 24
|
||||
var now = new Date().getTime() //获取当前时间毫秒
|
||||
let objectTime = new Date(dateStr).getTime()
|
||||
var diffValue = now - objectTime //时间差
|
||||
if (diffValue < 0) return "刚刚"
|
||||
|
||||
var minC = diffValue / minute //计算时间差的分,时,天,周,月
|
||||
var hourC = diffValue / hour
|
||||
var dayC = diffValue / day
|
||||
|
||||
const diffInMilliseconds = now - objectTime
|
||||
const diffInYears = diffInMilliseconds / (1000 * 60 * 60 * 24 * 365)
|
||||
const diffInMonths = diffInYears * 12
|
||||
|
||||
let result = ""
|
||||
if (dayC >= 7) {
|
||||
var datetime = new Date(dateStr)
|
||||
var Nyear = datetime.getFullYear()
|
||||
var Nmonth = datetime.getMonth() + 1 < 10 ? "0" + (datetime.getMonth() + 1) : datetime.getMonth() + 1
|
||||
var Ndate = datetime.getDate() < 10 ? "0" + datetime.getDate() : datetime.getDate()
|
||||
var Nhour = datetime.getHours() < 10 ? "0" + datetime.getHours() : datetime.getHours()
|
||||
var Nmin = datetime.getMinutes() < 10 ? "0" + datetime.getMinutes() : datetime.getMinutes()
|
||||
|
||||
if (diffInYears >= 1) result = Math.floor(diffInYears) + "年前"
|
||||
else if (diffInMonths >= 1) result = Math.floor(diffInMonths) + "个月前"
|
||||
} else if (dayC >= 1) result = parseInt(dayC) + "天前"
|
||||
else if (hourC >= 1 && hourC <= 24) result = parseInt(hourC) + "小时前"
|
||||
else if (minC >= 1 && minC <= 60) result = parseInt(minC) + "分钟前"
|
||||
else result = "刚刚"
|
||||
|
||||
return result
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user