diff --git a/app/Models/WebSocketDialogMsg.php b/app/Models/WebSocketDialogMsg.php index 4a28a2d33..909e0caf4 100644 --- a/app/Models/WebSocketDialogMsg.php +++ b/app/Models/WebSocketDialogMsg.php @@ -521,6 +521,7 @@ class WebSocketDialogMsg extends AbstractModel } switch ($data['type']) { case 'text': + case 'word-chain': return $this->previewTextMsg($data['msg']['text'], $preserveHtml); case 'record': return "[语音]"; diff --git a/language/original-web.txt b/language/original-web.txt index ec592cbcb..002a01f4c 100644 --- a/language/original-web.txt +++ b/language/original-web.txt @@ -1434,6 +1434,7 @@ APP推送 发起接龙 由 发起接龙,参与接龙目前共(*)人 +请输入接龙内容 可填写接龙格式 重复内容将不再计入接龙结果 返回编辑 diff --git a/resources/assets/js/functions/web.js b/resources/assets/js/functions/web.js index ceb59e25e..cfcc4d9cd 100755 --- a/resources/assets/js/functions/web.js +++ b/resources/assets/js/functions/web.js @@ -818,6 +818,7 @@ if ($A.isJson(data)) { switch (data.type) { case 'text': + case 'word-chain': return $A.getMsgTextPreview(data.msg.text, imgClassName) case 'record': return `[${$A.L('语音')}]` diff --git a/resources/assets/js/pages/manage.vue b/resources/assets/js/pages/manage.vue index ecf1d6b98..6cfbe3bf4 100644 --- a/resources/assets/js/pages/manage.vue +++ b/resources/assets/js/pages/manage.vue @@ -264,9 +264,6 @@ - - - @@ -292,8 +289,7 @@ import TaskExport from "./manage/components/TaskExport"; import ApproveExport from "./manage/components/ApproveExport"; import notificationKoro from "notification-koro1"; import {Store} from "le5le-store"; -import MicroApps from "../components/MicroApps.vue"; -import WordChain from "../components/WordChain.vue"; +import MicroApps from "../components/MicroApps"; export default { components: { @@ -312,8 +308,7 @@ export default { ProjectManagement, TeamManagement, ProjectArchived, - MicroApps, - WordChain + MicroApps }, directives: {longpress}, data() { diff --git a/resources/assets/js/pages/manage/application.vue b/resources/assets/js/pages/manage/application.vue index 43f92cff2..4991dcc5e 100644 --- a/resources/assets/js/pages/manage/application.vue +++ b/resources/assets/js/pages/manage/application.vue @@ -191,7 +191,7 @@ { - this.$store.state.wordChain = { + this.$store.state.dialogDroupWordChain = { type: 'create', dialog_id: dialog_id } @@ -562,13 +567,12 @@ export default { }else{ this.goForward({ name: 'manage-messenger', params: { dialog_id: dialog_id}}); setTimeout(()=>{ - this.$store.state.wordChain = { + this.$store.state.dialogDroupWordChain = { type: 'create', dialog_id: dialog_id } },100) } - } } } diff --git a/resources/assets/js/pages/manage/components/ChatInput/index.vue b/resources/assets/js/pages/manage/components/ChatInput/index.vue index e18a0c0e2..e3462fe50 100755 --- a/resources/assets/js/pages/manage/components/ChatInput/index.vue +++ b/resources/assets/js/pages/manage/components/ChatInput/index.vue @@ -102,14 +102,18 @@ {{$L('匿名消息')}} +
+ + {{$L('接龙')}} +
+
+ + {{$L('投票')}} +
{{$L('全屏输入')}}
-
- - {{$L('接龙')}} -
@@ -1233,12 +1237,20 @@ export default { this.$emit('on-more', action) break; - case 'chain-reaction': - this.$store.state.wordChain = { + case 'word-chain': + this.$store.state.dialogDroupWordChain = { type: 'create', dialog_id: this.dialogId } break; + + case 'vote': + this.$store.state.dialogGroupVote = { + type: 'create', + dialog_id: this.dialogId + } + break; + } }, diff --git a/resources/assets/js/pages/manage/components/DialogGroupVote.vue b/resources/assets/js/pages/manage/components/DialogGroupVote.vue new file mode 100644 index 000000000..bf0e527b6 --- /dev/null +++ b/resources/assets/js/pages/manage/components/DialogGroupVote.vue @@ -0,0 +1,238 @@ + + + diff --git a/resources/assets/js/components/WordChain.vue b/resources/assets/js/pages/manage/components/DialogGroupWordChain.vue similarity index 71% rename from resources/assets/js/components/WordChain.vue rename to resources/assets/js/pages/manage/components/DialogGroupWordChain.vue index 3ea471ddd..c568b956b 100644 --- a/resources/assets/js/components/WordChain.vue +++ b/resources/assets/js/pages/manage/components/DialogGroupWordChain.vue @@ -1,8 +1,8 @@
-
+
{{$L('来自')}} {{ dialog.name }}
@@ -35,16 +35,16 @@ {{ $L('发起,参与接龙目前共'+num+'人') }}
- +
    -
  • +
  • {{ $L('例') }} - +
  • -
  • - {{index}} - +
  • + {{index + 1}} +
  • @@ -61,7 +61,7 @@