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.
 
 
 
 

1 lines
4.3 KiB

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/newindex"],{"2d7b":function(n,t,e){"use strict";var i=e("65a2"),o=e.n(i);o.a},5474:function(n,t,e){"use strict";(function(n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=c(e("2c4d")),o=c(e("e42d"));function c(n){return n&&n.__esModule?n:{default:n}}var u={data:function(){return{user:null,collection:[],menuList:[],trackingPosition:{angle:0,fangle:0},Submenu:!1,menuIndex:0,styles:null,mousePosition:0,circle_w:520,circle_h:600,PI:360,stard:360,stard_s:null,boxNum:5,descTitle:"",descContent:"",activeIndex:1}},onLoad:function(){this.styles=n.getMenuButtonBoundingClientRect()},created:function(){this.initFn()},watch:{menuIndex:function(n,t){console.log(n,"menuIndex")},collection:function(t,e){n.setStorageSync("collection",t)}},methods:{close:function(){n.showModal({title:"提示",content:"确认退出登录",success:function(t){t.confirm?o.default.logoutAuthSystem().then((function(t){n.redirectTo({url:"../login/login?type=1"})})):t.cancel&&console.log("用户点击取消")}})},jump:function(t){this.user.authList.includes(t.lable)?n.navigateTo({url:t.router,fail:function(n){console.log("失败")}}):n.showToast({title:"暂无权限",icon:"none"})},remove:function(n){var t;this.collection.forEach((function(e,i){n.name==e.name&&(t=i)})),this.collection.splice(t,1)},iconFn:function(n){return 0==this.collection.filter((function(t){return n.name==t.name})).length?"#bbbbbb":"#FFB730"},initFn:function(){var t=this;this.menuList=JSON.parse(JSON.stringify(i.default)),this.menuList.forEach((function(n,e){n=Object.assign(n,t.circularPositioning(e)),console.log(n,"=========")})),this.trackingPosition.x=this.menuList[0].x,this.trackingPosition.y=this.menuList[0].y,this.collection=n.getStorageSync("collection")||[],this.user=n.getStorageSync("user")},collectionFn:function(n){if(console.log(this.collection),0==this.collection.length)this.collection.unshift(n);else{var t=0==this.collection.filter((function(t){return n.name==t.name})).length;t?(this.collection.length>=3&&this.collection.splice(this.collection.length-1,1),this.collection.unshift(n)):this.remove(n)}},gestureAnalysis:function(n){console.log(n,"*****")},indexDis:function(n){var t=this,e=this.menuIndex,i=n;console.log(e,i);var o=360/this.menuList.length,c=e-i,u=this.menuList.length-1-(e-i-1),s=c>u?u*o:c*o;this.trackingPosition.angle=u>c?-1*s:s,console.log(this.trackingPosition.angle),this.menuIndex=null,setTimeout((function(){t.menuIndex=n}),500)},menuClick:function(n){var t=this;this.Submenu=!1;var e=360/this.menuList.length;this.trackingPosition.angle=n*e,this.trackingPosition.fangle=-this.trackingPosition.angle,this.menuList[this.menuIndex].colorOpen&&(this.menuList[this.menuIndex].colorOpen=!1),setTimeout((function(){t.menuIndex=n,t.menuList[t.menuIndex].colorOpen=!0,t.Submenu=!0}),500)},circularPositioning:function(n,t){var e=this.PI/this.menuList.length,i=e*Math.PI/180,o=this.circle_w/2,c=Math.sin(i*n)*o-30+300+"rpx",u=Math.cos(i*n)*o-30+300+"rpx";return{x:c,y:u}}}};t.default=u}).call(this,e("543d")["default"])},"65a2":function(n,t,e){},"6aeae":function(n,t,e){"use strict";e.r(t);var i=e("d6c9"),o=e("9b54");for(var c in o)"default"!==c&&function(n){e.d(t,n,(function(){return o[n]}))}(c);e("2d7b");var u,s=e("f0c5"),l=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],u);t["default"]=l.exports},"9a00":function(n,t,e){"use strict";(function(n){e("84da");i(e("66fd"));var t=i(e("6aeae"));function i(n){return n&&n.__esModule?n:{default:n}}wx.__webpack_require_UNI_MP_PLUGIN__=e,n(t.default)}).call(this,e("543d")["createPage"])},"9b54":function(n,t,e){"use strict";e.r(t);var i=e("5474"),o=e.n(i);for(var c in i)"default"!==c&&function(n){e.d(t,n,(function(){return i[n]}))}(c);t["default"]=o.a},d6c9:function(n,t,e){"use strict";e.d(t,"b",(function(){return o})),e.d(t,"c",(function(){return c})),e.d(t,"a",(function(){return i}));var i={uniIcons:function(){return Promise.all([e.e("common/vendor"),e.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(e.bind(null,"65b9"))}},o=function(){var n=this,t=n.$createElement,e=(n._self._c,n.__map(n.menuList[n.menuIndex].submenu,(function(t,e){var i=n.__get_orig(t),o=n.user.authList.includes(t.lable),c=o?n.iconFn(t):null;return{$orig:i,g0:o,m0:c}})));n.$mp.data=Object.assign({},{$root:{l0:e}})},c=[]}},[["9a00","common/runtime","common/vendor"]]]);