From 26c1ac5cedadd3b015f6f6ffcc6f29730ff6aa07 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=A7=8B=E4=BA=8E=E5=88=9D=E8=A7=81?= <752204717@qq.com>
Date: Thu, 14 Aug 2025 16:49:58 +0800
Subject: [PATCH] tijaio
---
common/commonJS.js | 2 +
components/qizai-dynamic/Dynamic.vue | 60 +-
pages/articleList/article.vue | 249 ++++++--
pages/articleList/index.vue | 209 ++++---
pages/articleList/likeList.vue | 21 +-
pages/articleList/pinglun.vue | 105 ++--
pages/doctors/index.vue | 44 +-
pages/medicalRecords/index.vue | 68 ++-
pages/medicalRecords/medical.vue | 4 +
pages/my/index.vue | 24 +-
.../components/hb-comment/Telecloud-emoji.vue | 84 +++
.../components/hb-comment/emoji.png | Bin 0 -> 2178 bytes
.../components/hb-comment/emoji.vue | 79 +++
.../components/hb-comment/hb-comment.vue | 546 +++++++++++++-----
.../components/hb-comment/jianpan.png | Bin 0 -> 966 bytes
15 files changed, 1144 insertions(+), 351 deletions(-)
create mode 100644 uni_modules/hb-comment/components/hb-comment/Telecloud-emoji.vue
create mode 100644 uni_modules/hb-comment/components/hb-comment/emoji.png
create mode 100644 uni_modules/hb-comment/components/hb-comment/emoji.vue
create mode 100644 uni_modules/hb-comment/components/hb-comment/jianpan.png
diff --git a/common/commonJS.js b/common/commonJS.js
index 0d7b9682..87ed07bb 100644
--- a/common/commonJS.js
+++ b/common/commonJS.js
@@ -45,6 +45,8 @@ export default {
}
uni.navigateBack({ delta: 1 });
},
+
+
//复制内容
handleCopy(value, title) {
uniCopy({
diff --git a/components/qizai-dynamic/Dynamic.vue b/components/qizai-dynamic/Dynamic.vue
index 24b93370..0fc9f12a 100644
--- a/components/qizai-dynamic/Dynamic.vue
+++ b/components/qizai-dynamic/Dynamic.vue
@@ -25,7 +25,7 @@
@click.stop="clickUser()"
>{{ name }}
- {{
createTime
@@ -56,7 +56,7 @@
height: auto;
color: #4b4b4b;
margin-bottom: 40rpx;
- font-size: 28rpx;
+ font-size: 28rpx;text-indent: 0px !important;
"
/>
@@ -263,9 +263,31 @@ export default {
},
// 自适应判断
judgeImg() {
- if (this.imgList.length == 1) {
- this.imgWidth = ((this.windowWidth - 60) * 2) / 3;
- this.imgHeight = (this.windowHeight * 3) / 5;
+ if (this.imgList.length === 1) {
+ const firstImg = this.imgList[0];
+
+ // 获取图片的宽高信息
+ uni.getImageInfo({
+ src: firstImg, // 获取图片路径
+ success: (res) => {
+ const imgWidth = res.width;
+ const imgHeight = res.height;
+
+ // 如果是横向图片(宽大于高)
+ if (imgWidth > imgHeight) {
+ // 横向图片尺寸设置
+ this.imgWidth = ((this.windowWidth - 90) * 2) / 2;
+ this.imgHeight = (this.windowHeight * 3) / 5;
+ } else {
+ // 纵向图片尺寸设置
+ this.imgWidth = (this.windowWidth - 80) * 0.7; // 纵向图片稍微缩小宽度
+ this.imgHeight = (this.windowHeight * 3) / 5;
+ }
+ },
+ fail: (err) => {
+ console.error("图片加载失败", err);
+ },
+ });
} else if (this.imgList.length == 4) {
this.imgWidth = (this.windowWidth - 60) / 3.3;
this.imgHeight = this.imgWidth;
@@ -461,7 +483,7 @@ export default {
overflow: hidden;
}
.user__content-note {
- margin-top: 3px;
+ margin-top: 2rpx;
color: #aaacab;
font-size: 26rpx;
letter-spacing: 1rpx;
@@ -485,23 +507,37 @@ export default {
text-align: justify;
color: #292929;
font-weight: 600;
- font-size: 32rpx;
- margin-bottom: 10rpx;
+ font-size: 38rpx;
+ line-height: 42rpx;
+ margin-bottom: 20rpx;
}
.user__content-title {
color: #5a6988;
font-weight: 600;
font-size: 30rpx;
- line-height: 38rpx;
+ line-height: 34rpx;
+ // margin-top: 8rpx;
}
::v-deep rich-text {
text-align: justify;
white-space: pre-wrap;
word-wrap: break-word;
}
-::v-deep rich-text p {
+::v-deep rich-text p,h1,h2 {
text-indent: 0 !important;
}
+/deep/ rich-text br {
+ height: 0 !important;
+ display: none;
+}
+::v-deep rich-text h1 {
+ font-size: 34rpx;
+ line-height: 40rpx;
+}
+::v-deep rich-text h2 {
+ font-size: 30rpx;
+ line-height: 30rpx;
+}
.likeList {
background: #f7f7f7;
border-radius: 4rpx;
@@ -513,8 +549,8 @@ export default {
margin-top: 0;
}
.hidden2 {
- line-height: 24px;
- max-height: 120px;
+ line-height: 20px;
+ max-height: 100px;
-webkit-line-clamp: 5;
height: auto;
}
diff --git a/pages/articleList/article.vue b/pages/articleList/article.vue
index 235543c1..49b7011a 100644
--- a/pages/articleList/article.vue
+++ b/pages/articleList/article.vue
@@ -2,44 +2,81 @@
+
+
提交
删除分享
@@ -123,15 +160,17 @@
-
-
-
+
{{ articleInfo.title }}
@@ -210,9 +253,23 @@
{{ articleInfo.createTime }}
+
+
-
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/uni_modules/hb-comment/components/hb-comment/emoji.png b/uni_modules/hb-comment/components/hb-comment/emoji.png
new file mode 100644
index 0000000000000000000000000000000000000000..f3cb8fbf1f608379f3e6013e27244fa474d266fb
GIT binary patch
literal 2178
zcmchZ`CC(G7RQ5h7)8_!+FGd7CoGjlsf{uq3YLr|DkHKZT2!K7E9%ssKtNd{Q4kRl
z*%Sz-N`OE@_5>0LH(|$dfMKfBC`zy`*kMV;DpHZt_d5T>+~+RuJnabp@B*jT+_kTR>;%CZ3UER
zphgZg3aFJsoeWBv;g$-DTcE5Ngi_#YAqxXt0~EAEej8*MpiKzhDS?H7SORhp=&vL4cnfYn3242pDs)qz|L=^Y>yLrViRN`ct{twP|bz*q;8Ca6*YPYD%jNbUlq
z2r4yjy#=ke*)B-wgj-7Bsi9g0Sq9)M;94u(Qb2wy
zTy6t#6MUzD96hl0P^bg72rgpKAO)cev<;vWf>I1pDV*(wo*L+_futVbAUKVH@o~+3
zDUJnotWx4|(1~0#Fx+6b0JmH(1x_=*MxPn#@e1maVTAJ-G)ZvaC=09>r-AAUF^&=8
z6)5l^&UHbW5javjg+eWk6m>*SkUzfwC5RN3szK3+<3coKVm#kEDb&jF97R%m
z&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M^c=O)};oD#3Z!->$
zpi#ZI>=l?TmvNzPuT)rr}72QiccKNrdD?WIX^8ZW~=<$PHex4a-_W2Md;pGPP_9U
zD0839k3UvkarAgox_*Comv=oeMiC)*bX1)fD;L_VzoYRyBzX34jos`C!3Fl|BQ`I2
Wu?f+dq@U5x1R;nP5-8b8&-oq0%r)}>
literal 0
HcmV?d00001
diff --git a/uni_modules/hb-comment/components/hb-comment/emoji.vue b/uni_modules/hb-comment/components/hb-comment/emoji.vue
new file mode 100644
index 00000000..88054ac4
--- /dev/null
+++ b/uni_modules/hb-comment/components/hb-comment/emoji.vue
@@ -0,0 +1,79 @@
+
+
+
+
+
+
+ {{ item }}
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/uni_modules/hb-comment/components/hb-comment/hb-comment.vue b/uni_modules/hb-comment/components/hb-comment/hb-comment.vue
index 210e2a2b..b8351785 100644
--- a/uni_modules/hb-comment/components/hb-comment/hb-comment.vue
+++ b/uni_modules/hb-comment/components/hb-comment/hb-comment.vue
@@ -1,5 +1,9 @@
-