main.js.map
11.0 KB
{"version":3,"sources":["webpack:///G:/项目/program/tigerprogram/main.js","webpack:///G:/项目/program/tigerprogram/App.vue?5a11","webpack:///G:/项目/program/tigerprogram/App.vue?c512","webpack:///G:/项目/program/tigerprogram/App.vue","webpack:///G:/项目/program/tigerprogram/App.vue?aef7","webpack:///G:/项目/program/tigerprogram/App.vue?33d6"],"names":["Vue","config","productionTip","App","mpType","app","$mount","onLaunch","onShow","onHide","post","url","data","promise","Promise","resolve","reject","that","token","uni","getStorageSync","header","postData","request","globalData","baseUrl","method","success","res","code","fail","e","hideNavigationBarLoading","userInfo","upload","filetype","file","wx","showNavigationBarLoading","showLoading","title","head","console","log","typename","uploadFile","filePath","name","formData","temdata","JSON","parse","urlobj","http_url","kurl","hideLoading","complete"],"mappings":";;;;;;;;;iDAAA,wCAAmB;AACnB;AACA,uE;;AAEAA,aAAIC,MAAJ,CAAWC,aAAX,GAA2B,KAA3B;;AAEAC,aAAIC,MAAJ,GAAa,KAAb;;AAEA,IAAMC,GAAG,GAAG,IAAIL,YAAJ;AACLG,YADK,EAAZ;;AAGA,UAAAE,GAAG,EAACC,MAAJ,G;;;;;;;;;;;;;;;;;;;;ACXA;AAAA;AAAA;AAAA;AAAA;AAAA;AACuD;AACL;AACa;;;AAG/D;AAC4H;AAC5H,gBAAgB,0IAAU;AAC1B,EAAE,yEAAM;AACR;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,IAAI,KAAU,EAAE,YAYf;AACD;AACe,gF;;;;;;;;;;;AClCf;AAAA;AAAA;AAAA;AAA+rB,CAAgB,gtBAAG,EAAC,C;;;;;;;;;;;;ACCpsB;AACdC,UAAQ,EAAE,oBAAW;;AAEpB,GAHa;AAIdC,QAAM,EAAE,kBAAW;;AAElB,GANa;AAOdC,QAAM,EAAE,kBAAW;;AAElB,GATa;AAUdC,MAAI,EAAE,cAASC,GAAT,EAAcC,IAAd,EAAoB;AACzB,QAAIC,OAAO,GAAG,IAAIC,OAAJ,CAAY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AAmB,OAAnB,CADC;AAET,0BAAkB,EAFT,EAAX;;AAIHsB,aAAO,CAACC,GAAR,CAAYF,IAAZ;AACG,UAAIG,QAAQ,GAAG;AACbT,gBAAQ,EAAEA,QADG,EAAf;;AAGAE,QAAE,CAACQ,UAAH,CAAc;AACZlC,WAAG,EAAEA,GADO,EACF;AACVmC,gBAAQ,EAAEV,IAFE;AAGZW,YAAI,EAAE,MAHM;AAIZ1B,cAAM,EAAEoB,IAJI;AAKZO,gBAAQ,EAAEJ,QALE;AAMZjB,eAAO,EAAE,iBAAUC,GAAV,EAAe;AACtBc,iBAAO,CAACC,GAAR,CAAY,OAAZ,EAAqBf,GAArB;AACA,cAAIqB,OAAO,GAAGC,IAAI,CAACC,KAAL,CAAWvB,GAAG,CAAChB,IAAf,CAAd;AACA8B,iBAAO,CAACC,GAAR,CAAYM,OAAZ;AACA,cAAIG,MAAM,GAAG;AACXzC,eAAG,EAAEsC,OAAO,CAACrC,IAAR,CAAayC,QADP;AAEXC,gBAAI,EAAEL,OAAO,CAACrC,IAAR,CAAaD,GAFR,EAAb;;AAIAI,iBAAO,CAACqC,MAAD,CAAP;;AAED,SAhBW;AAiBZtB,YAAI,EAAE,cAAUF,GAAV,EAAe;AACnBZ,gBAAM,CAAC,MAAD,CAAN;AACAqB,YAAE,CAACL,wBAAH;AACAK,YAAE,CAACkB,WAAH;AACD,SArBW;AAsBZC,gBAAQ,EAAE,oBAAM;AACdnB,YAAE,CAACL,wBAAH;AACAK,YAAE,CAACkB,WAAH;AACD,SAzBW,EAAd;;AA2BD,KA3Ca,CAAd;AA4CA,WAAO1C,OAAP;AACD,GAxGW,E;;;;;;;;;;;;ACDf;AAAA;AAAA;AAAA;AAAo6B,CAAgB,i6BAAG,EAAC,C;;;;;;;;;;ACAx7B,uC","file":"common/main.js","sourcesContent":["import 'uni-pages';import '@dcloudio/uni-stat';\r\nimport Vue from 'vue'\r\nimport App from './App'\r\n\r\nVue.config.productionTip = false\r\n\r\nApp.mpType = 'app'\r\n\r\nconst app = new Vue({\r\n ...App\r\n})\r\napp.$mount()","var render, staticRenderFns\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=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!F:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\vue-loader\\\\lib\\\\runtime\\\\componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"F:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\vue-hot-reload-api\\\\dist\\\\index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!module.hot.data) {\n api.createRecord('58f4bb0e', component.options)\n } else {\n api.reload('58f4bb0e', component.options)\n }\n \n }\n}\ncomponent.options.__file = \"G:/项目/program/tigerprogram/App.vue\"\nexport default component.exports","import mod from \"-!F:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!F:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!F:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!F:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!F:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-custom-block-loader\\\\index.js??ref--0-1!F:\\\\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 \"-!F:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!F:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!F:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!F:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!F:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-custom-block-loader\\\\index.js??ref--0-1!F:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./App.vue?vue&type=script&lang=js&\"","\nexport default {\n\tonLaunch: function() {\n\t\t\n\t},\n\tonShow: function() {\n\t\t\n\t},\n\tonHide: function() {\n\t\t\n\t},\n\tpost: function(url, data) {\n\t\tvar promise = new Promise((resolve, reject) => {\n\t\t\t//init\n\t\t\tlet that = this,\n\t\t\t\ttoken = uni.getStorageSync('token'),\n\t\t\t\theader = {\n\t\t\t\t\t'token': token || ''\n\t\t\t\t},\n\t\t\t\tpostData;\n\t\t\t//网络请求\n\t\t\tuni.request({\n\t\t\t\turl: this.globalData.baseUrl + url,\n\t\t\t\tdata: data,\n\t\t\t\tmethod: 'POST',\n\t\t\t\theader: header,\n\t\t\t\tsuccess: function(res) {\n\t\t\t\t\t\n\t\t\t\t\t//返回取得的数据\n\t\t\t\t\tif (res.data.code == '1') {\n\t\t\t\t\t\tresolve(res.data.data);\n\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t// uni.showToast({\n\t\t\t\t\t\t// \ttitle: res.data.msg,\n\t\t\t\t\t\t// \ticon: 'none'\n\t\t\t\t\t\t// });\n\t\t\t\t\t\treject(res.data);\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\tfail: function(e) {\n\t\t\t\t\treject('网络出错');\n\t\t\t\t\tuni.hideNavigationBarLoading();\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\t\treturn promise;\n\t},\n\t\n\t\n\t\n\tglobalData: {\n\t\tuserInfo: null,\n\t\tbaseUrl: 'http://fnsxcx.w.brotop.cn'\n\t},\n\t\n\tupload(filetype, file) {\n\t\n\t var promise = new Promise((resolve, reject) => {\n\t wx.showNavigationBarLoading()\n\t wx.showLoading({\n\t title: '上传中',\n\t })\n\t let url = 'http://fnsxcx.w.brotop.cn/api/common/upload';\n\t\t \n\t\t\n\t let head = {\n\t 'token':uni.getStorageSync('token'),\n\t 'XX-Device-Type': ''\n\t }\n\t\t console.log(head)\n\t let typename = {\n\t filetype: filetype\n\t }\n\t wx.uploadFile({\n\t url: url, //仅为示例,非真实的接口地址\n\t filePath: file,\n\t name: 'file',\n\t header: head,\n\t formData: typename,\n\t success: function (res) {\n\t console.log('上传文件后', res)\n\t let temdata = JSON.parse(res.data);\n\t console.log(temdata)\n\t let urlobj = {\n\t url: temdata.data.http_url,\n\t kurl: temdata.data.url\n\t }\n\t resolve(urlobj);\n\t\n\t },\n\t fail: function (res) {\n\t reject('网络出错');\n\t wx.hideNavigationBarLoading()\n\t wx.hideLoading()\n\t },\n\t complete: () => {\n\t wx.hideNavigationBarLoading()\n\t wx.hideLoading()\n\t },\n\t })\n\t });\n\t return promise;\n\t },\n\t \n\t\n}\n","import mod from \"-!F:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--6-oneOf-1-0!F:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--6-oneOf-1-1!F:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\index.js??ref--6-oneOf-1-2!F:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!F:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--6-oneOf-1-3!F:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!F:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-custom-block-loader\\\\index.js??ref--0-1!F:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./App.vue?vue&type=style&index=0&lang=css&\"; export default mod; export * from \"-!F:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--6-oneOf-1-0!F:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--6-oneOf-1-1!F:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\index.js??ref--6-oneOf-1-2!F:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!F:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--6-oneOf-1-3!F:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!F:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-custom-block-loader\\\\index.js??ref--0-1!F:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./App.vue?vue&type=style&index=0&lang=css&\"","// extracted by mini-css-extract-plugin"],"sourceRoot":""}