no message

This commit is contained in:
kuaifan 2025-04-20 08:32:26 +08:00
parent 7bae1d9537
commit cd0fcb903f
8 changed files with 64 additions and 19 deletions

View File

@ -1543,6 +1543,16 @@ class SystemController extends AbstractController
return !str_starts_with($item, 'office/{path}/');
});
}
// 添加OKR资源
$okrContent = @file_get_contents("http://nginx/apps/okr/");
preg_match_all('/<script[^>]*src=["\']([^"\']+)["\'][^>]*>/i', $okrContent, $scriptMatches);
foreach ($scriptMatches[1] as $src) {
$array[] = $src;
}
preg_match_all('/<link[^>]*rel=["\']stylesheet["\'][^>]*href=["\']([^"\']+)["\'][^>]*>/i', $okrContent, $linkMatches);
foreach ($linkMatches[1] as $href) {
$array[] = $href;
}
}
return array_map(function($item) use ($version) {

View File

@ -118,6 +118,7 @@ body {
top: 0;
z-index: 1;
background-color: #ffffff;
word-break: break-all;
}
#poi-list {

View File

@ -60,7 +60,13 @@
<Icon v-else type="ios-search" />
</div>
<Form class="search-form" action="javascript:void(0)" @submit.native.prevent="$A.eeuiAppKeyboardHide">
<Input type="search" v-model="searchKey" :placeholder="localPlaceholder" clearable/>
<Input
type="search"
v-model="searchKey"
:placeholder="localPlaceholder"
@on-keydown="onKeydown"
@on-keyup="onKeyup"
clearable/>
</Form>
</div>
</div>
@ -284,9 +290,10 @@ export default {
],
switchActive: 'recent',
loadIng: 0, //
waitIng: 0, //
submittIng: 0, //
loadIng: 0, //
waitIng: 0, //
submittIng: 0, //
backspaceDelete: false, //
values: [],
selects: [],
@ -725,7 +732,7 @@ export default {
this.selects.push(userid)
//
this.$nextTick(() => {
$A.scrollIntoViewIfNeeded(this.$refs.selected.querySelector(`li[data-id="${userid}"]`))
$A.scrollIntoViewIfNeeded(this.$refs.selected.querySelector(`li[data-id="${userid}"]`), true)
})
}
},
@ -807,6 +814,24 @@ export default {
}
},
onKeydown(event) {
//
this.backspaceDelete = event.key === 'Backspace' && !this.searchKey && this.selects.length > 0;
},
onKeyup(event) {
if (event.key === 'Backspace' && this.backspaceDelete) {
//
for (let i = this.selects.length - 1; i >= 0; i--) {
const userid = this.selects[i];
if (!this.isUncancelable(userid)) {
this.onRemoveItem(userid);
break; // 退
}
}
}
},
show() {
this.onSelection()
},

View File

@ -662,13 +662,13 @@ const timezone = require("dayjs/plugin/timezone");
if (url) {
url = this.removeURLParameter(url, Object.keys(params))
}
url+= "";
url+= url.indexOf("?") === -1 ? '?' : '';
url += "";
url += url.indexOf("?") === -1 ? '?' : '';
for (let key in params) {
if (!params.hasOwnProperty(key)) {
continue;
}
url+= '&' + key + '=' + params[key];
url += '&' + key + '=' + encodeURIComponent(params[key]);
}
return this.rightDelete(url.replace("?&", "?"), '?');
}
@ -1133,15 +1133,23 @@ const timezone = require("dayjs/plugin/timezone");
/**
* 按需滚动到View
* @param element
* @param smooth
*/
scrollIntoViewIfNeeded(element) {
scrollIntoViewIfNeeded(element = null, smooth = false) {
if (!element) {
return;
}
if (typeof element.scrollIntoViewIfNeeded === "function") {
if (!smooth && typeof element.scrollIntoViewIfNeeded === "function") {
element.scrollIntoViewIfNeeded()
} else {
$A.scrollToView(element, {block: "nearest", inline: "nearest"})
const options = {
block: "nearest",
inline: "nearest"
}
if (smooth) {
options.behavior = 'smooth'
}
$A.scrollToView(element, options)
}
},

View File

@ -8,7 +8,7 @@
<source :src="msg.path" type="video/mp4">
</video>
<div class="file-play">
<div class="play-icon">
<div class="play-icon no-dark-content">
<i class="taskfont">&#xe745;</i>
</div>
</div>

View File

@ -405,8 +405,8 @@ export default {
.replace(/^\//, '');
const meetingPath = $A.urlAddParams("/" + meetingLink, {
type: 'direct',
nickname: encodeURIComponent(data.nickname),
avatar: encodeURIComponent(data.userimg),
nickname: data.nickname,
avatar: data.userimg,
audio: this.addData.tracks.includes("audio") ? 1 : 0,
video: this.addData.tracks.includes("video") ? 1 : 0,
token: this.userToken,

View File

@ -1247,11 +1247,11 @@ export default {
const title = $A.L("定位签到")
const channel = $A.randomString(6)
const params = {
title: encodeURIComponent(title),
label: encodeURIComponent($A.L("选择附近地点")),
placeholder: encodeURIComponent($A.L("搜索地点")),
noresult: encodeURIComponent($A.L("附近没有找到地点")),
errtip: encodeURIComponent($A.L("定位失败")),
title,
label: $A.L("选择附近地点"),
placeholder: $A.L("搜索地点"),
noresult: $A.L("附近没有找到地点"),
errtip: $A.L("定位失败"),
selectclose: "true",
channel,
}

View File

@ -118,6 +118,7 @@ body {
top: 0;
z-index: 1;
background-color: #ffffff;
word-break: break-all;
}
#poi-list {