main.js.map 10.5 KB
{"version":3,"sources":["webpack:///D:/小程序/mingcard/main.js","webpack:///D:/小程序/mingcard/App.vue?d0bc","webpack:///D:/小程序/mingcard/App.vue?5d39","webpack:///D:/小程序/mingcard/App.vue","webpack:///D:/小程序/mingcard/App.vue?cfb8","webpack:///D:/小程序/mingcard/App.vue?7734"],"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","file","head","uploadFile","filePath","name","temdata","JSON","parse","urlobj","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;AAC2L;AAC3L,gBAAgB,2MAAU;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;AAAwtB,CAAgB,mwBAAG,EAAC,C;;;;;;;;;;;;ACC7tB;AACdC,UAAQ,EAAE,oBAAW,CAAE,CADT;AAEdC,QAAM,EAAE,kBAAW,CAAE,CAFP;AAGdC,QAAM,EAAE,kBAAW,CAAE,CAHP;AAIdC,MAAI,EAAE,cAASC,GAAT,EAAcC,IAAd,EAAoB;AACzB,QAAIC,OAAO,GAAG,IAAIC,OAAJ,CAAY,UAACC,OAAD,EAAUC,MAAV,EAAqB;AAC9C;A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AAG,CAACsB,UAAJ,CAAe;AACd9B,WAAG,EAAEA,GADS,EACJ;AACV+B,gBAAQ,EAAEH,IAFI;AAGdI,YAAI,EAAE,MAHQ;AAIdtB,cAAM,EAAEmB,IAJM;AAKd;AACAb,eAAO,EAAE,iBAASC,GAAT,EAAc;AACtB,cAAIgB,OAAO,GAAGC,IAAI,CAACC,KAAL,CAAWlB,GAAG,CAAChB,IAAf,CAAd;AACA,cAAImC,MAAM,GAAG;AACZpC,eAAG,EAAEiC,OAAO,CAAChC,IAAR,CAAaD,GADN,EAAb;;AAGAI,iBAAO,CAACgC,MAAD,CAAP;AACA5B,aAAG,CAACiB,wBAAJ;AACAjB,aAAG,CAAC6B,WAAJ;AACA,SAda;AAedd,YAAI,EAAE,cAASN,GAAT,EAAc;AACnBZ,gBAAM,CAAC,MAAD,CAAN;AACAG,aAAG,CAACiB,wBAAJ;AACAjB,aAAG,CAAC6B,WAAJ;AACA,SAnBa;AAoBdC,gBAAQ,EAAE,oBAAM;AACf9B,aAAG,CAACiB,wBAAJ;AACAjB,aAAG,CAAC6B,WAAJ;AACA,SAvBa,EAAf;;AAyBA,KAjCa,CAAd;AAkCA,WAAOnC,OAAP;AACA,GArFa,E;;;;;;;;;;;;ACDf;AAAA;AAAA;AAAA;AAAwhC,CAAgB,ijCAAG,EAAC,C;;;;;;;;;;ACA5iC,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, 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 \"!../../HBuilderX.2.1.3.20190723.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\n/* hot reload */\nif (module.hot) {\n  var api = require(\"D:\\\\HBuilderX.2.1.3.20190723.full\\\\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('61b3eb7e')) {\n      api.createRecord('61b3eb7e', component.options)\n    } else {\n      api.reload('61b3eb7e', component.options)\n    }\n    \n  }\n}\ncomponent.options.__file = \"小程序/mingcard/App.vue\"\nexport default component.exports","import mod from \"-!../../HBuilderX.2.1.3.20190723.full/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../HBuilderX.2.1.3.20190723.full/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../HBuilderX.2.1.3.20190723.full/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../HBuilderX.2.1.3.20190723.full/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../HBuilderX.2.1.3.20190723.full/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 \"-!../../HBuilderX.2.1.3.20190723.full/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../HBuilderX.2.1.3.20190723.full/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../HBuilderX.2.1.3.20190723.full/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../HBuilderX.2.1.3.20190723.full/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../HBuilderX.2.1.3.20190723.full/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./App.vue?vue&type=script&lang=js&\"","\r\nexport default {\r\n\tonLaunch: function() {},\r\n\tonShow: function() {},\r\n\tonHide: function() {},\r\n\tpost: function(url, data) {\r\n\t\tvar promise = new Promise((resolve, reject) => {\r\n\t\t\t//init\r\n\t\t\tlet that = this,\r\n\t\t\t\ttoken = uni.getStorageSync('token'),\r\n\t\t\t\theader = {\r\n\t\t\t\t\t'token': token || ''\r\n\t\t\t\t},\r\n\t\t\t\tpostData;\r\n\t\t\t//网络请求\r\n\t\t\tuni.request({\r\n\t\t\t\turl: this.globalData.baseUrl + url,\r\n\t\t\t\tdata: data,\r\n\t\t\t\tmethod: 'POST',\r\n\t\t\t\theader: header,\r\n\t\t\t\tsuccess: function(res) {\r\n\t\t\t\t\t//返回取得的数据\r\n\t\t\t\t\tif (res.data.code == '1') {\r\n\t\t\t\t\t\tresolve(res.data.data);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\t\ttitle: res.data.msg,\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\treject(res.data);\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\tfail: function(e) {\r\n\t\t\t\t\treject('网络出错');\r\n\t\t\t\t\tuni.hideNavigationBarLoading();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t});\r\n\t\treturn promise;\r\n\t},\r\n\tglobalData: {\r\n\t\tuserInfo: null,\r\n\t\tbaseUrl: 'https://cardxcx.w.broing.cn'\r\n\t},\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\t// 上传图片\r\n\tupload(file) {\r\n\t\tvar promise = new Promise((resolve, reject) => {\r\n\t\t\tlet url = 'https://cardxcx.w.broing.cn/api/common/upload';\r\n\t\t\tlet head = {\r\n\t\t\t\t'token': uni.getStorageSync('token'),\r\n\t\t\t};\r\n\t\t\t// let typename = {\r\n\t\t\t// \tfiletype: filetype  //其他参数\r\n\t\t\t// };\r\n\t\t\tuni.uploadFile({\r\n\t\t\t\turl: url, //仅为示例,非真实的接口地址\r\n\t\t\t\tfilePath: file,\r\n\t\t\t\tname: 'file',\r\n\t\t\t\theader: head,\r\n\t\t\t\t// formData: typename,\r\n\t\t\t\tsuccess: function(res) {\r\n\t\t\t\t\tlet temdata = JSON.parse(res.data);\r\n\t\t\t\t\tlet urlobj = {\r\n\t\t\t\t\t\turl: temdata.data.url,\r\n\t\t\t\t\t};\r\n\t\t\t\t\tresolve(urlobj);\r\n\t\t\t\t\tuni.hideNavigationBarLoading();\r\n\t\t\t\t\tuni.hideLoading();\r\n\t\t\t\t},\r\n\t\t\t\tfail: function(res) {\r\n\t\t\t\t\treject('网络出错');\r\n\t\t\t\t\tuni.hideNavigationBarLoading();\r\n\t\t\t\t\tuni.hideLoading();\r\n\t\t\t\t},\r\n\t\t\t\tcomplete: () => {\r\n\t\t\t\t\tuni.hideNavigationBarLoading();\r\n\t\t\t\t\tuni.hideLoading();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t});\r\n\t\treturn promise;\r\n\t}\r\n};\r\n","import mod from \"-!../../HBuilderX.2.1.3.20190723.full/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../HBuilderX.2.1.3.20190723.full/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-1!../../HBuilderX.2.1.3.20190723.full/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/index.js??ref--6-oneOf-1-2!../../HBuilderX.2.1.3.20190723.full/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../HBuilderX.2.1.3.20190723.full/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../HBuilderX.2.1.3.20190723.full/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../HBuilderX.2.1.3.20190723.full/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 \"-!../../HBuilderX.2.1.3.20190723.full/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../HBuilderX.2.1.3.20190723.full/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-1!../../HBuilderX.2.1.3.20190723.full/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/index.js??ref--6-oneOf-1-2!../../HBuilderX.2.1.3.20190723.full/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../HBuilderX.2.1.3.20190723.full/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../HBuilderX.2.1.3.20190723.full/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../HBuilderX.2.1.3.20190723.full/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":""}