zx/public/static/js/pages-points_mall-integral_...

1 line
38 KiB
JavaScript
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-points_mall-integral_goods_details"],{"0d43":function(module,exports,__webpack_require__){"use strict";__webpack_require__("6a54");var _interopRequireDefault=__webpack_require__("f5bd").default;Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _createForOfIteratorHelper2=_interopRequireDefault(__webpack_require__("3471"));__webpack_require__("5ef2"),__webpack_require__("4626"),__webpack_require__("5ac7"),__webpack_require__("5c47"),__webpack_require__("2c10"),__webpack_require__("a1c1"),__webpack_require__("e838"),__webpack_require__("c223"),__webpack_require__("aa9c");var rpx=uni.getSystemInfoSync().screenWidth/750,cfg=__webpack_require__("dc04"),_default={name:"parser",data:function(){return{uid:this._uid,scaleAm:"",showAm:"",imgs:[],nodes:[]}},props:{html:null,autopause:{type:Boolean,default:!0},autosetTitle:{type:Boolean,default:!0},domain:String,gestureZoom:Boolean,lazyLoad:Boolean,selectable:Boolean,tagStyle:Object,showWithAnimation:Boolean,useAnchor:Boolean},watch:{html:function(t){this.setContent(t)}},mounted:function(){this.imgList=[],this.imgList.each=function(t){for(var e=0,i=this.length;e<i;e++)this.setItem(e,t(this[e],e,this))},this.imgList.setItem=function(t,e){if(void 0!=t&&e){if(0==e.indexOf("http")&&this.includes(e)){for(var i,a="",n=0;i=e[n];n++){if("/"==i&&"/"!=e[n-1]&&"/"!=e[n+1])break;a+=Math.random()>.5?i.toUpperCase():i}return a+=e.substr(n),this[t]=a}if(this[t]=e,e.includes("data:image")){var r=e.match(/data:image\/(\S+?);(\S+?),(.+)/);if(!r)return}}},this.html&&this.setContent(this.html)},beforeDestroy:function(){this._observer&&this._observer.disconnect(),this.imgList.each((function(t){})),clearInterval(this._timer)},methods:{_Dom2Str:function(t){var e,i="",a=(0,_createForOfIteratorHelper2.default)(t);try{for(a.s();!(e=a.n()).done;){var n=e.value;if("text"==n.type)i+=n.text;else{for(var r in i+="<"+n.name,n.attrs||{})i+=" "+r+'="'+n.attrs[r]+'"';n.children&&n.children.length?i+=">"+this._Dom2Str(n.children)+"</"+n.name+">":i+=">"}}}catch(o){a.e(o)}finally{a.f()}return i},_handleHtml:function(t,e){if("string"!=typeof t&&(t=this._Dom2Str(t.nodes||t)),t.includes("rpx")&&(t=t.replace(/[0-9.]+\s*rpx/g,(function(t){return parseFloat(t)*rpx+"px"}))),!e){var i="<style scoped>@keyframes show{0%{opacity:0}100%{opacity:1}}";for(var a in cfg.userAgentStyles)i+="".concat(a,"{").concat(cfg.userAgentStyles[a],"}");for(a in this.tagStyle)i+="".concat(a,"{").concat(this.tagStyle[a],"}");i+="</style>",t=i+t}return t},setContent:function(t,e){var i=this;if(t){var a=document.createElement("div");e?this.rtf?this.rtf.appendChild(a):this.rtf=a:(this.rtf&&this.rtf.parentNode.removeChild(this.rtf),this.rtf=a),a.innerHTML=this._handleHtml(t,e);for(var n,r=this.rtf.getElementsByTagName("style"),o=0;n=r[o++];)n.innerHTML=n.innerHTML.replace(/body/g,"#rtf"+this._uid),n.setAttribute("scoped","true");!this._observer&&this.lazyLoad&&IntersectionObserver&&(this._observer=new IntersectionObserver((function(t){for(var e,a=0;e=t[a++];)e.isIntersecting&&(e.target.src=e.target.getAttribute("data-src"),e.target.removeAttribute("data-src"),i._observer.unobserve(e.target))}),{rootMargin:"900px 0px 900px 0px"}));var s=this,c=this.rtf.getElementsByTagName("title");c.length&&this.autosetTitle&&uni.setNavigationBarTitle({title:c[0].innerText}),this.imgList.length=0;for(var d,u=this.rtf.getElementsByTagName("img"),l=0,f=0;d=u[l];l++){d.style.maxWidth="100%";var h=d.getAttribute("src");this.domain&&h&&("/"==h[0]?"/"==h[1]?d.src=(this.domain.includes("://")?this.domain.split("://")[0]:"")+":"+h:d.src=this.domain+h:h.includes("://")||(d.src=this.domain+"/"+h)),d.hasAttribute("ignore")||"A"==d.parentElement.nodeName||(d.i=f++,s.imgList.push(d.src||d.getAttribute("data-src")),d.onclick=function(){var t=!0;this.ignore=function(){return t=!1},s.$emit("imgtap",this),t&&uni.previewImage({current:this.i,urls:s.imgList})}),d.onerror=function(){s.$emit("error",{source:"img",target:this})},s.lazyLoad&&this._observer&&d.src&&0!=d.i&&(d.setAttribute("data-src",d.src),d.removeAttribute("src"),this._observer.observe(d))}var p,v=this.rtf.getElementsByTagName("a"),g=(0,_createForOfIteratorHelper2.default)(v);try{for(g.s();!(p=g.n()).done;){var m=p.value;m.onclick=function(){var t=!0,e=this.getAttribute("href");if(s.$emit("linkpress",{href:e,ignore:function(){return t=!1}}),t&&e)if("#"==e[0])s.useAnchor&&s.navigateTo({id:e.substr(1)});else{if(0==e.indexOf("http")||0==e.indexOf("//"))return!0;uni.navigateTo({url:e})}return!1}}}catch(C){g.e(C)}finally{g.f()}var b=this.rtf.getElementsByTagName("video");s.videoContexts=b;for(var _,w=0;_=b[w++];)_.style.maxWidth="100%",_.style.width="100%",_.onerror=function(){s.$emit("error",{source:"video",target:this})},_.onplay=function(){if(s.autopause)for(var t,e=0;t=s.videoContexts[e++];)t!=this&&t.pause()};var y,x,k=this.rtf.getElementsByTagName("audios"),S=(0,_createForOfIteratorHelper2.default)(k);try{for(S.s();!(y=S.n()).done;){var A=y.value;A.onerror=function(){s.$emit("error",{source:"audio",target:this})}}}catch(C){S.e(C)}finally{S.f()}this.document=this.rtf,e||document.getElementById("rtf"+this._uid).appendChild(this.rtf),this.$nextTick((function(){i.nodes=[1],i.$emit("load")})),setTimeout((function(){return i.showAm=""}),500),clearInterval(this._timer),this._timer=setInterval((function(){var t=[i.rtf.getBoundingClientRect()];i.width=t[0].width,t[0].height==x&&(i.$emit("ready",t[0]),clearInterval(i._timer)),x=t[0].height}),350),this.showWithAnimation&&!e&&(this.showAm="animation:show .5s")}else this.rtf&&!e&&this.rtf.parentNode.removeChild(this.rtf)},getText:function(){arguments.length>0&&void 0!==arguments[0]||this.nodes;return this.rtf.innerText},navigateTo:function(t){if(!this.useAnchor)return t.fail&&t.fail({errMsg:"Anchor is disabled"});if(!t.id)return window.scrollTo(0,this.rtf.offsetTop),t.success&&t.success({errMsg:"pageScrollTo:ok"});var e=document.getElementById(t.id);if(!e)return t.fail&&t.fail({errMsg:"Label not found"});t.scrollTop=this.rtf.offsetTop+e.offsetTop,uni.pageScrollTo(t)},getVideoContext:function(t){if(!t)return this.videoContexts;for(var e=this.videoContexts.length;e--;)if(this.videoContexts[e].id==t)return this.videoContexts[e]},preLoad:function preLoad(html,num){html.constructor==Array&&(html=this._Dom2Str(html));var script="var contain=document.createElement('div');contain.innerHTML='"+html.replace(/'/g,"\\'")+"';for(var imgs=contain.querySelectorAll('img'),i=imgs.length-1;i>="+num+";i--)imgs[i].removeAttribute('src');";eval(script)},_tap:function(t){if(this.gestureZoom&&t.timeStamp-this._lastT<300){var e=t.touches[0].pageY-t.currentTarget.offsetTop;if(this._zoom)this._scaleAm.translateX(0).scale(1).step(),uni.pageScrollTo({scrollTop:(e+this._initY)/2-t.touches[0].clientY,duration:400});else{var i=t.touches[0].pageX-t.currentTarget.offsetLeft;this._initY=e,this._scaleAm=uni.createAnimation({transformOrigin:"".concat(i,"px ").concat(this._initY,"px 0"),timingFunction:"ease-in-out"}),this._scaleAm.scale(2).step(),this._tMax=i/2,this._tMin=(i-this.width)/2,this._tX=0}this._zoom=!this._zoom,this.scaleAm=this._scaleAm.export()}this._lastT=t.timeStamp},_touchstart:function(t){1==t.touches.length&&(this._initX=this._lastX=t.touches[0].pageX)},_touchmove:function(t){var e=t.touches[0].pageX-this._lastX;if(this._zoom&&1==t.touches.length&&Math.abs(e)>20){if(this._lastX=t.touches[0].pageX,this._tX<=this._tMin&&e<0||this._tX>=this._tMax&&e>0)return;this._tX+=e*Math.abs(this._lastX-this._initX)*.05,this._tX<this._tMin&&(this._tX=this._tMin),this._tX>this._tMax&&(this._tX=this._tMax),this._scaleAm.translateX(this._tX).step(),this.scaleAm=this._scaleAm.export()}}}};exports.default=_default},"19e5":function(t,e,i){"use strict";i.r(e);var a=i("4634"),n=i.n(a);for(var r in a)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(r);e["default"]=n.a},"262c":function(t,e,i){"use strict";var a=i("f070"),n=i.n(a);n.a},3471:function(t,e,i){"use strict";i("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var i="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=(0,a.default)(t))||e&&t&&"number"===typeof t.length){i&&(t=i);var n=0,r=function(){};return{s:r,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,c=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return s=t.done,t},e:function(t){c=!0,o=t},f:function(){try{s||null==i["return"]||i["return"]()}finally{if(c)throw o}}}},i("01a2"),i("e39c"),i("bf0f"),i("844d"),i("18f7"),i("de6c"),i("7a76"),i("c9b5");var a=function(t){return t&&t.__esModule?t:{default:t}}(i("5d6b"))},4634:function(t,e,i){"use strict";i("6a54");var a=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a(i("39d8"));i("01a2"),i("e39c"),i("5c47"),i("a1c1"),i("aa9c");var r,o=i("8f59"),s=i("475f"),c=i("7e00"),d=a(i("cb9a")),u=a(i("5b60")),l=a(i("832c")),f=(i("5999"),i("e44d")),h=i("96e0"),p=(i("672a"),i("aa10")),v=getApp(),g=uni.getSystemInfoSync().statusBarHeight+"px",m={computed:(0,o.mapGetters)(["uid","isLogin","viewColor","keyColor"]),data:function(){return{dataShow:0,id:0,time:0,storeInfo:[],imgUrls:[],domain:p.HTTP_REQUEST_URL,statusBarHeight:g,parameter:{navbar:"1",return:"1",title:"抢购详情页",color:!1},attribute:{cartAttr:!1,productAttr:[],productSelect:{}},productValue:[],isOpen:!1,attr:"请选择",attrValue:"",status:1,iShidden:!1,limitNum:0,iSplus:!1,replyCount:0,reply:[],replyChance:0,navH:"",navList:["商品","详情"],opacity:0,scrollY:0,topArr:[],toView:"",height:0,heightArr:[],lock:!1,scrollTop:0,tagStyle:{img:"width:100%;display:block;",table:"width:100%",video:"width:100%"},navActive:0,meunHeight:0,backH:"",posters:!1,weixinStatus:!1,posterImageStatus:!1,storeImage:"",PromotionCode:"",posterImage:"",actionSheetHidden:!1,cart_num:1,returnShow:!0,H5ShareBox:!1,routineContact:0,selectSku:{},skuArr:[]}},components:{productConSwiper:d.default,productWindow:u.default,"jyf-parser":l.default},onLoad:function(t){var e=this,i=getCurrentPages();e.returnShow=1!==i.length,uni.getSystemInfo({success:function(t){e.height=t.windowHeight,t.statusBarHeight}}),this.isLogin&&(0,h.silenceBindingSpread)(),this.navH=v.globalData.navHeight,t.id&&(this.id=t.id,this.status=t.status),this.getIntegralProductDetail()},onShow:function(){uni.removeStorageSync("form_type_cart")},methods:(r={returns:function(){uni.navigateBack()},goHome:function(){uni.switchTab({url:"/pages/index/index"})},iptCartNum:function(t){this.$set(this.attribute.productSelect,"cart_num",num),this.$set(this,"cart_num",num)}},(0,n.default)(r,"returns",(function(){uni.navigateBack()})),(0,n.default)(r,"getIntegralProductDetail",(function(){var t=this,e=this;(0,s.getIntegralProductDetail)(e.id).then((function(i){t.dataShow=1;var a=i.data.store_name;for(var n in t.storeInfo=i.data,t.imgUrls=i.data.slider_image,t.limitNum=i.data.once_max_count,t.storeInfo.description=t.storeInfo.content.content.replace(/<img/gi,'<img style="max-width:100%;height:auto;float:left;display:block" '),t.attribute.productAttr=i.data.attr,t.productValue=i.data.sku,i.data.productValue){var r=i.data.productValue[n];e.skuArr.push(r)}t.$set(t,"selectSku",e.skuArr[0]),t.reply=i.data.reply?[i.data.reply]:[],uni.setNavigationBarTitle({title:a.substring(0,7)+"..."}),t.PromotionCode=i.data.code_base,e.storeImage=e.storeInfo.image,e.DefaultSelect(),v.globalData.openPages="/pages/activity/goods_seckill_details/index?id="+e.id+"&scene="+e.storeInfo.uid})).catch((function(t){e.$util.Tips({title:t},{tab:3})}))})),(0,n.default)(r,"setShare",(function(){this.$wechat.isWeixin()&&this.$wechat.wechatEvevt(["updateAppMessageShareData","updateTimelineShareData","onMenuShareAppMessage","onMenuShareTimeline"],{desc:this.storeInfo.info,title:this.storeInfo.title,link:location.href,imgUrl:this.storeInfo.image}).then((function(t){})).catch((function(t){}))})),(0,n.default)(r,"DefaultSelect",(function(){var t=this.attribute.productAttr,e=[];for(var i in this.productValue)if(this.productValue[i].stock>0){e=this.attribute.productAttr.length?i.split(","):[];break}for(var a=0;a<t.length;a++)this.$set(t[a],"index",e[a]);var n=this.productValue[e.join(",")];n&&t.length||n&&!t.length?(this.$set(this.attribute.productSelect,"image",n.image),this.$set(this.attribute.productSelect,"price",n.price),this.$set(this.attribute.productSelect,"ot_price",n.ot_price||0),this.$set(this.attribute.productSelect,"stock",n.stock),this.$set(this.attribute.productSelect,"unique",n.unique),this.$set(this.attribute.productSelect,"cart_num",1),this.$set(this,"attrValue",e.join(",")),this.attrValue=e.join(",")):!n&&t.length?(this.$set(this.attribute.productSelect,"image",this.storeInfo.image),this.$set(this.attribute.productSelect,"price",this.storeInfo.price),this.$set(this.attribute.productSelect,"ot_price",this.storeInfo.ot_price||0),this.$set(this.attribute.productSelect,"stock",0),this.$set(this.attribute.productSelect,"unique",""),this.$set(this.attribute.productSelect,"cart_num",0),this.$set(this,"attrValue",""),this.$set(this,"attrTxt","请选择")):n||t.length||(this.$set(this.attribute.productSelect,"image",this.storeInfo.image),this.$set(this.attribute.productSelect,"price",this.storeInfo.price),this.$set(this.attribute.productSelect,"ot_price",this.storeInfo.ot_price||0),this.$set(this.attribute.productSelect,"stock",this.storeInfo.stock),this.$set(this.attribute.productSelect,"unique",this.storeInfo.unique||""),this.$set(this.attribute.productSelect,"cart_num",1),this.$set(this,"attrValue",""),this.$set(this,"attrTxt","请选择")),this.$set(this.attribute.productSelect,"store_name",this.storeInfo.store_name)})),(0,n.default)(r,"selecAttr",(function(){this.attribute.cartAttr=!0})),(0,n.default)(r,"onMyEvent",(function(){this.$set(this.attribute,"cartAttr",!1),this.$set(this,"isOpen",!1)})),(0,n.default)(r,"attrVal",(function(t){this.attribute.productAttr[t.indexw].index=this.attribute.productAttr[t.indexw].attr_values[t.indexn]})),(0,n.default)(r,"ChangeAttr",(function(t){this.$set(this,"cart_num",1);var e=this.productValue[t];e?(this.$set(this.attribute.productSelect,"image",e.image),this.$set(this.attribute.productSelect,"price",e.price),this.$set(this.attribute.productSelect,"ot_price",e.ot_price),this.$set(this.attribute.productSelect,"stock",e.stock),this.$set(this.attribute.productSelect,"unique",e.unique),this.$set(this.attribute.productSelect,"cart_num",1),this.$set(this,"attrValue",t),this.attrTxt="已选择"):(this.$set(this.attribute.productSelect,"image",this.storeInfo.image),this.$set(this.attribute.productSelect,"price",this.storeInfo.price),this.$set(this.attribute.productSelect,"ot_price",this.storeInfo.ot_price),this.$set(this.attribute.productSelect,"stock",0),this.$set(this.attribute.productSelect,"unique",""),this.$set(this.attribute.productSelect,"cart_num",0),this.$set(this,"attrValue",""),this.attrTxt="已选择")})),(0,n.default)(r,"scroll",(function(t){var e=t.detail.scrollTop,i=e/200;if(i=i>1?1:i,this.opacity=i,this.scrollY=e,this.lock)this.lock=!1;else for(var a=0;a<this.topArr.length;a++)if(e<this.topArr[a]-v.globalData.navHeight/2+this.heightArr[a]){this.navActive=a;break}})),(0,n.default)(r,"tap",(function(t,e){var i=t.id;e=e;this.toView=i,this.navActive=e,this.lock=!0,this.scrollTop=e>0?this.topArr[e]-v.globalData.navHeight/2:this.topArr[e]})),(0,n.default)(r,"goCat",(function(){if(this.isLogin){var t=this,e=this.productValue[this.attrValue];if(this.isOpen?this.attribute.cartAttr=!0:this.attribute.cartAttr=!this.attribute.cartAttr,!0===this.attribute.cartAttr&&0==this.isOpen)return this.isOpen=!0;if(this.attribute.productAttr.length&&void 0===e&&1==this.isOpen)return v.$util.Tips({title:"请选择属性"});if(this.cart_num<=0)return v.$util.Tips({title:"请选择数量"});this.isOpen=!1;var i={is_new:1,product_id:t.id,cart_num:t.attribute.productSelect.cart_num,product_attr_unique:void 0!==t.attribute.productSelect?t.attribute.productSelect.unique:"",product_type:20};(0,c.postCartAdd)(i).then((function(e){t.isOpen=t.attribute.cartAttr=!1,uni.navigateTo({url:"/pages/points_mall/integral_order?cartId=".concat(e.data.cart_id)})})).catch((function(e){return t.$util.Tips({title:e})}))}else(0,f.toLogin)()})),r)};e.default=m},"475f":function(t,e,i){"use strict";i("6a54");var a=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.getIntegralGoodsList=function(t){return n.default.get("points/lst",t,{noAuth:!0})},e.getIntegralHome=function(){return n.default.get("points/home",{},{noAuth:!0})},e.getIntegralProductDetail=function(t){return n.default.get("points/detail/".concat(t),{},{noAuth:!0})},e.getIntegralScope=function(){return n.default.get("points/scope",{},{noAuth:!0})},e.integralOrderConfirm=function(t){return n.default.post("order/v3/check",t,{noAuth:!0})},e.integralOrderCreate=function(t){return n.default.post("order/v3/create",t,{noAuth:!0})},e.integralOrderDelete=function(t){return n.default.post("points/order/deleate/".concat(t),{},{noAuth:!0})},e.integralOrderDetail=function(t){return n.default.get("points/order/detail/".concat(t),{},{noAuth:!0})},e.integralOrderList=function(t){return n.default.get("points/order/lst",t,{noAuth:!0})},e.integralOrderTake=function(t){return n.default.post("points/order/take/".concat(t),{},{noAuth:!0})};var n=a(i("fea3"))},"596c":function(t,e,i){"use strict";var a=i("a024"),n=i.n(a);n.a},"5c3b":function(t,e,i){t.exports=i.p+"static/images/stop.png"},"71ad":function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return n})),i.d(e,"a",(function(){}));var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",[t.nodes.length?t._e():t._t("default"),i("v-uni-view",{style:t.showAm+(t.selectable?";user-select:text;-webkit-user-select:text":""),attrs:{id:"top",animation:t.scaleAm},on:{touchstart:function(e){arguments[0]=e=t.$handleEvent(e),t._touchstart.apply(void 0,arguments)},touchmove:function(e){arguments[0]=e=t.$handleEvent(e),t._touchmove.apply(void 0,arguments)},click:function(e){arguments[0]=e=t.$handleEvent(e),t._tap.apply(void 0,arguments)}}},[i("div",{attrs:{id:"rtf"+t.uid}})])],2)},n=[]},"726b":function(t,e,i){var a=i("9cf6");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("967d").default;n("7da93115",a,!0,{sourceMap:!1,shadowMode:!1})},"792f":function(t,e,i){"use strict";i.r(e);var a=i("942d"),n=i.n(a);for(var r in a)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(r);e["default"]=n.a},"81ba":function(t,e,i){"use strict";i.r(e);var a=i("0d43"),n=i.n(a);for(var r in a)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(r);e["default"]=n.a},"832c":function(t,e,i){"use strict";i.r(e);var a=i("71ad"),n=i("81ba");for(var r in n)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(r);i("596c");var o=i("828b"),s=Object(o["a"])(n["default"],a["b"],a["c"],!1,null,"487f6906",null,!1,a["a"],void 0);e["default"]=s.exports},"8b9c":function(t,e,i){"use strict";i.r(e);var a=i("a0d3"),n=i("19e5");for(var r in n)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(r);i("262c");var o=i("828b"),s=Object(o["a"])(n["default"],a["b"],a["c"],!1,null,"1204fdcd",null,!1,a["a"],void 0);e["default"]=s.exports},"942d":function(t,e,i){"use strict";i("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={props:{imgUrls:{type:Array,default:function(){return[]}},videoline:{type:String,value:""},videoCoverImg:{type:String}},data:function(){return{indicatorDots:!0,circular:!0,autoplay:!0,interval:5e3,duration:500,currents:"1",controls:!0,isPlay:!0,videoContext:""}},created:function(){},watch:{},mounted:function(){this.videoContext=uni.createVideoContext("myVideo",this)},methods:{getpreviewImage:function(t){uni.previewImage({urls:this.imgUrls,current:t})},videoPause:function(t){},bindPause:function(){this.videoContext.play(),this.$set(this,"controls",!1),this.autoplay=!1},change:function(t){this.$set(this,"currents",t.detail.current+1)},endedFun:function(){this.controls=!0}}};e.default=a},"9cf6":function(t,e,i){var a=i("c86c");e=a(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.product-bg[data-v-482d66ae]{width:100%;height:%?750?%;position:relative}.product-bg uni-swiper[data-v-482d66ae]{width:100%;height:100%;position:relative}.product-bg .slide-image[data-v-482d66ae]{width:100%;height:100%}.product-bg .pages[data-v-482d66ae]{position:absolute;background-color:#fff;height:%?34?%;padding:0 %?10?%;border-radius:%?3?%;right:%?30?%;bottom:%?30?%;line-height:%?34?%;font-size:%?24?%;color:#050505}#myVideo[data-v-482d66ae]{width:100%;height:100%}.product-bg .item[data-v-482d66ae]{position:relative;width:100%;height:100%}.product-bg .item .poster[data-v-482d66ae]{position:absolute;top:0;left:0;height:%?750?%;width:100%;z-index:9}.product-bg .item .poster .image[data-v-482d66ae]{width:100%;height:100%}.product-bg .item .stop[data-v-482d66ae]{position:absolute;top:50%;left:50%;width:%?136?%;height:%?136?%;margin-top:%?-68?%;margin-left:%?-68?%;z-index:9}.product-bg .item .stop .image[data-v-482d66ae]{width:100%;height:100%}',""]),t.exports=e},a024:function(t,e,i){var a=i("ea05");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("967d").default;n("346c7618",a,!0,{sourceMap:!1,shadowMode:!1})},a0d3:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return r})),i.d(e,"a",(function(){return a}));var a={jyfParser:i("832c").default},n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{style:t.viewColor},[i("v-uni-view",{staticClass:"product-con"},[i("v-uni-view",{staticClass:"head-wrapper",style:"top:"+t.statusBarHeight},[i("v-uni-view",{staticClass:"head-menu"},[i("v-uni-view",{staticClass:"iconfont icon-xiangzuo",nativeOn:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.returns.apply(void 0,arguments)}}}),i("v-uni-view",{staticClass:"iconfont icon-shouye4",nativeOn:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goHome.apply(void 0,arguments)}}})],1)],1),i("v-uni-scroll-view",{style:"height:"+t.height+"px;",attrs:{"scroll-top":t.scrollTop,"scroll-y":"true","scroll-with-animation":"true"},on:{scroll:function(e){arguments[0]=e=t.$handleEvent(e),t.scroll.apply(void 0,arguments)}}},[i("v-uni-view",{attrs:{id:"past0"}},[i("productConSwiper",{attrs:{imgUrls:t.imgUrls}}),i("v-uni-view",{staticClass:"nav acea-row row-between-wrapper"},[i("v-uni-view",{staticClass:"share acea-row row-between row-bottom"},[i("v-uni-view",{staticClass:"money"},[i("v-uni-image",{attrs:{src:t.domain+"/static/images/jf-point.png",mode:""}}),i("v-uni-view",{staticClass:"price-count"},[i("v-uni-text",{staticClass:"num"},[t._v(t._s(t.storeInfo.ot_price||0))]),i("v-uni-text",[t._v("积分")]),t.storeInfo.price>0?i("v-uni-text",[t._v("+"+t._s(t.storeInfo.price)+"元")]):t._e()],1)],1),i("v-uni-view")],1)],1),i("v-uni-view",{staticClass:"wrapper"},[i("v-uni-view",{staticClass:"introduce acea-row row-between"},[i("v-uni-view",[t._v(t._s(t.storeInfo.store_name))])],1),i("v-uni-view",{staticClass:"label acea-row row-middle"},[i("v-uni-view",{staticClass:"stock"},[t._v("市场价:¥"+t._s(t.storeInfo.cost))]),i("v-uni-view",{staticClass:"stock"},[t._v("库存:\n\t\t\t\t\t\t\t"+t._s(t.storeInfo.stock))]),i("v-uni-view",{staticClass:"stock"},[t._v("已兑换:"+t._s(t.storeInfo.sales))])],1)],1),t.attribute.productAttr.length?i("v-uni-view",{staticClass:"attribute",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.selecAttr.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"acea-row row-between-wrapper df"},[i("v-uni-view",[i("v-uni-text",{staticClass:"atterTxt line1"},[t._v(t._s(t.attr)+""+t._s(t.attrValue))])],1),i("v-uni-view",{staticClass:"iconfont icon-jiantou"})],1),t.skuArr.length>1?i("v-uni-view",{staticClass:"acea-row row-between-wrapper",staticStyle:{"margin-top":"7px","padding-left":"55px"}},[i("v-uni-view",{staticClass:"flex"},t._l(t.skuArr.slice(0,4),(function(t,e){return i("v-uni-image",{key:e,staticClass:"attrImg",attrs:{src:t.image}})})),1),i("v-uni-view",{staticClass:"switchTxt"},[t._v("共"+t._s(t.skuArr.length)+"种规格可选")])],1):t._e()],1):t._e()],1),i("v-uni-view",{staticClass:"product-intro",attrs:{id:"past2"}},[i("v-uni-view",{staticClass:"title"},[t._v("产品介绍")]),i("v-uni-view",{staticClass:"conter"},[i("jyf-parser",{ref:"article",attrs:{html:t.storeInfo.description,"tag-style":t.tagStyle}})],1)],1)],1),i("v-uni-view",{staticClass:"footer acea-row row-between-wrapper"},[i("v-uni-navigator",{staticClass:"item",attrs:{"hover-class":"none",url:"/pages/points_mall/index"}},[i("v-uni-view",{staticClass:"iconfont icon-jifenshangcheng"}),i("v-uni-view",{staticClass:"p_center"},[t._v("积分商城")])],1),t.attribute.productSelect.stock>0?i("v-uni-view",{staticClass:"bnt acea-row"},[i("v-uni-view",{staticClass:"buy bnts",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goCat.apply(void 0,arguments)}}},[t._v("立即兑换")])],1):i("v-uni-view",{staticClass:"bnt acea-row"},[i("v-uni-view",{staticClass:"bnts no-goods"},[t._v("无法兑换")])],1)],1)],1),i("product-window",{attrs:{attr:t.attribute,limitCount:t.limitNum,type:"points",domain:t.domain,isShow:1,id:"product-window"},on:{myevent:function(e){arguments[0]=e=t.$handleEvent(e),t.onMyEvent.apply(void 0,arguments)},ChangeAttr:function(e){arguments[0]=e=t.$handleEvent(e),t.ChangeAttr.apply(void 0,arguments)},attrVal:function(e){arguments[0]=e=t.$handleEvent(e),t.attrVal.apply(void 0,arguments)},iptCartNum:function(e){arguments[0]=e=t.$handleEvent(e),t.iptCartNum.apply(void 0,arguments)}}})],1)},r=[]},b23b:function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return n})),i.d(e,"a",(function(){}));var a=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"product-bg"},[t.isPlay?a("v-uni-swiper",{attrs:{"indicator-dots":t.indicatorDots,"indicator-active-color":"#e93323",autoplay:t.autoplay,circular:t.circular,interval:t.interval,duration:t.duration},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.change.apply(void 0,arguments)}}},[t.videoline&&""!=t.videoline&&"https:"!=t.videoline?a("v-uni-swiper-item",[a("v-uni-view",{staticClass:"item"},[a("v-uni-video",{staticStyle:{width:"100%",height:"100%"},attrs:{id:"myVideo",src:!t.videoline||"http"!=t.videoline.substring(0,4)&&"https"!=t.videoline.substring(0,5)?"http:"+t.videoline:t.videoline,objectFit:"cover",controls:!0,"show-mute-btn":"true","auto-pause-if-navigate":!0},on:{ended:function(e){arguments[0]=e=t.$handleEvent(e),t.endedFun()}}}),t.controls?a("v-uni-view",{staticClass:"poster"},[a("v-uni-image",{staticClass:"image",attrs:{src:t.videoCoverImg}})],1):t._e(),t.controls?a("v-uni-view",{staticClass:"stop",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.bindPause.apply(void 0,arguments)}}},[a("v-uni-image",{staticClass:"image",attrs:{src:i("5c3b")}})],1):t._e()],1)],1):t._e(),t._l(t.imgUrls,(function(e,i){return[a("v-uni-swiper-item",[a("v-uni-image",{staticClass:"slide-image",attrs:{src:e,mode:"widthFix"},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.getpreviewImage(e)}}})],1)]}))],2):t._e()],1)},n=[]},c74e:function(t,e,i){"use strict";var a=i("726b"),n=i.n(a);n.a},cb9a:function(t,e,i){"use strict";i.r(e);var a=i("b23b"),n=i("792f");for(var r in n)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(r);i("c74e");var o=i("828b"),s=Object(o["a"])(n["default"],a["b"],a["c"],!1,null,"482d66ae",null,!1,a["a"],void 0);e["default"]=s.exports},dc04:function(t,e){function i(t){for(var e={},i=t.split(","),a=i.length;a--;)e[i[a]]=!0;return e}t.exports={filter:null,highlight:null,onText:null,blankChar:i(" , ,\t,\r,\n,\f"),blockTags:i("address,article,aside,body,caption,center,cite,footer,header,html,nav,section,pre"),ignoreTags:i("area,base,basefont,canvas,command,frame,input,isindex,keygen,link,map,meta,param,script,source,style,svg,textarea,title,track,use,wbr,embed,iframe"),richOnlyTags:i("a,colgroup,fieldset,legend,picture,table"),selfClosingTags:i("area,base,basefont,br,col,circle,ellipse,embed,frame,hr,img,input,isindex,keygen,line,link,meta,param,path,polygon,rect,source,track,use,wbr"),trustAttrs:i("align,alt,app-id,author,autoplay,border,cellpadding,cellspacing,class,color,colspan,controls,data-src,dir,face,height,href,id,ignore,loop,media,muted,name,path,poster,rowspan,size,span,src,start,style,type,unit-id,width,xmlns"),boolAttrs:i("autoplay,controls,ignore,loop,muted"),trustTags:i("a,abbr,ad,audio,b,blockquote,br,code,col,colgroup,dd,del,dl,dt,div,em,fieldset,h1,h2,h3,h4,h5,h6,hr,i,img,ins,label,legend,li,ol,p,q,source,span,strong,sub,sup,table,tbody,td,tfoot,th,thead,tr,title,ul,video"),userAgentStyles:{address:"font-style:italic",big:"display:inline;font-size:1.2em",blockquote:"background-color:#f6f6f6;border-left:3px solid #dbdbdb;color:#6c6c6c;padding:5px 0 5px 10px",caption:"display:table-caption;text-align:center",center:"text-align:center",cite:"font-style:italic",dd:"margin-left:40px",img:"max-width:100%",mark:"background-color:yellow",picture:"max-width:100%",pre:"font-family:monospace;white-space:pre;overflow:scroll",s:"text-decoration:line-through",small:"display:inline;font-size:0.8em",u:"text-decoration:underline"}}},ea05:function(t,e,i){var a=i("c86c");e=a(!1),e.push([t.i,"@-webkit-keyframes show-data-v-487f6906{0%{opacity:0}100%{opacity:1}}@keyframes show-data-v-487f6906{0%{opacity:0}100%{opacity:1}}\n\n\n\n",""]),t.exports=e},f070:function(t,e,i){var a=i("fc949");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("967d").default;n("342db6bc",a,!0,{sourceMap:!1,shadowMode:!1})},fc949:function(t,e,i){var a=i("c86c");e=a(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.product-con[data-v-1204fdcd]{position:relative}.product-con .attribute[data-v-1204fdcd]{padding:%?22?%}.p_center[data-v-1204fdcd]{text-align:center}.generate-posters[data-v-1204fdcd]{width:100%;height:%?170?%;background-color:#fff;position:fixed;left:0;bottom:0;z-index:300;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);transition:all .3s cubic-bezier(.25,.5,.5,.9);border-top:%?1?% solid #eee}.generate-posters.on[data-v-1204fdcd]{-webkit-transform:translateZ(0);transform:translateZ(0)}.generate-posters .item[data-v-1204fdcd]{flex:1;text-align:center;font-size:%?30?%}.generate-posters .item .iconfont[data-v-1204fdcd]{font-size:%?80?%;color:#5eae72}.generate-posters .item .iconfont.icon-haibao[data-v-1204fdcd]{color:#5391f1}.navbar .header[data-v-1204fdcd]{height:%?96?%;font-size:%?30?%;color:#050505;background-color:#fff}.icon-xiangzuo[data-v-1204fdcd]{top:%?30?%!important}.navbar .header .item[data-v-1204fdcd]{position:relative;margin:0 %?25?%}.navbar .header .item.on[data-v-1204fdcd]:before{position:absolute;width:%?60?%;height:%?5?%;background-repeat:no-repeat;content:"";background-image:linear-gradient(90deg,#f36 0,#ff6533);bottom:%?-10?%;left:50%;margin-left:%?-28?%}.navbar[data-v-1204fdcd]{position:fixed;background-color:#fff;top:0;left:0;z-index:99;width:100%}.navbar .navbarH[data-v-1204fdcd]{position:relative}.navbar .navbarH .navbarCon[data-v-1204fdcd]{position:absolute;bottom:0;height:%?100?%;width:100%}.product-con .nav[data-v-1204fdcd]{height:%?100?%;padding:0 %?22?%;box-sizing:border-box;background-color:#fff;margin-top:%?22?%}.product-con .nav .money[data-v-1204fdcd]{font-size:%?28?%;color:var(--view-theme);display:flex;align-items:baseline}.product-con .nav .money uni-image[data-v-1204fdcd]{width:%?26?%;height:%?26?%}.product-con .nav .money .price-count[data-v-1204fdcd]{font-weight:400;font-size:%?22?%}.product-con .nav .money .price-count .num[data-v-1204fdcd]{font-weight:700;margin-right:%?8?%}.product-con .nav .money .num[data-v-1204fdcd]{font-size:%?34?%;padding-left:%?16?%}.product-con .nav .money .y-money[data-v-1204fdcd]{font-size:%?26?%;margin-left:%?10?%;text-decoration:line-through}.product-con .nav .timeItem[data-v-1204fdcd]{font-size:%?20?%;color:#fff;text-align:center}.product-con .nav .timeItem .timeCon[data-v-1204fdcd]{margin-top:%?10?%}.product-con .nav .timeItem .timeCon .num[data-v-1204fdcd]{padding:0 %?7?%;font-size:%?22?%;color:#ff3d3d;background-color:#fff;border-radius:%?2?%}.product-con .nav .timeState[data-v-1204fdcd]{font-size:%?28?%;color:#fff}.product-con .nav .iconfont[data-v-1204fdcd]{color:#fff;font-size:%?30?%;margin-left:%?20?%}.product-con .wrapper[data-v-1204fdcd]{padding:%?4?% %?22?% %?22?%;box-sizing:border-box;background-color:#fff}.product-con .wrapper .introduce[data-v-1204fdcd]{margin:0}.product-con .wrapper .introduce .iconfont[data-v-1204fdcd]{font-size:%?37?%;color:#515151}.product-con .wrapper .label[data-v-1204fdcd]{display:flex;justify-content:space-between;margin:%?18?% 0 0 0;font-size:%?24?%;color:#82848f}.product-con .footer[data-v-1204fdcd]{padding:0 %?30?% 0 %?44?%;position:fixed;bottom:0;width:100%;box-sizing:border-box;background-color:#fff;z-index:277;border-top:1px solid #f0f0f0;display:flex;align-items:center;flex-wrap:nowrap;height:calc(100rpx+ constant(safe-area-inset-bottom));height:calc(%?100?% + env(safe-area-inset-bottom));padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.product-con .footer .item[data-v-1204fdcd]{width:%?120?%;font-size:%?18?%;color:#666;tex-align:center;margin-right:%?30?%}.product-con .footer .item .iconfont[data-v-1204fdcd]{text-align:center;font-size:%?32?%}.product-con .footer .item .iconfont.icon-shoucang1[data-v-1204fdcd]{color:red}.product-con .footer .item .iconfont.icon-gouwuche1[data-v-1204fdcd]{font-size:%?40?%;position:relative}.product-con .footer .item .iconfont.icon-gouwuche1 .num[data-v-1204fdcd]{color:#fff;position:absolute;font-size:%?18?%;padding:%?2?% %?8?% %?3?%;border-radius:%?200?%;top:%?-10?%;right:%?-10?%}.product-con .footer .bnt[data-v-1204fdcd]{width:100%;height:%?76?%}.product-con .footer .bnt .bnts[data-v-1204fdcd]{width:100%;text-align:center;line-height:%?76?%;color:#fff;font-size:%?28?%}.product-con .footer .bnt .joinCart[data-v-1204fdcd]{border-radius:%?50?% 0 0 %?50?%;background-image:linear-gradient(90deg,#fea10f 0,#fa8013)}.product-con .footer .bnt .buy[data-v-1204fdcd]{border-radius:%?50?%;background-image:linear-gradient(90deg,var(--view-bntColor21),var(--view-bntColor22))}.product-con .footer .bnt .no-goods[data-v-1204fdcd]{border-radius:%?50?%;background-color:#ccc}.product-con .conter[data-v-1204fdcd]{display:block;padding-bottom:%?100?%}.product-con .conter img[data-v-1204fdcd]{display:block}.bg-color-hui[data-v-1204fdcd]{background:#bbb!important}.canvas[data-v-1204fdcd]{width:750px;height:1190px}.poster-pop[data-v-1204fdcd]{width:%?450?%;height:%?714?%;position:fixed;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);z-index:300;top:50%;margin-top:%?-559?%}.poster-pop uni-image[data-v-1204fdcd]{width:100%;height:100%;display:block}.poster-pop .close[data-v-1204fdcd]{width:%?46?%;height:%?75?%;position:fixed;right:0;top:%?-73?%;display:block}.poster-pop .save-poster[data-v-1204fdcd]{background-color:#df2d0a;font-size:22rpx;color:#fff;text-align:center;height:%?76?%;line-height:%?76?%;width:100%}.poster-pop .keep[data-v-1204fdcd]{color:#fff;text-align:center;font-size:%?25?%;margin-top:%?10?%}.mask1[data-v-1204fdcd]{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#000;opacity:.5;z-index:288}.home-nav[data-v-1204fdcd]{top:%?20?%!important}.home-nav[data-v-1204fdcd]{color:#fff;position:fixed;font-size:%?33?%;width:%?56?%;height:%?56?%;z-index:99;left:%?33?%;background:hsla(0,0%,74.5%,.5);border-radius:50%}.home-nav.on[data-v-1204fdcd]{background:unset;color:#333}.home-nav .line[data-v-1204fdcd]{width:%?1?%;height:%?24?%;background:hsla(0,0%,100%,.25)}.home-nav .icon-xiangzuo[data-v-1204fdcd]{width:auto;font-size:%?28?%}.share-box[data-v-1204fdcd]{z-index:1000;position:fixed;left:0;top:0;width:100%;height:100%}.share-box uni-image[data-v-1204fdcd]{width:100%;height:100%}.df[data-v-1204fdcd]{display:flex;align-items:center;flex-wrap:nowrap}.head-wrapper[data-v-1204fdcd]{z-index:999;display:flex;align-items:center;position:fixed;left:%?30?%;top:0;height:%?114?%}.head-menu[data-v-1204fdcd]{display:flex;align-items:center;height:%?54?%;width:%?140?%;background:rgba(0,0,0,.25);border-radius:%?27?%}.head-menu .iconfont[data-v-1204fdcd]{flex:1;text-align:center;color:#fff;box-sizing:border-box}.head-menu .iconfont.icon-xiangzuo[data-v-1204fdcd]{border-right:1px solid #fff}',""]),t.exports=e}}]);