tijiao
@@ -80,7 +80,7 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="icon uni-row uni-center" ref="commentIcon" @click="showComment">
|
||||
<view class="icon uni-row uni-center" ref="commentIcon" >
|
||||
<text class="dot mr-5"></text>
|
||||
<text class="dot"></text>
|
||||
</view>
|
||||
|
||||
@@ -294,8 +294,7 @@
|
||||
:user="currentUser"
|
||||
ref="hbComment"
|
||||
@add="sendComment"
|
||||
@del="del"
|
||||
@focusOn="focusOn"
|
||||
|
||||
:deleteTip="'确认删除?'"
|
||||
:cmData="commentData"
|
||||
v-if="commentData"
|
||||
@@ -408,8 +407,7 @@
|
||||
:user="currentUser"
|
||||
ref="hbComment"
|
||||
@add="sendComment"
|
||||
@del="del"
|
||||
@focusOn="focusOn"
|
||||
|
||||
:deleteTip="'确认删除?'"
|
||||
:cmData="commentData"
|
||||
v-if="commentData"
|
||||
@@ -1120,12 +1118,13 @@ export default {
|
||||
.then((res) => {
|
||||
console.log("res at line 713:", res);
|
||||
if (res.code == 0) {
|
||||
this.getMedicalDetail();
|
||||
if(pid==0){
|
||||
setTimeout(() => {
|
||||
this.scrollToView("commentData");
|
||||
}, 500);
|
||||
}, 100);
|
||||
}
|
||||
this.getMedicalDetail();
|
||||
|
||||
|
||||
|
||||
// this.scrollToComment();
|
||||
|
||||
@@ -34,8 +34,7 @@
|
||||
:articleUserId="articleInfo.userId"
|
||||
ref="hbComment"
|
||||
@add="sendComment"
|
||||
@del="del"
|
||||
@focusOn="focusOn"
|
||||
|
||||
:deleteTip="'确认删除?'"
|
||||
:cmData="commentData"
|
||||
v-if="commentData"
|
||||
@@ -176,12 +175,14 @@ export default {
|
||||
.then((res) => {
|
||||
console.log("res at line 713:", res);
|
||||
if (res.code == 0) {
|
||||
this.getMedicalDetail();
|
||||
if(pid==0){
|
||||
setTimeout(() => {
|
||||
this.scrollToView("commentData");
|
||||
}, 500);
|
||||
}, 100);
|
||||
}
|
||||
this.getMedicalDetail();
|
||||
|
||||
|
||||
} else {
|
||||
this.$commonJS.showToast("评论失败");
|
||||
}
|
||||
|
||||
@@ -232,6 +232,24 @@
|
||||
<uni-popup ref="share" type="share" safeArea backgroundColor="#fff">
|
||||
<uni-popup-share @select="haveSelected"></uni-popup-share>
|
||||
</uni-popup>
|
||||
<uni-popup ref="customModal2" type="dialog" backgroundColor="#fff" round="8" >
|
||||
<view class="my-modal" style="width: 80vw;border-radius: 20px;padding: 20px;">
|
||||
<view class="my-modal__hd" style="font-size: 36rpx;font-weight: 700;margin-bottom: 10rpx;">消息提醒</view>
|
||||
<view style="margin-bottom: 20rpx;font-size: 26rpx;color: #5188e5;">您的文章有人点赞评论啦,请注意查看。</view>
|
||||
<view class="my-modal__bd">
|
||||
<view class="multi-line-text">
|
||||
<view style=" display: block;" v-for="(item, index) in sysNotices_list" :key="index">
|
||||
|
||||
<view v-if="item&&item.title" class="hidden1" @click="readArticle(item)" style="text-wrap: wrap;white-space: pre-wrap;width: 100%;
|
||||
word-wrap: break-word;">{{index+1}}.{{ item.title }}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="my-modal__ft" style="margin-top: 10rpx;">
|
||||
<button @click="confirm2" style="font-size: 28rpx;color: #bbb;">知道了</button>
|
||||
</view>
|
||||
</view>
|
||||
</uni-popup>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -245,6 +263,7 @@ import commonLikeList from "../articleList/likeList.vue";
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
sysNotices_list:[],
|
||||
shareId: null,
|
||||
activeTab: 0,
|
||||
tabsList: [],
|
||||
@@ -303,11 +322,62 @@ export default {
|
||||
}, 800);
|
||||
},
|
||||
onLoad() {
|
||||
this.getSysNotices()
|
||||
uni.hideTabBar();
|
||||
this.getTabData();
|
||||
},
|
||||
onShow() {},
|
||||
methods: {
|
||||
confirm2(){
|
||||
this.$refs.customModal2.close();
|
||||
this.sysNotices_list.forEach(e=>{
|
||||
if(e&&e.id){
|
||||
this.readSysNotice(e.id);
|
||||
}
|
||||
})
|
||||
// this.readSysNotice();
|
||||
},
|
||||
readArticle(item){
|
||||
this.readSysNotice(item.id)
|
||||
|
||||
uni.navigateTo({
|
||||
url: `/pages/articleList/article?navTitle=文章详情&title=文章详情&id=${item.id}&type=detail&statusId=${item.showFlag}`,
|
||||
});
|
||||
this.$refs.customModal2.close();
|
||||
},
|
||||
//已读记录
|
||||
async readSysNotice(id) {
|
||||
await $http
|
||||
.request({
|
||||
url: "common/taihuTalentArticle/setReadFlag",
|
||||
method: "POST",
|
||||
data: { articleId: id},
|
||||
header: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
})
|
||||
.then(async (res) => {
|
||||
|
||||
});
|
||||
},
|
||||
async getSysNotices() {
|
||||
await $http
|
||||
.request({
|
||||
url: "common/taihuTalentArticle/getCommentRemind",
|
||||
method: "POST",
|
||||
data: { },
|
||||
header: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
})
|
||||
.then(async (res) => {
|
||||
if(res.set&&res.set.length>0){
|
||||
this.sysNotices_list = res.set;
|
||||
// this.idString = res.set.map(item => item.id).join(', ');
|
||||
this.$refs.customModal2.open();
|
||||
}
|
||||
});
|
||||
},
|
||||
refreshData(reset) {
|
||||
if (reset) {
|
||||
this.currentCateIndex = 0;
|
||||
@@ -873,4 +943,10 @@ export default {
|
||||
max-height: 48px;
|
||||
height: auto;
|
||||
}
|
||||
.hidden1 {
|
||||
line-height: 24px;
|
||||
max-height: 24px;
|
||||
height: auto;
|
||||
-webkit-line-clamp: 1;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -196,10 +196,7 @@
|
||||
<!-- 无评论-start -->
|
||||
<view
|
||||
class="comment-none"
|
||||
@click="
|
||||
showInput = false;
|
||||
commentContent = '';
|
||||
"
|
||||
|
||||
v-if="!isDisable"
|
||||
style="background-color: #fafafa"
|
||||
>
|
||||
@@ -252,64 +249,52 @@
|
||||
</view>
|
||||
<view
|
||||
class="input-container"
|
||||
:style="{ bottom: keyboardHeight + 'px' }"
|
||||
:style="{ bottom: (show?205:0) + 'px' }"
|
||||
v-if="showInput"
|
||||
>
|
||||
<view style="overflow: hidden; margin-bottom: 4rpx; font-size: 28rpx"
|
||||
<view style="overflow: hidden; margin-bottom: 4rpx; font-size: 32rpx"
|
||||
><text
|
||||
@click.stop="
|
||||
showInput = false;
|
||||
commentContent = '';
|
||||
"
|
||||
style="float: left"
|
||||
style="float: left;margin-top:4rpx"
|
||||
>取消</text
|
||||
>
|
||||
|
||||
<text @click.stop="sendComment" style="float: right; color: #1985fd"
|
||||
<text @click.stop="sendComment" style="float: right; color: #1985fd;margin-right:20rpx;margin-top:4rpx;"
|
||||
>发送</text
|
||||
>
|
||||
<image v-if="!show"
|
||||
<image
|
||||
src="./emoji.png"
|
||||
@click.stop="emojichet()"
|
||||
mode=""
|
||||
style="
|
||||
height: 52rpx;
|
||||
width: 52rpx;
|
||||
height: 50rpx;
|
||||
width: 50rpx;
|
||||
object-fit: fill;
|
||||
float: right;
|
||||
margin-right: 2%;
|
||||
margin-top: -4rpx;
|
||||
"
|
||||
></image
|
||||
>
|
||||
<image v-else
|
||||
src="./jianpan.png"
|
||||
@click.stop="emojichet()"
|
||||
mode=""
|
||||
style="
|
||||
height: 52rpx;
|
||||
width: 52rpx;
|
||||
object-fit: fill;
|
||||
float: right;
|
||||
margin-right: 2%;
|
||||
margin-top: -4rpx;
|
||||
margin-right: 30rpx;
|
||||
margin-top: 0rpx;
|
||||
"
|
||||
></image
|
||||
>
|
||||
|
||||
|
||||
|
||||
|
||||
</view>
|
||||
<view>
|
||||
<textarea
|
||||
auto-height
|
||||
|
||||
style="max-height: 200rpx; overflow-y: auto; padding: 14rpx"
|
||||
v-model="commentContent"
|
||||
class="comment-input"
|
||||
maxlength="-1"
|
||||
:placeholder="placeholder ? placeholder : '发表评论...'"
|
||||
@focus.stop="onInputFocus"
|
||||
@blur.stop="onInputBlur"
|
||||
|
||||
:auto-focus="showInput"
|
||||
/>
|
||||
</view>
|
||||
@@ -317,7 +302,7 @@
|
||||
<view
|
||||
class="emoji_box"
|
||||
v-if="show"
|
||||
:style="{ height: keyboardHeight + 'px' }"
|
||||
|
||||
>
|
||||
<scroll-view class="scrool" scroll-y="true">
|
||||
<view class="emojis">
|
||||
@@ -447,7 +432,7 @@ export default {
|
||||
"😉",
|
||||
"😊",
|
||||
"😇",
|
||||
"🥰",
|
||||
|
||||
"😍",
|
||||
"🤩",
|
||||
"😘",
|
||||
@@ -469,7 +454,7 @@ export default {
|
||||
"🤓",
|
||||
"🤠",
|
||||
"😎",
|
||||
"🥳",
|
||||
|
||||
"😵",
|
||||
"🤧",
|
||||
"🤕",
|
||||
@@ -487,14 +472,14 @@ export default {
|
||||
"🙄",
|
||||
"😬",
|
||||
"🤥",
|
||||
"😶🌫️",
|
||||
"😮🌫️",
|
||||
"😶",
|
||||
"😮",
|
||||
"😴",
|
||||
"🤮",
|
||||
"❤️",
|
||||
"💯",
|
||||
"💔",
|
||||
"💩",
|
||||
|
||||
"🤡",
|
||||
"🤖",
|
||||
"👻",
|
||||
@@ -504,7 +489,7 @@ export default {
|
||||
"💣",
|
||||
"💋",
|
||||
"😡",
|
||||
"🤬",
|
||||
|
||||
"😠",
|
||||
],
|
||||
pId: 0,
|
||||
@@ -533,12 +518,7 @@ export default {
|
||||
this.placeholder = "发表评论...";
|
||||
this.commentContent = "";
|
||||
|
||||
this.keyboardListener = uni.onKeyboardHeightChange((res) => {
|
||||
this.keyboardHeight = res.height;
|
||||
});
|
||||
uni.onKeyboardHeightChange((res) => {
|
||||
this.KeyboardHeight = res.height;
|
||||
});
|
||||
|
||||
},
|
||||
onUnload() {
|
||||
// 移除监听
|
||||
@@ -548,8 +528,14 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
tap(item) {
|
||||
console.log("item at line 515:", item);
|
||||
this.commentContent += item;
|
||||
this.$nextTick(() => {
|
||||
// 在页面渲染完成后获取textarea并设置焦点
|
||||
this.showInput = true;
|
||||
|
||||
});
|
||||
this.commentContent += item; // 更新文本框内容
|
||||
this.focus = true; // 更新焦点状态
|
||||
|
||||
|
||||
// this.$emit("emoji", item); // 触发 emoji 事件,将选择的 emoji 传给父组件
|
||||
},
|
||||
@@ -557,7 +543,12 @@ export default {
|
||||
emojichet() {
|
||||
// this.reply("", "", 0);
|
||||
|
||||
this.show = !this.show; // 打开 emoji 列表
|
||||
this.show = true; // 打开 emoji 列表
|
||||
// if(this.show){
|
||||
// this.focus = false;
|
||||
// }else{
|
||||
// this.focus = true;
|
||||
// }
|
||||
},
|
||||
|
||||
scrollToView(callback) {
|
||||
@@ -572,17 +563,18 @@ export default {
|
||||
.exec();
|
||||
},
|
||||
onInputFocus() {
|
||||
console.log(11111111111);
|
||||
// 可以在这里添加额外的逻辑,如滚动到输入框位置
|
||||
},
|
||||
|
||||
// 输入框失去焦点
|
||||
onInputBlur() {
|
||||
console.log(11111111111);
|
||||
setTimeout(() => {
|
||||
if (!this.commentContent.trim() && !this.show) {
|
||||
|
||||
if (!this.commentContent.trim()) {
|
||||
this.showInput = false;
|
||||
}
|
||||
}, 200);
|
||||
|
||||
|
||||
// 如果输入框为空,点击空白处关闭输入框
|
||||
},
|
||||
@@ -615,9 +607,15 @@ export default {
|
||||
stopPrevent() {},
|
||||
// 回复评论
|
||||
reply(pUser, reUser, pId) {
|
||||
this.show=false
|
||||
if (this.isDisable) {
|
||||
return false;
|
||||
}
|
||||
this.keyboardListener = uni.onKeyboardHeightChange((res) => {
|
||||
console.log(res); // 打印返回值,查看其中的内容
|
||||
this.keyboardHeight = res.height;
|
||||
});
|
||||
|
||||
this.pUser = pUser;
|
||||
this.commentReq.pId = pId;
|
||||
this.pId = pId;
|
||||
@@ -647,7 +645,7 @@ export default {
|
||||
confirmText: "确认删除",
|
||||
success: function (res) {
|
||||
if (res.confirm) {
|
||||
that.$emit("del", commentId);
|
||||
// that.$emit("del", commentId);
|
||||
}
|
||||
},
|
||||
});
|
||||
@@ -1061,7 +1059,7 @@ export default {
|
||||
}
|
||||
|
||||
.emoji_box {
|
||||
height: 440rpx;
|
||||
height: 400rpx;
|
||||
background: #f6f6f6;
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
@@ -1077,10 +1075,10 @@ export default {
|
||||
.emojis {
|
||||
width: 95%;
|
||||
margin: 0 auto;
|
||||
font-size: 40rpx;
|
||||
font-size: 46rpx;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 10rpx 25rpx;
|
||||
gap: 20rpx 30rpx;
|
||||
flex-shrink: 3;
|
||||
// padding-bottom: 50rpx;
|
||||
}
|
||||
|
||||
18
unpackage/dist/build/app-plus/app-service.js
vendored
6
unpackage/dist/build/app-plus/app-view.js
vendored
BIN
unpackage/dist/build/app-plus/assets/emoji.f8effbf2.png
vendored
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
unpackage/dist/build/app-plus/assets/iconfont.033599f6.woff
vendored
Normal file
BIN
unpackage/dist/build/app-plus/assets/iconfont.05295dc6.woff2
vendored
Normal file
BIN
unpackage/dist/build/app-plus/assets/iconfont.dc849506.ttf
vendored
Normal file
BIN
unpackage/dist/build/app-plus/static/icon/a.png
vendored
Normal file
|
After Width: | Height: | Size: 5.3 KiB |
BIN
unpackage/dist/build/app-plus/static/icon/a_.png
vendored
Normal file
|
After Width: | Height: | Size: 5.4 KiB |
BIN
unpackage/dist/build/app-plus/static/icon/aa.png
vendored
Normal file
|
After Width: | Height: | Size: 2.2 KiB |
BIN
unpackage/dist/build/app-plus/static/icon/b.png
vendored
Normal file
|
After Width: | Height: | Size: 4.8 KiB |
BIN
unpackage/dist/build/app-plus/static/icon/b_.png
vendored
Normal file
|
After Width: | Height: | Size: 90 KiB |
BIN
unpackage/dist/build/app-plus/static/icon/bb.png
vendored
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
unpackage/dist/build/app-plus/static/icon/c.png
vendored
Normal file
|
After Width: | Height: | Size: 5.5 KiB |
BIN
unpackage/dist/build/app-plus/static/icon/c_.png
vendored
Normal file
|
After Width: | Height: | Size: 304 KiB |
BIN
unpackage/dist/build/app-plus/static/icon/cc.png
vendored
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
unpackage/dist/build/app-plus/static/icon/jiancezhong.png
vendored
Normal file
|
After Width: | Height: | Size: 10 KiB |
BIN
unpackage/dist/build/app-plus/static/icon/jing2.png
vendored
Normal file
|
After Width: | Height: | Size: 3.8 KiB |
BIN
unpackage/dist/build/app-plus/static/icon/jingpin.png
vendored
Normal file
|
After Width: | Height: | Size: 3.3 KiB |
BIN
unpackage/dist/build/app-plus/static/icon/jingpinganli.png
vendored
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
unpackage/dist/build/app-plus/static/icon/noIcon.png
vendored
Normal file
|
After Width: | Height: | Size: 2.6 KiB |
BIN
unpackage/dist/build/app-plus/static/logo_taihu.png
vendored
Normal file
|
After Width: | Height: | Size: 39 KiB |
17351
unpackage/dist/dev/app-plus/app-service.js
vendored
21942
unpackage/dist/dev/app-plus/app-view.js
vendored
BIN
unpackage/dist/dev/app-plus/assets/emoji.f8effbf2.png
vendored
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
unpackage/dist/dev/app-plus/assets/iconfont.033599f6.woff
vendored
Normal file
BIN
unpackage/dist/dev/app-plus/assets/iconfont.05295dc6.woff2
vendored
Normal file
BIN
unpackage/dist/dev/app-plus/assets/iconfont.dc849506.ttf
vendored
Normal file
BIN
unpackage/dist/dev/app-plus/assets/jianpan.4a0b8e20.png
vendored
Normal file
|
After Width: | Height: | Size: 966 B |
BIN
unpackage/dist/dev/app-plus/static/icon/a.png
vendored
Normal file
|
After Width: | Height: | Size: 5.3 KiB |
BIN
unpackage/dist/dev/app-plus/static/icon/a_.png
vendored
Normal file
|
After Width: | Height: | Size: 5.4 KiB |
BIN
unpackage/dist/dev/app-plus/static/icon/aa.png
vendored
Normal file
|
After Width: | Height: | Size: 2.2 KiB |
BIN
unpackage/dist/dev/app-plus/static/icon/b.png
vendored
Normal file
|
After Width: | Height: | Size: 4.8 KiB |
BIN
unpackage/dist/dev/app-plus/static/icon/b_.png
vendored
Normal file
|
After Width: | Height: | Size: 90 KiB |
BIN
unpackage/dist/dev/app-plus/static/icon/bb.png
vendored
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
unpackage/dist/dev/app-plus/static/icon/c.png
vendored
Normal file
|
After Width: | Height: | Size: 5.5 KiB |
BIN
unpackage/dist/dev/app-plus/static/icon/c_.png
vendored
Normal file
|
After Width: | Height: | Size: 304 KiB |
BIN
unpackage/dist/dev/app-plus/static/icon/cc.png
vendored
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
unpackage/dist/dev/app-plus/static/icon/jiancezhong.png
vendored
Normal file
|
After Width: | Height: | Size: 10 KiB |
BIN
unpackage/dist/dev/app-plus/static/icon/jing2.png
vendored
Normal file
|
After Width: | Height: | Size: 3.8 KiB |
BIN
unpackage/dist/dev/app-plus/static/icon/jingpin.png
vendored
Normal file
|
After Width: | Height: | Size: 3.3 KiB |
BIN
unpackage/dist/dev/app-plus/static/icon/jingpinganli.png
vendored
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
unpackage/dist/dev/app-plus/static/icon/noIcon.png
vendored
Normal file
|
After Width: | Height: | Size: 2.6 KiB |
BIN
unpackage/dist/dev/app-plus/static/logo_taihu.png
vendored
Normal file
|
After Width: | Height: | Size: 39 KiB |