Commit 103a3163 by liangjianmin

css

parent 6b56de7b
......@@ -59,7 +59,14 @@ export default {
});
},
toLogin() {
this.request(API.BindWechat, 'POST', { wechat_unique_id: this.code }, true).then(res => {});
this.request(API.BindWechat, 'POST', { wechat_unique_id: this.code }, true).then(res => {
if (res.err_code === 0) {
uni.setStorageSync('openid', '122');
uni.navigateTo({
url: '/pages/mine/login'
});
}
});
}
}
};
......
{"version":3,"sources":["uni-app:///main.js",null,"webpack:///E:/scmMiniprogram/pages/mine/auth.vue?be98","webpack:///E:/scmMiniprogram/pages/mine/auth.vue?07c8","webpack:///E:/scmMiniprogram/pages/mine/auth.vue?894a","uni-app:///pages/mine/auth.vue","webpack:///E:/scmMiniprogram/pages/mine/auth.vue?6a74","webpack:///E:/scmMiniprogram/pages/mine/auth.vue?2ab2"],"names":["createPage","Page"],"mappings":";;;;;;;;;;kDAAA;AACA;AACA,yF;AACAA,UAAU,CAACC,aAAD,CAAV,C;;;;;;;;;;;;;ACHA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAiH;AACjH;AACwD;AACL;AACc;;;AAGjE;AAC8M;AAC9M,gBAAgB,sNAAU;AAC1B,EAAE,0EAAM;AACR,EAAE,+EAAM;AACR,EAAE,wFAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,mFAAU;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;AAA2yB,CAAgB,2zBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;ACa/zB,wD;;;;;;;;;;;;eAEA,EACA,IADA,kBACA,CACA,SACA,QADA,GAGA,CALA,EAMA,MANA,kBAMA,OANA,EAMA,CACA,eACA,CARA,EASA,eATA,2BASA,GATA,EASA,EATA,EAUA;AACA,WADA,qBACA;AACA;AACA;AACA,2BADA;AAEA;AACA;AACA;AACA;AACA,SANA;AAOA;AACA;AACA,yBADA;AAEA,wBAFA;AAGA,0BAHA;;AAKA,SAbA;;AAeA,KAlBA;AAmBA,wBAnBA,kCAmBA;AACA;AACA;AACA,wBADA;AAEA;AACA;AACA,SAJA;AAKA;AACA;AACA,yBADA;AAEA,wBAFA;AAGA,0BAHA;;AAKA,SAXA;;AAaA,KAlCA;AAmCA,WAnCA,qBAmCA;AACA;AACA,KArCA,EAVA,E;;;;;;;;;;;;;ACfA;AAAA;AAAA;AAAA;AAAi9C,CAAgB,y6CAAG,EAAC,C;;;;;;;;;;;ACAr+C;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/mine/auth.js","sourcesContent":["import 'uni-pages';\nimport Vue from 'vue'\nimport Page from './pages/mine/auth.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./auth.vue?vue&type=template&id=384587bb&\"\nvar renderjs\nimport script from \"./auth.vue?vue&type=script&lang=js&\"\nexport * from \"./auth.vue?vue&type=script&lang=js&\"\nimport style0 from \"./auth.vue?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!D:\\\\software\\\\HBuilderX.2.8.3.20200728.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\ncomponent.options.__file = \"pages/mine/auth.vue\"\nexport default component.exports","export * from \"-!D:\\\\software\\\\HBuilderX.2.8.3.20200728.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\templateLoader.js??vue-loader-options!D:\\\\software\\\\HBuilderX.2.8.3.20200728.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--16-0!D:\\\\software\\\\HBuilderX.2.8.3.20200728.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\template.js!D:\\\\software\\\\HBuilderX.2.8.3.20200728.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-uni-app-loader\\\\page-meta.js!D:\\\\software\\\\HBuilderX.2.8.3.20200728.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\software\\\\HBuilderX.2.8.3.20200728.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./auth.vue?vue&type=template&id=384587bb&\"","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 \"-!D:\\\\software\\\\HBuilderX.2.8.3.20200728.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\software\\\\HBuilderX.2.8.3.20200728.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\software\\\\HBuilderX.2.8.3.20200728.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\software\\\\HBuilderX.2.8.3.20200728.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\software\\\\HBuilderX.2.8.3.20200728.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./auth.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!D:\\\\software\\\\HBuilderX.2.8.3.20200728.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\software\\\\HBuilderX.2.8.3.20200728.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\software\\\\HBuilderX.2.8.3.20200728.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\software\\\\HBuilderX.2.8.3.20200728.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\software\\\\HBuilderX.2.8.3.20200728.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./auth.vue?vue&type=script&lang=js&\"","<template>\r\n <view class=\"page-auth column rowCenter verCenter\">\r\n <text class=\"logo\"></text>\r\n <text class=\"title\">SCM商务系统</text>\r\n <button class=\"share row rowCenter verCenter\" @tap=\"getUserProfileChange\">\r\n <text class=\"iconfont icon-jinggao1\"></text>\r\n <text class=\"t1\">微信授权登录</text>\r\n </button>\r\n <view class=\"copyright\">©2021深圳市猎芯供应链有限公司 ALL RIGHTS RESERVED</view>\r\n </view>\r\n</template>\r\n\r\n<script>\r\nimport { API } from '@/util/api.js';\r\n\r\nexport default {\r\n data() {\r\n return {\r\n code: ''\r\n };\r\n },\r\n onLoad(options) {\r\n this.getCode();\r\n },\r\n onShareTimeline(res) {},\r\n methods: {\r\n getCode() {\r\n var self = this;\r\n uni.login({\r\n scopes: 'auth_user',\r\n success: function(res) {\r\n if (res.code) {\r\n self.code = res.code;\r\n }\r\n },\r\n fail: function(res) {\r\n uni.showToast({\r\n title: '授权失败',\r\n icon: 'none',\r\n duration: 1000\r\n });\r\n }\r\n });\r\n },\r\n getUserProfileChange() {\r\n let self = this;\r\n wx.getUserProfile({\r\n desc: '用于完善会员资料',\r\n success: res => {\r\n self.toLogin();\r\n },\r\n fail: res => {\r\n uni.showToast({\r\n title: '授权失败',\r\n icon: 'none',\r\n duration: 1000\r\n });\r\n }\r\n });\r\n },\r\n toLogin() {\r\n this.request(API.BindWechat, 'POST', { wechat_unique_id: this.code }, true).then(res => {});\r\n }\r\n }\r\n};\r\n</script>\r\n\r\n<style lang=\"scss\">\r\n@import '../../assets/css/mine/auth.scss';\r\n</style>\n","import mod from \"-!D:\\\\software\\\\HBuilderX.2.8.3.20200728.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!D:\\\\software\\\\HBuilderX.2.8.3.20200728.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!D:\\\\software\\\\HBuilderX.2.8.3.20200728.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\software\\\\HBuilderX.2.8.3.20200728.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-2!D:\\\\software\\\\HBuilderX.2.8.3.20200728.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!D:\\\\software\\\\HBuilderX.2.8.3.20200728.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!D:\\\\software\\\\HBuilderX.2.8.3.20200728.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!D:\\\\software\\\\HBuilderX.2.8.3.20200728.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\software\\\\HBuilderX.2.8.3.20200728.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./auth.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!D:\\\\software\\\\HBuilderX.2.8.3.20200728.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!D:\\\\software\\\\HBuilderX.2.8.3.20200728.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!D:\\\\software\\\\HBuilderX.2.8.3.20200728.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\software\\\\HBuilderX.2.8.3.20200728.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-2!D:\\\\software\\\\HBuilderX.2.8.3.20200728.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!D:\\\\software\\\\HBuilderX.2.8.3.20200728.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!D:\\\\software\\\\HBuilderX.2.8.3.20200728.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!D:\\\\software\\\\HBuilderX.2.8.3.20200728.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\software\\\\HBuilderX.2.8.3.20200728.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./auth.vue?vue&type=style&index=0&lang=scss&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1631072827363\n var cssReload = require(\"D:/software/HBuilderX.2.8.3.20200728.full/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":""}
\ No newline at end of file
{"version":3,"sources":["uni-app:///main.js",null,"webpack:///E:/scmMiniprogram/pages/mine/auth.vue?be98","webpack:///E:/scmMiniprogram/pages/mine/auth.vue?07c8","webpack:///E:/scmMiniprogram/pages/mine/auth.vue?894a","uni-app:///pages/mine/auth.vue","webpack:///E:/scmMiniprogram/pages/mine/auth.vue?6a74","webpack:///E:/scmMiniprogram/pages/mine/auth.vue?2ab2"],"names":["createPage","Page"],"mappings":";;;;;;;;;;kDAAA;AACA;AACA,yF;AACAA,UAAU,CAACC,aAAD,CAAV,C;;;;;;;;;;;;;ACHA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAiH;AACjH;AACwD;AACL;AACc;;;AAGjE;AAC8M;AAC9M,gBAAgB,sNAAU;AAC1B,EAAE,0EAAM;AACR,EAAE,+EAAM;AACR,EAAE,wFAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,mFAAU;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;AAA2yB,CAAgB,2zBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;ACa/zB,wD;;;;;;;;;;;;eAEA,EACA,IADA,kBACA,CACA,SACA,QADA,GAGA,CALA,EAMA,MANA,kBAMA,OANA,EAMA,CACA,eACA,CARA,EASA,eATA,2BASA,GATA,EASA,EATA,EAUA;AACA,WADA,qBACA;AACA;AACA;AACA,2BADA;AAEA;AACA;AACA;AACA;AACA,SANA;AAOA;AACA;AACA,yBADA;AAEA,wBAFA;AAGA,0BAHA;;AAKA,SAbA;;AAeA,KAlBA;AAmBA,wBAnBA,kCAmBA;AACA;AACA;AACA,wBADA;AAEA;AACA;AACA,SAJA;AAKA;AACA;AACA,yBADA;AAEA,wBAFA;AAGA,0BAHA;;AAKA,SAXA;;AAaA,KAlCA;AAmCA,WAnCA,qBAmCA;AACA;AACA;AACA;AACA;AACA,oCADA;;AAGA;AACA,OAPA;AAQA,KA5CA,EAVA,E;;;;;;;;;;;;;ACfA;AAAA;AAAA;AAAA;AAAi9C,CAAgB,y6CAAG,EAAC,C;;;;;;;;;;;ACAr+C;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/mine/auth.js","sourcesContent":["import 'uni-pages';\nimport Vue from 'vue'\nimport Page from './pages/mine/auth.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./auth.vue?vue&type=template&id=384587bb&\"\nvar renderjs\nimport script from \"./auth.vue?vue&type=script&lang=js&\"\nexport * from \"./auth.vue?vue&type=script&lang=js&\"\nimport style0 from \"./auth.vue?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!D:\\\\software\\\\HBuilderX.2.8.3.20200728.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\ncomponent.options.__file = \"pages/mine/auth.vue\"\nexport default component.exports","export * from \"-!D:\\\\software\\\\HBuilderX.2.8.3.20200728.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\templateLoader.js??vue-loader-options!D:\\\\software\\\\HBuilderX.2.8.3.20200728.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--16-0!D:\\\\software\\\\HBuilderX.2.8.3.20200728.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\template.js!D:\\\\software\\\\HBuilderX.2.8.3.20200728.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-uni-app-loader\\\\page-meta.js!D:\\\\software\\\\HBuilderX.2.8.3.20200728.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\software\\\\HBuilderX.2.8.3.20200728.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./auth.vue?vue&type=template&id=384587bb&\"","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 \"-!D:\\\\software\\\\HBuilderX.2.8.3.20200728.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\software\\\\HBuilderX.2.8.3.20200728.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\software\\\\HBuilderX.2.8.3.20200728.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\software\\\\HBuilderX.2.8.3.20200728.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\software\\\\HBuilderX.2.8.3.20200728.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./auth.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!D:\\\\software\\\\HBuilderX.2.8.3.20200728.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\software\\\\HBuilderX.2.8.3.20200728.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\software\\\\HBuilderX.2.8.3.20200728.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\software\\\\HBuilderX.2.8.3.20200728.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\software\\\\HBuilderX.2.8.3.20200728.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./auth.vue?vue&type=script&lang=js&\"","<template>\r\n <view class=\"page-auth column rowCenter verCenter\">\r\n <text class=\"logo\"></text>\r\n <text class=\"title\">SCM商务系统</text>\r\n <button class=\"share row rowCenter verCenter\" @tap=\"getUserProfileChange\">\r\n <text class=\"iconfont icon-jinggao1\"></text>\r\n <text class=\"t1\">微信授权登录</text>\r\n </button>\r\n <view class=\"copyright\">©2021深圳市猎芯供应链有限公司 ALL RIGHTS RESERVED</view>\r\n </view>\r\n</template>\r\n\r\n<script>\r\nimport { API } from '@/util/api.js';\r\n\r\nexport default {\r\n data() {\r\n return {\r\n code: ''\r\n };\r\n },\r\n onLoad(options) {\r\n this.getCode();\r\n },\r\n onShareTimeline(res) {},\r\n methods: {\r\n getCode() {\r\n var self = this;\r\n uni.login({\r\n scopes: 'auth_user',\r\n success: function(res) {\r\n if (res.code) {\r\n self.code = res.code;\r\n }\r\n },\r\n fail: function(res) {\r\n uni.showToast({\r\n title: '授权失败',\r\n icon: 'none',\r\n duration: 1000\r\n });\r\n }\r\n });\r\n },\r\n getUserProfileChange() {\r\n let self = this;\r\n wx.getUserProfile({\r\n desc: '用于完善会员资料',\r\n success: res => {\r\n self.toLogin();\r\n },\r\n fail: res => {\r\n uni.showToast({\r\n title: '授权失败',\r\n icon: 'none',\r\n duration: 1000\r\n });\r\n }\r\n });\r\n },\r\n toLogin() {\r\n this.request(API.BindWechat, 'POST', { wechat_unique_id: this.code }, true).then(res => {\r\n if (res.err_code === 0) {\r\n uni.setStorageSync('openid', '122');\r\n uni.navigateTo({\r\n url: '/pages/mine/login'\r\n });\r\n }\r\n });\r\n }\r\n }\r\n};\r\n</script>\r\n\r\n<style lang=\"scss\">\r\n@import '../../assets/css/mine/auth.scss';\r\n</style>\n","import mod from \"-!D:\\\\software\\\\HBuilderX.2.8.3.20200728.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!D:\\\\software\\\\HBuilderX.2.8.3.20200728.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!D:\\\\software\\\\HBuilderX.2.8.3.20200728.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\software\\\\HBuilderX.2.8.3.20200728.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-2!D:\\\\software\\\\HBuilderX.2.8.3.20200728.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!D:\\\\software\\\\HBuilderX.2.8.3.20200728.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!D:\\\\software\\\\HBuilderX.2.8.3.20200728.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!D:\\\\software\\\\HBuilderX.2.8.3.20200728.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\software\\\\HBuilderX.2.8.3.20200728.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./auth.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!D:\\\\software\\\\HBuilderX.2.8.3.20200728.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!D:\\\\software\\\\HBuilderX.2.8.3.20200728.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!D:\\\\software\\\\HBuilderX.2.8.3.20200728.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\software\\\\HBuilderX.2.8.3.20200728.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-2!D:\\\\software\\\\HBuilderX.2.8.3.20200728.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!D:\\\\software\\\\HBuilderX.2.8.3.20200728.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!D:\\\\software\\\\HBuilderX.2.8.3.20200728.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!D:\\\\software\\\\HBuilderX.2.8.3.20200728.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\software\\\\HBuilderX.2.8.3.20200728.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./auth.vue?vue&type=style&index=0&lang=scss&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1631083549516\n var cssReload = require(\"D:/software/HBuilderX.2.8.3.20200728.full/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":""}
\ No newline at end of file
......@@ -191,7 +191,14 @@ var _default = { data: function data() {return { code: '' };}, onLoad: function
},
toLogin: function toLogin() {
this.request(_api.API.BindWechat, 'POST', { wechat_unique_id: this.code }, true).then(function (res) {});
this.request(_api.API.BindWechat, 'POST', { wechat_unique_id: this.code }, true).then(function (res) {
if (res.err_code === 0) {
uni.setStorageSync('openid', '122');
uni.navigateTo({
url: '/pages/mine/login' });
}
});
} } };exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment