recycapp/unpackage/dist/build/web/static/js/pages-login-authorize.41fbd72d.js
2025-11-14 23:12:53 +08:00

1 line
9.6 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-login-authorize"],{"065a":function(t,e,o){"use strict";o.r(e);var a=o("17c3"),n=o("df23");for(var i in n)["default"].indexOf(i)<0&&function(t){o.d(e,t,(function(){return n[t]}))}(i);o("7a22");var r=o("828b"),c=Object(r["a"])(n["default"],a["b"],a["c"],!1,null,"10f8cb7e",null,!1,a["a"],void 0);e["default"]=c.exports},"17c3":function(t,e,o){"use strict";o.d(e,"b",(function(){return a})),o.d(e,"c",(function(){return n})),o.d(e,"a",(function(){}));var a=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("v-uni-view",{staticClass:"content"},[o("v-uni-view",{staticClass:"login"},[o("v-uni-image",{attrs:{src:t.logoImage}})],1),o("v-uni-view",{staticClass:"login-b"},[o("v-uni-button",{staticClass:"auth-btn refuse",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handleRefuse.apply(void 0,arguments)}}},[t._v("拒绝")]),0==t.login_type?o("v-uni-button",{staticClass:"auth-btn ",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.getUserProfile.apply(void 0,arguments)}}},[t._v("授权登录")]):o("v-uni-button",{staticClass:"auth-btn ",attrs:{"open-type":"getPhoneNumber"},on:{getphonenumber:function(e){arguments[0]=e=t.$handleEvent(e),t.getPhoneNumber.apply(void 0,arguments)}}},[t._v("登录")])],1)],1)},n=[]},"7a22":function(t,e,o){"use strict";var a=o("df52"),n=o.n(a);n.a},"8c1e":function(t,e,o){"use strict";o("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={data:function(){return{mobile:"",password:"",login_type:0,logoImage:"/static/img/t2.png",open_id:""}},computed:{},onLoad:function(){this.config()},methods:{config:function(){var t=this;this.$api.config({},(function(e){"1"==e.code&&(t.login_type=e.data.login_type,e.data.logo&&(t.logoImage=e.data.logo))}))},getCode:function(t){uni.login({success:function(e){if(e.code)return t(e.code);uni.showToast({title:"未取得code",icon:"none"})},fail:function(t){uni.showToast({title:"用户授权失败wx.login",icon:"none"})}})},handleRefuse:function(){uni.showToast({title:"未授权",icon:"none",duration:1e3}),setTimeout((function(){uni.hideToast(),uni.navigateBack(-1)}),1e3)},getPhoneNumber:function(t){var e=this;"getPhoneNumber:fail user deny"!=t.detail.errMsg?uni.login({success:function(o){if(o.code){var a={code:o.code,phonecode:t.detail.code};e.$api.getPhoneNumber(a,(function(t){if("1"==t.code)return uni.setStorageSync("userToken",t.data.token),uni.navigateBack({delta:1}),!1;uni.showToast({title:t.msg,icon:"none"})}))}}}):uni.showToast({icon:"none",title:"请允许获取手机号,否则功能不可用!"})},getUserProfile:function(){var t=this;t.getCode((function(e){var o=Date.parse(new Date),a={code:e,t:o};t.$api.wxapplogin(a,(function(t){if(uni.showToast({title:t.msg,icon:"none"}),1==t.code)return uni.setStorageSync("userToken",t.data.token),uni.navigateBack({delta:1}),!1}))}))},toLogin:function(){var t={mobile:this.mobile,password:this.password};this.$api.login(t,(function(t){return"1"==t.code?(uni.setStorageSync("userToken",t.data.token),uni.switchTab({url:"/pages/index/index"}),!1):void uni.showToast({icon:"none",title:t.msg})}))}}};e.default=a},df23:function(t,e,o){"use strict";o.r(e);var a=o("8c1e"),n=o.n(a);for(var i in a)["default"].indexOf(i)<0&&function(t){o.d(e,t,(function(){return a[t]}))}(i);e["default"]=n.a},df2c:function(t,e,o){var a=o("c86c");e=a(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */.u-line-1[data-v-10f8cb7e]{\n\n\ndisplay:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:1;-webkit-box-orient:vertical!important\n}.u-line-2[data-v-10f8cb7e]{\n\n\ndisplay:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:2;-webkit-box-orient:vertical!important\n}.u-line-3[data-v-10f8cb7e]{\n\n\ndisplay:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:3;-webkit-box-orient:vertical!important\n}.u-line-4[data-v-10f8cb7e]{\n\n\ndisplay:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:4;-webkit-box-orient:vertical!important\n}.u-line-5[data-v-10f8cb7e]{\n\n\ndisplay:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:5;-webkit-box-orient:vertical!important\n}.u-border[data-v-10f8cb7e]{border-width:.5px!important;border-color:#dadbde!important;border-style:solid}.u-border-top[data-v-10f8cb7e]{border-top-width:.5px!important;border-color:#dadbde!important;border-top-style:solid}.u-border-left[data-v-10f8cb7e]{border-left-width:.5px!important;border-color:#dadbde!important;border-left-style:solid}.u-border-right[data-v-10f8cb7e]{border-right-width:.5px!important;border-color:#dadbde!important;border-right-style:solid}.u-border-bottom[data-v-10f8cb7e]{border-bottom-width:.5px!important;border-color:#dadbde!important;border-bottom-style:solid}.u-border-top-bottom[data-v-10f8cb7e]{border-top-width:.5px!important;border-bottom-width:.5px!important;border-color:#dadbde!important;border-top-style:solid;border-bottom-style:solid}.u-reset-button[data-v-10f8cb7e]{padding:0;background-color:initial;\nfont-size:inherit;line-height:inherit;color:inherit;\n}\n.u-reset-button[data-v-10f8cb7e]::after{border:none}\n.u-hover-class[data-v-10f8cb7e]{opacity:.7}.u-primary-light[data-v-10f8cb7e]{color:#ecf5ff}.u-warning-light[data-v-10f8cb7e]{color:#fdf6ec}.u-success-light[data-v-10f8cb7e]{color:#f5fff0}.u-error-light[data-v-10f8cb7e]{color:#fef0f0}.u-info-light[data-v-10f8cb7e]{color:#f4f4f5}.u-primary-light-bg[data-v-10f8cb7e]{background-color:#ecf5ff}.u-warning-light-bg[data-v-10f8cb7e]{background-color:#fdf6ec}.u-success-light-bg[data-v-10f8cb7e]{background-color:#f5fff0}.u-error-light-bg[data-v-10f8cb7e]{background-color:#fef0f0}.u-info-light-bg[data-v-10f8cb7e]{background-color:#f4f4f5}.u-primary-dark[data-v-10f8cb7e]{color:#398ade}.u-warning-dark[data-v-10f8cb7e]{color:#f1a532}.u-success-dark[data-v-10f8cb7e]{color:#53c21d}.u-error-dark[data-v-10f8cb7e]{color:#e45656}.u-info-dark[data-v-10f8cb7e]{color:#767a82}.u-primary-dark-bg[data-v-10f8cb7e]{background-color:#398ade}.u-warning-dark-bg[data-v-10f8cb7e]{background-color:#f1a532}.u-success-dark-bg[data-v-10f8cb7e]{background-color:#53c21d}.u-error-dark-bg[data-v-10f8cb7e]{background-color:#e45656}.u-info-dark-bg[data-v-10f8cb7e]{background-color:#767a82}.u-primary-disabled[data-v-10f8cb7e]{color:#9acafc}.u-warning-disabled[data-v-10f8cb7e]{color:#f9d39b}.u-success-disabled[data-v-10f8cb7e]{color:#a9e08f}.u-error-disabled[data-v-10f8cb7e]{color:#f7b2b2}.u-info-disabled[data-v-10f8cb7e]{color:#c4c6c9}.u-primary[data-v-10f8cb7e]{color:#3c9cff}.u-warning[data-v-10f8cb7e]{color:#f9ae3d}.u-success[data-v-10f8cb7e]{color:#5ac725}.u-error[data-v-10f8cb7e]{color:#f56c6c}.u-info[data-v-10f8cb7e]{color:#909399}.u-primary-bg[data-v-10f8cb7e]{background-color:#3c9cff}.u-warning-bg[data-v-10f8cb7e]{background-color:#f9ae3d}.u-success-bg[data-v-10f8cb7e]{background-color:#5ac725}.u-error-bg[data-v-10f8cb7e]{background-color:#f56c6c}.u-info-bg[data-v-10f8cb7e]{background-color:#909399}.u-main-color[data-v-10f8cb7e]{color:#303133}.u-content-color[data-v-10f8cb7e]{color:#606266}.u-tips-color[data-v-10f8cb7e]{color:#909193}.u-light-color[data-v-10f8cb7e]{color:#c0c4cc}\n.u-safe-area-inset-top[data-v-10f8cb7e]{padding-top:0;padding-top:constant(safe-area-inset-top);padding-top:env(safe-area-inset-top)}.u-safe-area-inset-right[data-v-10f8cb7e]{padding-right:0;padding-right:constant(safe-area-inset-right);padding-right:env(safe-area-inset-right)}.u-safe-area-inset-bottom[data-v-10f8cb7e]{padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.u-safe-area-inset-left[data-v-10f8cb7e]{padding-left:0;padding-left:constant(safe-area-inset-left);padding-left:env(safe-area-inset-left)}\nuni-toast[data-v-10f8cb7e]{z-index:10090}uni-toast .uni-toast[data-v-10f8cb7e]{z-index:10090}\n[data-v-10f8cb7e]::-webkit-scrollbar{display:none;width:0!important;height:0!important;-webkit-appearance:none;background:transparent}\n\n\n\n\n\n\n\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */.content[data-v-10f8cb7e]{background-color:#fff;height:100vh;padding:%?100?% %?60?% 0}.login[data-v-10f8cb7e]{text-align:center;margin-top:10%}.login uni-image[data-v-10f8cb7e]{width:130px;height:130px;margin-bottom:%?110?%;border-radius:50%}.auth-btn[data-v-10f8cb7e]{flex:1;display:block;height:%?80?%;line-height:%?80?%;text-align:center;font-size:12px;color:#fff;background:#00a73b;border-radius:%?40?%}.auth-btn.refuse[data-v-10f8cb7e]{background:#999;margin-right:%?40?%}.login-b[data-v-10f8cb7e]{display:flex;justify-content:space-between}',""]),t.exports=e},df52:function(t,e,o){var a=o("df2c");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=o("967d").default;n("565b7901",a,!0,{sourceMap:!1,shadowMode:!1})}}]);