From 93eeab864c676f8e6983d0350eff680e9b2951ce Mon Sep 17 00:00:00 2001 From: kola-web Date: Mon, 3 Nov 2025 11:51:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=AE=E7=82=B9=E8=A7=86=E9=A2=91=E6=92=AD?= =?UTF-8?q?=E6=94=BE=E9=A1=BA=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- keymap.json | 316 ----------------------------- project.private.config.json | 7 + src/patient/pages/liveDetail/index.ts | 5 +- src/patient/pages/liveDetail/index.wxml | 5 +- src/patient/pages/liveDetailVideo/index.ts | 4 + 5 files changed, 17 insertions(+), 320 deletions(-) delete mode 100644 keymap.json diff --git a/keymap.json b/keymap.json deleted file mode 100644 index 6a68266..0000000 --- a/keymap.json +++ /dev/null @@ -1,316 +0,0 @@ -[ - // emmet - { - "key": "alt+e", - "command": "workbench.action.showEmmetCommands" - }, - // console - { - "key": "ctrl+shift+l", - "command": "js-console.insertConsoleLog", - "when": "editorTextFocus" - }, - { - "key": "shift+alt+l", - "command": "-js-console.insertConsoleLog", - "when": "editorTextFocus" - }, - { - "key": "ctrl+shift+t", - "command": "js-console.insertConsoleTable", - "when": "editorTextFocus" - }, - { - "key": "shift+alt+t", - "command": "-js-console.insertConsoleTable", - "when": "editorTextFocus" - }, - { - "key": "ctrl+shift+w", - "command": "js-console.insertConsoleWarn", - "when": "editorTextFocus" - }, - { - "key": "shift+alt+w", - "command": "-js-console.insertConsoleWarn", - "when": "editorTextFocus" - }, - { - "key": "ctrl+shift+d", - "command": "workbench.debug.panel.action.clearReplAction" - }, - { - "key": "ctrl+shift+e", - "command": "js-console.insertConsoleError", - "when": "editorTextFocus" - }, - { - "key": "shift+alt+e", - "command": "-js-console.insertConsoleError", - "when": "editorTextFocus" - }, - // Explorer - { - "key": "enter", - "command": "list.select", - "when": "listFocus && !inputFocus" - }, - { - "key": "a", - "command": "explorer.newFile", - "when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !inputFocus" - }, - { - "key": "shift+a", - "command": "explorer.newFolder", - "when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !inputFocus" - }, - { - "key": "y", - "command": "filesExplorer.copy", - "when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !inputFocus" - }, - { - "key": "x", - "command": "filesExplorer.cut", - "when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !inputFocus" - }, - { - "key": "p", - "command": "filesExplorer.paste", - "when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceReadonly && !inputFocus" - }, - { - "key": "r", - "command": "renameFile", - "when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus" - }, - { - "key": "m", - "command": "workbench.files.action.refreshFilesExplorer", - "when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus" - }, - // { - // "key": "m", - // "command": "editor.action.showContextMenu", - // "when": "explorerViewletVisible && filesExplorerFocus && !inputFocus" - // }, - { - "key": "q", - "command": "workbench.action.toggleSidebarVisibility", - "when": "explorerResourceMoveableToTrash && explorerViewletVisible && filesExplorerFocus && !explorerResourceReadonly && !inputFocus" - }, - // "command": "workbench.files.action.refreshFilesExplorer", - { - "key": "d", - "command": "moveFileToTrash", - "when": "explorerResourceMoveableToTrash && explorerViewletVisible && filesExplorerFocus && !explorerResourceReadonly && !inputFocus" - }, - { - "key": "shift+d", - "command": "deleteFile", - "when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceReadonly && !inputFocus" - }, - { - "key": "c", - "command": "workbench.files.action.collapseExplorerFolders", - "when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceReadonly && !inputFocus" - }, - { - "key": "s", - "command": "explorer.openToSide", - "when": "explorerViewletFocus && explorerViewletVisible && !inputFocus" - }, - { - "key": "f", - "command": "revealFileInOS", - "when": "explorerViewletFocus && explorerViewletVisible && !inputFocus" - }, - { - "key": "t", - "command": "openInTerminal", - "when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !inputFocus" - }, - { - "key": "u", - "command": "copyFilePath", - "when": "explorerViewletFocus && explorerViewletVisible && !inputFocus" - }, - { - "key": "i", - "command": "copyRelativeFilePath", - "when": "explorerViewletFocus && explorerViewletVisible && !inputFocus" - }, - // select - { - "key": "ctrl+n", - "command": "selectNextSuggestion", - "when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus" - }, - { - "key": "ctrl+n", - "command": "workbench.action.quickOpenSelectNext", - "when": "inQuickOpen" - }, - { - "key": "ctrl+p", - "command": "selectPrevSuggestion", - "when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus" - }, - { - "key": "ctrl+p", - "command": "workbench.action.quickOpenSelectPrevious", - "when": "inQuickOpen" - }, - // focus - { - "key": "ctrl+h", - "command": "workbench.action.navigateLeft", - "when": "terminalFocus || sideBarFocus" - }, - { - "key": "ctrl+l", - "command": "workbench.action.navigateRight", - "when": "terminalFocus || sideBarFocus" - }, - { - "key": "ctrl+p", - "command": "workbench.action.navigateUp", - "when": "terminalFocus || sideBarFocus" - }, - { - "key": "ctrl+n", - "command": "workbench.action.navigateDown", - "when": "terminalFocus || sideBarFocus" - }, - // changeCase - { - "key": "alt+;", - "command": "extension.changeCase.commands" - }, - // focus - { - "key": "alt+`", - "command": "workbench.action.toggleSidebarVisibility" - }, - { - "key": "alt+1", - "command": "workbench.view.explorer" - }, - { - "key": "alt-2", - "command": "outline.focus" - }, - { - "key": "alt-3", - "command": "workbench.view.extension.project-manager" - }, - { - "key": "alt-4", - "command": "todo-tree-view.focus" - }, - { - "key": "alt-5", - "command": "workbench.view.extension.dockerView" - }, - { - "key": "alt+9", - "command": "workbench.view.scm" - }, - { - "key": "alt-0", - "command": "workbench.action.toggleActivityBarVisibility" - }, - { - "key": "tab", - "command": "markdown.extension.onTabKey", - "when": "editorTextFocus && !editorReadonly && !editorTabMovesFocus && !hasOtherSuggestions && !hasSnippetCompletions && !inSnippetMode && !suggestWidgetVisible && editorLangId == 'markdown' && vim.mode =='Insert'" - }, - { - "key": "tab", - "command": "-markdown.extension.onTabKey", - "when": "editorTextFocus && !editorReadonly && !editorTabMovesFocus && !hasOtherSuggestions && !hasSnippetCompletions && !inSnippetMode && !suggestWidgetVisible && editorLangId == 'markdown'" - }, - { - "key": "shift+tab", - "command": "-markdown.extension.onShiftTabKey", - "when": "editorTextFocus && !editorReadonly && !editorTabMovesFocus && !hasOtherSuggestions && !hasSnippetCompletions && !inSnippetMode && !suggestWidgetVisible && editorLangId == 'markdown'" - }, - { - "key": "shift+tab", - "command": "markdown.extension.onShiftTabKey", - "when": "editorTextFocus && !editorReadonly && !editorTabMovesFocus && !hasOtherSuggestions && !hasSnippetCompletions && !inSnippetMode && !suggestWidgetVisible && editorLangId == 'markdown' && vim.mode =='Insert'" - }, - // nav buffer - { - "key": "tab", - "command": "workbench.action.nextEditor", - "when": "vim.mode != 'Insert' && vim.mode != 'CommandlineInProgress' && !panelFocus" - }, - { - "key": "shift+tab", - "command": "workbench.action.previousEditor", - "when": "vim.mode != 'Insert' && vim.mode != 'CommandlineInProgress' && !panelFocus" - }, - // 转换色值格式 - { - "key": "alt+-", - "command": "color-conversion.colorConversion", - "when": "editorTextFocus && editorHasSelection" - }, - // whichkey - { - "key": "space", - "command": "whichkey.show", - "when": "!inputFocus" - }, - { - "key": "e", - "command": "whichkey.triggerKey", - "args": { - "key": "e", - "when": "sideBarVisible && explorerViewletVisible" - }, - "when": "whichkeyVisible && sideBarVisible && explorerViewletVisible" - }, - // 编辑器大小 - { - "key": "shift+ctrl+0", - "command": "workbench.action.evenEditorWidths" - }, - { - "key": "ctrl+down", - "command": "workbench.action.decreaseViewHeight" - }, - { - "key": "ctrl+up", - "command": "workbench.action.increaseViewHeight" - }, - { - "key": "ctrl+right", - "command": "workbench.action.decreaseViewWidth" - }, - { - "key": "ctrl+left", - "command": "workbench.action.increaseViewWidth" - }, - { - "key": "alt+j", - "command": "workbench.action.togglePanel" - }, - { - "key": "ctrl+j", - "command": "-workbench.action.togglePanel" - }, - // replace vim C-d C-u - { - "key": "ctrl+d", - "command": "cursorPageDown", - "when": "textInputFocus" - }, - { - "key": "ctrl+u", - "command": "cursorPageUp", - "when": "textInputFocus" - } -] diff --git a/project.private.config.json b/project.private.config.json index 6fb93e2..f298fdf 100644 --- a/project.private.config.json +++ b/project.private.config.json @@ -23,6 +23,13 @@ "miniprogram": { "list": [ { + "name": "patient/pages/liveDetail/index", + "pathName": "patient/pages/liveDetail/index", + "query": "id=33", + "scene": null, + "launchMode": "default" + }, + { "name": "患者-个人信息", "pathName": "patient/pages/personalInformation/index", "query": "bottom=1", diff --git a/src/patient/pages/liveDetail/index.ts b/src/patient/pages/liveDetail/index.ts index d802717..608fa8b 100644 --- a/src/patient/pages/liveDetail/index.ts +++ b/src/patient/pages/liveDetail/index.ts @@ -417,9 +417,10 @@ Page({ 'detail.LeftTime': 0, }) }, - handleLightDetail() { + handleLightDetail(e) { + const {index} = e.currentTarget.dataset; wx.navigateTo({ - url: `/patient/pages/liveDetailVideo/index?id=${this.data.id}`, + url: `/patient/pages/liveDetailVideo/index?id=${this.data.id}&index=${index}`, }) }, onShareAppMessage() { diff --git a/src/patient/pages/liveDetail/index.wxml b/src/patient/pages/liveDetail/index.wxml index 6b8fd95..c169cb8 100644 --- a/src/patient/pages/liveDetail/index.wxml +++ b/src/patient/pages/liveDetail/index.wxml @@ -84,15 +84,16 @@ - + 直播亮点 diff --git a/src/patient/pages/liveDetailVideo/index.ts b/src/patient/pages/liveDetailVideo/index.ts index 0702241..25b583f 100644 --- a/src/patient/pages/liveDetailVideo/index.ts +++ b/src/patient/pages/liveDetailVideo/index.ts @@ -18,11 +18,14 @@ Page({ afterEnd: false, starShow: false, + + index: 0, }, onLoad(options) { this.setData({ id: options.id, activeId: options.id, + index: Number(options.index), }) app.waitLogin({ type: [0, 1] }).then(() => { this.getLightList() @@ -40,6 +43,7 @@ Page({ }) this.setData({ videoList: res, + current: this.data.index, }) this.playCurrentVideo() })