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.1 KiB

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/newindex"],{"0222":function(n,t,i){"use strict";i.r(t);var e=i("99c9"),o=i("380d");for(var c in o)"default"!==c&&function(n){i.d(t,n,(function(){return o[n]}))}(c);i("a1da");var u,l=i("f0c5"),s=Object(l["a"])(o["default"],e["b"],e["c"],!1,null,null,null,!1,e["a"],u);t["default"]=s.exports},"135f":function(n,t,i){"use strict";(function(n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var e=c(i("34b8")),o=c(i("7b6d"));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:{collection:function(t,i){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(i,e){n.name==i.name&&(t=e)})),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=e.default,this.menuList.forEach((function(n,i){n=Object.assign(n,t.circularPositioning(i))})),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,i=this.menuIndex,e=n;console.log(i,e);var o=360/this.menuList.length,c=i-e,u=this.menuList.length-1-(i-e-1),l=c>u?u*o:c*o;this.trackingPosition.angle=u>c?-1*l:l,console.log(this.trackingPosition.angle),this.menuIndex=null,setTimeout((function(){t.menuIndex=n}),500)},menuClick:function(n){var t=this;this.Submenu=!0;var i=360/this.menuList.length;this.trackingPosition.angle=n*i,this.trackingPosition.fangle=-this.trackingPosition.angle,this.menuIndex=null,setTimeout((function(){t.menuIndex=n}),500)},circularPositioning:function(n,t){var i=this.PI/this.menuList.length,e=i*Math.PI/180,o=this.circle_w/2,c=Math.sin(e*n)*o-30+300+"rpx",u=Math.cos(e*n)*o-30+300+"rpx";return{x:c,y:u}}}};t.default=u}).call(this,i("543d")["default"])},"380d":function(n,t,i){"use strict";i.r(t);var e=i("135f"),o=i.n(e);for(var c in e)"default"!==c&&function(n){i.d(t,n,(function(){return e[n]}))}(c);t["default"]=o.a},"6aab":function(n,t,i){"use strict";(function(n){i("6e43");e(i("66fd"));var t=e(i("0222"));function e(n){return n&&n.__esModule?n:{default:n}}wx.__webpack_require_UNI_MP_PLUGIN__=i,n(t.default)}).call(this,i("543d")["createPage"])},"99c9":function(n,t,i){"use strict";i.d(t,"b",(function(){return o})),i.d(t,"c",(function(){return c})),i.d(t,"a",(function(){return e}));var e={uniIcons:function(){return Promise.all([i.e("common/vendor"),i.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(i.bind(null,"3b32"))}},o=function(){var n=this,t=n.$createElement,i=(n._self._c,n.__map(n.menuList[n.menuIndex].submenu,(function(t,i){var e=n.__get_orig(t),o=n.user.authList.includes(t.lable),c=o?n.iconFn(t):null;return{$orig:e,g0:o,m0:c}})));n.$mp.data=Object.assign({},{$root:{l0:i}})},c=[]},a1da:function(n,t,i){"use strict";var e=i("dc43"),o=i.n(e);o.a},dc43:function(n,t,i){}},[["6aab","common/runtime","common/vendor"]]]);