1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7b339d63"],{"12e8":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("List")},s=[],o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"app"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.showMenuIcon,expression:"showMenuIcon"}],staticClass:"menu",on:{touchstart:function(t){return t.stopPropagation(),e.onMenuClick(t)}}},[n("i",{staticClass:"iconfont",class:[e.isEnter?"icon_back":"iconlist"]})]),e._m(0),n("Guide"),n("ShopList",{ref:"shopList",attrs:{cate:e.cate,list:e.list},on:{show:e.onShopShow,click:e.onShopClick}}),n("Comment",{ref:"comment"})],1)},a=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"container swiper-container"},[n("div",{staticClass:"swiper-wrapper"},[n("div",{staticClass:"swiper-slide"},[n("div",{staticClass:"videos swiper-container"},[n("div",{staticClass:"swiper-wrapper"})])]),n("div",{staticClass:"swiper-slide",attrs:{id:"frame-container"}})])])}];n("7f7f"),n("ac6a");function c(e){throw new Error('"'+e+'" is read-only')}n("a481"),n("7514"),n("96cf");var r,d,u,l=n("1da1"),p=n("53ca"),h=n("22c0"),v=n.n(h),m=(n("c75e"),n("617a")),f={addHandler:function(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n},removeHandler:function(e,t,n){e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=n},listenTouchDirection:function(e){var t,n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=i.isPreventDefault,o=i.up,a=i.right,c=i.down,r=i.left;function d(e){switch(e.type){case"touchstart":t=e.touches[0].pageX,n=e.touches[0].pageY;break;case"touchend":var i=e.changedTouches[0].pageX-t,d=e.changedTouches[0].pageY-n;Math.abs(i)>Math.abs(d)?i>30?a&&a():i<-30&&r&&r():d>30?c&&c():d<-30&&o&&o();break;case"touchmove":s&&e.preventDefault();break}}this.addHandler(e,"touchstart",d),this.addHandler(e,"touchend",d),this.addHandler(e,"touchmove",d)}},g=(n("fecd"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.show?n("div",[n("popup",{attrs:{"is-close":!1}},[n("div",{staticClass:"user-guide",on:{touchstart:function(e){e.stopPropagation()}}},[n("div",{staticClass:"main"},[n("h4",[e._v("操作提示")]),n("ul",[n("li",[n("i",{staticClass:"iconfont icongesture_more"}),n("div",[e._v("上下滑动可切换场景")])]),n("li",[n("i",{staticClass:"iconfont icongesture_enter"}),n("div",[e._v("向左滑动屏幕可进入店铺")])])]),n("button",{attrs:{type:"button"},on:{click:e.onSet}},[e._v("\n "+e._s(e.$t("components.user_guid.set"))+"\n ")])])])])],1):e._e()}),w=[],k=n("fa5b"),b={components:{Popup:k["a"]},data:function(){return{show:!1}},created:function(){var e=localStorage.getItem("discover_guide");e||(this.show=!0)},methods:{onSet:function(){this.show=!1,localStorage.setItem("discover_guide",Date.now())}}},y=b,_=(n("1c88"),n("2877")),C=Object(_["a"])(y,g,w,!1,null,null,null),x=C.exports,I=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"custom-classes-transition","enter-active-class":"animated slideInLeft faster","leave-active-class":"animated slideOutLeft faster"}},[e.show?n("div",{staticClass:"list",on:{touchstart:function(t){return t.stopPropagation(),e.onShow(!1)},touchmove:function(e){e.preventDefault()}}},[n("div",{on:{touchstart:function(e){e.stopPropagation()}}},[n("div",{staticClass:"close"},[n("i",{staticClass:"iconfont icon_close",on:{click:function(t){return t.stopPropagation(),e.onShow(!1)}}})]),n("div",{staticClass:"cates",on:{touchmove:function(e){e.stopPropagation()},touchstart:function(e){e.stopPropagation()}}},[n("div",{ref:"swiper",staticClass:"swiper-container"},[n("div",{staticClass:"swiper-wrapper"},e._l(e.cate,(function(t,i){return n("div",{key:i,staticClass:"swiper-slide",class:{active:t.id==e.cateId},on:{click:function(n){return e.onCateClick(t.id)}}},[e._v("\n "+e._s(t.name)+"\n ")])})),0)])]),n("div",{staticClass:"items",on:{touchmove:function(e){e.stopPropagation()},touchstart:function(e){e.stopPropagation()}}},[e.isEmpty?n("div",{staticClass:"empty"},[n("div",[n("img",{attrs:{src:"static/img/apps/shop/empty.png",alt:""}}),n("div",[e._v("暂无相关店铺")])])]):n("ul",e._l(e.list,(function(t,i){return n("li",{directives:[{name:"show",rawName:"v-show",value:t.show,expression:"item.show"}],key:i,on:{click:function(t){return e.onItemClick(i)}}},[n("div",[n("div",{staticClass:"logo",style:{backgroundImage:"url("+t.logo+")"}}),n("div",{staticClass:"name"},[n("span",[e._v(e._s(t.name))])])])])})),0)])])]):e._e()])},S=[],T=null,E={props:{cate:Array,list:Array},data:function(){return{show:!1,cateId:-1}},watch:{show:function(){var e=this;this.show?this.$nextTick((function(){T=new Swiper(e.$el.querySelector(".cates .swiper-container"),{slidesPerView:4.6,freeMode:!1})})):(T&&T.destroy(),T=null),this.$emit("show",this.show)}},computed:{isEmpty:function(){return!this.list.some((function(e){return e.show}))}},methods:{onShow:function(e){this.show=e},onItemClick:function(e){var t=this;this.show=!1,setTimeout((function(){t.$emit("click",e)}),300)},onCateClick:function(e){this.cateId=e,this.list.forEach((function(t){t.show=-1==e||t.cateId==e}))}}},L=E,P=(n("f1ac"),Object(_["a"])(L,I,S,!1,null,null,null)),O=P.exports,M=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"comment",class:{show:e.show},on:{click:function(t){return t.stopPropagation(),e.onShow(!1)}}},[n("transition",{attrs:{name:"custom-classes-transition","enter-active-class":"animated slideInUp faster","leave-active-class":"animated slideOutDown faster"}},[e.show?n("div",{on:{click:function(e){e.stopPropagation()}}},[n("header",[n("span",{directives:[{name:"show",rawName:"v-show",value:!e.loading,expression:"!loading"}]},[e._v(e._s(e.rows)+"条评论")]),n("i",{staticClass:"iconfont icon_close",on:{click:function(t){return e.onShow(!1)}}})]),n("main",{style:{hidden:e.isInput},on:{touchmove:function(e){e.stopPropagation()},touchstart:function(e){e.stopPropagation()}}},[e.loading?n("div",[e._v("评论加载中...")]):0==e.rows?n("div",[e._v("暂无评论,来抢沙发!")]):e._e(),n("ul",[e._l(e.list,(function(t,i){return n("li",{key:t.parent.logId},[n("div",[n("img",{attrs:{src:t.parent.userAvatar+"?x-oss-process=image/resize,m_fixed,w_90,h_90",alt:""}}),n("div",[n("div",{staticClass:"nickname"},[n("span",{domProps:{innerHTML:e._s(t.parent.userName)}})]),n("div",{staticClass:"content",domProps:{innerHTML:e._s(t.parent.content)}}),n("div",{staticClass:"reply"},[e._v("\n "+e._s(e._f("monthDayFormat")(t.parent.createTime))+"\n "),e.userId==t.parent.userId?n("span",{on:{click:function(n){return e.onDelete(t.parent.logId)}}},[e._v("删除")]):e._e(),n("span",{on:{click:function(t){return e.onReply(i)}}},[e._v("回复")])]),t.child.length?n("ul",e._l(t.child,(function(i){return n("li",{key:i.logId},[n("div",[n("img",{attrs:{src:i.userAvatar+"?x-oss-process=image/resize,m_fixed,w_90,h_90",alt:""}}),n("div",[n("div",{staticClass:"nickname"},[n("span",{domProps:{innerHTML:e._s(i.userName)}}),i.userId==t.parent.userId?n("span",{staticClass:"flag"},[e._v("层主")]):e._e()]),n("div",{staticClass:"content",domProps:{innerHTML:e._s(i.content)}}),n("div",{staticClass:"reply"},[e._v("\n "+e._s(e._f("monthDayFormat")(i.createTime))+"\n "),e.userId==i.userId?n("span",{on:{click:function(t){return e.onDelete(i.logId)}}},[e._v("删除")]):e._e()])])])])})),0):e._e()])])])})),0==!e.rows?n("li",{staticClass:"end"},[e._v("暂时没有更多了")]):e._e()],2)]),n("footer",{class:{active:e.isInput,disable:e.loading}},[n("div",[n("input",{directives:[{name:"model",rawName:"v-model",value:e.comment,expression:"comment"}],attrs:{maxlength:"200",placeholder:"留下评论,说点儿啥~"},domProps:{value:e.comment},on:{focus:function(t){e.isInput=!0},blur:function(t){e.isInput=!1},focusout:e.onFocusout,input:function(t){t.target.composing||(e.comment=t.target.value)}}}),n("span",{staticClass:"iconfont icon_top",on:{touchend:e.onSend}})])])]):e._e()])],1)},j=[],V=m["a"].urlQueryValue("appname")||"shop",N=m["a"].urlQueryValue("origin")||"4Dplaza",R=m["a"].urlQueryValue("avatar")||"https://4dkk.4dage.com/shop/huafa/20201013/095535927191b0.png",D=decodeURIComponent(m["a"].urlQueryValue("nickname")||"test"),z=m["a"].urlQueryValue("user_id")||"1000be78b3077d3ef2b1597638340112",W={data:function(){return{show:!1,isInput:!1,brandId:0,comment:"",rows:0,list:[],index:null,loading:!1,userId:z}},watch:{show:function(){this.show?(this.loading=!0,this.getComments()):(this.list=[],this.rows=0)}},mounted:function(){},methods:{onShow:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.show=e,this.brandId=t},onReply:function(e){this.index=e,this.$el.querySelector("input").focus(),this.onSend()},onSend:function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.comment=this.comment.trim(),this.comment){e.next=3;break}return e.abrupt("return");case 3:return t={brandId:this.brandId,content:this.comment,origin:N,type:1,userAvatar:R,userId:z,userName:D},null!=this.index&&(t.parentId=this.list[this.index].parent.logId),e.next=7,this.$http.postJson("".concat("","4dage/").concat(V,"/postComment"),t);case 7:if(n=e.sent,0==n.code){e.next=10;break}return e.abrupt("return",this.$alert({content:n.msg||"评论出错"}));case 10:this.index=null,this.comment="",this.$el.querySelector("input").blur(),this.getComments();case 14:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),onDelete:function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(t){var n,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n={logId:t,origin:N,type:-1,brandId:this.brandId},null!=this.index&&(n.parentId=this.list[this.index].parent.logId),e.next=4,this.$http.postJson("".concat("","4dage/").concat(V,"/postComment"),n);case 4:if(i=e.sent,0==i.code){e.next=7;break}return e.abrupt("return",this.$tips({content:i.msg||"删除评论出错"}));case 7:this.index=null,this.comment="",this.$el.querySelector("input").blur(),this.getComments(),this.$tips({content:"删除成功"});case 12:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),getComments:function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.$http.get("".concat("","4dage/").concat(V,"/getCommentList"),{brandId:this.brandId,origin:N,pageNum:1,pageSize:100});case 2:t=e.sent,this.rows=t.data.totalNum,this.list=t.data.list,this.loading=!1,this.$parent.updateCommentCount(this.rows);case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),onFocusin:function(){document.body.scrollTop=0},onFocusout:function(){setTimeout((function(){document.body.scrollTop=0,document.documentElement.scrollTop=0}),300)}}},H=W,Q=(n("5654"),Object(_["a"])(H,M,j,!1,null,"488e0802",null)),q=Q.exports,J=n("f121"),A=document.createElement("div");A.setAttribute("class","video-info"),A.innerHTML='\n<video\n crossorigin="anonymous"\n playsinline="true"\n x5-playsinline="true"\n webkit-playsinline="true"\n x5-video-player-type="h5"\n loop\n muted\n preload="none"\n >\n</video>\n';var B=document.createElement("div");B.setAttribute("class","video-info"),B.innerHTML='\n<video\n crossorigin="anonymous"\n playsinline="true"\n x5-playsinline="true"\n webkit-playsinline="true"\n x5-video-player-type="h5"\n loop\n muted\n preload="none"\n >\n</video>\n';var F=A.querySelector("video"),Y=B.querySelector("video");function X(e){if(m["a"].detectWeixin()){var t=function(){"undefined"!==typeof parent.WeixinJSBridge&&parent.WeixinJSBridge.invoke("getNetworkType",{},(function(t){e()}),!1)};"undefined"!==typeof parent.WeixinJSBridge?t():parent.document.addEventListener("WeixinJSBridgeReady",t)}else e()}var U={name:"show-app",data:function(){return{app:m["a"].urlQueryValue("appname"),index:0,cate:[],list:[],isEnter:!1,showMenuIcon:!0,userId:m["a"].urlQueryValue("user_id")||"1000be78b3077d3ef2b1597638340112",roomId:m["a"].urlQueryValue("room_id")||"test",lastScene:m["a"].urlQueryValue("lastSceneNum")}},components:{Guide:x,ShopList:O,Comment:q},watch:{showMenuList:function(){this.showMenuIcon?$(".videos .swiper-slide-active").removeClass("hidden"):$(".videos .swiper-slide-active").addClass("hidden")}},created:function(){var e=this,t=!1;window.addEventListener("message",(function(n){"object"==Object(p["a"])(n.data)&&("video"==n.data.type?"pause"==n.data.action&&r?(r.pause(),t=!0):"play"==n.data.action&&r&&r.play():"newRoom"==n.data.type&&(e.roomId=n.data.value))}),!1),v.a.on("focus",(function(){setTimeout((function(){t&&r&&r.pause()}),200)}))},mounted:function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(){var t,n=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=this,e.next=3,this.getScenes();case 3:$(".videos").on("click",".head",(function(){n.initContainer()})),$(".videos").on("click",".share",(function(){var e=this;$(this).addClass("disable"),parent.postMessage({cmd:"socket",type:"share",data:$(this).data("id")},"*"),setTimeout((function(){$(e).removeClass("disable")}),1e3)})),$(".videos").on("click","div.like",Object(l["a"])(regeneratorRuntime.mark((function e(){var n,i,s,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=$(this).parents("[data-index]").data("index"),i=t.list[n],i.isLike=i.isLike?0:1,e.next=5,t.onLike(i);case 5:s=e.sent,s&&($(this).removeClass("active unactive"),i.isLike?$(this).addClass("active"):$(this).addClass("unactive"),i.likeCount=s.total,$(this).find("span").text(i.likeCount),o=t.slides[n].replace(/<span l-count>\d+<\/span>/,"<span l-count>".concat(i.likeCount,"</span>")),o=o.replace("like active","like"),i.isLike&&(o=o.replace('class="like"','class="like active"')),t.slides[n]=o);case 7:case"end":return e.stop()}}),e,this)})))),$(".videos").on("click",".comment",(function(){t.$refs.comment.onShow(!0,$(this).data("id"))})),f.listenTouchDirection(document.querySelector(".container"),{left:function(){n.initContainer()},right:function(){n.$refs.shopList.onShow(!0)}});case 8:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),methods:{init:function(){var e=this;this.$nextTick((function(){var t=e;new Swiper(".videos.swiper-container",{loop:!1,speed:250,direction:"vertical",initialSlide:0,centeredSlides:!1,observer:!1,observeParents:!1,shortSwipes:!0,touchRatio:1,on:{init:function(){var e=t.list[t.index],n=t.list[t.index+1];this.appendSlide(t.slides[t.index]),$(A).appendTo(".videos .swiper-slide-active"),r=F,F.src=t.getVideo(e.num,e.panoId,e.introduceVideo),F.onplaying=function(){F.onplaying=null,$(".videos .swiper-slide-active").find(".loading").remove()},X((function(){F.muted=!1,F.play()})),!n&&t.index>0&&(t.index=-1,n=t.list[0]),n&&(this.appendSlide(t.slides[t.index+1]),$(B).appendTo(".videos .swiper-slide-next"),Y.src=t.getVideo(n.num,n.panoId,n.introduceVideo),Y.onplaying=function(){Y.pause(),Y.currentTime=0,Y.onplaying=null,setTimeout((function(){F.play()}),10)},X((function(){Y.play()})))},touchMove:function(e){var n=this;if(this.touches.currentY-this.touches.startY>100){if(this.__is_run)return;this.__is_run=!0,t.index--,t.index<0&&(t.index=t.list.length-1);var i=t.list[t.index];this.addSlide(0,t.slides[t.index]),setTimeout((function(){var e=$(".videos .swiper-slide:last .video-info").appendTo(n.slides[0]),s=e.find("video")[0];r=s,s.src=t.getVideo(i.num,i.panoId,i.introduceVideo),s.onplaying=function(){s.onplaying=null,$(".videos .swiper-slide-active").find(".loading").remove()},X((function(){s.muted=!1,s.play()})),n.removeSlide(n.slides.length-1),$(".videos .video-info:last").find("video")[0].pause()}),300),setTimeout((function(){n.__is_run=!1}),500);try{parent.wx.miniProgram.postMessage({data:{type:"lastSceneNum",num:i.num}})}catch(s){}}},slideChangeTransitionEnd:function(){if(!(this.touches.currentY-this.touches.startY>0)){t.index++,t.list[t.index]||(t.index=0);try{parent.wx.miniProgram.postMessage({data:{type:"lastSceneNum",num:t.list[t.index].num}})}catch(c){}console.log(t.index);var e=$(".videos .swiper-slide-prev .video-info"),n=e.find("video")[0];this.removeSlide(0);var i=$(".videos .swiper-slide-active .video-info"),s=i.find("video")[0];r=s,s.onplaying=function(){s.onplaying=null,$(".videos .swiper-slide-active").find(".loading").remove()},X((function(){s.currentTime=0,s.muted=!1,s.play()}));var o=t.index+1,a=t.list[o];a||(o=0,a=t.list[0]),this.appendSlide(t.slides[o]),e.appendTo(".videos .swiper-slide-next"),n.src=t.getVideo(a.num,a.panoId,a.introduceVideo),n.onplaying=function(){n.pause(),n.currentTime=0,n.onplaying=null,setTimeout((function(){s.play()}),10)},X((function(){n.play()}))}}}})}))},initContainer:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!d){var n=this,i=document.getElementById("frame");i&&(i.src="about:blank",i.contentWindow.document.write(""),i.contentWindow.document.clear(),i.contentWindow.close(),i.parentNode.removeChild(d),c("find"),i=null),this.showMenuIcon=!1,t=null!=t?t:this.index,-1==t&&(t=this.list.length-1),d=$('<iframe\n id="frame"\n frameborder="0"\n allow="autoplay"\n src="'.concat(this.getLink(this.list[t]),'"\n ></iframe>')).appendTo("#frame-container")[0],parent.postMessage({cmd:"socket",type:"showTabs",data:!1},"*"),parent.postMessage({cmd:"socket",type:"scene",data:{cmd:"enter",num:this.list[t].num}},"*"),d.onload=function(){setTimeout((function(){e.showMenuIcon=!0,F.pause(),Y.pause()}),300)},r.pause();Date.now();u&&u.destroy(!0,!0),u=new Swiper(this.$el.querySelector(".container.swiper-container"),{speed:800,effect:"coverflow",centeredSlides:!0,slidesPerView:"auto",allowTouchMove:!1,coverflowEffect:{rotate:120,stretch:0,depth:700,modifier:1,slideShadows:!1},on:{init:function(){var e=this;setTimeout((function(){e.slideNext()}),800)},transitionEnd:function(){},slideChange:function(){var e=this;n.isEnter=1==this.activeIndex,0==n.isEnter&&(n.showMenuIcon=!1,setTimeout((function(){e.destroy(!0,!0),u=null,d.src="about:blank",d.contentWindow.document.write(""),d.contentWindow.document.clear(),d.contentWindow.close(),d.parentNode.removeChild(d),d=null,setTimeout((function(){n.showMenuIcon=!0}),200),r.play()}),800))}}})}},getScenes:function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(){var t,n,i,s,o,a=this,c=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=c.length>0&&void 0!==c[0]?c[0]:-1,n=c.length>1&&void 0!==c[1]?c[1]:1,i=c.length>2&&void 0!==c[2]?c[2]:100,s=m["a"].urlQueryValue("origin"),e.next=6,this.$http.get("".concat("","4dage/").concat(this.app,"/getDiscoverList"),{pageNum:n,pageSize:i,cateId:t,origin:s,userId:this.userId});case 6:if(o=e.sent,0==o.code&&o.data.list&&o.data.list.length){e.next=9;break}return e.abrupt("return");case 9:this.list=[],this.slides=[],o.data.list.forEach((function(e,t){e.introduceVideo&&(a.list.push({id:e.id,show:!0,num:e.sceneNum,logo:e.logo,name:e.name,desc:e.desc,cateId:e.cateId,videoImgCover:(e.videoImgCover||"").replace("w_400,h_300","w_375,h_667"),introduceVideo:e.introduceVideo,commentCount:e.commentCount,isLike:e.isLike,likeCount:e.likeCount}),a.lastScene&&a.lastScene==e.sceneNum&&(a.index=a.list.length-1))})),0==this.cate.length&&(this.cate=o.data.cate,this.cate.unshift({id:-1,name:"全部"})),this.list.length&&this.list.forEach((function(e,t){a.slides.push('\n <div class="swiper-slide'.concat(e.introduceVideo?" normal":"",'" data-index="').concat(t,'">\n <div class="loading">\n <div class="brick brick-1 enter">\n <div class="brick-top face"></div>\n <div class="brick-bottom face"></div>\n <div class="brick-left face"></div>\n <div class="brick-right face"></div>\n <div class="brick-front face"></div>\n <div class="brick-back face"></div>\n </div>\n <div class="brick brick-2 enter">\n <div class="brick-top face"></div>\n <div class="brick-bottom face"></div>\n <div class="brick-left face"></div>\n <div class="brick-right face"></div>\n <div class="brick-front face"></div>\n <div class="brick-back face"></div>\n </div>\n <div class="brick brick-3 enter">\n <div class="brick-top face"></div>\n <div class="brick-bottom face"></div>\n <div class="brick-left face"></div>\n <div class="brick-right face"></div>\n <div class="brick-front face"></div>\n <div class="brick-back face"></div>\n </div>\n </div>\n <div class="info">\n <div class="info-name">').concat(e.name,'</div>\n <div class="info-content">').concat(e.desc,'</div>\n </div>\n <div class="buttons">\n <div class="head">\n <img src="').concat(J["a"].getStaticResource("img/apps/shop/door.gif"),'" />\n </div>\n <div class="like').concat(e.isLike?" active":"",'">\n <div>\n <i class="iconfont iconview_like"></i>\n <i class="iconfont iconview_like like"></i>\n </div>\n <span l-count>').concat(e.likeCount,'</span>\n </div>\n <div class="comment" data-id="').concat(e.id,'">\n <i class="iconfont iconview_comment"></i>\n <span c-count>').concat(e.commentCount,'</span>\n </div>\n <div class="share" data-id="').concat(e.id,'">\n <i class="iconfont iconview_share"></i>\n <span>分享</span>\n </div>\n </div>\n </div>'))})),this.init();case 15:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getLink:function(e){var t=m["a"].urlQueryValue("role"),n=m["a"].urlQueryValue("origin")||"4Dplaza";return t||"shop"!=this.app||(t="leader"),"".concat(this.app,".html?m=").concat(e.num,"&role=").concat(t,"&user_id=").concat(this.userId,"&room_id=").concat(this.roomId,"&brandId=").concat(e.id||"","&origin=").concat(n,"&env=discover&test")},getVideo:function(e,t,n){return n||"".concat(this.$config.cdnURL,"video/video").concat(e,"/").concat(t,".mp4")},onMenuClick:function(){var e=this;if(this.isEnter){if(d&&d.contentWindow&&d.contentWindow.CHECKEXIT)return void d.contentWindow.CHECKEXIT();this.isEnter=!1,parent.postMessage({cmd:"socket",type:"showTabs",data:!0},"*"),parent.postMessage({cmd:"socket",type:"scene",data:{cmd:"exit"}},"*"),u.slidePrev()}else setTimeout((function(){e.$refs.shopList.onShow(!0)}),200)},onShopShow:function(e){this.showMenuIcon=!e,parent.postMessage({cmd:"socket",type:"showTabs",data:this.showMenuIcon},"*")},onShopClick:function(e){var t=this;setTimeout((function(){t.initContainer(e)}),300)},onLike:function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.$http.post("".concat("","4dage/").concat(this.app,"/postLike"),{brandId:t.id,origin:m["a"].urlQueryValue("origin")||"4Dplaza",userId:this.userId,add:t.isLike?1:-1});case 2:return n=e.sent,e.abrupt("return",0==n.code?n.data:null);case 4:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),updateCommentCount:function(e){var t=$(".videos .swiper-slide-active");t.find(".comment span").text(e);var n=t.data("index");this.slides[n]=this.slides[n].replace(/<span c-count>\d+<\/span>/,"<span c-count>".concat(e,"</span>"))}}},G=U,K=(n("9552"),Object(_["a"])(G,o,a,!1,null,null,null)),Z=K.exports,ee={name:"discover",components:{List:Z}},te=ee,ne=Object(_["a"])(te,i,s,!1,null,null,null);t["default"]=ne.exports},"1c88":function(e,t,n){"use strict";var i=n("e800"),s=n.n(i);s.a},5654:function(e,t,n){"use strict";var i=n("dcc0"),s=n.n(i);s.a},"7a2c":function(e,t,n){},9552:function(e,t,n){"use strict";var i=n("7a2c"),s=n.n(i);s.a},a4f3:function(e,t,n){},dcc0:function(e,t,n){},e800:function(e,t,n){},f1ac:function(e,t,n){"use strict";var i=n("a4f3"),s=n.n(i);s.a},fecd:function(e,t,n){"use strict";n.d(t,"d",(function(){return r})),n.d(t,"b",(function(){return d})),n.d(t,"a",(function(){return u})),n.d(t,"f",(function(){return l})),n.d(t,"e",(function(){return p})),n.d(t,"c",(function(){return h}));n("8e6e"),n("ac6a"),n("456d");var i=n("ade3"),s=n("b775"),o=n("f121");function a(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 c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function r(e,t,n){return s["a"].get("4dage/kanzhan/getCompanyBySceneNum",c({sceneNum:o["a"].projectNum},e),t,n)}function d(e,t,n){return s["a"].get("4dage/kanzhan/getCompanyBySceneNum",c({sceneNum:o["a"].projectNum},e),t,n)}function u(e,t,n){return s["a"].get("/4dage/kanzhan/exchangeVisitCard",e,t,n)}function l(e,t,n){return s["a"].postForm("https://vrhouse2.4dkankan.com/node-upload/uploadfile",e,t,n)}function p(e,t,n){var i=c({scene_code:o["a"].projectNum},e);return s["a"].get("/4dage/kanzhan/wxSubscribe",i,t,n)}function h(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;return e.pageNum=e.pageNum||1,e.pageSize=e.pageSize||10,s["a"].get("4dage/kanzhan/getCompanyList",e,t,n)}}}]);
|