You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
hezhiying/unpackage/dist/build/h5/static/js/pages-fenxiao-fenxiao~pages...

1 line
32 KiB

1 year ago
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-fenxiao-fenxiao~pages-my-richText~pages-qianggou-productDetails~pages-qianggou-qianggou~pages-~25a581a4"],{"06c2":function(t,n,e){"use strict";e("7a82");var r=e("4ea4").default;Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,e("14d9"),e("e25e"),e("caad"),e("2532");var i=r(e("5a44")),s={name:"node",data:function(){return{ctrl:{}}},props:{name:String,attrs:{type:Object,default:function(){return{}}},childs:Array,opts:Array},components:{node:i.default},mounted:function(){var t=this;for(this.root=this.$parent;"mp-html"!=this.root.$options.name;this.root=this.root.$parent);if(this.opts[0]){for(var n=this.childs.length;n--;)if("img"==this.childs[n].name)break;-1!=n&&(this.observer=uni.createIntersectionObserver(this).relativeToViewport({top:500,bottom:500}),this.observer.observe("._img",(function(n){n.intersectionRatio&&(t.$set(t.ctrl,"load",1),t.observer.disconnect())})))}},beforeDestroy:function(){this.observer&&this.observer.disconnect()},methods:{play:function(t){if(this.root.pauseVideo){for(var n=!1,e=t.target.id,r=this.root._videos.length;r--;)this.root._videos[r].id==e?n=!0:this.root._videos[r].pause();if(!n){var i=uni.createVideoContext(e,this);i.id=e,this.root._videos.push(i)}}},imgTap:function(t){var n=this.childs[t.currentTarget.dataset.i];if(n.a)return this.linkTap(n.a);n.attrs.ignore||(n.attrs.src=n.attrs.src||n.attrs["data-src"],this.root.$emit("imgTap",n.attrs),this.root.previewImg&&uni.previewImage({current:parseInt(n.attrs.i),urls:this.root.imgList}))},imgLongTap:function(t){},imgLoad:function(t){var n=t.currentTarget.dataset.i;(this.opts[1]&&!this.ctrl[n]||-1==this.ctrl[n])&&this.$set(this.ctrl,n,1)},linkTap:function(t){var n=t.currentTarget?this.childs[t.currentTarget.dataset.i].attrs:t,e=n.href;this.root.$emit("linkTap",n),e&&("#"==e[0]?this.root.navigateTo(e.substring(1)).catch((function(){})):e.includes("://")?this.root.copyLink&&window.open(e):uni.navigateTo({url:e,fail:function(){uni.switchTab({url:e,fail:function(){}})}}))},mediaError:function(t){var n=t.currentTarget.dataset.i,e=this.childs[n];if("video"==e.name||"audio"==e.name){var r=(this.ctrl[n]||0)+1;if(r>e.src.length&&(r=0),r<e.src.length)return this.$set(this.ctrl,n,r)}else"img"==e.name&&this.opts[2]&&this.$set(this.ctrl,n,-1);this.root&&this.root.$emit("error",{source:e.name,attrs:e.attrs,errMsg:t.detail.errMsg})}}};n.default=s},"0ca8":function(t,n,e){"use strict";e.r(n);var r=e("06c2"),i=e.n(r);for(var s in r)["default"].indexOf(s)<0&&function(t){e.d(n,t,(function(){return r[t]}))}(s);n["default"]=i.a},1069:function(t,n,e){"use strict";e("7a82"),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r={props:{content:String,copyLink:{type:Boolean,default:uni.$u.props.parse.copyLink},domain:String,errorImg:{type:String,default:uni.$u.props.parse.errorImg},lazyLoad:{type:Boolean,default:uni.$u.props.parse.lazyLoad},loadingImg:{type:String,default:uni.$u.props.parse.loadingImg},pauseVideo:{type:Boolean,default:uni.$u.props.parse.pauseVideo},previewImg:{type:Boolean,default:uni.$u.props.parse.previewImg},scrollTable:Boolean,selectable:Boolean,setTitle:{type:Boolean,default:uni.$u.props.parse.setTitle},showImgMenu:{type:Boolean,default:uni.$u.props.parse.showImgMenu},tagStyle:Object,useAnchor:null}};n.default=r},"12fa":function(t,n,e){"use strict";e.d(n,"b",(function(){return r})),e.d(n,"c",(function(){return i})),e.d(n,"a",(function(){}));var r=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("v-uni-view",{class:"_"+t.name+" "+t.attrs.class,style:t.attrs.style,attrs:{id:t.attrs.id}},[t._l(t.childs,(function(n,r){return["img"==n.name&&(t.opts[1]&&!t.ctrl[r]||t.ctrl[r]<0)?e("v-uni-image",{key:r+"_0",staticClass:"_img",style:n.attrs.style,attrs:{src:t.ctrl[r]<0?t.opts[2]:t.opts[1],mode:"widthFix"}}):t._e(),"img"==n.name?e("img",{key:r+"_1",class:"_img "+n.attrs.class,style:(-1==t.ctrl[r]?"display:none;":"")+n.attrs.style,attrs:{id:n.attrs.id,src:n.attrs.src||(t.ctrl.load?n.attrs["data-src"]:""),"data-i":r},on:{load:function(n){argument