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
22 KiB

{"version":3,"sources":["webpack:///C:/Users/lenovo/Desktop/new_git/wx_oms/pages/index/newindex.vue?3574","webpack:///C:/Users/lenovo/Desktop/new_git/wx_oms/pages/index/newindex.vue?181f","uni-app:///main.js","webpack:///C:/Users/lenovo/Desktop/new_git/wx_oms/pages/index/newindex.vue?bf5e","webpack:///C:/Users/lenovo/Desktop/new_git/wx_oms/pages/index/newindex.vue?1b39","webpack:///C:/Users/lenovo/Desktop/new_git/wx_oms/pages/index/newindex.vue?ad0c","webpack:///C:/Users/lenovo/Desktop/new_git/wx_oms/pages/index/newindex.vue?594e","uni-app:///pages/index/newindex.vue"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page"],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAiqC,CAAgB,opCAAG,EAAC,C;;;;;;;;;;;ACArrC;AACA,OAAO,KAAU,EAAE,kBAKd;;;;;;;;;;;;;kDCNL;AACA;AACA,kG,6FAFmBA,EAAE,CAACC,iCAAH,GAAuCC,mBAAvC;AAGnBC,UAAU,CAACC,iBAAD,CAAV,C;;;;;;;;;;;;;ACHA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAqH;AACrH;AAC4D;AACL;AACa;;;AAGpE;AACgN;AAChN,gBAAgB,wNAAU;AAC1B,EAAE,8EAAM;AACR,EAAE,mFAAM;AACR,EAAE,4FAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,uFAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA,aAAa,sTAEN;AACP;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACxDA;AAAA;AAAA;AAAA;AAAyzB,CAAgB,y0BAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC4D70B;AACA,6F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eACA,EACA,IADA,kBACA,CACA,SACA,UADA,EAEA,cAFA,EAGA,YAHA,EAIA,oBACA,QADA,EAEA,SAFA,EAJA,EAQA,cARA,EASA,YATA,EAUA,YAVA,EAWA,gBAXA,EAYA,aAZA,EAYA;AACA,mBAbA,EAaA;AACA,aAdA,EAcA;AACA,gBAfA,EAeA;AACA,mBAhBA,EAgBA;AACA,eAjBA,EAiBA;AACA,mBAlBA,EAkBA;AACA,qBAnBA,EAmBA;AACA,oBApBA,CAoBA;AApBA,MAsBA,CAxBA,EAyBA,MAzBA,oBAyBA,CACA,oDACA,CA3BA,EA4BA,OA5BA,qBA4BA,CACA,cACA,CA9BA,EA+BA,SACA,qCAEA,4BACA,CAJA,EAKA,uCACA,oCACA,CAPA,EA/BA,EAwCA,WACA,KADA,mBACA,CACA,gBACA,WADA,EAEA,iBAFA,EAGA,gCACA,kBACA,6DACA,iBACA,4BADA,IAGA,CAJA,EAKA,CANA,MAMA,iBACA,sBACA,CACA,CAbA,IAgBA,CAlBA,EAmBA,IAnBA,gBAmBA,CAnBA,EAmBA,CACA,2CACA,iBACA,aADA,EAEA,IAFA,gBAEA,CAFA,EAEA,CACA,kBACA,CAJA,IAMA,CAPA,MAOA;AACA;AACA,uBADA;AAEA,sBAFA;;AAIA;AACA,KAjCA;AAkCA,UAlCA,kBAkCA,CAlCA,EAkCA;AACA;AACA;AACA;AACA;AACA;AACA,OAJA;AAKA;AACA,KA1CA;AA2CA,UA3CA,kBA2CA,CA3CA,EA2CA;AACA;AACA,KA7CA;AA8CA,UA9CA,oBA8CA;AACA;AACA;AACA;AACA;AACA,OAHA;AAIA;AACA;AACA;AACA;AACA,KAxDA;AAyDA,gBAzDA,wBAyDA,CAzDA,EAyDA;AACA;AACA;AACA;AACA,OAFA,MAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SALA,MAKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KA5EA;AA6EA,mBA7EA,2BA6EA,CA7EA,EA6EA;AACA;AACA,KA/EA;AAgFA,YAhFA,oBAgFA,CAhFA,EAgFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAFA,MAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,OAFA,EAEA,GAFA;AAGA,KAnGA;AAoGA,aApGA,qBAoGA,KApGA,EAoGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAJA,EAIA,GAJA;AAKA,KArJA;AAsJA,uBAtJA,+BAsJA,KAtJA,EAsJA,QAtJA,EAsJA;AACA,+CADA,CACA;AACA,oCAFA,CAEA;AACA,qCAHA,CAGA;AACA;AACA;AACA;AACA,YADA;AAEA,YAFA;;AAIA,KAhKA,EAxCA,E","file":"pages/index/newindex.js","sourcesContent":["import mod from \"-!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--6-oneOf-1-0!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--6-oneOf-1-1!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--6-oneOf-1-2!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--6-oneOf-1-3!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./newindex.vue?vue&type=style&index=0&lang=css&\"; export default mod; export * from \"-!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--6-oneOf-1-0!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--6-oneOf-1-1!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--6-oneOf-1-2!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--6-oneOf-1-3!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./newindex.vue?vue&type=style&index=0&lang=css&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1672122377312\n var cssReload = require(\"D:/hbuliderx/HBuilderX.3.3.11.20220209.full/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"../../\",\"locals\":false});\n module.hot.dispose(cssReload);\n module.hot.accept(undefined, cssReload);\n }\n ","import 'uni-pages';wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pages/index/newindex.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./newindex.vue?vue&type=template&id=1d5f0908&\"\nvar renderjs\nimport script from \"./newindex.vue?vue&type=script&lang=js&\"\nexport * from \"./newindex.vue?vue&type=script&lang=js&\"\nimport style0 from \"./newindex.vue?vue&type=style&index=0&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\runtime\\\\componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pages/index/newindex.vue\"\nexport default component.exports","export * from \"-!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\templateLoader.js??vue-loader-options!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--16-0!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\template.js!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-uni-app-loader\\\\page-meta.js!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./newindex.vue?vue&type=template&id=1d5f0908&\"","var components\ntry {\n components = {\n uniIcons: function() {\n return import(\n /* webpackChunkName: \"uni_modules/uni-icons/components/uni-icons/uni-icons\" */ \"@/uni_modules/uni-icons/components/uni-icons/uni-icons.vue\"\n )\n }\n }\n} catch (e) {\n if (\n e.message.indexOf(\"Cannot find module\") !== -1 &&\n e.message.indexOf(\".vue\") !== -1\n ) {\n console.error(e.message)\n console.error(\"1. 排查组件名称拼写是否正确\")\n console.error(\n \"2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom\"\n )\n console.error(\n \"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件\"\n )\n } else {\n throw e\n }\n}\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n var l0 = _vm.__map(_vm.menuList[_vm.menuIndex].submenu, function(\n item,\n index\n ) {\n var $orig = _vm.__get_orig(item)\n\n var g0 = _vm.user.authList.includes(item.lable)\n var m0 = g0 ? _vm.iconFn(item) : null\n return {\n $orig: $orig,\n g0: g0,\n m0: m0\n }\n })\n\n _vm.$mp.data = Object.assign(\n {},\n {\n $root: {\n l0: l0\n }\n }\n )\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./newindex.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./newindex.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view class=\"home_page_container\">\r\n\t\t<view :style=\"{paddingTop:styles.top+styles.height + 'px'}\" class=\"home_page_header\">\r\n\t\t\t<view class=\"home_page_header_title\">\r\n\t\t\t\t {{user.name?`Hi ,${user.name}` : user.userPhone?user.userPhone:'暂未设置'}}\r\n\t\t\t\t<uni-icons @tap.stop='close()' class=\"iconclass\" color=\"#ffffff\" custom-prefix=\"iconfont\" type=\"iconkaiguan\" size=\"35\">\r\n\t\t\t\t</uni-icons>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"home_page_header_identity\">{{user.roles[0].roleName}}</view>\r\n\t\t</view>\r\n\r\n\t\t<view :style=\"{transform:`rotate(${180}deg)`}\" class=\"home_page_menu\">\r\n\t\t\t<view class=\"home_page_menu_name\">\r\n\t\t\t\t{{menuList[menuIndex].name?menuList[menuIndex].name:''}}\r\n\t\t\t</view>\r\n\t\t\t<view class=\"bgtracking\"></view>\r\n\t\t\t<view class=\"bj\"></view>\r\n\t\t\t<view :style=\"{transform:`rotate(${trackingPosition.angle}deg)`}\" @click=\"gestureAnalysis\"\r\n\t\t\t\tclass=\"home_page_menu_circular\">\r\n\t\t\t\t<view @click=\"menuClick(index)\" class=\"home_page_menu_item\" v-for=\"(item,index) in menuList\"\r\n\t\t\t\t\t:style=\"{left:item.x,top:item.y,transform:`rotate(${180+trackingPosition.fangle}deg)`}\">\r\n\t\t\t\t\t<uni-icons class=\"menu_icon\" :style=\"{transform:`scale(${menuIndex==index?1.2:1})`}\"\r\n\t\t\t\t\t\t:color=\"item.colorOpen? '#2866FF': '#ffffff'\" custom-prefix=\"iconfont\" :type=\"item.icon\"\r\n\t\t\t\t\t\tsize=\"25\"></uni-icons>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<view :style=\"{transform:`translateY(${Submenu?0:-433}rpx)`}\" class=\"Submenu\">\r\n\t\t\t<view @tap.stop=\"jump(item)\" v-if=\"user.authList.includes(item.lable)\" v-for=\"(item,index) in menuList[menuIndex].submenu\" class=\"Submenu_item\">\r\n\t\t\t\t<view @tap.stop=\"collectionFn(item)\" class=\"label\">\r\n\t\t\t\t\t<uni-icons :color=\" iconFn(item) \" custom-prefix=\"iconfont\" type=\"iconshoucang-yishoucang\" size=\"30\"></uni-icons>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"Submenu_item_name\">{{item.name}}</view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<view class=\"collection\">\r\n\t\t\t<view @tap.stop=\"jump(item)\" v-for=\"(item,index) in collection\" class=\"collection_item\">\r\n\t\t\t\t<view @tap.stop=\"remove(item)\" class=\"tip\">\r\n\t\t\t\t\t<uni-icons custom-prefix=\"iconfont\" color=\"#ffffff\" type=\"iconchiping\" size=\"20\"></uni-icons>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"collection_item_name\">\r\n\t\t\t\t\t<uni-icons custom-prefix=\"iconfont\" color=\"#2866FF\" :type=\"item.icon\" size=\"30\"></uni-icons>\r\n\t\t\t\t\t<view class=\"collection_item_text\">{{item.name}}</view>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"collectionbg\">\r\n\t\t\t\t<view v-for=\"(item,index) in 3\" class=\"collection_itembg\">\r\n\t\t\t\t\t<view>\r\n\t\t\t\t\t <text>点击</text>\t<uni-icons style=\"margin-left: 10rpx;\" color=\"#bbbbbb\" custom-prefix=\"iconfont\" type=\"iconshoucang-yishoucang\" size=\"12\"></uni-icons>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t <view>收藏</view>\r\n\t\t\t\t\t<!--\r\n\t\t\t\t\t<view>Here</view> -->\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\timport menus from './menu'\r\n\timport oilIdentityApi from '@/api/oil-identity'\r\n\texport default {\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\tuser:null,\r\n\t\t\t\tcollection:[],\r\n\t\t\t\tmenuList: [],\r\n\t\t\t\ttrackingPosition: {\r\n\t\t\t\t\tangle: 0,\r\n\t\t\t\t\tfangle: 0\r\n\t\t\t\t},\r\n\t\t\t\tSubmenu: false,\r\n\t\t\t\tmenuIndex: 0,\r\n\t\t\t\tstyles: null,\r\n\t\t\t\tmousePosition: 0,\r\n\t\t\t\tcircle_w: 520, //圆盘的宽\r\n\t\t\t\tcircle_h: 600, //圆盘的高\r\n\t\t\t\tPI: 360, //分布角度,默认为360deg\r\n\t\t\t\tstard: 360, //起始角度\r\n\t\t\t\tstard_s: null, //用来默认储存第一个初始值\r\n\t\t\t\tboxNum: 5, //圆盘上覆盖的小圆点个数\r\n\t\t\t\tdescTitle: '', //模块描述标题\r\n\t\t\t\tdescContent: '', //模块描述内容\r\n\t\t\t\tactiveIndex: 1, //默认下标\r\n\t\t\t}\r\n\t\t},\r\n\t\tonLoad() {\r\n\t\t\tthis.styles = uni.getMenuButtonBoundingClientRect();\r\n\t\t},\r\n\t\tcreated() {\r\n\t\t\tthis.initFn();\r\n\t\t},\r\n\t\twatch:{\r\n\t\t\tmenuIndex:(n,o)=>{\r\n\t\t\t\t\r\n\t\t\t\tconsole.log(n,'menuIndex')\r\n\t\t\t},\r\n\t\t\tcollection:function(n,o){\r\n\t\t\t\tuni.setStorageSync('collection',n);\r\n\t\t\t}\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\tclose() {\r\n\t\t\t\tuni.showModal({\r\n\t\t\t\t\ttitle: '提示',\r\n\t\t\t\t\tcontent: '确认退出登录',\r\n\t\t\t\t\tsuccess: function (res) {\r\n\t\t\t\t\t\tif (res.confirm) {\r\n\t\t\t\t\t\t\toilIdentityApi.logoutAuthSystem().then(res => {\r\n\t\t\t\t\t\t\t\tuni.redirectTo({\r\n\t\t\t\t\t\t\t\t\turl: '../login/login?type=1'\r\n\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t} else if (res.cancel) {\r\n\t\t\t\t\t\t\tconsole.log('用户点击取消');\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t\t\r\n\t\t\t},\r\n\t\t\tjump(e){\r\n\t\t\t\tif(this.user.authList.includes(e.lable)){\r\n\t\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\t\turl:e.router,\r\n\t\t\t\t\t\tfail(e) {\r\n\t\t\t\t\t\t\tconsole.log('失败')\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t})\r\n\t\t\t\t}else{\r\n\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\ttitle:'暂无权限',\r\n\t\t\t\t\t\ticon:'none'\r\n\t\t\t\t\t})\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tremove(e){\r\n\t\t\t\tlet indexk ;\r\n\t\t\t\tthis.collection.forEach((item,index)=>{\r\n\t\t\t\t\tif(e.name==item.name){\r\n\t\t\t\t\t\tindexk = index\r\n\t\t\t\t\t}\r\n\t\t\t\t})\r\n\t\t\t\tthis.collection.splice(indexk,1);\r\n\t\t\t},\r\n\t\t\ticonFn(e){\r\n\t\t\t\treturn this.collection.filter((item)=>e.name==item.name).length==0?'#bbbbbb':'#FFB730';\r\n\t\t\t},\r\n\t\t\tinitFn() {\r\n\t\t\t\tthis.menuList = JSON.parse(JSON.stringify(menus))\r\n\t\t\t\tthis.menuList.forEach((item, index) => {\r\n\t\t\t\t\titem = Object.assign(item, this.circularPositioning(index));\r\n\t\t\t\t\tconsole.log(item,'=========')\r\n\t\t\t\t})\r\n\t\t\t\tthis.trackingPosition.x = this.menuList[0].x;\r\n\t\t\t\tthis.trackingPosition.y = this.menuList[0].y;\r\n\t\t\t\tthis.collection = uni.getStorageSync('collection')||[];\r\n\t\t\t\tthis.user = uni.getStorageSync('user');\r\n\t\t\t},\r\n\t\t\tcollectionFn(e){\r\n\t\t\t\tconsole.log(this.collection)\r\n\t\t\t\tif(this.collection.length==0){\r\n\t\t\t\t\tthis.collection.unshift(e)\r\n\t\t\t\t}else{\r\n\t\t\t\t\tlet repeatTest = this.collection.filter((item)=>e.name==item.name).length==0?true:false;\r\n\t\t\t\t\tif(repeatTest){\r\n\t\t\t\t\t\tif(this.collection.length>=3){\r\n\t\t\t\t\t\t\tthis.collection.splice(this.collection.length-1,1)\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tthis.collection.unshift(e)\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tthis.remove(e)\r\n\t\t\t\t\t\t// uni.showToast({\r\n\t\t\t\t\t\t// \ttitle:'无需重复添加',\r\n\t\t\t\t\t\t// \ticon:'none'\r\n\t\t\t\t\t\t// })\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tgestureAnalysis(e) {\r\n\t\t\t\tconsole.log(e, '*****')\r\n\t\t\t},\r\n\t\t\tindexDis(e){\r\n\t\t\t\tlet x = this.menuIndex\r\n\t\t\t\tlet y = e\r\n\t\t\t\tconsole.log(x,y)\r\n\t\t\t\tlet average = 360 / this.menuList.length;\r\n\t\t\t\t let a = x-y;\r\n\t\t\t\t let b = this.menuList.length - 1 - (x-y-1);\r\n\t\t\t\t let deg = a>b?b*average:a*average;\r\n\t\t\t\t if(b>a){\r\n\t\t\t\t\tthis.trackingPosition.angle = deg*-1\r\n\t\t\t\t }else{\r\n\t\t\t\t\t this.trackingPosition.angle = deg\r\n\t\t\t\t }\r\n\t\t\t\t console.log(this.trackingPosition.angle)\r\n\t\t\t\t \r\n\t\t\t\tthis.menuIndex = null\r\n\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\tthis.menuIndex = e\r\n\t\t\t\t}, 500);\r\n\t\t\t},\r\n\t\t\tmenuClick(index) {\r\n\t\t\t\t// let newList = []\r\n\t\t\t\t// // let arrayList = this.menuList.length\r\n\t\t\t\t// let arrayList = 8\r\n\t\t\t\t// let alient = 0\r\n\t\t\t\t// if (arrayList % 2 == 0){\r\n\t\t\t\t// alient = Math.floor(arrayList/2)\r\n\t\t\t\t// }else{\r\n\t\t\t\t// \talient = Math.floor(arrayList/2)+1\r\n\t\t\t\t// }\r\n\t\t\t\t// let bbb = 7;\r\n\t\t\t\t// index =6;\r\n\t\t\t\t// console.log(\"index:{}alient:{},menuIndex{}arrayList{}\",index,alient,bbb,arrayList);\r\n\t\t\t\t// // // 计算当前坐标点和目标左边点差值0\r\n\t\t\t\t// for(let i = 0; i <= arrayList-1; i++){\r\n\t\t\t\t// \tlet aaa = bbb;\r\n\t\t\t\t// \tif(i<=alient){\r\n\t\t\t\t// \t\taaa = bbb-(alient-i);\r\n\t\t\t\t// \t\tif(aaa < 0){\r\n\t\t\t\t// \t\t\taaa = arrayList-aaa\r\n\t\t\t\t// \t\t\tconsole.log(\"1inde:{},aaa:{}\",i,aaa)\r\n\t\t\t\t// \t\t}else{\r\n\t\t\t\t// \t\t\tconsole.log(\"2inde:{},aaa:{}\",i,aaa)\r\n\t\t\t\t// \t\t}\r\n\t\t\t\t// \t}else{\r\n\t\t\t\t// \t\taaa = bbb+(i-alient);\r\n\t\t\t\t// \t\tif(aaa >= arrayList){\r\n\t\t\t\t// \t\t\taaa = aaa-arrayList\r\n\t\t\t\t// \t\t\tconsole.log(\"3inde:{},aaa:{}\",i,aaa)\r\n\t\t\t\t// \t\t}else{\r\n\t\t\t\t// \t\t\tconsole.log(\"4inde:{},aaa:{}\",i,aaa)\r\n\t\t\t\t// \t\t}\r\n\t\t\t\t// \t}\r\n\t\t\t\t\t\r\n\t\t\t\t// }\r\n\t\t\t\t// // NO=8\r\n\t\t\t\tthis.Submenu = false\r\n\t\t\t\tlet average = 360 / this.menuList.length;\r\n\t\t\t\tthis.trackingPosition.angle = index * average;\r\n\t\t\t\tthis.trackingPosition.fangle = -this.trackingPosition.angle;\r\n\t\t\t\t// this.menuIndex = null\r\n\t\t\t\tif(this.menuList[this.menuIndex].colorOpen){\r\n\t\t\t\t\tthis.menuList[this.menuIndex].colorOpen = false\r\n\t\t\t\t}\r\n\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\tthis.menuIndex = index\r\n\t\t\t\t\tthis.menuList[this.menuIndex].colorOpen = true\r\n\t\t\t\t\tthis.Submenu = true\r\n\t\t\t\t}, 500);\r\n\t\t\t},\r\n\t\t\tcircularPositioning(index, position) {\r\n\t\t\t\tlet avd = this.PI / this.menuList.length //每一个 img-box 对应的角度\r\n\t\t\t\tlet ahd = (avd * Math.PI) / 180 //每一个 img-box 对应的弧度\r\n\t\t\t\tlet radius = this.circle_w / 2 //圆的半径\r\n\t\t\t\tlet x = (Math.sin(ahd * index) * radius) - 30 + 300 + 'rpx'\r\n\t\t\t\tlet y = (Math.cos(ahd * index) * radius) - 30 + 300 + 'rpx'\r\n\t\t\t\treturn {\r\n\t\t\t\t\tx,\r\n\t\t\t\t\ty\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<style>\r\n\t@import url(\"./newindex.css\");\r\n</style>\n"],"sourceRoot":""}