glhcp/server/public/business/static/js/pages-goods_detail-goods_de...

1 line
37 KiB
JavaScript
Raw Normal View History

2023-08-10 06:59:52 +00:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-goods_detail-goods_detail"],{"07f4":function(e,t,i){"use strict";i("a9e3"),i("e25e"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={props:{poster:{type:[String,Boolean],default:""},url:{type:String,default:""},direction:{type:Number,default:0},width:{type:String,default:"750rpx"},height:{type:String,default:"450rpx"}},data:function(){return{VideoContext:{},state:!1,currentTime:0,duration:0,videoId:""}},computed:{posterUrl:function(){return this.poster?this.poster:this.url+"?x-oss-process=video/snapshot,t_"+parseInt(1e3*this.currentTime)+",f_jpg,w_800,m_fast"}},methods:{fullscreenchange:function(e){this.state=e.detail.fullScreen},timeupdate:function(e){this.duration=e.detail.duration,this.currentTime=e.detail.currentTime}},created:function(){this.videoId=Date.now()+Math.ceil(1e7*Math.random())+""},mounted:function(){this.VideoContext=uni.createVideoContext(this.videoId)},watch:{state:function(e,t){var i=this;e?(this.VideoContext.play(),setTimeout((function(){i.VideoContext.requestFullScreen({direction:i.direction})}),10)):this.VideoContext.pause()}}};t.default=o},"0bc9":function(e,t,i){var o=i("ac2b");"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var n=i("4f06").default;n("3b3d12c0",o,!0,{sourceMap:!1,shadowMode:!1})},"0e35":function(e,t,i){var o=i("1572");"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var n=i("4f06").default;n("e51859b2",o,!0,{sourceMap:!1,shadowMode:!1})},"14bb":function(e,t,i){"use strict";var o=i("4ea4");i("99af"),i("d81d"),i("a9e3"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(i("2909")),a={data:function(){return{currentSwiperIndex:0,showPlay:!0,showControls:!1,autoplay:!0,videoContext:null}},props:{images:{type:Array,default:function(){return[]}},video:{type:[String,Boolean],default:!1},videoCover:{type:[String,Boolean],default:!1},circular:{type:Boolean,default:!0},interval:{type:Number,default:3e3},duration:{type:Number,default:500}},computed:{urls:function(){var e=this.images.map((function(e){return{uri:e.uri,type:"image"}}));return this.video?[{uri:this.video,type:"video"}].concat((0,n.default)(e)):e}},mounted:function(){this.videoContext=uni.createVideoContext("video",this)},methods:{changeSwiper:function(e){this.currentSwiperIndex=e.detail.current},videoErrorCallback:function(e){throw new Error(e)},previewSwiperItem:function(e){var t=this.urls[e].type,i=this.video?e-1:e;"video"===t?this.videoContext.requestFullScreen():uni.previewImage({index:i,urls:this.images})},playVideo:function(){},fullscreenchange:function(e){var t=e.detail.fullScreen;this.showPlay=!t,this.showControls=!!t,console.log(t),t&&this.videoContext.play(),!t&&this.videoContext.pause()}}};t.default=a},"14db":function(e,t,i){"use strict";i("a9e3"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i("a9eb"),n={name:"Price",props:{content:{type:String|Number,required:!0},prec:{type:Number,default:2},autoPrec:{type:Boolean,default:!0},color:{type:String,default:"inherit"},mainSize:{type:String,default:"inherit"},minorSize:{type:String,default:"inherit"},lineThrough:{type:Boolean,default:!1},fontWeight:{type:String|Number,default:"normal"},prefix:{type:String,default:"¥"},suffix:{type:String,default:""}},computed:{integer:function(){return(0,o.formatPrice)({price:this.content,take:"int"})},decimals:function(){var e=(0,o.formatPrice)({price:this.content,take:"dec",prec:this.prec});return this.autoPrec?1*e?"."+e:"":this.prec?"."+e:""}}};t.default=n},1572:function(e,t,i){var o=i("24fb");t=o(!1),t.push([e.i,"@charset \"UTF-8\";\n/* 颜色变量 */\n/** S Font's size **/\n/** E Font's size **/[data-v-38aff5e0]:export{red_theme:#ff2c3c;orange_theme:#f7971e;pink_theme:#fa444d;gold_theme:#e0a356;blue_theme:#2f80ed;green_theme:#2ec840}.root[data-v-38aff5e0]{position:relative;width:%?750?%;height:300px;overflow:hidden}.posterImg[data-v-38aff5e0],\n.video[data-v-38aff5e0],\n.box[data-v-38aff5e0]{display:flex;width:%?750?%;height:300px;position:absolute}.vid