main.js.map 11.9 KB
{"version":3,"sources":["webpack:///E:/项目/tigerprogram/main.js","webpack:///E:/项目/tigerprogram/App.vue?a74e","webpack:///E:/项目/tigerprogram/App.vue?5504","webpack:///E:/项目/tigerprogram/App.vue","webpack:///E:/项目/tigerprogram/App.vue?7df3","webpack:///E:/项目/tigerprogram/App.vue?844f"],"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","showToast","title","msg","icon","fail","e","hideNavigationBarLoading","userInfo","upload","filetype","file","wx","showNavigationBarLoading","showLoading","head","typename","uploadFile","filePath","name","formData","console","log","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;AACA;AACuD;AACL;AACa;;;AAG/D;AACqK;AACrK,gBAAgB,+KAAU;AAC1B,EAAE,yEAAM;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,IAAI,KAAU,EAAE,YAYf;AACD;AACe,gF;;;;;;;;;;;ACrCf;AAAA;AAAA;AAAA;AAA6lB,CAAgB,unBAAG,EAAC,C;;;;;;;;;;;;ACClmB;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,OA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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, 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=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!D:\\\\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\n/* hot reload */\nif (module.hot) {\n  var api = require(\"D:\\\\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 (!api.isRecorded('ec8c4bb6')) {\n      api.createRecord('ec8c4bb6', component.options)\n    } else {\n      api.reload('ec8c4bb6', component.options)\n    }\n    \n  }\n}\ncomponent.options.__file = \"E:/项目/tigerprogram/App.vue\"\nexport default component.exports","import mod from \"-!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\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 \"-!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\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\tuni.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\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      let head = {\n\t        'token': wx.getStorageSync('token'),\n\t        'XX-Device-Type': ''\n\t      }\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// \tupload(file) {\n// \t\tvar promise = new Promise((resolve, reject) => {\n// \t\t\tlet url = 'http://fnsxcx.w.brotop.cn/api/common/upload';\n// \t\t\tlet head = {\n// \t\t\t\t'token': uni.getStorageSync('token'),\n// \t\t\t};\n// \t\t\t// let typename = {\n// \t\t\t// \tfiletype: filetype  //其他参数\n// \t\t\t// };\n// \t\t\tuni.uploadFile({\n// \t\t\t\turl: url, //仅为示例,非真实的接口地址\n// \t\t\t\tfilePath: file,\n// \t\t\t\tname: 'file',\n// \t\t\t\theader: head,\n// \t\t\t\t// formData: typename,\n// \t\t\t\tsuccess: function(res) {\n\t\t\t\t\t\n// \t\t\t\t\tlet temdata = JSON.parse(res.data);\n// \t\t\t\t\tlet urlobj = {\n// \t\t\t\t\t\turl: temdata.data.url,\n// \t\t\t\t\t};\n// \t\t\t\t\tresolve(urlobj);\n// \t\t\t\t\tuni.hideNavigationBarLoading();\n// \t\t\t\t\tuni.hideLoading();\n// \t\t\t\t},\n// \t\t\t\tfail: function(res) {\n// \t\t\t\t\tconsole.log(res)\n// \t\t\t\t\treject('网络出错');\n// \t\t\t\t\tuni.hideNavigationBarLoading();\n// \t\t\t\t\tuni.hideLoading();\n// \t\t\t\t},\n// \t\t\t\tcomplete: () => {\n// \t\t\t\t\tuni.hideNavigationBarLoading();\n// \t\t\t\t\tuni.hideLoading();\n// \t\t\t\t}\n// \t\t\t});\n// \t\t});\n// \t\treturn promise;\n// \t}\n\n}\n","import mod from \"-!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--6-oneOf-1-0!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--6-oneOf-1-1!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\index.js??ref--6-oneOf-1-2!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--6-oneOf-1-3!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\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 \"-!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--6-oneOf-1-0!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--6-oneOf-1-1!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\index.js??ref--6-oneOf-1-2!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--6-oneOf-1-3!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\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":""}