Browse Source

亮点视频播放顺序

lightspot
kola-web 1 month ago
parent
commit
93eeab864c
  1. 316
      keymap.json
  2. 7
      project.private.config.json
  3. 5
      src/patient/pages/liveDetail/index.ts
  4. 5
      src/patient/pages/liveDetail/index.wxml
  5. 4
      src/patient/pages/liveDetailVideo/index.ts

316
keymap.json

@ -1,316 +0,0 @@ @@ -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"
}
]

7
project.private.config.json

@ -23,6 +23,13 @@ @@ -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",

5
src/patient/pages/liveDetail/index.ts

@ -417,9 +417,10 @@ Page({ @@ -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() {

5
src/patient/pages/liveDetail/index.wxml

@ -84,15 +84,16 @@ @@ -84,15 +84,16 @@
</swiper-item>
</swiper>
</view>
<view class="lightspot" wx:if="{{lightList.length}}" bind:tap="handleLightDetail">
<view class="lightspot" wx:if="{{lightList.length}}">
<view class="l-title">直播亮点</view>
<view class="l-list">
<view
class="l-item"
wx:for="{{lightList}}"
wx:key="attachmentId"
catch:tap="handleLightVideo"
catch:tap="handleLightDetail"
data-url="{{item.videoUrl}}"
data-index="{{index}}"
>
<image class="photo" src="{{item.imgUrl}}" mode="aspectFill"></image>
<view class="wrap">

4
src/patient/pages/liveDetailVideo/index.ts

@ -18,11 +18,14 @@ Page({ @@ -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({ @@ -40,6 +43,7 @@ Page({
})
this.setData({
videoList: res,
current: this.data.index,
})
this.playCurrentVideo()
})

Loading…
Cancel
Save