修改讨论加图片

This commit is contained in:
A1300399510 2025-02-10 19:03:44 +08:00
parent abdd1780c9
commit 34301769bb
12 changed files with 3864 additions and 1663 deletions

17
app.vue
View File

@ -31,7 +31,15 @@ onMounted(() => {
if (!isProduction) { if (!isProduction) {
isNeedLogin.value = false isNeedLogin.value = false
// setTimeout(() => isGetLoginState.value = false, 10000) // setTimeout(() => isGetLoginState.value = false, 10000)
userInfo.value = {
"username": "",
"uid": 256624,
"uin": 4171117,
"avatar": "https://oss.x-php.com/avatar/97K4EWIMLrsbGTWXslC1XFxTFauOikN42jDKLNjtax7HLtRjKcKMSdU9oWFhY2E~/small?random=1739160957",
"messagenum": 0,
"newprompt": 1,
"todaysigned": 0,
}
} else determineIsLogin() } else determineIsLogin()
// determineIsLogin() // determineIsLogin()
@ -51,6 +59,7 @@ onMounted(() => {
}) })
let isNeedLogin = ref(true) // let isNeedLogin = ref(true) //
let userInfo = ref({})
let isGetLoginState = ref(true) // false let isGetLoginState = ref(true) // false
// //
@ -60,7 +69,10 @@ const determineIsLogin = () => {
if (Object.keys(window["userInfoWin"]).length !== 0) { if (Object.keys(window["userInfoWin"]).length !== 0) {
clearInterval(timer) clearInterval(timer)
isGetLoginState.value = false isGetLoginState.value = false
if (window["userInfoWin"]["uid"] || window["userInfoWin"]["uin"]) isNeedLogin.value = false if (window["userInfoWin"]["uid"] || window["userInfoWin"]["uin"]) {
isNeedLogin.value = false
userInfo.value = window["userInfoWin"]
}
} }
count++ count++
if (count >= 30) { if (count >= 30) {
@ -80,6 +92,7 @@ const goLogin = () => {
} }
provide("isNeedLogin", isNeedLogin) provide("isNeedLogin", isNeedLogin)
provide("userInfo", userInfo)
provide("goLogin", goLogin) provide("goLogin", goLogin)
provide("isGetLoginState", isGetLoginState) provide("isGetLoginState", isGetLoginState)
</script> </script>

1569
assets/css/details.css Normal file

File diff suppressed because it is too large Load Diff

1860
assets/css/details.less Normal file

File diff suppressed because it is too large Load Diff

42
assets/css/detailsPop.css Normal file
View File

@ -0,0 +1,42 @@
.respond-list-box {
width: 470px;
}
.respond-list-box .respond-list-title {
font-size: 14px;
line-height: 22px;
color: #333333;
padding-top: 16px;
padding-left: 20px;
padding-bottom: 25px;
}
.respond-list-box .respond-list {
display: flex;
flex-wrap: wrap;
display: grid;
grid-template-columns: repeat(10, 1fr);
}
.respond-list-box .respond-list .respond-item {
font-size: 20px;
font-family: "emojifont";
text-align: center;
margin-bottom: 20px;
}
.respond-list-box .respond-list .respond-item .respond-item-key {
cursor: pointer;
font-family: "emojifont";
position: relative;
z-index: 1;
}
.respond-list-box .respond-list .respond-item .respond-item-key:hover::after {
content: "";
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
display: block;
width: 35px;
height: 35px;
background-color: #eee;
border-radius: 4px;
z-index: -1;
}

View File

@ -0,0 +1,48 @@
.respond-list-box {
width: 470px;
.respond-list-title {
font-size: 14px;
line-height: 22px;
color: #333333;
padding-top: 16px;
padding-left: 20px;
padding-bottom: 25px;
}
.respond-list {
display: flex;
flex-wrap: wrap;
display: grid;
grid-template-columns: repeat(10, 1fr);
.respond-item {
font-size: 20px;
font-family: "emojifont";
text-align: center;
margin-bottom: 20px;
.respond-item-key {
cursor: pointer;
font-family: "emojifont";
position: relative;
z-index: 1;
&:hover {
&::after {
content: "";
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
display: block;
width: 35px;
height: 35px;
background-color: #eee;
border-radius: 4px;
z-index: -1;
}
}
}
}
}
}

BIN
assets/img/close-icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

BIN
assets/img/picture-icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
assets/img/smiling-face.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

@ -1,4 +1,4 @@
import Http from "@/utils/http"; import Http from "@/utils/http"
// 获取列表 // 获取列表
export const getListHttp = params => { export const getListHttp = params => {
return Http.post("/api/lists", params) return Http.post("/api/lists", params)
@ -92,6 +92,11 @@ export const commentReportHttp = query => {
return Http.post("/api/operate/report", query) return Http.post("/api/operate/report", query)
} }
// 评论相关 - 上传图片
export const commonUploadHttp = query => {
return Http.post("https://oss.gter.net/upload/base64", query)
}
// 数据操作 - 获取投币配置,我的寄托币数量 // 数据操作 - 获取投币配置,我的寄托币数量
export const coinHttp = query => { export const coinHttp = query => {
return Http.post("/api/operate/coin", query) return Http.post("/api/operate/coin", query)

View File

@ -19,9 +19,9 @@ export const handleDate = (dateTimeStamp = new Date()) => {
let Y = date.getFullYear() + "-" let Y = date.getFullYear() + "-"
let M = (date.getMonth() + 1 < 10 ? "0" + (date.getMonth() + 1) : date.getMonth() + 1) + "-" let M = (date.getMonth() + 1 < 10 ? "0" + (date.getMonth() + 1) : date.getMonth() + 1) + "-"
let D = (date.getDate() < 10 ? "0" + date.getDate() : date.getDate()) + " " let D = (date.getDate() < 10 ? "0" + date.getDate() : date.getDate()) + " "
// let h = (date.getHours() < 10 ? "0" + date.getHours() : date.getHours()) + ":" let h = (date.getHours() < 10 ? "0" + date.getHours() : date.getHours()) + ":"
// let m = date.getMinutes() < 10 ? "0" + date.getMinutes() : date.getMinutes() let m = date.getMinutes() < 10 ? "0" + date.getMinutes() : date.getMinutes()
result = "" + Y + M + D result = "" + Y + M + D + " " + h + m
} else if (dayC >= 1) result = "" + Math.round(dayC) + "天前" } else if (dayC >= 1) result = "" + Math.round(dayC) + "天前"
else if (hourC >= 1) result = "" + Math.round(hourC) + "小时前" else if (hourC >= 1) result = "" + Math.round(hourC) + "小时前"
else if (minC >= 1) result = "" + Math.round(minC) + "分钟前" else if (minC >= 1) result = "" + Math.round(minC) + "分钟前"

File diff suppressed because it is too large Load Diff

View File

@ -10,7 +10,7 @@ axios.defaults.withCredentials = true
axios.interceptors.request.use( //响应拦截 axios.interceptors.request.use( //响应拦截
async config => { async config => {
// 开发时登录用的,可以直接替换小程序的 authorization // 开发时登录用的,可以直接替换小程序的 authorization
config['headers']['authorization'] = process.env.NODE_ENV !== "production" && "0aej1kx1phbkzuks3c77xtect8s7qq47" config['headers']['authorization'] = process.env.NODE_ENV !== "production" && "c1fb97e6994539d87922b1b60c09d43c"
// config['headers']['authorization'] = "2lfrtq7h3ge634pl4ptlu2pbh2" // config['headers']['authorization'] = "2lfrtq7h3ge634pl4ptlu2pbh2"
return config; return config;
}, },