main.js.map 11.7 KB
{"version":3,"sources":["webpack:///G:/项目/program/zhongmianprogram/main.js","webpack:///G:/项目/program/zhongmianprogram/App.vue?694f","webpack:///G:/项目/program/zhongmianprogram/App.vue?0857","webpack:///G:/项目/program/zhongmianprogram/App.vue","webpack:///G:/项目/program/zhongmianprogram/App.vue?fde9","webpack:///G:/项目/program/zhongmianprogram/App.vue?1a22"],"names":["Vue","config","productionTip","App","mpType","app","$mount","onLaunch","console","log","onShow","post","url","data","method","promise","Promise","resolve","reject","that","token","uni","getStorageSync","header","postData","request","globalData","baseUrl","success","res","code","fail","e","wx","hideNavigationBarLoading","complete","daa","upload","filetype","file","showLoading","title","head","typename","uploadFile","filePath","name","formData","temdata","JSON","parse","urlobj","hideLoading","userInfo","imgurl","onHide"],"mappings":";;;;;;;;;iDAAA,wCAAmB,iDAA4B;AAC/C,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;;;;;;;;;;;;;;;;;;;;ACVA;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;AACe,gF;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAA6lB,CAAgB,unBAAG,EAAC,C;;;;;;;;;;;;ACClmB;AACdC,UAAQ,EAAE,oBAAW;AACpBC,WAAO,CAACC,GAAR,CAAY,YAAZ;AACA,GAHa;AAIdC,QAAM,EAAE,kBAAW;AAClBF,WAAO,CAACC,GAAR,CAAY,UAAZ;AACA,GANa;;AAQdE,MAAI,EAAE,cAASC,GAAT,EAAcC,IAAd,EAAoBC,MAApB,EAA4B;;AAEjC;AACA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AE,IADC;AAEX1B,WAAO,EAAE,mCAFE;AAGX2B,UAAM,EAAC,+BAHI,EA3GE;;;AAiHdC,QAAM,EAAE,kBAAW;AAClB/C,WAAO,CAACC,GAAR,CAAY,UAAZ;AACA,GAnHa,E;;;;;;;;;;;;ACDf;AAAA;AAAA;AAAA;AAA+2B,CAAgB,g3BAAG,EAAC,C;;;;;;;;;;ACAn4B;AACA,OAAO,KAAU,EAAE,kBAKd","file":"common/main.js","sourcesContent":["import 'uni-pages';import '@dcloudio/uni-stat';import 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, 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 \"!F:\\\\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 = \"G:/项目/program/zhongmianprogram/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\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!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\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!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\tconsole.log('App Launch')\n\t},\n\tonShow: function() {\n\t\tconsole.log('App Show')\n\t},\n\t\n\tpost: function(url, data, method) {\n\n\t\t// (showLoad == undefined || showLoad) ?\n\t\t//   wx.showLoading({\n\t\t//     title: '加载中',\n\t\t//   }) : ''\n\t\t// wx.showNavigationBarLoading()\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\ttoken: token || '',\n\t\t\t\t\t\n\t\t\t\t},\n\t\t\t\tpostData;\n\t\t\t\tconsole.log(header)\n\n\t\t\t// console.log(token,\"token\")\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: method,\n\t\t\t\theader: header,\n\t\t\t\tsuccess: function(res) {\n\t\t\t\t\t// console.log(res)//返回取得的数据\n\t\t\t\t\t// console.log(res)\n\t\t\t\t\tif (res.data.code == 1) {\n\t\t\t\t\t\tconsole.log(8888)\n\t\t\t\t\t\tresolve(res);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// 判断token 是否过期\n\t\t\t\t\t\t// if(res.msg=='用户未登录'){\n\t\t\t\t\t\t// \tuni.reLaunch({\n\t\t\t\t\t\t// \t\turl:\"/pages\"\n\t\t\t\t\t\t// \t})\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\tconsole.log(e)\n\t\t\t\t\treject('网络出错');\n\t\t\t\t\t// (showLoad || showLoad == undefined) ? wx.hideLoading() : \"\";\n\t\t\t\t\twx.hideNavigationBarLoading()\n\t\t\t\t},\n\t\t\t\tcomplete: function(daa) {\n\t\t\t\t\t// console.log(daa)\n\t\t\t\t}\n\t\t\t})\n\t\t});\n\t\treturn promise;\n\t},\n\tupload(filetype, file) {\n\t\tlet that=this\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 = that.globalData.baseUrl+'common/upload';\n\t\t  console.log(url)\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.url\n\t          }\n\t          resolve(urlobj);\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\tglobalData: {\n\t\tuserInfo: null,\n\t\tbaseUrl: 'http://zhongmian.w.brotop.cn/api/',\n\t\timgurl:'http://zhongmian.w.brotop.cn/'\n\t},\n\t\n\tonHide: function() {\n\t\tconsole.log('App Hide')\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\\\\css-loader\\\\dist\\\\cjs.js??ref--6-oneOf-1-1!F:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!F:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--6-oneOf-1-2!F:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--6-oneOf-1-3!F:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!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\\\\css-loader\\\\dist\\\\cjs.js??ref--6-oneOf-1-1!F:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!F:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--6-oneOf-1-2!F:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--6-oneOf-1-3!F:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!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\n    if(module.hot) {\n      // 1590743561749\n      var cssReload = require(\"F:/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":""}