1 line
25 KiB
JavaScript
1 line
25 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-wechat_login-index"],{"0d4e":function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"wrapper",style:t.viewColor},[i("v-uni-view",{staticClass:"bag"},[i("img",{attrs:{src:t.domain+"/static/images/logo_bgh.png",alt:"",srcset:""}})]),i("v-uni-view",{staticClass:"system-height",style:{height:t.statusBarHeight}}),i("v-uni-view",{staticClass:"merchant-msg"},[i("img",{attrs:{src:t.login_logo}}),i("v-uni-view",{staticClass:"name"},[t._v(t._s(t.site_name))])],1),i("v-uni-view",{staticClass:"wechat_login"},[i("v-uni-view",{staticClass:"btn-wrapper"},[i("v-uni-button",{staticClass:"bg-theme btn1",attrs:{"hover-class":"none"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.wechatLogin.apply(void 0,arguments)}}},[t._v("微信登录")])],1)],1),t.canGetPrivacySetting?t._e():i("v-uni-view",{staticClass:"protocol"},[i("v-uni-checkbox-group",{on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.ChangeIsDefault.apply(void 0,arguments)}}},[i("v-uni-checkbox",{class:t.inAnimation?"trembling":"",attrs:{checked:!!t.protocol},on:{animationend:function(e){arguments[0]=e=t.$handleEvent(e),t.inAnimation=!1}}}),i("v-uni-text",{on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.ChangeIsDefault.apply(void 0,arguments)}}},[t._v("已阅读并同意")]),i("v-uni-text",{staticClass:"main-color",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.privacy(4)}}},[t._v("《用户协议》")]),t._v("与"),i("v-uni-text",{staticClass:"main-color",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.privacy(3)}}},[t._v("《隐私协议》")])],1)],1),[i("editUserModal",{attrs:{isShow:t.isShow},on:{closeEdit:function(e){arguments[0]=e=t.$handleEvent(e),t.closeEdit.apply(void 0,arguments)},editSuccess:function(e){arguments[0]=e=t.$handleEvent(e),t.editSuccess.apply(void 0,arguments)}}})]],2)},a=[]},1835:function(t,e,i){"use strict";i.r(e);var n=i("aeb3"),a=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},"43bc":function(t,e,i){"use strict";i.r(e);var n=i("8293"),a=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},"46e6":function(t,e,i){"use strict";var n=i("cf3b"),a=i.n(n);a.a},"4aac":function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{style:t.viewColor},[i("v-uni-view",{staticClass:"product-window",class:{on:t.isShow}},[i("v-uni-view",{staticClass:"iconfont icon-guanbi",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.closeAttr.apply(void 0,arguments)}}}),i("v-uni-view",{staticClass:"mp-data"},[i("v-uni-image",{attrs:{src:t.routine_logo,mode:""}}),i("v-uni-text",{staticClass:"mp-name"},[t._v(t._s(t.site_name)+" 申请")])],1),i("v-uni-view",{staticClass:"trip-msg"},[i("v-uni-view",{staticClass:"title"},[t._v("获取您的昵称、头像")]),i("v-uni-view",{staticClass:"trip"},[t._v("提供具有辨识度的用户中心界面")])],1),i("v-uni-form",{on:{submit:function(e){arguments[0]=e=t.$handleEvent(e),t.formSubmit.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"edit"},[i("v-uni-view",{staticClass:"avatar edit-box"},[i("v-uni-view",{staticClass:"left"},[i("v-uni-view",{staticClass:"head"},[t._v("头像")]),t.mp_is_new?i("v-uni-button",{staticClass:"avatar-box",attrs:{"open-type":"chooseAvatar"},on:{chooseavatar:function(e){arguments[0]=e=t.$handleEvent(e),t.onChooseAvatar.apply(void 0,arguments)}}},[i("v-uni-image",{attrs:{src:t.userInfo.avatar||t.domain+"/static/images/def_avatar.png"}})],1):i("v-uni-view",{staticClass:"avatar-box",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.uploadpic.apply(void 0,arguments)}}},[i("v-uni-image",{attrs:{src:t.userInfo.avatar||t.domain+"/static/images/def_avatar.png"}})],1)],1)],1),i("v-uni-view",{staticClass:"nickname edit-box"},[i("v-uni-view",{staticClass:"left"},[i("v-uni-view",{staticClass:"head"},[t._v("昵称")]),i("v-uni-view",{staticClass:"input"},[i("v-uni-input",{attrs:{type:"nickname","placeholder-class":"pl-sty",placeholder:"请输入昵称",name:"nickname",maxlength:16,value:t.userInfo.nickname}})],1)],1)],1)],1),i("v-uni-view",{staticClass:"bottom"},[i("v-uni-button",{staticClass:"save",class:{open:t.userInfo.avatar},attrs:{formType:"submit"}},[t._v("保存")])],1)],1)],1),t.canvasStatus?i("v-uni-canvas",{style:{width:t.canvasWidth+"px",height:t.canvasHeight+"px",position:"absolute",left:"-100000px",top:"-100000px"},attrs:{"canvas-id":"canvas"}}):t._e(),t.isShow?i("v-uni-view",{staticClass:"mask",on:{touchmove:function(e){e.preventDefault(),arguments[0]=e=t.$handleEvent(e)},click:function(e){arguments[0]=e=t.$handleEvent(e),t.closeAttr.apply(void 0,arguments)}}}):t._e()],1)},a=[]},"54dc":function(t,e,i){"use strict";var n=i("86b9"),a=i.n(n);a.a},5547:function(t,e,i){"use strict";i.r(e);var n=i("4aac"),a=i("43bc");for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("54dc"),i("ea64");var s=i("828b"),c=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"08335dde",null,!1,n["a"],void 0);e["default"]=c.exports},"570d":function(t,e,i){var n=i("c86c");e=n(!1),e.push([t.i,".pl-sty[data-v-3f75d37e]{color:#999;font-size:%?30?%}",""]),t.exports=e},"684d":function(t,e,i){var n=i("570d");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("967d").default;a("4dd211fb",n,!0,{sourceMap:!1,shadowMode:!1})},"6cdc":function(t,e,i){"use strict";i.r(e);var n=i("7528"),a=i("1835");for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("7d93"),i("c0fc");var s=i("828b"),c=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"3f75d37e",null,!1,n["a"],void 0);e["default"]=c.exports},"6fcb":function(t,e,i){var n=i("a250");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("967d").default;a("747a66c1",n,!0,{sourceMap:!1,shadowMode:!1})},7528:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{style:t.viewColor},[i("v-uni-view",{staticClass:"mask",attrs:{hidden:0==t.isShow},on:{touchmove:function(e){e.preventDefault(),arguments[0]=e=t.$handleEvent(e)},click:function(e){arguments[0]=e=t.$handleEvent(e),t.rejectAgreement.apply(void 0,arguments)}}}),i("v-uni-view",{staticClass:"product-window",class:{on:t.isShow}},[i("v-uni-view",{staticClass:"mp-data"},[i("v-uni-text",{staticClass:"mp-name"},[t._v(t._s(t.site_name)+"服务与隐私协议")])],1),i("v-uni-view",{staticClass:"trip-msg"},[i("v-uni-view",{staticClass:"trip"},[t._v("欢迎您使用"+t._s(t.site_name)+"!请仔细阅读以下内容,并作出适当的选择:")])],1),i("v-uni-view",{staticClass:"trip-title"},[t._v("隐私政策概要")]),i("v-uni-view",{staticClass:"trip-msg"},[i("v-uni-view",{staticClass:"trip"},[t._v("当您点击同意并开始时用产品服务时,即表示您已理解并同息该条款内容,该条款将对您产生法律约束力。如您拒绝,将无法继续下一步操作。")])],1),i("v-uni-view",{staticClass:"main-color",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.privacy(3)}}},[t._v("点击阅读"+t._s(t.agreementName))]),i("v-uni-view",{staticClass:"bottom"},[i("v-uni-button",{staticClass:"save open",attrs:{type:"default",id:"agree-btn","open-type":"agreePrivacyAuthorization"},on:{agreeprivacyauthorization:function(e){arguments[0]=e=t.$handleEvent(e),t.handleAgree.apply(void 0,arguments)}}},[t._v("同意并继续")]),i("v-uni-button",{staticClass:"reject",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.rejectAgreement.apply(void 0,arguments)}}},[t._v("取消")])],1)],1)],1)},a=[]},"7d93":function(t,e,i){"use strict";var n=i("684d"),a=i.n(n);a.a},8293:function(t,e,i){"use strict";i("6a54");var n=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i("8f59"),o=i("96e0"),s=(n(i("6a1b")),i("672a")),c=i("aa10"),r={props:{isShow:{type:Boolean,value:!1}},data:function(){return{domain:c.HTTP_REQUEST_URL,mp_is_new:this.$Cache.get("MP_VERSION_ISNEW")||!1,userInfo:{avatar:"",nickname:""},canvasStatus:!1}},computed:(0,o.configMap)({routine_logo:"",site_name:""},(0,a.mapGetters)(["viewColor","keyColor"])),mounted:function(){},methods:{uploadpic:function(){var t=this,e=this;this.canvasStatus=!0,e.$util.uploadImageChange("upload/image",(function(i){var n=e.userInfo;void 0!==n&&(e.userInfo.avatar=i.data.url),t.canvasStatus=!1}),(function(e){t.canvasStatus=!1}),(function(e){t.canvasWidth=e.w,t.canvasHeight=e.h}))},onChooseAvatar:function(t){var e=this,i=t.detail.avatarUrl;this.$util.uploadImgs("upload/image",i,(function(t){e.userInfo.avatar=t.data.path}),(function(t){}))},closeAttr:function(){this.$emit("closeEdit")},formSubmit:function(t){var e=this,i=this;return this.userInfo.avatar?t.detail.value.nickname?(this.userInfo.nickname=t.detail.value.nickname,void(0,s.editAvatar)(this.userInfo).then((function(t){return e.$emit("editSuccess"),i.$util.Tips({title:t.message,icon:"success"},{tab:3})})).catch((function(t){return i.$util.Tips({title:t||"保存失败"},{tab:3,url:1})}))):i.$util.Tips({title:"请输入昵称"}):i.$util.Tips({title:"请上传头像"})}}};e.default=r},"82b1":function(t,e,i){var n=i("c86c");e=n(!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 */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */uni-page-body[data-v-0751c801]{background:#fff}body.?%PAGE?%[data-v-0751c801]{background:#fff}[data-v-0751c801] uni-checkbox .uni-checkbox-input,[data-v-0751c801] uni-checkbox .wx-checkbox-input{border-radius:100%;width:%?28?%;height:%?28?%}[data-v-0751c801] uni-checkbox .uni-checkbox-input.uni-checkbox-input-checked,[data-v-0751c801] uni-checkbox .wx-checkbox-input.wx-checkbox-input-checked{border:1px solid var(--view-theme)!important;background-color:var(--view-theme)!important}.wrapper[data-v-0751c801]{position:relative;height:100vh}.wrapper .bag[data-v-0751c801]{position:absolute;top:0;left:0;width:100%;opacity:.8;z-index:-1;z-index:0}.wrapper .bag img[data-v-0751c801]{width:100%;height:%?838?%}.wrapper .merchant-msg[data-v-0751c801]{padding-top:%?252?%;display:flex;justify-content:center;align-items:center;flex-direction:column;z-index:2;position:relative}.wrapper .merchant-msg img[data-v-0751c801]{width:%?152?%;height:%?152?%;border-radius:50%}.wrapper .merchant-msg .name[data-v-0751c801]{font-size:%?40?%;font-weight:500;color:#333;line-height:%?56?%;margin-top:%?32?%}.wechat_login[data-v-0751c801]{margin-top:%?96?%}.wechat_login .img uni-image[data-v-0751c801]{width:100%}.wechat_login .btn-wrapper[data-v-0751c801]{padding:0 %?66?%}.wechat_login .btn-wrapper uni-button[data-v-0751c801]{width:100%;height:%?86?%;line-height:%?86?%;margin-bottom:%?40?%;border-radius:%?120?%;font-size:%?30?%}.wechat_login .btn-wrapper uni-button.btn1[data-v-0751c801]{color:#fff;background:var(--view-theme)}.wechat_login .btn-wrapper uni-button.btn2[data-v-0751c801]{color:#666;border:1px solid #ddd}.title-bar[data-v-0751c801]{position:relative;display:flex;align-items:center;justify-content:center;font-size:%?34?%;font-weight:500;color:#333;line-height:%?48?%}.icon[data-v-0751c801]{position:absolute;left:%?30?%;top:0;display:flex;align-items:center;justify-content:center;width:%?80?%;height:%?80?%}.icon uni-image[data-v-0751c801]{width:%?50?%;height:%?50?%}.protocol[data-v-0751c801]{position:fixed;bottom:%?52?%;left:0;width:100%;margin:0 auto;color:#999;font-size:%?24?%;line-height:%?22?%;text-align:center;bottom:calc(52rpx+ constant(safe-area-inset-bottom));bottom:calc(%?52?% + env(safe-area-inset-bottom))}.protocol .main-color[data-v-0751c801]{color:var(--view-theme)}.protocol .trembling[data-v-0751c801]{-webkit-animation:shake .6s;animation:shake .6s}',""]),t.exports=e},"86b9":function(t,e,i){var n=i("ff01");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("967d").default;a("af7d9cee",n,!0,{sourceMap:!1,shadowMode:!1})},a250:function(t,e,i){var n=i("c86c");e=n(!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 */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.product-window.on[data-v-3f75d37e]{-webkit-transform:translateZ(0);transform:translateZ(0)}.product-window[data-v-3f75d37e]{position:fixed;bottom:0;width:100%;left:0;background-color:#fff;z-index:1000;border-radius:%?40?% %?40?% 0 0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);transition:all .3s cubic-bezier(.25,.5,.5,.9);padding:%?64?% %?40?%;padding-bottom:%?38?%;padding-bottom:calc(38rpx+ constant(safe-area-inset-bottom));padding-bottom:calc(%?38?% + env(safe-area-inset-bottom));box-shadow:0 %?2?% %?10?% rgba(0,0,0,.06)}.product-window .icon-guanbi[data-v-3f75d37e]{position:absolute;top:%?40?%;right:%?40?%;font-size:%?24?%;font-weight:700;color:#999}.product-window .mp-data[data-v-3f75d37e]{display:flex;align-items:center;justify-content:center;margin-bottom:%?40?%}.product-window .mp-data .mp-name[data-v-3f75d37e]{font-size:%?34?%;font-weight:500;color:#333;line-height:%?48?%}.product-window .trip-msg[data-v-3f75d37e]{padding-bottom:%?32?%}.product-window .trip-msg .title[data-v-3f75d37e]{font-size:%?30?%;font-weight:700;color:#000;margin-bottom:%?6?%}.product-window .trip-msg .trip[data-v-3f75d37e]{color:#333;font-size:%?28?%;font-family:PingFang SC-Regular,PingFang SC;font-weight:400}.product-window .trip-title[data-v-3f75d37e]{font-size:%?28?%;font-weight:500;color:#333;margin-bottom:%?8?%}.product-window .main-color[data-v-3f75d37e]{font-size:%?28?%;font-weight:400;color:var(--view-theme);margin-bottom:%?40?%}.product-window .bottom[data-v-3f75d37e]{display:flex;align-items:center;justify-content:center;flex-direction:column}.product-window .bottom .save[data-v-3f75d37e],\n.product-window .bottom .reject[data-v-3f75d37e]{display:flex;align-items:center;justify-content:center;width:%?670?%;height:%?80?%;border-radius:%?80?%;background-color:#f5f5f5;color:#333;font-size:%?30?%;font-weight:500}.product-window .bottom .save[data-v-3f75d37e]{background-color:var(--view-theme);color:#fff;margin-bottom:%?24?%}',""]),t.exports=e},ab78:function(t,e,i){var n=i("c86c");e=n(!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 */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.product-window.on[data-v-08335dde]{-webkit-transform:translateZ(0);transform:translateZ(0);display:block}.mask[data-v-08335dde]{z-index:99}.product-window[data-v-08335dde]{position:fixed;bottom:0;width:100%;left:0;background-color:#fff;z-index:1000;border-radius:%?20?% %?20?% 0 0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);transition:all .3s cubic-bezier(.25,.5,.5,.9);padding:%?38?% %?40?%;display:none}.product-window .icon-guanbi[data-v-08335dde]{position:absolute;top:%?40?%;right:%?40?%;font-size:%?24?%;font-weight:700;color:#999}.product-window .mp-data[data-v-08335dde]{display:flex;align-items:center;margin-bottom:%?30?%}.product-window .mp-data .mp-name[data-v-08335dde]{font-size:%?28?%;font-weight:700;color:#000}.product-window .mp-data uni-image[data-v-08335dde]{width:%?48?%;height:%?48?%;border-radius:50%;margin-right:%?16?%}.product-window .trip-msg[data-v-08335dde]{padding-bottom:%?32?%;border-bottom:1px solid #f5f5f5}.product-window .trip-msg .title[data-v-08335dde]{font-size:%?30?%;font-weight:700;color:#000;margin-bottom:%?6?%}.product-window .trip-msg .trip[data-v-08335dde]{font-size:%?26?%;color:#777}.product-window .edit[data-v-08335dde]{border-bottom:1px solid #f5f5f5}.product-window .edit .avatar[data-v-08335dde]{border-bottom:1px solid #f5f5f5}.product-window .edit .nickname .input[data-v-08335dde]{width:100%}.product-window .edit .nickname uni-input[data-v-08335dde]{height:%?80?%}.product-window .edit .edit-box[data-v-08335dde]{display:flex;justify-content:space-between;align-items:center;font-size:%?30?%;padding:%?22?% 0}.product-window .edit .edit-box .left[data-v-08335dde]{display:flex;align-items:center;flex:1}.product-window .edit .edit-box .left .head[data-v-08335dde]{color:rgba(0,0,0,.9);white-space:nowrap;margin-right:%?60?%}.product-window .edit .edit-box .left uni-button[data-v-08335dde]{flex:1;display:flex;align-items:center}.product-window .edit .edit-box uni-image[data-v-08335dde]{width:%?80?%;height:%?80?%;border-radius:%?6?%}.product-window .edit .icon-xiangyou[data-v-08335dde]{color:#cfcfcf}.product-window .bottom[data-v-08335dde]{display:flex;align-items:center;justify-content:center}.product-window .bottom .save[data-v-08335dde]{border:1px solid #f5f5f5;display:flex;align-items:center;justify-content:center;width:%?368?%;height:%?80?%;border-radius:%?12?%;margin-top:%?52?%;background-color:#f5f5f5;color:#ccc;font-size:%?30?%;font-weight:700}.product-window .bottom .save.open[data-v-08335dde]{border:1px solid #fff;background-color:#07c160;color:#fff}',""]),t.exports=e},aeb3:function(t,e,i){"use strict";i("6a54");var n=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i("9b1b")),o=i("8f59"),s=i("96e0"),c=(n(i("8dd5")),getApp(),{data:function(){return{isShow:!1,agreementName:"",mpData:uni.getStorageSync("copyRight")}},computed:(0,a.default)({},(0,s.configMap)({site_name:""},(0,o.mapGetters)(["viewColor"]))),mounted:function(){var t=this;wx.getPrivacySetting({success:function(e){e.needAuthorization?(t.isShow=!0,t.agreementName=e.privacyContractName):t.$emit("onAgree")},fail:function(){},complete:function(){}})},methods:{handleAgree:function(){this.isShow=!1,this.$emit("onclose")},rejectAgreement:function(){this.isShow=!1,this.$emit("onReject")},privacy:function(t){uni.navigateTo({url:"/pages/users/privacy/index?type="+t})}}});e.default=c},c0fc:function(t,e,i){"use strict";var n=i("6fcb"),a=i.n(n);a.a},cca97:function(t,e,i){"use strict";i.r(e);var n=i("0d4e"),a=i("fb13");for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("46e6");var s=i("828b"),c=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"0751c801",null,!1,n["a"],void 0);e["default"]=c.exports},cf3b:function(t,e,i){var n=i("82b1");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("967d").default;a("1893028a",n,!0,{sourceMap:!1,shadowMode:!1})},d0d8:function(t,e,i){"use strict";i("6a54");var n=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("5ef2");var a=n(i("9b1b")),o=n(i("5547")),s=n(i("6cdc")),c=i("5999"),r=i("d838"),d=i("672a"),u=n(i("8dd5")),l=(n(i("bd79")),n(i("bd79"))),f=i("aa10"),p=i("96e0"),v=n(i("6a1b")),h=(i("e44d"),i("8f59")),m=getApp(),g=uni.getSystemInfoSync().statusBarHeight+"px",w={data:function(){return{domain:f.HTTP_REQUEST_URL,isUp:!1,canClose:!0,phone:"",statusBarHeight:g,isHome:!1,isPhoneBox:!1,protocol:!1,isShow:!1,logoUrl:"",code:"",codeVal:"",authKey:"",options:"",userInfo:{},codeNum:0,canUseGetUserProfile:!1,canGetPrivacySetting:!1,inAnimation:!1,colorStatus:uni.getStorageSync("color_status"),mp_is_new:this.$Cache.get("MP_VERSION_ISNEW")||!1,configData:v.default.get("BASIC_CONFIG"),bindPhone:!1,wechat_phone_switch:0}},computed:(0,a.default)({},(0,p.configMap)({login_logo:"",site_name:"",first_avatar_switch:""},(0,h.mapGetters)(["isLogin","viewColor"]))),components:{editUserModal:o.default,privacyAgreementPopup:s.default},watch:{},onLoad:function(t){uni.getUserProfile&&(this.canUseGetUserProfile=!0);var e=getCurrentPages(),i=e[e.length-2];i&&"pages/order_addcart/order_addcart"==i.route?this.isHome=!0:this.isHome=!1},onReady:function(){this.getCode()},created:function(){},methods:{getCode:function(){this.code=1},getAuthLogin:function(){var t=this,e=this;if(!e.protocol&&!e.canGetPrivacySetting)return e.$util.Tips({title:"请勾选用户协议与隐私政策"});uni.showLoading({title:"正在登录中"}),e.canUseGetUserProfile=!1,u.default.getUserProfile().then((function(i){var n=i.userInfo;n.code=e.code,n.spread=m.globalData.spid,n.spread_code=m.globalData.code,(0,c.commonAuth)({auth:{type:"routine",auth:n}}).then((function(i){if(200!=i.data.status)return uni.setStorageSync("auth_token",i.data.result.key),uni.navigateTo({url:"/pages/users/login/index"});var n=i.data.result.expires_time-v.default.time();e.$store.commit("UPDATE_USERINFO",i.data.result.user),e.$store.commit("LOGIN",{token:i.data.result.token,time:n}),e.$store.commit("SETUID",i.data.result.user.uid),v.default.set(r.EXPIRES_TIME,i.data.result.expires_time,n),v.default.set(r.USER_INFO,i.data.result.user,n),i.data.result.user.isNew&&e.mp_is_new&&1==e.first_avatar_switch?(uni.hideLoading(),e.isShow=!0):t.$util.Tips({title:"授权成功",icon:"success"},{tab:3})})).catch((function(t){uni.hideLoading(),uni.showToast({title:t,icon:"none",duration:2e3})}))})).catch((function(t){uni.hideLoading(),uni.showToast({title:t.errMsg,icon:"none",duration:2e3})}))},onAgree:function(){this.protocol=!0},ChangeIsDefault:function(t){this.$set(this,"protocol",!this.protocol)},editSuccess:function(){this.isShow=!1},closeEdit:function(){this.isShow=!1,this.$util.Tips({title:"登录成功",icon:"success"},{tab:3})},onReject:function(){uni.switchTab({url:"/pages/index/index"})},back:function(){uni.navigateBack({delta:1})},home:function(){uni.switchTab({url:"/pages/index/index"})},maskClose:function(t){this.isUp=!1},bindPhoneClose:function(t){this.isPhoneBox=!1,t.isStatus&&this.$util.Tips({title:"登录成功",icon:"success"},{tab:3})},getPath:function(t){return-1!=t.indexOf("?")&&(t=t.split("?")[0]),t},getUserInfo:function(t,e){var i=this,n=this;(0,d.getUserInfo)().then((function(a){uni.hideLoading(),n.userInfo=a.data,n.$store.commit("SETUID",a.data.uid),n.$store.commit("UPDATE_USERINFO",a.data),t?i.isShow=!0:n.$util.Tips({title:"登录成功",icon:"success"},{tab:4,url:e||"/pages/user/index"})})).catch((function(t){uni.hideLoading(),uni.showToast({title:t.message,icon:"none",duration:2e3})}))},privacy:function(t){uni.navigateTo({url:"/pages/users/privacy/index?type="+t})},wechatLogin:function(){if(!this.protocol)return this.$util.Tips({title:"请勾选用户协议与隐私政策"});l.default.oAuth()}}};e.default=w},ea64:function(t,e,i){"use strict";var n=i("fd2f"),a=i.n(n);a.a},fb13:function(t,e,i){"use strict";i.r(e);var n=i("d0d8"),a=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},fd2f:function(t,e,i){var n=i("ab78");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("967d").default;a("7c39973b",n,!0,{sourceMap:!1,shadowMode:!1})},ff01:function(t,e,i){var n=i("c86c");e=n(!1),e.push([t.i,".pl-sty[data-v-08335dde]{color:#999;font-size:%?30?%}",""]),t.exports=e}}]); |