12345 |
- <<<<<<<< HEAD:dist/assets/index-legacy.df60b932.js
- !function(){function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function t(t){for(var i=1;i<arguments.length;i++){var r=null!=arguments[i]?arguments[i]:{};i%2?e(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):e(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var i,r,o=[],l=!0,a=!1;try{for(n=n.call(e);!(l=(i=n.next()).done)&&(o.push(i.value),!t||o.length!==t);l=!0);}catch(c){a=!0,r=c}finally{try{l||null==n.return||n.return()}finally{if(a)throw r}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var o=document.createElement("style");o.innerHTML="._video-container_ga7yz_1{position:relative;width:100%;--plyr-color-main: #FF8057}._video-container_ga7yz_1 video{width:100%}._video-container_ga7yz_1 .video-back{position:absolute;left:.53333rem;top:.53333rem;color:#fff;z-index:99;font-size:.64rem;width:.8rem;height:.8rem;background-color:rgba(0,0,0,.5);border-radius:50%;padding:.10667rem .13333rem .10667rem .08rem}._video-container_ga7yz_1 .plyr__poster{background-size:cover}._video-container_ga7yz_1 .plyr__control--overlaid{border:.02667rem solid #fff;background-color:rgba(0,0,0,.2)!important}._video-container_ga7yz_1 .plyr--video .plyr__control:hover{background-color:transparent!important}._video-container_ga7yz_1 ._video_ga7yz_1{position:relative}._loadingVideo_ga7yz_35{position:absolute;top:0;left:0;bottom:0;right:0;background:rgba(0,0,0,.9);z-index:10}._playOver_ga7yz_44{background:rgba(0,0,0,.5);color:#fff;display:flex;align-items:center;justify-content:center;flex-direction:column}._playOver_ga7yz_44 ._tips_ga7yz_52{font-size:.4rem;color:#fff}._playOver_ga7yz_44 ._btn_ga7yz_56{margin:.26667rem 0;min-width:2.50667rem;font-size:.37333rem;height:.74667rem;line-height:.74667rem}._playOver_ga7yz_44 ._replay_ga7yz_63{padding-top:.32rem}._freeTxt_ga7yz_66{font-size:.4rem;color:#fff;line-height:.56rem;padding-top:.26667rem}._freeRate_ga7yz_72{color:#32ffd8}\n",document.head.appendChild(o),System.register(["./index-legacy.48c8d62c.js","./plyr.min-legacy.a0adaba2.js","./plyr-legacy.2bfabaee.js"],(function(e){"use strict";var r,o,l,a,c,s,u,f,d,y,p,v,g,m,h;return{setters:[function(e){r=e.t,o=e.w,l=e.u,a=e.d,c=e.x,s=e.c,u=e.C,f=e.y,d=e.b0,y=e.a5,p=e.D,v=e.e,g=e.L,m=e.q},function(e){h=e.P},function(){}],execute:function(){var _=i(r("steps"),2),b=_[0],z=_[1],S={active:o(0),direction:l("horizontal"),activeIcon:l("checked"),iconPrefix:String,finishIcon:String,activeColor:String,inactiveIcon:String,inactiveColor:String},O=Symbol(b),j=a({name:b,props:S,emits:["clickStep"],setup:function(e,t){var n=t.emit,i=t.slots;return(0,c(O).linkChildren)({props:e,onClickStep:function(e){return n("clickStep",e)}}),function(){var t;return s("div",{class:z([e.direction])},[s("div",{class:z("items")},[null==(t=i.default)?void 0:t.call(i)])])}}}),k=i(r("step"),2),x=k[0],P=k[1],w=a({name:x,setup:function(e,t){var i=t.slots,r=u(O),o=r.parent,l=r.index;if(o){var a=o.props,c=function(){var e=+a.active;return l.value<e?"finish":l.value===e?"process":"waiting"},p=function(){return"process"===c()},v=f((function(){return{background:"finish"===c()?a.activeColor:a.inactiveColor}})),g=f((function(){return p()?{color:a.activeColor}:"waiting"===c()?{color:a.inactiveColor}:void 0})),m=function(){return o.onClickStep(l.value)};return function(){var e,t,r,o,l,u,f=c();return s("div",{class:[d,P([a.direction,n({},f,f)])]},[s("div",{class:P("title",{active:p()}),style:g.value,onClick:m},[null==(e=i.default)?void 0:e.call(i)]),s("div",{class:P("circle-container"),onClick:m},[(t=a.iconPrefix,r=a.finishIcon,o=a.activeIcon,l=a.activeColor,u=a.inactiveIcon,p()?i["active-icon"]?i["active-icon"]():s(y,{class:P("icon","active"),name:o,color:l,classPrefix:t},null):"finish"===c()&&(r||i["finish-icon"])?i["finish-icon"]?i["finish-icon"]():s(y,{class:P("icon","finish"),name:r,color:l,classPrefix:t},null):i["inactive-icon"]?i["inactive-icon"]():u?s(y,{class:P("icon"),name:u,classPrefix:t},null):s("i",{class:P("circle"),style:v.value},null))]),s("div",{class:P("line"),style:v.value},null)])}}console.error("[Vant] <Step> must be a child component of <Steps>.")}}),C=(e("a",p(w)),e("S",p(j)),"_video-container_ga7yz_1"),A="_video_ga7yz_1",I="_loadingVideo_ga7yz_35";e("O",a({name:"o-video",props:{setting:{type:Object,default:function(){}},controls:Boolean,height:String,src:{type:String,default:""},poster:{type:String,default:""},styleValue:{type:Object,default:function(){return{}}},preload:{type:String,default:"auto"},currentTime:{type:Boolean,default:!0},playsinline:{type:Boolean,default:!0},onPlay:{type:Function,default:function(){}}},emits:["exitfullscreen"],data:function(){return{player:null,loading:!0}},mounted:function(){this._init()},methods:{_init:function(){var e=this,n=["play-large","play","progress","captions","fullscreen"];this.currentTime&&n.push("current-time");var i=t(t({controls:n},this.setting),{},{invertTime:!1});v().iPhone&&(i.fullscreen={enabled:!0,fallback:"force",iosNative:!0}),this.player=new h(this.$refs.video,i),this.player.elements.container&&(this.player.elements.container.style.height=this.height||"210px"),"none"===this.preload&&(this.loading=!1),this.player.on("loadedmetadata",(function(){e.loading=!1,e.domPlayVisibility(!1)})),this.player.on("play",(function(){e.onPlay&&e.onPlay(e.player)})),this.player.on("enterfullscreen",(function(){console.log("fullscreen");var t=document.createElement("i");t.id="fullscreen-back",t.className="van-icon van-icon-arrow-left video-back",t.addEventListener("click",(function(){e.player.fullscreen.exit()})),console.log(document.getElementsByClassName("plyr")),document.getElementsByClassName("plyr")[0].appendChild(t)})),this.player.on("exitfullscreen",(function(){console.log("exitfullscreen");var t=document.getElementById("fullscreen-back");t&&t.remove(),e.$emit("exitfullscreen")}))},domPlayVisibility:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=document.querySelector(".plyr__controls"),n=document.querySelector(".plyr__control--overlaid");e?(null==t||t.setAttribute("style","display:none"),null==n||n.setAttribute("style","display:none")):(null==t||t.removeAttribute("style"),setTimeout((function(){null==n||n.removeAttribute("style")}),200))},onReplay:function(){this.player.restart(),this.player.play(),this.domPlayVisibility(!1)},onStop:function(){this.player.stop()}},unmounted:function(){var e;null===(e=this.player)||void 0===e||e.destroy()},render:function(){return s("div",{class:C},[s("video",{ref:"video",class:A,src:this.src,playsinline:this.playsinline,poster:this.poster,preload:this.preload,style:t({},this.styleValue)},null),this.loading&&s("div",{class:I,style:{height:this.height||"210px"}},[s(g,{size:36,color:"#FF8057",vertical:!0,style:{height:"100%",justifyContent:"center"}},{default:function(){return[m("加载中...")]}})])])}}))}}}))}();
- ========
- !function(){function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function t(t){for(var i=1;i<arguments.length;i++){var r=null!=arguments[i]?arguments[i]:{};i%2?e(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):e(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var i,r,o=[],l=!0,a=!1;try{for(n=n.call(e);!(l=(i=n.next()).done)&&(o.push(i.value),!t||o.length!==t);l=!0);}catch(c){a=!0,r=c}finally{try{l||null==n.return||n.return()}finally{if(a)throw r}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var o=document.createElement("style");o.innerHTML="._video-container_ga7yz_1{position:relative;width:100%;--plyr-color-main: #FF8057}._video-container_ga7yz_1 video{width:100%}._video-container_ga7yz_1 .video-back{position:absolute;left:.53333rem;top:.53333rem;color:#fff;z-index:99;font-size:.64rem;width:.8rem;height:.8rem;background-color:rgba(0,0,0,.5);border-radius:50%;padding:.10667rem .13333rem .10667rem .08rem}._video-container_ga7yz_1 .plyr__poster{background-size:cover}._video-container_ga7yz_1 .plyr__control--overlaid{border:.02667rem solid #fff;background-color:rgba(0,0,0,.2)!important}._video-container_ga7yz_1 .plyr--video .plyr__control:hover{background-color:transparent!important}._video-container_ga7yz_1 ._video_ga7yz_1{position:relative}._loadingVideo_ga7yz_35{position:absolute;top:0;left:0;bottom:0;right:0;background:rgba(0,0,0,.9);z-index:10}._playOver_ga7yz_44{background:rgba(0,0,0,.5);color:#fff;display:flex;align-items:center;justify-content:center;flex-direction:column}._playOver_ga7yz_44 ._tips_ga7yz_52{font-size:.4rem;color:#fff}._playOver_ga7yz_44 ._btn_ga7yz_56{margin:.26667rem 0;min-width:2.50667rem;font-size:.37333rem;height:.74667rem;line-height:.74667rem}._playOver_ga7yz_44 ._replay_ga7yz_63{padding-top:.32rem}._freeTxt_ga7yz_66{font-size:.4rem;color:#fff;line-height:.56rem;padding-top:.26667rem}._freeRate_ga7yz_72{color:#32ffd8}\n",document.head.appendChild(o),System.register(["./index-legacy.c1f63540.js","./plyr.min-legacy.a0adaba2.js","./plyr-legacy.2bfabaee.js"],(function(e){"use strict";var r,o,l,a,c,s,u,f,y,d,p,v,g,m,h;return{setters:[function(e){r=e.t,o=e.w,l=e.u,a=e.d,c=e.x,s=e.c,u=e.C,f=e.y,y=e.be,d=e.a5,p=e.D,v=e.f,g=e.L,m=e.q},function(e){h=e.P},function(){}],execute:function(){var _=i(r("steps"),2),b=_[0],z=_[1],O={active:o(0),direction:l("horizontal"),activeIcon:l("checked"),iconPrefix:String,finishIcon:String,activeColor:String,inactiveIcon:String,inactiveColor:String},S=Symbol(b),j=a({name:b,props:O,emits:["clickStep"],setup:function(e,t){var n=t.emit,i=t.slots;return(0,c(S).linkChildren)({props:e,onClickStep:function(e){return n("clickStep",e)}}),function(){var t;return s("div",{class:z([e.direction])},[s("div",{class:z("items")},[null==(t=i.default)?void 0:t.call(i)])])}}}),k=i(r("step"),2),x=k[0],P=k[1],w=a({name:x,setup:function(e,t){var i=t.slots,r=u(S),o=r.parent,l=r.index;if(o){var a=o.props,c=function(){var e=+a.active;return l.value<e?"finish":l.value===e?"process":"waiting"},p=function(){return"process"===c()},v=f((function(){return{background:"finish"===c()?a.activeColor:a.inactiveColor}})),g=f((function(){return p()?{color:a.activeColor}:"waiting"===c()?{color:a.inactiveColor}:void 0})),m=function(){return o.onClickStep(l.value)};return function(){var e,t,r,o,l,u,f=c();return s("div",{class:[y,P([a.direction,n({},f,f)])]},[s("div",{class:P("title",{active:p()}),style:g.value,onClick:m},[null==(e=i.default)?void 0:e.call(i)]),s("div",{class:P("circle-container"),onClick:m},[(t=a.iconPrefix,r=a.finishIcon,o=a.activeIcon,l=a.activeColor,u=a.inactiveIcon,p()?i["active-icon"]?i["active-icon"]():s(d,{class:P("icon","active"),name:o,color:l,classPrefix:t},null):"finish"===c()&&(r||i["finish-icon"])?i["finish-icon"]?i["finish-icon"]():s(d,{class:P("icon","finish"),name:r,color:l,classPrefix:t},null):i["inactive-icon"]?i["inactive-icon"]():u?s(d,{class:P("icon"),name:u,classPrefix:t},null):s("i",{class:P("circle"),style:v.value},null))]),s("div",{class:P("line"),style:v.value},null)])}}}}),C=(e("a",p(w)),e("S",p(j)),"_video-container_ga7yz_1"),A="_video_ga7yz_1",I="_loadingVideo_ga7yz_35";e("O",a({name:"o-video",props:{setting:{type:Object,default:function(){}},controls:Boolean,height:String,src:{type:String,default:""},poster:{type:String,default:""},styleValue:{type:Object,default:function(){return{}}},preload:{type:String,default:"auto"},currentTime:{type:Boolean,default:!0},playsinline:{type:Boolean,default:!0},onPlay:{type:Function,default:function(){}}},emits:["exitfullscreen"],data:function(){return{player:null,loading:!0}},mounted:function(){this._init()},methods:{_init:function(){var e=this,n=["play-large","play","progress","captions","fullscreen"];this.currentTime&&n.push("current-time");var i=t(t({controls:n},this.setting),{},{invertTime:!1});v().iPhone&&(i.fullscreen={enabled:!0,fallback:"force",iosNative:!0}),this.player=new h(this.$refs.video,i),this.player.elements.container&&(this.player.elements.container.style.height=this.height||"210px"),"none"===this.preload&&(this.loading=!1),this.player.on("loadedmetadata",(function(){e.loading=!1,e.domPlayVisibility(!1)})),this.player.on("play",(function(){e.onPlay&&e.onPlay(e.player)})),this.player.on("enterfullscreen",(function(){console.log("fullscreen");var t=document.createElement("i");t.id="fullscreen-back",t.className="van-icon van-icon-arrow-left video-back",t.addEventListener("click",(function(){e.player.fullscreen.exit()})),console.log(document.getElementsByClassName("plyr")),document.getElementsByClassName("plyr")[0].appendChild(t)})),this.player.on("exitfullscreen",(function(){console.log("exitfullscreen");var t=document.getElementById("fullscreen-back");t&&t.remove(),e.$emit("exitfullscreen")}))},domPlayVisibility:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=document.querySelector(".plyr__controls"),n=document.querySelector(".plyr__control--overlaid");e?(null==t||t.setAttribute("style","display:none"),null==n||n.setAttribute("style","display:none")):(null==t||t.removeAttribute("style"),setTimeout((function(){null==n||n.removeAttribute("style")}),200))},onReplay:function(){this.player.restart(),this.player.play(),this.domPlayVisibility(!1)},onStop:function(){this.player.stop()}},unmounted:function(){var e;null===(e=this.player)||void 0===e||e.destroy()},render:function(){return s("div",{class:C},[s("video",{ref:"video",class:A,src:this.src,playsinline:this.playsinline,poster:this.poster,preload:this.preload,style:t({},this.styleValue)},null),this.loading&&s("div",{class:I,style:{height:this.height||"210px"}},[s(g,{size:36,color:"#FF8057",vertical:!0,style:{height:"100%",justifyContent:"center"}},{default:function(){return[m("加载中...")]}})])])}}))}}}))}();
- >>>>>>>> online:dist/assets/index-legacy.5f4e326e.js
|