bztang-admin/addons/yun_shop/static/app/js/chunk-d35df7d0.90c78894.js

1 line
16 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d35df7d0"],{"87ce":function(t,e,i){var o=i("ce31");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var a=i("499e").default;a("7edfbdb4",o,!0,{sourceMap:!1,shadowMode:!1})},"9c0d":function(t,e,i){var o=i("fbbc");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var a=i("499e").default;a("6ee341a9",o,!0,{sourceMap:!1,shadowMode:!1})},af5b:function(t,e,i){"use strict";i.r(e);var o,a,n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("div",{staticClass:"content",on:{touchmove:function(t){t.preventDefault()}}},[i("div",{staticClass:"search_box"},[i("div",{staticClass:"ul search"},[i("div",{staticClass:"li left",on:{click:function(e){return e.stopPropagation(),t.tolocation.apply(null,arguments)}}},[i("i",{staticClass:"iconfont icon-fontclass-dizhi"}),i("span",{staticClass:"span"},[t._v(t._s(t.address||"全国"))])]),i("div",{staticClass:"li right",on:{click:function(e){return e.stopPropagation(),t.tosearch.apply(null,arguments)}}},[i("i",{staticClass:"iconfont i-sousuo"}),i("input",{attrs:{type:"text",title:"搜索",disabled:"",placeholder:"请输入搜索关键词"}})]),i("i",{staticClass:"iconfont icon-fontclass-gengxin",staticStyle:{"margin-right":"12px"},on:{click:function(e){return e.stopPropagation(),t.refreshList.apply(null,arguments)}}})])]),i("div",{staticClass:"contenbox",staticStyle:{"margin-top":"20px"},on:{touchmove:function(t){t.preventDefault()}}},[i("div",{on:{touchstart:t.touchStart,touchend:t.touchEnd,touchmove:t.touchmove}},[i("canvas",{attrs:{id:"tagCloud",width:"320",height:"320"}})])]),t.bottomList.length>0?i("div",{staticClass:"hold-app",class:[3==t.fun.getPhoneEnv()?"pcStyle":"",t.fun.isIphoneX()?"hold-app-iphoneXStyle":""],on:{touchmove:function(t){t.stopPropagation()}}},[i("div",{staticClass:"hold-app-title"},[t._v("热门应用")]),i("div",{staticClass:"hold-app-main"},[t._l(t.bottomList,(function(e,o){return i("div",{key:o,staticClass:"hold-app-cell",on:{click:function(i){return i.stopPropagation(),t.gotoUrl(e.link)}}},[i("img",{attrs:{src:e.app_image,alt:""}})])})),i("div",{staticStyle:{width:"15px","flex-shrink":"0"}})],2)]):t._e()]),i("foot",{attrs:{list:t.navigateList}})],1)},s=[],r=(i("d3b7"),i("159b"),i("9911"),i("4e82"),function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("div",{staticClass:"footer",class:[3==t.fun.getPhoneEnv()?"pcStyle":"",t.fun.isIphoneX()?"iphoneXStyle":""]},[i("div",{staticClass:"ul"},[i("div",{staticClass:"a",on:{click:function(e){return e.stopPropagation(),t.goTo(1)}}},[i("i",{staticClass:"iconfont icon-home2"}),i("div",{staticClass:"p"},[t._v("首页")])]),i("div",{staticClass:"a",on:{click:function(e){return e.stopPropagation(),t.goTo(2)}}},[i("i",{staticClass:"iconfont icon-fontclass-fenlei1"}),i("div",{staticClass:"p"},[t._v("分类")])]),i("div",{staticClass:"a",staticStyle:{"z-index":"9999",position:"relative"},on:{click:function(e){return e.stopPropagation(),t.goTo(3)}}},[i("div",{staticClass:"li"},[i("img",{staticClass:"openMyShop",class:t.showCircle?"rotateImg":"normalImg",attrs:{src:"https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/micro_communities/tab_addition.png"}})])]),i("div",{staticClass:"a",on:{click:function(e){return e.stopPropagation(),t.goTo(4)}}},[i("i",{staticClass:"iconfont icon-fontclass-gouwuche"}),i("div",{staticClass:"p"},[t._v("购物车")])]),i("div",{staticClass:"a",on:{click:function(e){return e.stopPropagation(),t.goTo(5)}}},[i("i",{staticClass:"iconfont icon-fontclass-huiyuanzhongxin1"}),i("div",{staticClass:"p"},[t._v("会员中心")])])])]),i("van-overlay",{attrs:{show:t.showCircle,"custom-style":"z-index: 9;"}},[i("div",{staticClass:"Circle-main"},t._l(t.list,(function(e,o){return i("div",{key:o,staticClass:"Circle-cell",style:{top:e.top,left:e.left},on:{click:function(i){return i.stopPropagation(),t.gotoUrl(e.link)}}},[i("img",{attrs:{src:e.image}}),i("div",[t._v(t._s(e.title))])])})),0)])],1)}),l=[],c=(i("a9e3"),{props:{list:{type:Array,default:[]}},data:function(){return{showCircle:!1,loadCircle:!0}},components:{},computed:{},methods:{gotoUrl:function(t){t&&(window.location.href=t)},goTo:function(t){switch(t){case 1:this.$router.push(this.fun.getUrl("home",{}));break;case 2:this.$router.push(this.fun.getUrl("category",{}));break;case 3:if(this.loadCircle)return void this.getTop();this.showCircle=!this.showCircle;break;case 4:this.$router.push(this.fun.getUrl("cart",{}));break;case 5:this.$router.push(this.fun.getUrl("member",{}));break;default:}},getPi:function(){var t=3.1415926535,e=0,i=180,o=5;e=180/o;for(var a=0;a<o;a++){var n=a*e*t/90;n>=0&&n<t/2&&(i-i*Math.cos(n),i+i*Math.sin(n)),n>=t/2&&n<t&&(i+i*Math.cos(n),i-i*Math.sin(n)),n>=t&&n<=3*t/2&&(i-i*Math.cos(n),i+i*Math.sin(n)),n>=3*t/2&&n<=2*t&&(i+i*Math.cos(n),i-i*Math.sin(n))}return 0},getCirclePosition:function(t){var e=t.x,i=t.y,o=t.r,a=t.nodeNum,n=t.nodeIndex,s=(t.changeAngle,180/a),r=s*n,l=["","270","225","210","200","200"];r+=Number(l[this.list.length]);var c=e+o*Math.cos(r*Math.PI/180),d=i+o*Math.sin(r*Math.PI/180);return{x_:c,y_:d}},getTop:function(){for(var t=this.list.length,e=0;e<=t-1;e++){var i=this.getCirclePosition({x:125,y:125,r:125,nodeNum:t,nodeIndex:e}),o=i.x_-10+"px",a=i.y_-10+"px";this.list[e].top=a,this.list[e].left=o}this.loadCircle=!1,this.showCircle=!0}}}),d=c,f=(i("ee936"),i("2877")),h=Object(f["a"])(d,r,l,!1,null,"5f3240c6",null),p=h.exports,g=Math.PI/1e3,u=Math.PI/1e3,m=0,b=0,x=0,v={data:function(){return{address:"",point:{lat:"",lng:""},city:"",bottomList:[],navigateList:[],timer:"",tagEle:[],iPnoneBottomBol:!1,context:null}},components:{foot:p},computed:{},deactivated:function(){this.timer&&clearInterval(this.timer)},beforeDestroy:function(){this.timer&&clearInterval(this.timer),o.removeEventListener("click",this.detect),a.clearRect(-150,-150,400,400),o&&(o=null),a&&(a=null)},activated:function(){var t=this;this.fun.getLocation().then((function(e){t.point=e.point,t.city=e.city,t.address=e.addressComponent.district,t.getAppData()})).catch((function(t){}))},created:function(){this.getAppNavigate(),this.getAppBottom()},mounted:function(){o=document.getElementById("tagCloud"),a=o.getContext("2d"),a.translate(150,150),o.addEventListener("click",this.detect)},methods:{tolocation:function(){this.$router.push(this.fun.getUrl("o2oLocation",{},{tag:"tagCloud"}))},tosearch:function(){this.$router.push(this.fun.getUrl("tagCloudSearch"))},gotoUrl:function(t){t&&(window.location.href=t)},getAppNavigate:function(){var t=this;$http.get("plugin.tg-decorate.frontend.navigate.index",{},".").then((function(e){1===e.result?t.navigateList=e.data:t.$dialog.alert({message:e.msg})})).catch((function(t){}))},getAppBottom:function(){var t=this;$http.get("plugin.tg-decorate.frontend.app.bottom",{},".").then((function(e){1===e.result?t.bottomList=e.data:(t.$dialog.alert({message:e.msg}),t.$router.go(-1))})).catch((function(t){}))},refreshList:function(){this.getAppData(!0)},getAppData:function(t){var e=this;$http.get("plugin.tg-decorate.frontend.app.index",{page_size:30,is_refresh:t||!1,longitude:this.point.lng,latitude:this.point.lat,city:this.city,district:this.address},".").then((function(t){if(1===t.result){for(var i=t.data.data,o=[],n=0;n<30;n++)o.push({title:"成为合伙人",color:"#fff",logo:"https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/micro_communities/tab_addition.png",x:0,y:0,z:0,s:0,o:1,f:15,angleX:0,angleY:0,img:null});e.tagEle=o,i.forEach((function(t,i){e.tagEle[i].title=t.title||"成为合伙人",e.tagEle[i].color=t.font_color||"#fff",e.tagEle[i].logo=t.logo||"https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/micro_communities/tab_addition.png",e.tagEle[i].link=t.link})),a.clearRect(-150,-150,400,400),e.timer&&clearInterval(e.timer),e.init(e.tagEle)}else e.$dialog.alert({message:t.msg}),e.$router.go(-1)})).catch((function(t){}))},init:function(t){for(var e=this,i=function(e){var i=(2*(e+1)-1)/t.length-1,o=Math.acos(i),n=o*Math.sqrt(t.length*Math.PI),s=70*Math.sin(o)*Math.cos(n),r=70*Math.sin(o)*Math.sin(n),l=140*Math.cos(o);t[e].x=2*s,t[e].y=2*r,t[e].z=l,t[e].s=140/(140-t[e].z),t[e].img=new Image,t[e].img.src=t[e].logo,t[e].img.onload=function(){t[e]&&t[e].img&&(a.drawImage(t[e].img,0,0),a.save())}},o=0;o<t.length;o++)i(o);this.timer=setInterval((function(){e.setBalls(t)}),15)},setBalls:function(t,e,i,o){a.clearRect(-150,-150,400,400);var n=!0;if(1==n){n=!1;for(var s=0;s<t.length;s++){t[s].s=320/(320-t[s].z);var r=Math.cos(u),l=Math.sin(u),c=t[s].y*r-t[s].z*l,d=t[s].z*r+t[s].y*l;t[s].y=c,t[s].z=d;var f=Math.cos(g),h=Math.sin(g),p=t[s].x*f-t[s].z*h,m=t[s].z*f+t[s].x*h;t[s].x=p,t[s].z=m;var b=parseInt(30*t[s].s),x=p+b/2,v=c+b/2;a.save(),a.beginPath(),a.arc(x,v,b/2,0,2*Math.PI),a.clip(),a.drawImage(t[s].img,p,c,"".concat(b),"".concat(b)),a.restore(),a.fillStyle=t[s].color,a.font="".concat(parseInt(8*t[s].s),"px Arial"),a.fillText(t[s].title,p,c-5),e&&parseInt(t[s].z)>0&&a.isPointInPath(i,o)&&t[s].link&&this.gotoUrl(t[s].link)}t.sort((function(t,e){return t.z-e.z})),this.tagEle=t,n=!0}},detect:function(t){var e=t.clientX-o.getBoundingClientRect().left,i=t.clientY-o.getBoundingClientRect().top;this.setBalls(this.tagEle,!0,e,i)},touchmove:function(t){t.preventDefault();var e=t.changedTouches[0].clientX-m,i=t.changedTouches[0].clientY-b;g=1e-4*-e,u=1e-4*-i,this.setBalls(this.tagEle)},touchStart:function(t){m=t.changedTouches[0].clientX,b=t.changedTouches[0].clientY,x=(new Date).getTime(),clearInterval(this.timer)},touchEnd:function(t){var e=this,i=(new Date).getTime()-x;m=t.changedTouches[0].clientX-m||2,b=t.changedTouches[0].clientY-b||2,0==i&&(i=100),g=-m/i*.1,u=-b/i*.1,g=g>0?Math.min(g,.01):Math.max(g,-.01),u=u>0?Math.min(u,.01):Math.max(u,-.01),this.timer=setInterval((function(){e.setBalls(e.tagEle)}),16)}}},w=v,k=(i("ff31"),Object(f["a"])(w,n,s,!1,null,"ddbdfd1e",null));e["default"]=k.exports},ce31:function(t,e,i){var o=i("24fb");e=o(!1),e.push([t.i,".footer[data-v-5f3240c6]{position:fixed;bottom:0;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box;z-index:999}.van-overlay[data-v-5f3240c6]{z-index:998}.footer .ul[data-v-5f3240c6]{-webkit-box-sizing:border-box;box-sizing:border-box;width:100%;height:3.125rem;padding:.5rem}.footer .ul[data-v-5f3240c6],.footer .ul .a[data-v-5f3240c6]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.footer .ul .a[data-v-5f3240c6]{width:25%;font-size:.625rem;color:#fff;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;z-index:8}.footer .ul .a i[data-v-5f3240c6]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;font-size:1.125rem}.footer .ul .openMyShop[data-v-5f3240c6]{width:3.125rem;height:3.125rem;border-radius:50%;line-height:1.25rem;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:center;position:relative;bottom:0;font-size:.875rem;z-index:100;margin:0 auto}.Circle-main[data-v-5f3240c6]{position:fixed;bottom:-35px;width:260px;height:260px;margin:0 auto;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.Circle-cell[data-v-5f3240c6]{position:absolute;color:#fff;font-size:10px;text-align:center}.Circle-cell img[data-v-5f3240c6]{width:2.1875rem;height:2.1875rem;border-radius:50%}.pcStyle[data-v-5f3240c6]{width:375px!important;left:50%;margin-left:-187.5px}.iphoneXStyle[data-v-5f3240c6]{padding-bottom:24px}.rotateImg[data-v-5f3240c6]{transform:rotate(135deg);-webkit-transform:rotate(135deg)}.normalImg[data-v-5f3240c6],.rotateImg[data-v-5f3240c6]{-webkit-transition:-webkit-transform .5s;transition:-webkit-transform .5s;transition:transform .5s;transition:transform .5s,-webkit-transform .5s}.normalImg[data-v-5f3240c6]{transform:rotate(0deg);-webkit-transform:rotate(0deg)}",""]),t.exports=e},ee936:function(t,e,i){"use strict";i("87ce")},fbbc:function(t,e,i){var o=i("24fb");e=o(!1),e.push([t.i,".content[data-v-ddbdfd1e]{min-height:100vh;overflow:hidden;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-scroll-chaining:none;overscroll-behavior:none;background-image:-webkit-gradient(linear,left top,left bottom,from(#072f59),to(#00000a));background-image:-webkit-linear-gradient(#072f59,#00000a);background-image:linear-gradient(#072f59,#00000a)}.search_box .search[data-v-ddbdfd1e]{height:2.75rem;line-height:2.75rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:0 .75rem;color:#b5bac6}.search_box .search .iconfont[data-v-ddbdfd1e]{color:#fff}.search_box .search .left[data-v-ddbdfd1e]{font-size:.875rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.search_box .search .left i[data-v-ddbdfd1e]{font-size:1rem}.search_box .search .left .span[data-v-ddbdfd1e]{display:block;margin:0 .25rem;max-width:3.75rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.search_box .search .left i[data-v-ddbdfd1e]:last-child{font-size:1.125rem}.search_box .search .right[data-v-ddbdfd1e]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;height:1.875rem;background:hsla(0,0%,100%,.3);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;line-height:1.875rem;border-radius:1rem;padding:0 .625rem;margin:0 .75rem;font-size:.875rem}.search_box .search .right i[data-v-ddbdfd1e]{font-size:1.125rem;margin-right:.375rem;margin-top:-3px;color:#999}.search_box .search .right input[data-v-ddbdfd1e]{display:block;border:none;width:100%;height:100%;color:#fff}.tagBall[data-v-ddbdfd1e]{width:210px;height:210px;margin-top:10.625rem;margin-left:44.5%;position:relative}.tagBall .logo[data-v-ddbdfd1e]{width:50px;height:50px;border-radius:50%}.tag[data-v-ddbdfd1e]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;text-align:center;position:absolute;left:0;top:0;color:#fff;text-decoration:none;font-size:.625rem;line-height:1.1875rem}.tag[data-v-ddbdfd1e],.teasingTalentlist[data-v-ddbdfd1e]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.teasingTalentlist[data-v-ddbdfd1e]{background-color:grey;width:90%;border-radius:1.5rem;line-height:3.75rem;font-size:1rem;margin:auto}.hold-app[data-v-ddbdfd1e]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box;position:fixed;bottom:3.875rem}.hold-app-iphoneXStyle[data-v-ddbdfd1e]{bottom:6.5rem}.pcStyle[data-v-ddbdfd1e]{width:375px!important}.hold-app .hold-app-title[data-v-ddbdfd1e]{text-align:center;font-size:12px;line-height:1.875rem;color:#fff}.hold-app .hold-app-main[data-v-ddbdfd1e]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;overflow-x:scroll}.hold-app .hold-app-main .hold-app-cell[data-v-ddbdfd1e]{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;width:4.6875rem;height:5.625rem;border-radius:3px;overflow:hidden;margin-left:.75rem}.hold-app .hold-app-main .hold-app-cell[data-v-ddbdfd1e]:last-child{margin-right:.75rem}.hold-app .hold-app-main .hold-app-cell img[data-v-ddbdfd1e]{width:100%;height:100%}",""]),t.exports=e},ff31:function(t,e,i){"use strict";i("9c0d")}}]);