1 line
11 KiB
Plaintext
1 line
11 KiB
Plaintext
{"version":3,"sources":["uni-app:///main.js","webpack:///D:/Lee/leave-unused/pagesB/video/playVideo.vue?2a74","webpack:///D:/Lee/leave-unused/pagesB/video/playVideo.vue?7c38","webpack:///D:/Lee/leave-unused/pagesB/video/playVideo.vue?c1f6","webpack:///D:/Lee/leave-unused/pagesB/video/playVideo.vue?111c","uni-app:///pagesB/video/playVideo.vue","webpack:///D:/Lee/leave-unused/pagesB/video/playVideo.vue?929d","webpack:///D:/Lee/leave-unused/pagesB/video/playVideo.vue?806f"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page"],"mappings":";;;;;;;;;;kDAAA;;;AAGA;AACA,sG,8FAHA;AACAA,EAAE,CAACC,iCAAH,GAAuCC,mBAAvC,CAGAC,UAAU,CAACC,kBAAD,CAAV,C;;;;;;;;;;;;;ACLA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAkI;AAClI;AAC6D;AACL;AACqC;;;AAG7F;AAC6K;AAC7K,gBAAgB,uLAAU;AAC1B,EAAE,+EAAM;AACR,EAAE,gGAAM;AACR,EAAE,yGAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,oGAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACRA;AAAA;AAAA;AAAA;AAAwpB,CAAgB,qqBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC0B5qB;AACA,MADA,kBACA;AACA;AACA,2DADA;AAEA,uDAFA;AAGA,kBAHA;AAIA,sBAJA;AAKA,oBALA;AAMA,sBANA;AAOA,eAPA,EAOA;AACA,mBARA,EAQA;AACA,uBATA,EASA;AACA,gBAVA,EAUA;AACA,wBAXA,EAWA;AACA,uBAZA,EAYA;AACA,kBAbA,CAaA;AAbA;AAeA,GAjBA;AAkBA;AACA;AACA,GApBA;AAqBA,QArBA,kBAqBA,OArBA,EAqBA;AACA;AACA;AACA;AACA;AACA,GA1BA;AA2BA;AACA;AACA,UAFA,oBAEA;AACA;AACA,gBADA;;AAGA,KANA;AAOA;AACA,UARA,oBAQA;AACA;AACA;AACA;AACA,KAZA;;AAcA;AACA,YAfA,sBAeA;AACA;AACA,KAjBA;AAkBA,aAlBA,uBAkBA;AACA;AACA;AACA,KArBA,EA3BA,E;;;;;;;;;;;;;AC1BA;AAAA;AAAA;AAAA;AAAu9B,CAAgB,s8BAAG,EAAC,C;;;;;;;;;;;ACA3+B;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pagesB/video/playVideo.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pagesB/video/playVideo.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./playVideo.vue?vue&type=template&id=4f890410&scoped=true&\"\nvar renderjs\nimport script from \"./playVideo.vue?vue&type=script&lang=js&\"\nexport * from \"./playVideo.vue?vue&type=script&lang=js&\"\nimport style0 from \"./playVideo.vue?vue&type=style&index=0&id=4f890410&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"4f890410\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pagesB/video/playVideo.vue\"\nexport default component.exports","export * from \"-!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./playVideo.vue?vue&type=template&id=4f890410&scoped=true&\"","var components\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./playVideo.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./playVideo.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view class=\"video-play\">\r\n\t\t<!-- 返回 -->\r\n\t\t<view class=\"icon-back\" @tap=\"backEv\" :style=\"{top:statusHeight+'px'}\">\r\n\t\t\t<i class=\"icon icon-return\" style=\"font-size: 38rpx; color: #ffffff;\"></i>\r\n\t\t</view>\r\n\t\t<!-- 视频 -->\r\n\t\t<video id=\"myVideo\" :style=\"{height:scollHeight+'px'}\"\r\n\t\t\tautoplay=\"true\"\r\n\t\t\t:src=\"videoSrc\"\r\n\t\t\t:enable-play-gesture=\"dans\"\r\n\t\t\t:poster=\"posterSrc\"\r\n\t\t\t:controls=\"isControls\"\r\n\t\t\t:show-center-play-btn=\"isCenterImg\"\r\n\t\t\t:show-play-btn=\"isBottomImg\"\r\n\t\t\t:show-fullscreen-btn=\"isFull\"\r\n\t\t\t@play=\"comePlay\" @pause=\"comePause\">\r\n\t\t</video>\r\n\t\t<!-- 播放按钮 -->\r\n\t\t<view class=\"play-btn\">\r\n\t\t\t<image v-if=\"isPlayImg\" @tap=\"playEv\" src=\"/static/public/video-play.png\" style=\"\" mode=\"aspectFill\"></image>\r\n\t\t</view>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\texport default {\r\n\t\tdata(){\r\n\t\t\treturn {\r\n\t\t\t\tstatusHeight:uni.getSystemInfoSync().statusBarHeight,\r\n\t\t\t\tscollHeight:uni.getSystemInfoSync().windowHeight,\r\n\t\t\t\tvideoSrc:'',\r\n\t\t\t\tisPlayImg:false,\r\n\t\t\t\tautoplay:true,\r\n\t\t\t\tvideoContext:'',\r\n\t\t\t\ttitle:'',//视频的标题,全屏时在顶部展示\r\n\t\t\t\tposterSrc:'',//视频封面的图片网络资源地址,如果 controls 属性值为 false 则设置 poster 无效\r\n\t\t\t\tisControls: false,//是否显示默认播放控件(播放/暂停按钮、播放进度、时间)\r\n\t\t\t\tdans:true,//是否开启播放手势,即双击切换播放/暂停\r\n\t\t\t\tisCenterImg:false,//是否显示视频中间的播放按钮\r\n\t\t\t\tisBottomImg:true,//是否显示视频底部控制栏的播放按钮\r\n\t\t\t\tisFull:true//是否显示全屏按钮\r\n\t\t\t}\r\n\t\t},\r\n\t\tonReady: function (res) {\r\n\t\t\tthis.videoContext = uni.createVideoContext('myVideo', this)\r\n\t\t},\r\n\t\tonLoad(options) {\r\n\t\t\t// 禁用小程序分享\r\n\t\t\tthis.$toolAll.tools.disableShareEv();\r\n\t\t\tthis.videoSrc = options.src\r\n\t\t\tthis.posterSrc = options.posterSrc\r\n\t\t},\r\n\t\tmethods:{\r\n\t\t\t// 返回\r\n\t\t\tbackEv(){\r\n\t\t\t\tuni.navigateBack({\r\n\t\t\t\t\tdelta:1\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\t// 播放\r\n\t\t\tplayEv(){\r\n\t\t\t\tthis.isPlayImg = false;\r\n\t\t\t\tthis.autoplay = false;\r\n\t\t\t\tthis.videoContext.play();\r\n\t\t\t},\r\n\t\t\t\r\n\t\t\t//当开始/继续播放时触发play事件\r\n\t\t\tcomePlay(){\r\n\t\t\t\tthis.isControls = true;\r\n\t\t\t},\r\n\t\t\tcomePause(){\r\n\t\t\t\tthis.isPlayImg = true;\r\n\t\t\t\tthis.isControls = false;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<style scoped>\r\n\t.video-play{\r\n\t\twidth: 100%;\r\n\t\toverflow: hidden;\r\n\t}\r\n\t/* 返回 */\r\n\t.icon-back{\r\n\t\tdisplay: flex;\r\n\t\tjustify-content: flex-start;\r\n\t\talign-items: center;\r\n\t\twidth: 35px;\r\n\t\theight: 35px;\r\n\t\tposition: fixed;\r\n\t\tleft: 20rpx;\r\n\t\tz-index: 10;\r\n\t}\r\n\t.icon-back>image{\r\n\t\twidth: 19rpx;\r\n\t\theight: 35rpx;\r\n\t}\r\n\t/* 播放视频 */\r\n\t#myVideo{\r\n\t\twidth: 100%;\r\n\t}\r\n\t/* 播放按钮 */\r\n\t.play-btn{\r\n\t\twidth: 120rpx;\r\n\t\theight: 120rpx;\r\n\t\tposition: fixed;\r\n\t\ttop: 50%;\r\n\t\tleft: 50%;\r\n\t\ttransform: translate(-50%, -50%);\r\n\t}\r\n\t.play-btn>image{\r\n\t\twidth: 100%;\r\n\t\theight: 100%;\r\n\t}\r\n</style>\r\n","import mod from \"-!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./playVideo.vue?vue&type=style&index=0&id=4f890410&scoped=true&lang=css&\"; export default mod; export * from \"-!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./playVideo.vue?vue&type=style&index=0&id=4f890410&scoped=true&lang=css&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1665565548785\n var cssReload = require(\"D:/HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"../../\",\"locals\":false});\n module.hot.dispose(cssReload);\n module.hot.accept(undefined, cssReload);\n }\n "],"sourceRoot":""} |