chunk-283a39c2.9aae79b8.js 11 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-283a39c2"],{"170a":function(t,a,e){},"5be2":function(t,a,e){"use strict";e.d(a,"c",(function(){return i})),e.d(a,"d",(function(){return c})),e.d(a,"a",(function(){return o})),e.d(a,"b",(function(){return l})),e.d(a,"e",(function(){return r})),e.d(a,"f",(function(){return u}));var s=e("f175");const i=()=>s.a.get("/settings.user.user/getConfig"),c=t=>s.a.post("/settings.user.user/setConfig",t),o=()=>s.a.get("/settings.user.user/getRegisterConfig"),l=t=>s.a.post("/settings.user.user/setRegisterConfig",t),r=()=>s.a.get("/settings.user.user/getWithdrawConfig"),u=t=>s.a.post("/settings.user.user/setWithdrawConfig",t)},"5fb6":function(t,a,e){"use strict";e.r(a);var s=e("9ab4"),i=e("1b40"),c=e("5be2");let o=class extends i.e{constructor(){super(...arguments),this.form={register_way:[],login_way:[],is_mobile_register_code:0,coerce_mobile:0,h5_wechat_auth:0,h5_auto_wechat_auth:1,mnp_wechat_auth:0,mnp_auto_wechat_auth:1,app_wechat_auth:0,scene:"",toutiao_auth:0,toutiao_auto_auth:0}}h5WechatAuthWatch(t){0==t&&(this.form.h5_auto_wechat_auth=0)}h5AutoWechatAuthWatch(t){1==t&&(this.form.h5_wechat_auth=1)}mnpWechatAuthWatch(t){0==t&&(this.form.mnp_auto_wechat_auth=0)}mnpAutoWechatAuthWatch(t){1==t&&(this.form.mnp_wechat_auth=1)}mnpToutiaoAuthWatch(t){0==t&&(this.form.toutiao_auto_auth=0)}mnpAutoToutiaoAuthWatch(t){1==t&&(this.form.toutiao_auth=1)}getLoginRegister(){Object(c.a)().then(t=>{this.form=t}).catch(()=>{})}setLoginRegister(){return this.form.scene="register",Object(c.b)(this.form).then(t=>{setTimeout(()=>{this.getLoginRegister()},50)}).catch(()=>{})}created(){this.getLoginRegister()}};Object(s.a)([Object(i.f)("form.h5_wechat_auth")],o.prototype,"h5WechatAuthWatch",null),Object(s.a)([Object(i.f)("form.h5_auto_wechat_auth")],o.prototype,"h5AutoWechatAuthWatch",null),Object(s.a)([Object(i.f)("form.mnp_wechat_auth")],o.prototype,"mnpWechatAuthWatch",null),Object(s.a)([Object(i.f)("form.mnp_auto_wechat_auth")],o.prototype,"mnpAutoWechatAuthWatch",null),Object(s.a)([Object(i.f)("form.toutiao_auth")],o.prototype,"mnpToutiaoAuthWatch",null),Object(s.a)([Object(i.f)("form.mnp_auto_wechat_auth")],o.prototype,"mnpAutoToutiaoAuthWatch",null),o=Object(s.a)([Object(i.a)({components:{}})],o);var l=o,r=(e("8581"),e("2877")),u=Object(r.a)(l,(function(){var t=this,a=t._self._c;t._self._setupProxy;return a("div",{staticClass:"login-register"},[a("el-form",{ref:"formRef",attrs:{model:t.form,"label-width":"120px",size:"small"}},[a("div",{staticClass:"ls-card"},[a("div",{staticClass:"card-title"},[t._v("通用设置")]),a("div",{staticClass:"card-content m-t-24"},[a("el-form-item",{attrs:{label:"注册方式",required:""}},[a("el-checkbox-group",{model:{value:t.form.register_way,callback:function(a){t.$set(t.form,"register_way",a)},expression:"form.register_way"}},[a("el-checkbox",{attrs:{label:"1"}},[t._v("手机号码注册")])],1),a("div",{staticClass:"muted xs"},[t._v(" 系统通用的注册用户方式,至少勾选一项,微信等渠道有其他授权注册方式,请合理设置 ")])],1),a("el-form-item",{attrs:{label:"手机号码注册需验证码",required:""}},[a("div",{staticClass:"flex"},[a("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-color":t.styleConfig.primary,"inactive-color":"#f4f4f5"},model:{value:t.form.is_mobile_register_code,callback:function(a){t.$set(t.form,"is_mobile_register_code",a)},expression:"form.is_mobile_register_code"}}),a("span",{staticClass:"m-l-16"},[t._v(t._s(t.form.is_mobile_register_code?"开启":"关闭"))])],1),a("div",{staticClass:"muted xs"},[t._v(" 1、用户通过手机号码注册帐号时,是否需要短信验证码验证填写的手机号码,默认关闭 ")]),a("div",{staticClass:"muted xs"},[t._v("2、请开启对应短信验证码功能")])]),a("el-form-item",{attrs:{label:"强制绑定手机"}},[a("div",{staticClass:"flex"},[a("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-color":t.styleConfig.primary,"inactive-color":"#f4f4f5"},model:{value:t.form.coerce_mobile,callback:function(a){t.$set(t.form,"coerce_mobile",a)},expression:"form.coerce_mobile"}}),a("span",{staticClass:"m-l-16"},[t._v(t._s(t.form.coerce_mobile?"开启":"关闭"))])],1),a("div",{staticClass:"muted xs"},[t._v(" 用户无论通过何种方式注册用户时,是否需要强制绑定手机。绑定手机需要短信验证,请开启对应短信验证码功能 ")])]),a("el-form-item",{attrs:{label:"登录方式",required:""}},[a("el-checkbox-group",{model:{value:t.form.login_way,callback:function(a){t.$set(t.form,"login_way",a)},expression:"form.login_way"}},[a("el-checkbox",{attrs:{label:"1"}},[t._v("手机号密码登录")]),a("el-checkbox",{attrs:{label:"2"}},[t._v("手机号验证码登录")])],1),a("div",{staticClass:"muted xs"},[t._v(" 系统通用的登录方式,至少勾选一项,需要和通用注册方式匹配。 微信等渠道有其他授权注册方式,请合理设置 ")])],1)],1)]),a("div",{staticClass:"ls-card m-t-16"},[a("div",{staticClass:"card-title"},[t._v("微信开放平台")]),a("div",{staticClass:"card-content m-t-24"},[a("el-form-item",{attrs:{label:"微信开放平台"}},[a("a",{staticClass:"muted xs item-a",attrs:{href:"https://open.weixin.qq.com/"}},[t._v("前往微信开放平台")]),a("div",{staticClass:"muted xs"},[t._v("1、商城在各渠道使用微信授权登录时,强烈建议配置微信开放平台")]),a("div",{staticClass:"muted xs"},[t._v(" 2、微信开放平台关联公众号、小程序和APP后,可实现各端用户账号统一,识别买家唯一微信身份 ")]),a("div",{staticClass:"muted xs"},[t._v(" 3、没有配置微信开放平台,同一微信号会生成多个用户,配置微信开放平台后已生成的用户账号无法合并 ")])])],1)]),a("div",{staticClass:"ls-card m-t-16"},[a("div",{staticClass:"card-title"},[t._v("微信公众号")]),a("div",{staticClass:"card-content m-t-24"},[a("el-form-item",{attrs:{label:"微信授权登录"}},[a("div",{staticClass:"flex"},[a("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-color":t.styleConfig.primary,"inactive-color":"#f4f4f5"},model:{value:t.form.h5_wechat_auth,callback:function(a){t.$set(t.form,"h5_wechat_auth",a)},expression:"form.h5_wechat_auth"}}),a("span",{staticClass:"m-l-16"},[t._v(t._s(t.form.h5_wechat_auth?"开启":"关闭"))])],1),a("div",{staticClass:"muted xs"},[t._v(" 微信公众号是否支持微信授权登录方式。关闭时,使用注册设置里面的配置方法完成用户注册和登录 ")])]),a("el-form-item",{attrs:{label:"自动微信授权登录"}},[a("div",{staticClass:"flex"},[a("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-color":t.styleConfig.primary,"inactive-color":"#f4f4f5"},model:{value:t.form.h5_auto_wechat_auth,callback:function(a){t.$set(t.form,"h5_auto_wechat_auth",a)},expression:"form.h5_auto_wechat_auth"}}),a("span",{staticClass:"m-l-16"},[t._v(t._s(t.form.h5_auto_wechat_auth?"开启":"关闭"))])],1),a("div",{staticClass:"muted xs"},[t._v("微信授权登录开启后,可以勾选是否需要自动授权登录,默认开启。")])])],1)]),a("div",{staticClass:"ls-card m-t-16"},[a("div",{staticClass:"card-title"},[t._v("微信小程序")]),a("div",{staticClass:"card-content m-t-24"},[a("el-form-item",{attrs:{label:"微信授权登录"}},[a("div",{staticClass:"flex"},[a("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-color":t.styleConfig.primary,"inactive-color":"#f4f4f5"},model:{value:t.form.mnp_wechat_auth,callback:function(a){t.$set(t.form,"mnp_wechat_auth",a)},expression:"form.mnp_wechat_auth"}}),a("span",{staticClass:"m-l-16"},[t._v(t._s(t.form.mnp_wechat_auth?"开启":"关闭"))])],1),a("div",{staticClass:"muted xs"},[t._v(" 微信小程序是否支持微信授权登录方式。关闭时,使用注册设置里面的配置方法完成用户注册和登录 ")])]),a("el-form-item",{attrs:{label:"自动微信授权登录"}},[a("div",{staticClass:"flex"},[a("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-color":t.styleConfig.primary,"inactive-color":"#f4f4f5"},model:{value:t.form.mnp_auto_wechat_auth,callback:function(a){t.$set(t.form,"mnp_auto_wechat_auth",a)},expression:"form.mnp_auto_wechat_auth"}}),a("span",{staticClass:"m-l-16"},[t._v(t._s(t.form.mnp_auto_wechat_auth?"开启":"关闭"))])],1),a("div",{staticClass:"muted xs"},[t._v("微信授权登录开启后,可以勾选是否需要自动授权登录,默认开启")])])],1)]),a("div",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],staticClass:"ls-card m-t-16"},[a("div",{staticClass:"card-title"},[t._v("字节小程序")]),a("div",{staticClass:"card-content m-t-24"},[a("el-form-item",{attrs:{label:"字节授权登录"}},[a("div",{staticClass:"flex"},[a("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-color":t.styleConfig.primary,"inactive-color":"#f4f4f5"},model:{value:t.form.toutiao_auth,callback:function(a){t.$set(t.form,"toutiao_auth",a)},expression:"form.toutiao_auth"}}),a("span",{staticClass:"m-l-16"},[t._v(t._s(t.form.toutiao_auth?"开启":"关闭"))])],1),a("div",{staticClass:"muted xs"},[t._v(" 字节小程序是否支持字节授权登录方式。关闭时,使用注册设置里面的配置方法完成用户注册和登录 ")])]),a("el-form-item",{attrs:{label:"自动字节授权登录"}},[a("div",{staticClass:"flex"},[a("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-color":t.styleConfig.primary,"inactive-color":"#f4f4f5"},model:{value:t.form.toutiao_auto_auth,callback:function(a){t.$set(t.form,"toutiao_auto_auth",a)},expression:"form.toutiao_auto_auth"}}),a("span",{staticClass:"m-l-16"},[t._v(t._s(t.form.toutiao_auto_auth?"开启":"关闭"))])],1),a("div",{staticClass:"muted xs"},[t._v("字节授权登录开启后,可以勾选是否需要自动授权登录,默认开启")])])],1)]),a("div",{staticClass:"ls-card m-t-16"},[a("div",{staticClass:"card-title"},[t._v("H5设置")]),a("div",{staticClass:"card-content m-t-24"},[a("el-form-item",{attrs:{label:""}},[a("div",{staticClass:"muted xs"},[t._v("用户访问H5商城时,使用注册设置里面的配置方法完成用户注册和登录")])])],1)]),a("div",{staticClass:"ls-card m-t-16"},[a("div",{staticClass:"card-title"},[t._v("APP设置")]),a("div",{staticClass:"card-content m-t-24"},[a("el-form-item",{attrs:{label:"微信授权登录"}},[a("div",{staticClass:"flex"},[a("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-color":t.styleConfig.primary,"inactive-color":"#f4f4f5"},model:{value:t.form.app_wechat_auth,callback:function(a){t.$set(t.form,"app_wechat_auth",a)},expression:"form.app_wechat_auth"}}),a("span",{staticClass:"m-l-16"},[t._v(t._s(t.form.app_wechat_auth?"开启":"关闭"))])],1),a("div",{staticClass:"muted xs"},[t._v(" APP是否支持微信授权登录方式。关闭时,使用注册设置里面的配置方法完成用户注册和登录 ")])])],1)])]),a("div",{staticClass:"bg-white ls-fixed-footer"},[a("div",{staticClass:"row-center flex",staticStyle:{height:"100%"}},[a("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(a){return t.setLoginRegister()}}},[t._v("保存")])],1)])],1)}),[],!1,null,"18a7069a",null);a.default=u.exports},8581:function(t,a,e){"use strict";e("170a")}}]);