You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
high-mini/unpackage/dist/dev/.sourcemap/mp-weixin/components/Authorize.js.map

1 lines
13 KiB

{"version":3,"sources":[null,"webpack:////Users/yangjie/high-mini/components/Authorize.vue?bb87","webpack:////Users/yangjie/high-mini/components/Authorize.vue?2285","webpack:////Users/yangjie/high-mini/components/Authorize.vue?cc8d","uni-app:///components/Authorize.vue","webpack:////Users/yangjie/high-mini/components/Authorize.vue?2192","webpack:////Users/yangjie/high-mini/components/Authorize.vue?7c2f"],"names":[],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAkI;AAClI;AAC6D;AACL;AACsC;;;AAG9F;AACuM;AACvM,gBAAgB,iNAAU;AAC1B,EAAE,+EAAM;AACR,EAAE,gGAAM;AACR,EAAE,yGAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,oGAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACRA;AAAA;AAAA;AAAA;AAA0xB,CAAgB,uyBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACuB9yB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,mBADA;AAEA;AACA;AACA,mBADA;AAEA,mBAFA,EADA;;AAKA;AACA,mBADA;AAEA,mBAFA,EALA;;AASA;AACA,mBADA;AAEA,oBAFA,EATA,EAFA;;;AAgBA,MAhBA,kBAgBA;AACA;;AAEA,GAnBA;AAoBA;AACA;AACA,WADA,mBACA,CADA,EACA;AACA;AACA,KAHA,EArBA;;AA0BA,SA1BA,qBA0BA;AACA;AACA;AACA,GA7BA;AA8BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAZA,yBAYA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KArBA;AAsBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAlCA,mBAkCA;AACA;AACA;AACA;AACA;AACA,OAFA,MAEA;AACA;AACA;AACA;AACA;AACA;AACA,KA7CA,EA9BA,E;;;;;;;;;;;;;AC9BA;AAAA;AAAA;AAAA;AAAu8C,CAAgB,y5CAAG,EAAC,C;;;;;;;;;;;ACA39C;AACA,OAAO,KAAU,EAAE,kBAKd","file":"components/Authorize.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./Authorize.vue?vue&type=template&id=4147c09e&scoped=true&\"\nvar renderjs\nimport script from \"./Authorize.vue?vue&type=script&lang=js&\"\nexport * from \"./Authorize.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Authorize.vue?vue&type=style&index=0&id=4147c09e&scoped=true&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../Applications/HBuilderX.app/Contents/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 \"4147c09e\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"components/Authorize.vue\"\nexport default component.exports","export * from \"-!../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./Authorize.vue?vue&type=template&id=4147c09e&scoped=true&\"","var components\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./Authorize.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./Authorize.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view>\r\n\t\t<view class='Popup' v-if='isShowAuth'>\r\n\t\t\t<view class=\"logo-auth\">\r\n\t\t\t\t <image src='../static/img/logo.png' mode=\"aspectFit\"></image>\r\n\t\t\t</view>\r\n\t\t <view class='title'>授权提醒</view>\r\n\t\t <view class='tip'>请授权头像等信息,以便为您提供更好的服务</view>\r\n\t\t <view class='bottom flex'>\r\n\t\t <view class='item' @click='close'>随便逛逛</view>\r\n\t\t\t <!-- #ifdef APP-PLUS -->\r\n\t\t\t <!-- <button class='item grant' @click=\"setUserInfo\">去授权</button> -->\r\n\t\t\t <!-- #endif -->\r\n\t\t\t <!-- #ifdef MP -->\r\n\t\t\t <button class='item grant' type=\"primary\" open-type=\"getUserInfo\" lang=\"zh_CN\" @getuserinfo=\"setUserInfo\">去授权</button>\r\n\t\t\t <!-- #endif -->\r\n\t\t </view>\r\n\t\t</view>\r\n\t\t<view class='mask' v-if='isShowAuth' @click='close'></view>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\tconst app = getApp();\r\n\t// import Cache from '../utils/cache';\r\n\t// import { getLogo } from '../api/public';\r\n\t// import { LOGO_URL } from '../config/cache';\r\n\t// import { mapGetters } from 'vuex';\r\n\t// import Routine from '../libs/routine';\r\n\t\r\n\texport default {\r\n\t\tname:'Authorize',\r\n\t\tprops:{\r\n\t\t\tisAuto:{\r\n\t\t\t\ttype:Boolean,\r\n\t\t\t\tdefault:true\r\n\t\t\t},\r\n\t\t\tisGoIndex:{\r\n\t\t\t\ttype:Boolean,\r\n\t\t\t\tdefault:true\r\n\t\t\t},\r\n\t\t\tisShowAuth:{\r\n\t\t\t\ttype:Boolean,\r\n\t\t\t\tdefault:false\r\n\t\t\t}\r\n\t\t},\r\n\t\tdata(){\r\n\t\t\treturn {\r\n\t\t\t}\r\n\t\t},\r\n\t\t// computed:mapGetters(['isLogin','userInfo']),\r\n\t\twatch:{\r\n\t\t\tisLogin(n){\r\n\t\t\t\tn === true && this.$emit('onLoadFun',this.userInfo);\r\n\t\t\t}\r\n\t\t},\r\n\t\tcreated() {\r\n\t\t\t// this.getLogoUrl();\r\n\t\t\t// this.setAuthStatus();\r\n\t\t},\r\n\t\tmethods:{\r\n\t\t\t// setAuthStatus(){\r\n\t\t\t// \tRoutine.authorize().then(res=>{\r\n\t\t\t// \t\tif(res.islogin === false)\r\n\t\t\t// \t\t\tthis.setUserInfo();\r\n\t\t\t// \t\telse\r\n\t\t\t// \t\t\tthis.$emit('onLoadFun',this.userInfo);\r\n\t\t\t// \t}).catch(res=>{\r\n\t\t\t// \t\tif (this.isAuto) \r\n\t\t\t// \t\t\tthis.$emit('authColse',true);\r\n\t\t\t// \t})\r\n\t\t\t// },\r\n\t\t\tsetUserInfo(){\r\n\t\t\t// \tuni.showLoading({title:'正在登录中'});\r\n\t\t\t// \tRoutine.getCode().then(code=>{\r\n\t\t\t// \t\tthis.getUserInfo(code);\r\n\t\t\t// \t\tuni.switchTab({url:'/pages/user/index'});\r\n\t\t\t\t\t\r\n\t\t\t// \t}).catch(res=>{\r\n\t\t\t// \t\tuni.hideLoading();\r\n\t\t\t// \t})\r\n\t\t\t},\r\n\t\t\t// getLogoUrl(){\r\n\t\t\t// \tthis.logoUrl = app.globalData.site_logo\r\n\t\t\t// \t// let that = this;\r\n\t\t\t// \t// if (Cache.has(LOGO_URL)) {\r\n\t\t\t// \t// \tthis.logoUrl = Cache.get(LOGO_URL);\r\n\t\t\t// \t// \treturn;\r\n\t\t\t// \t// }\r\n\t\t\t// \t// getLogo().then(res=>{\r\n\t\t\t// \t// \tthat.logoUrl = res.data.logo_url\r\n\t\t\t// \t// \tCache.set(LOGO_URL,that.logoUrl);\r\n\t\t\t// \t// })\r\n\t\t\t// },\r\n\t\t\tclose(){\n\t\t\t\tconsole.log('1111');\r\n\t\t\t\tlet pages = getCurrentPages(), currPage = pages[pages.length - 1];\r\n\t\t\t\tif(this.isGoIndex){\r\n\t\t\t\t\tuni.switchTab({url:'/pages/index/index'});\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.$emit('authColse',false);\r\n\t\t\t\t}\r\n\t\t\t\t// if (currPage && currPage.isShowAuth != undefined){\r\n\t\t\t\t// \tcurrPage.isShowAuth = true;\r\n\t\t\t\t// }\r\n\t\t\t},\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<style scoped lang='scss'>\r\n\t.Popup{width:500rpx;background-color:#fff;position:fixed;top:50%;left:50%;margin-left:-250rpx;transform:translateY(-50%);z-index:320;}\r\n\t.Popup{\r\n\t\t.logo-auth{\r\n\t\t\tz-index: -1;\r\n\t\t\tposition: absolute;\r\n\t\t\tleft: 50%;\r\n\t\t\ttop: 0%;\r\n\t\t\ttransform: translate(-50%,-50%);\r\n\t\t\twidth:150rpx;\r\n\t\t\theight:150rpx;\r\n\t\t\tdisplay:flex;\r\n\t\t\talign-items: center;\r\n\t\t\tjustify-content: center;\r\n\t\t\tborder: 8rpx solid #fff;\r\n\t\t\tborder-radius: 50%;\r\n\t\t\tbackground: #fff;\r\n\t\t}\r\n\t\timage{\r\n\t\t\t\theight: 80rpx;\r\n\t\t\t\tmargin-top: -54rpx;\r\n\t\t\t}\r\n\t}\r\n\t\r\n\t.Popup .title{font-size:28rpx;color:#000;text-align:center;margin-top: 30rpx}\r\n\t.Popup .tip{font-size:22rpx;color:#555;padding:0 24rpx;margin-top:25rpx;}\r\n\t.Popup .bottom .item{width:50%;height:80rpx;background-color:#eeeeee;text-align:center;line-height:80rpx;font-size:24rpx;color:#666;margin-top:54rpx;}\r\n\t.Popup .bottom .item.on{width: 100%}\r\n\t.flex{display:flex;}\r\n\t.Popup .bottom .item.grant{font-size:28rpx;color:#fff;font-weight:bold;background-color:#a1bac5;border-radius:0;padding:0;}\r\n\t.mask{position:fixed;top:0;right:0;left:0;bottom:0;background-color:rgba(0,0,0,0.65);z-index:310;}\r\n\t\r\n</style>\r\n","import mod from \"-!../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./Authorize.vue?vue&type=style&index=0&id=4147c09e&scoped=true&lang=scss&\"; export default mod; export * from \"-!../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./Authorize.vue?vue&type=style&index=0&id=4147c09e&scoped=true&lang=scss&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1616398233746\n var cssReload = require(\"/Applications/HBuilderX.app/Contents/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":""}