qidong.js.map 12.6 KB
{"version":3,"sources":["webpack:///E:/web/gangjurenminiprogram/main.js","webpack:///E:/web/gangjurenminiprogram/pages/qidong/qidong.vue","webpack:///E:/web/gangjurenminiprogram/pages/qidong/qidong.vue?afdd","webpack:///E:/web/gangjurenminiprogram/pages/qidong/qidong.vue?cc09","webpack:///E:/web/gangjurenminiprogram/pages/qidong/qidong.vue?356c","webpack:///../../../web/gangjurenminiprogram/pages/qidong/qidong.vue","webpack:///E:/web/gangjurenminiprogram/pages/qidong/qidong.vue?719a","webpack:///E:/web/gangjurenminiprogram/pages/qidong/qidong.vue?38f7"],"names":["Page","App"],"mappings":";;;;;;;;;;AAAA;AACA;AACI,+F;AACAA,IAAI,CAAC,+BAAYC,eAAZ,CAAD,CAAJ,C;;;;;;;;;;;;ACHJ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAqF;AAC3B;AACL;AACa;;;AAGlE;AAC6H;AAC7H,gBAAgB,wIAAU;AAC1B,EAAE,4EAAM;AACR,EAAE,iFAAM;AACR,EAAE,0FAAe;AACjB;AACA;AACA;AACA;;AAEA;;AAEA;AACA,IAAI,KAAU,EAAE,YAiBf;AACD;AACe,gF;;;;;;;;;;;;ACvCf;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA,oBAAoB,qBAAqB;AACzC;AACA,eAAe,wBAAwB;AACvC;AACA;AACA,SAAS,4BAA4B;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe;AACf,mBAAmB;AACnB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB,wBAAwB;AAC1C,eAAe;AACf,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,wBAAwB;AAC9C,mBAAmB,SAAS,mCAAmC,EAAE;AACjE;AACA;AACA;AACA;;;;;;;;;;;;;;ACnDA;AAAA;AAAA;AAAA;AAAusB,CAAgB,ssBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACsB3tB,+E;AACA;AACA,MADA,kBACA;AACA;AACA,cADA;AAEA,kBAFA;AAGA,gBAHA;;;AAMA,GARA;AASA;AACA;AACA,YAFA,sBAEA;AACA;AACA,KAJA;AAKA;AACA,YANA,sBAMA;AACA;AACA;AACA,0BADA;AAEA,eAFA,mBAEA,CAFA,EAEA;AACA;AACA;AACA,SALA;;AAOA,KAfA;AAgBA;;AAEA;AACA,iBAnBA,2BAmBA;AACA;AACA;AACA,0BADA;AAEA;AACA;AACA;AACA,wBADA;AAEA,+CAFA;AAGA;;AAEA;AACA;AANA,YAOA;AACA,cADA,CACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDADA;;AAGA;AACA,WAfA;AAgBA,eAhBA,CAgBA,iBAhBA;AAiBA;AACA,SA7BA;AA8BA,YA9BA,gBA8BA,GA9BA,EA8BA,EA9BA;;AAgCA,KArDA;AAsDA;AACA,UAvDA,oBAuDA;AACA;AACA,+CADA;;;AAIA,KA5DA,EATA;;;;AAyEA,QAzEA,oBAyEA;AACA;AACA,GA3EA,E;;;;;;;;;;;;;ACvBA;AAAA;AAAA;AAAA;AAAuyB,CAAgB,wxBAAG,EAAC,C;;;;;;;;;;;ACA3zB,uC","file":"pages/qidong/qidong.js","sourcesContent":["import 'uni-pages';\nimport pageFactory from 'mpvue-page-factory'\n    import App from './pages/qidong/qidong.vue'\n    Page(pageFactory(App))","import { render, staticRenderFns } from \"./qidong.vue?vue&type=template&id=ac4bd8a4&\"\nimport script from \"./qidong.vue?vue&type=script&lang=js&\"\nexport * from \"./qidong.vue?vue&type=script&lang=js&\"\nimport style0 from \"./qidong.vue?vue&type=style&index=0&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../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(\"E:\\\\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('ac4bd8a4', component.options)\n    } else {\n      api.reload('ac4bd8a4', component.options)\n    }\n    module.hot.accept(\"./qidong.vue?vue&type=template&id=ac4bd8a4&\", function () {\n      api.rerender('ac4bd8a4', {\n        render: render,\n        staticRenderFns: staticRenderFns\n      })\n    })\n  }\n}\ncomponent.options.__file = \"web/gangjurenminiprogram/pages/qidong/qidong.vue\"\nexport default component.exports","export * from \"-!../../../../HBuilderX/plugins/uniapp-cli/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--17-0!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../HBuilderX/plugins/uniapp-cli/node_modules/vue-loader/lib/index.js??vue-loader-options!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./qidong.vue?vue&type=template&id=ac4bd8a4&\"","var render = function() {\n  var _vm = this\n  var _h = _vm.$createElement\n  var _c = _vm._self._c || _h\n  return _c(\"div\", { staticClass: \"box\" }, [\n    _vm._m(0),\n    _c(\"div\", { staticClass: \"bottom\" }, [\n      _c(\n        \"div\",\n        { staticClass: \"bottom_btn\" },\n        [\n          _c(\n            \"button\",\n            {\n              staticClass: \"bottom_anniu\",\n              attrs: {\n                \"open-type\": \"getUserInfo\",\n                withCredentials: \"true\",\n                lang: \"zh_CN\",\n                \"hover-class\": \"none\",\n                eventid: \"e6326af0-0\"\n              },\n              on: { getuserinfo: _vm.wxGetUserInfo }\n            },\n            [_vm._v(\"授权登录\")]\n          )\n        ],\n        1\n      ),\n      _c(\n        \"div\",\n        {\n          staticClass: \"quxiao\",\n          attrs: { eventid: \"e6326af0-1\" },\n          on: { click: _vm.cancel }\n        },\n        [_vm._v(\"取消\")]\n      )\n    ])\n  ])\n}\nvar staticRenderFns = [\n  function() {\n    var _vm = this\n    var _h = _vm.$createElement\n    var _c = _vm._self._c || _h\n    return _c(\"div\", { staticClass: \"topimg\" }, [\n      _c(\"image\", { attrs: { src: \"../../static/img/logo.png\" } })\n    ])\n  }\n]\nrender._withStripped = true\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--18-0!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../HBuilderX/plugins/uniapp-cli/node_modules/vue-loader/lib/index.js??vue-loader-options!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./qidong.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--18-0!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../HBuilderX/plugins/uniapp-cli/node_modules/vue-loader/lib/index.js??vue-loader-options!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./qidong.vue?vue&type=script&lang=js&\"","<template>\r\n\t<div class=\"box\">\r\n\r\n\t\t<div class=\"topimg\">\r\n\t\t\t<image src=\"../../static/img/logo.png\"></image>\r\n\t\t</div>\r\n\t\t<div class=\"bottom\">\r\n\t\t\t<div class=\"bottom_btn\">\r\n\t\t\t\t<button class='bottom_anniu' open-type=\"getUserInfo\" withCredentials=\"true\" lang=\"zh_CN\" @getuserinfo=\"wxGetUserInfo\"\r\n\t\t\t\t hover-class=\"none\">\r\n\t\t\t\t\t授权登录\r\n\t\t\t\t</button>\r\n\t\t\t</div>\r\n\t\t\t<div class=\"quxiao\" @click=\"cancel\">取消</div>\r\n\r\n\r\n\t\t</div>\r\n\r\n\t</div>\r\n</template>\r\n\r\n<script>\r\n\timport app from \"../../App.vue\"\r\n\texport default {\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\tcode: \"\",\r\n\t\t\t\tnickname: \"\",\r\n\t\t\t\tavatar: \"\",\r\n\r\n\t\t\t}\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\t// 暂不授权\r\n\t\t\tno_grant() {\r\n\t\t\t\tuni.navigateBack();\r\n\t\t\t},\r\n\t\t\t// 获取到code\r\n\t\t\tget_code() {\r\n\t\t\t\tlet t = this;\r\n\t\t\t\tuni.login({\r\n\t\t\t\t\tprovider: \"weixin\",\r\n\t\t\t\t\tsuccess(r) {\r\n\t\t\t\t\t\tconsole.log(r.code)\r\n\t\t\t\t\t\tt.code = r.code\r\n\t\t\t\t\t}\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\t// 用code换去sessionkey和openid\r\n\r\n\t\t\t//第一授权获取用户信息===》按钮触发\r\n\t\t\twxGetUserInfo() {\r\n\t\t\t\tlet t = this;\r\n\t\t\t\tuni.getUserInfo({\r\n\t\t\t\t\tprovider: 'weixin',\r\n\t\t\t\t\tsuccess: function(infoRes) {\r\n\t\t\t\t\t\tconsole.log(infoRes)\r\n\t\t\t\t\t\tlet param = {\r\n\t\t\t\t\t\t\tcode: t.code,\r\n\t\t\t\t\t\t\tnickname: infoRes.userInfo.nickName,\r\n\t\t\t\t\t\t\tavatar: infoRes.userInfo.avatarUrl\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t// t.nickname = infoRes.nickname;\r\n\t\t\t\t\t\t// t.avatar=infoRes.userInfo.avatarUrl\r\n\t\t\t\t\t\tapp.post(\"api/user/login\", param, 'post')\r\n\t\t\t\t\t\t\t.then(res => {\r\n\t\t\t\t\t\t\t\tconsole.log(res,\"返回token\");\r\n\t\t\t\t\t\t\t\t uni.setStorageSync('token', res.userInfo.token);\r\n\t\t\t\t\t\t\t\t uni.setStorageSync(\"openid\",res.openid);\r\n\t\t\t\t\t\t\t\t uni.setStorageSync(\"re_id\",1);\r\n\t\t\t\t\t\t\t\t// if(res.userInfo.re_id == 0){\r\n\t\t\t\t\t\t\t\t// \tuni.navigateTo({\r\n\t\t\t\t\t\t\t\t// \t\turl: '/pages/binding/binding'\r\n\t\t\t\t\t\t\t\t// \t});\r\n\t\t\t\t\t\t\t\t// }else{\r\n\t\t\t\t\t\t\t\t\tuni.switchTab({\r\n\t\t\t\t\t\t\t\t\t\turl: '/pages/taocangoumai/taocangoumai'\r\n\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t// }\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t.catch(err => {});\r\n\t\t\t\t\t\t// \tt avatar = infoRes.userInfo.avatarUrl; \r\n\t\t\t\t\t},\r\n\t\t\t\t\tfail(res) {}\r\n\t\t\t\t});\r\n\t\t\t},\r\n\t\t\t// 取消登录\r\n\t\t\tcancel() {\r\n\t\t\t\tuni.switchTab({\r\n\t\t\t\t\turl: '/pages/taocangoumai/taocangoumai'\r\n\t\t\t\t})\r\n\r\n\t\t\t}\r\n\r\n\t\t},\r\n\r\n\t\tonLoad() {\r\n\t\t\tthis.get_code()\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<style>\r\n\tpage {\r\n\t\tbackground: #fff;\r\n\t}\r\n\r\n\t.box {\r\n\t\tbackground: #fff;\r\n\t}\r\n\r\n\t.topimg {\r\n\t\twidth: 180rpx;\r\n\t\theight: 200rpx;\r\n\t\tfont-size: 0;\r\n\t\tmargin: 250rpx auto 0;\r\n\t}\r\n\r\n\t.topimg image {\r\n\t\twidth: 100%;\r\n\t\theight: 100%;\r\n\t}\r\n\r\n\t.bottom_btn {\r\n\t\twidth: 580rpx;\r\n\t\theight: 100rpx;\r\n\t\tbackground: rgba(243, 152, 0, 1);\r\n\t\tbox-shadow: 0rpx 4rpx 18rpx rgba(0, 0, 0, 0.04);\r\n\t\topacity: 1;\r\n\t\tborder-radius: 10rpx;\r\n\t\tcolor: #fff;\r\n\t\tfont-size: 32rpx;\r\n\t\ttext-align: center;\r\n\t\tline-height: 100rpx;\r\n\t\tmargin: 454rpx auto 0;\r\n\t}\r\n\r\n\tbutton {\r\n\t\twidth: 580rpx;\r\n\t\theight: 100rpx;\r\n\t\ttext-align: center;\r\n\t\tline-height: 100rpx;\r\n\t\tborder: none;\r\n\t\toutline: none;\r\n\t\tbackground: transparent;\r\n\t\tcolor: #fff;\r\n\t\tfont-size: 32rpx;\r\n\t}\r\n\r\n\tbutton::after {\r\n\t\tborder: none;\r\n\t\tbackground: transparent;\r\n\t}\r\n\r\n\t.quxiao {\r\n\t\twidth: 580rpx;\r\n\t\theight: 100rpx;\r\n\t\tborder: 2rpx solid rgba(243, 152, 0, 1);\r\n\t\topacity: 1;\r\n\t\tborder-radius: 10rpx;\r\n\t\tcolor: #F39800;\r\n\t\tfont-size: 32rpx;\r\n\t\ttext-align: center;\r\n\t\tline-height: 100rpx;\r\n\t\tmargin: 40rpx auto 0;\r\n\t}\r\n</style>\r\n","import mod from \"-!../../../../HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-1!../../../../HBuilderX/plugins/uniapp-cli/node_modules/css-loader/index.js??ref--6-oneOf-1-2!../../../../HBuilderX/plugins/uniapp-cli/node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../HBuilderX/plugins/uniapp-cli/node_modules/vue-loader/lib/index.js??vue-loader-options!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./qidong.vue?vue&type=style&index=0&lang=css&\"; export default mod; export * from \"-!../../../../HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-1!../../../../HBuilderX/plugins/uniapp-cli/node_modules/css-loader/index.js??ref--6-oneOf-1-2!../../../../HBuilderX/plugins/uniapp-cli/node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../HBuilderX/plugins/uniapp-cli/node_modules/vue-loader/lib/index.js??vue-loader-options!../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./qidong.vue?vue&type=style&index=0&lang=css&\"","// extracted by mini-css-extract-plugin"],"sourceRoot":""}