移动端
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
12 KiB

{"version":3,"sources":["uni-app:///main.js",null,"webpack:///D:/zp/git/HB/ruoyi-miniapp/App.vue?4897","uni-app:///App.vue","webpack:///D:/zp/git/HB/ruoyi-miniapp/App.vue?a6df","webpack:///D:/zp/git/HB/ruoyi-miniapp/App.vue?4089"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","Vue","use","plugins","uView","mpShare","require","mixin","config","productionTip","prototype","$store","store","$dict","dict","$util","util","App","mpType","app","$mount","data","invateId","onLaunch","methods","initApp","uni","animation","initConfig","tmplIds","success","console","fail","checkLogin","login","type","code","state","userType","getUserType","loginSuccess","handlerNavigateTo","url"],"mappings":";;;;;;;;;;;;;;;AAAA;AAE2D;AAC3D;AACA;AACA;AACA;AACA;AACA;AAGA;AAA0C;AAAA;AAAA;AAAA;AAV1C;AACAA,EAAE,CAACC,iCAAiC,GAAGC,mBAAmB;AAU1D;AACA;AACA;AACAC,YAAG,CAACC,GAAG,CAACC,gBAAO,CAAC,CAACD,GAAG,CAACE,gBAAK,CAAC;AAC3B,IAAIC,OAAO,GAAGC,mBAAO,CAAC,uDAA8C,CAAC;AACrEL,YAAG,CAACM,KAAK,CAACF,OAAO,CAAC;AAElBJ,YAAG,CAACO,MAAM,CAACC,aAAa,GAAG,KAAK;;AAEhC;AACAR,YAAG,CAACS,SAAS,CAACC,MAAM,GAAGC,cAAK;AAC5BX,YAAG,CAACS,SAAS,CAACG,KAAK,GAAGC,IAAI;AAC1Bb,YAAG,CAACS,SAAS,CAACK,KAAK,GAAGC,IAAI;AAE1BC,YAAG,CAACC,MAAM,GAAG,KAAK;AAElB,IAAMC,GAAG,GAAG,IAAIlB,YAAG,mBACfgB,YAAG,EACL;AAEF,UAAAE,GAAG,EAACC,MAAM,EAAE,C;;;;;;;;;;;;;AChCZ;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACuD;AACL;AACc;;;AAGhE;AACgM;AAChM,gBAAgB,6MAAU;AAC1B,EAAE,yEAAM;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAAivB,CAAgB,6wBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;ACCrwB;AACA;AACA;AAAA,eAEA;EACAC;IACA;MACAC;IACA;EACA;EACAC;IACA;MACA;IACA;IACA;EACA;EACAC;IACA;IACAC;MAAA;MAAA;QAAA;UAAA;YAAA;cAAA;gBAAA;gBAAA,OACAC;cAAA;gBACAA;kBACAC;gBACA;gBACA;gBAAA;gBAAA,OACA;cAAA;gBACA;gBACA;cAAA;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA;IACA;IACAC;MAAA;MAAA;QAAA;UAAA;YAAA;cAAA;gBACA;gBACAF;kBACA;kBACAG;kBACAC;oBACAC;kBACA;gBACA;gBACAL;kBACAI;oBACAJ;oBACAA;oBACAA;kBACA;kBACAM;oBACAD;kBACA;gBACA;cAAA;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA;IACA;IACAE;MACA;QACA;MACA;QACA;MACA;IACA;IACAC;MAAA;MACAH;MACA;QACA;UACAI;UACAC;UACAC;UACAC;QACA;QACA;QACA;UACA;QACA;MACA,OACA;QACAZ;UACAI;YACA;cACAK;cACAC;cACAC;cACAC;YACA;YACA;YACA;YACA;cACA;YACA;UACA;QACA;MACA;IAEA;IACAC;MACA;MACA;MACA;MACA;MACA;IACA;IACAC;MAAA;MACA;QACA;MACA;IACA;IACAC;MACA;MACA;QACAf;UACAgB;QACA;QACA;MACA;;MAEA;MACA;QACAhB;UACAgB;QACA;QACA;MACA;;MAEA;MACA;QACA;MACA;;MAEA;MACAhB;QACAgB;MACA;IACA;EACA;AACA;AAAA,2B;;;;;;;;;;;;;ACjIA;AAAA;AAAA;AAAA;AAAg5C,CAAgB,43CAAG,EAAC,C;;;;;;;;;;;ACAp6C;AACA,OAAO,KAAU,EAAE,kBAKd","file":"common/main.js","sourcesContent":["import 'uni-pages';\r\n// @ts-ignore\r\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;import Vue from 'vue'\r\nimport App from './App'\r\nimport store from './store' // store\r\nimport plugins from './plugins' // plugins\r\nimport './permission' // permission\r\nimport * as dict from '@/utils/dict.js'\r\nimport * as util from '@/utils/ruoyi.js'\r\n\r\n// 引入uView\r\nimport uView from '@/uni_modules/uview-ui'\r\n// import mpShare from '@/uni_modules/uview-ui/libs/mixin/mpShare.js'\r\n// Vue.mixin(mpShare)\r\n// 挂载全局对象\r\nVue.use(plugins).use(uView)\r\nlet mpShare = require('@/uni_modules/uview-ui/libs/mixin/mpShare.js');\r\nVue.mixin(mpShare)\r\n\r\nVue.config.productionTip = false\r\n\r\n// 挂载vuex\r\nVue.prototype.$store = store\r\nVue.prototype.$dict = dict\r\nVue.prototype.$util = util\r\n\r\nApp.mpType = 'app'\r\n\r\nconst app = new Vue({\r\n\t...App\r\n})\r\n\r\napp.$mount()","var render, staticRenderFns, recyclableRender, components\nvar renderjs\nimport script from \"./App.vue?vue&type=script&lang=js&\"\nexport * from \"./App.vue?vue&type=script&lang=js&\"\nimport style0 from \"./App.vue?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../tools/HBuilderX.4.28.2024092502/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 = \"App.vue\"\nexport default component.exports","import mod from \"-!../../../tools/HBuilderX.4.28.2024092502/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../tools/HBuilderX.4.28.2024092502/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../tools/HBuilderX.4.28.2024092502/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../tools/HBuilderX.4.28.2024092502/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../tools/HBuilderX.4.28.2024092502/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./App.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../tools/HBuilderX.4.28.2024092502/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../tools/HBuilderX.4.28.2024092502/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../tools/HBuilderX.4.28.2024092502/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../tools/HBuilderX.4.28.2024092502/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../tools/HBuilderX.4.28.2024092502/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./App.vue?vue&type=script&lang=js&\"","<script>\r\nimport config from './config'\r\nimport store from '@/store'\r\nimport { getAccessToken,setOpenId,getOpenId } from '@/utils/auth'\r\n\r\nexport default {\r\n data() {\r\n return {\r\n invateId: ''\r\n }\r\n },\r\n onLaunch: function (options) {\r\n if (options.query.invateId) {\r\n this.invateId = options.query.invateId\r\n }\r\n this.initApp()\r\n },\r\n methods: {\r\n // 初始化应用\r\n async initApp() {\r\n await uni.hideTabBar()\r\n uni.hideTabBar({\r\n animation: false\r\n })\r\n // 初始化应用配置\r\n await this.initConfig()\r\n // 检查用户登录状态\r\n this.checkLogin()\r\n },\r\n async initConfig() {\r\n this.globalData.config = config\r\n uni.requestSubscribeMessage({\r\n //此处填写刚才申请模板的模板ID\r\n tmplIds: ['E8RK91cPLMios6ZHoKx6FJOV4H2kodx6yPWYp7jpLJY'],\r\n success(res) {\r\n console.log('requestSubscribeMessage', res)\r\n }\r\n })\r\n uni.getSystemInfoAsync({\r\n success: res => {\r\n uni.setStorageSync('MOBILE', res.model)\r\n uni.setStorageSync('SYSTEM', res.system)\r\n uni.setStorageSync('PIXELRATIO', res.pixelRatio)\r\n },\r\n fail: err => {\r\n console.error('获取设备信息失败:', err)\r\n }\r\n })\r\n },\r\n checkLogin() {\r\n if (!getAccessToken()) {\r\n this.login()\r\n } else {\r\n this.loginSuccess()\r\n }\r\n },\r\n login() {\r\n\t\tconsole.log('-------'+getOpenId())\r\n\t\tif(getOpenId()){\r\n\t\t\tconst data = {\r\n\t\t\t type: 34,\r\n\t\t\t code: getOpenId(),\r\n\t\t\t state: 'default',\r\n\t\t\t userType: this.getUserType()\r\n\t\t\t}\r\n\t\t\t// 系统登录\r\n\t\t\tthis.$store.dispatch('Login', data).then(() => {\r\n\t\t\t this.loginSuccess()\r\n\t\t\t})\r\n\t\t}\r\n\t\telse{\r\n\t\t\tuni.login({\r\n\t\t\t success: res => {\r\n\t\t\t const data = {\r\n\t\t\t type: 34,\r\n\t\t\t code: res.code,\r\n\t\t\t state: 'default',\r\n\t\t\t userType: this.getUserType()\r\n\t\t\t }\r\n\t\t\t\t\t setOpenId(res.code);\r\n\t\t\t // 系统登录\r\n\t\t\t this.$store.dispatch('Login', data).then(() => {\r\n\t\t\t this.loginSuccess()\r\n\t\t\t })\r\n\t\t\t }\r\n\t\t\t})\r\n\t\t}\r\n \r\n },\r\n getUserType() {\r\n // 企业邀请\r\n if (this.invateId) return 2\r\n // if (this.type == 'internal') return 3\r\n // return 1\r\n return 3\r\n },\r\n loginSuccess() {\r\n this.$store.dispatch('GetInfo').then(res => {\r\n this.handlerNavigateTo(res.data.user)\r\n })\r\n },\r\n handlerNavigateTo(user) {\r\n // 邀请企业\r\n if (this.invateId) {\r\n uni.navigateTo({\r\n url: `/sub/enterprise/edit?invateId=${this.invateId}`\r\n })\r\n return\r\n }\r\n\r\n // 审核中\r\n if (user.audit == 1) {\r\n uni.navigateTo({\r\n url: '/sub/common/waiting'\r\n })\r\n return\r\n }\r\n\r\n // 审核通过\r\n if (user.audit == 2) {\r\n return\r\n }\r\n\r\n // 局内用户首次登录\r\n uni.navigateTo({\r\n url: '/sub/owner/edit'\r\n })\r\n }\r\n }\r\n}\r\n</script>\r\n\r\n<style lang=\"scss\">\r\n@import '@/uni_modules/windi-css-uniapp/index.scss';\r\n@import '@/static/scss/index.scss';\r\n</style>\r\n","import mod from \"-!../../../tools/HBuilderX.4.28.2024092502/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../tools/HBuilderX.4.28.2024092502/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../tools/HBuilderX.4.28.2024092502/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../tools/HBuilderX.4.28.2024092502/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../tools/HBuilderX.4.28.2024092502/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../tools/HBuilderX.4.28.2024092502/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../tools/HBuilderX.4.28.2024092502/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../tools/HBuilderX.4.28.2024092502/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../tools/HBuilderX.4.28.2024092502/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./App.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!../../../tools/HBuilderX.4.28.2024092502/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../tools/HBuilderX.4.28.2024092502/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../tools/HBuilderX.4.28.2024092502/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../tools/HBuilderX.4.28.2024092502/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../tools/HBuilderX.4.28.2024092502/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../tools/HBuilderX.4.28.2024092502/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../tools/HBuilderX.4.28.2024092502/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../tools/HBuilderX.4.28.2024092502/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../tools/HBuilderX.4.28.2024092502/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./App.vue?vue&type=style&index=0&lang=scss&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1739330495771\n var cssReload = require(\"D:/zp/tools/HBuilderX.4.28.2024092502/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 "],"sourceRoot":""}