{"version":3,"sources":["webpack:///./node_modules/core-js/modules/es6.regexp.constructor.js","webpack:///./src/apps/open/views/devCenter/myApp/Auth.vue?739c","webpack:///./src/apps/open/views/devCenter/myApp/Auth.vue","webpack:///./src/apps/open/views/devCenter/myApp/Auth.vue?12e6","webpack:///./src/apps/open/views/devCenter/myApp/Auth.vue?d570","webpack:///./src/apps/open/layout/ContentLayout.vue?d1e8","webpack:///./src/apps/open/layout/ContentLayout.vue","webpack:///./src/apps/open/layout/ContentLayout.vue?1dc7","webpack:///./src/apps/open/layout/ContentLayout.vue?b521","webpack:///./src/apps/open/layout/ContentLayout.vue?195b","webpack:///./src/apps/open/views/devCenter/myApp/Auth.vue?5ad2","webpack:///./src/apps/open/types/index.ts","webpack:///./src/apps/open/views/devCenter/myApp/Auth.vue?663a","webpack:///./src/apps/open/components/DialogBodys/VerifyPhone.vue?1e57","webpack:///./src/apps/open/components/DialogBodys/VerifyPhone.vue?6c60","webpack:///./src/apps/open/components/DialogBodys/VerifyPhone.vue","webpack:///./src/apps/open/components/DialogBodys/VerifyPhone.vue?5a61","webpack:///./src/apps/open/components/DialogBodys/VerifyPhone.vue?55a2","webpack:///./src/apps/open/mixins/VerifyPhone.ts"],"names":["global","inheritIfRequired","dP","f","gOPN","isRegExp","$flags","$RegExp","RegExp","Base","proto","prototype","re1","re2","CORRECT_NEW","p","tiRE","this","piRE","fiU","undefined","constructor","source","call","proxy","key","configurable","get","set","it","keys","i","length","render","_vm","_h","$createElement","_c","_self","attrs","staticClass","directives","name","rawName","value","expression","ref","actionType","appAuthConfigs","rules","nativeOn","$event","preventDefault","labelWidth","staticStyle","_v","_e","model","callback","$$v","$set","_s","auth_type","slot","_l","item","title","content","on","inputValidHandle","validRules","third_app_id","third_app_key","authUrlType","label","multiEndRules","wps_pc_auth_url","auth_url","wps_mobile_auth_url","h5_auth_url","h5_ua","redirect_uri","state","code_url","code","access_token_url","access_token","union_id","avatar","isPrivate","platform_code","modeFormat","isAppAdmin","originAppAuthConfigs","deleteNotice","save","staticRenderFns","bind_mode","app_id","open_ssid","loading","oauthParamsTips","propertyTips","$store","dispatch","loadAppAuthConfigs","prop","rule","replace","validateFrom","handleAuthUrlPreSave","formatOuterConfigs","$message","success","cb","$refs","authUrlForm","validate","valid","info","Promise","resolve","authFromElement","a","b","appId","data","getters","formatInnerConfigs","message","Object","assign","oauth_cfg","split","oAuthConfigs","authConfigs","v","includes","join","deleteConfirm","verifyPhone","action","DELETE_CERTIFICATION_WAY","dialogBody","$dialog","show","body","buttons","text","type","fn","deleteAuth","close","urlReg","urlRule","pattern","required","trigger","min","max","validator","verifyAuthUrl","$route","params","id","authFrom","map","wechat","qq","phone","VerifyPhone","components","ContentLayout","Button","component","_t","EVerifyPhoneAction","tip","captchaSuccess","changeVerifyCode","verifyCode","sendButtonDisable","sendVerifyCode","sendButtonText","USER_CENTER_URL","onCancel","disabledSubmit","submit","okText","time","submitting","clearInterval","timer","window","CaptchaSuccess","resetSmartCaptcha","aliyun_session","sessionId","aliyun_scene","NVC_Opt","scene","aliyun_token","token","aliyun_sig","sig","aliyun_appkey","appkey","then","setInterval","timerFun","catch","error","test","warning","captcha","res","verifySuccess","finally","loadCaptcha","_this","ic","smartCaptcha","renderTo","width","reset","init","default","componentName","okBtn","bodyProps","userInfo"],"mappings":"qJAAA,IAAIA,EAAS,EAAQ,QACjBC,EAAoB,EAAQ,QAC5BC,EAAK,EAAQ,QAAgBC,EAC7BC,EAAO,EAAQ,QAAkBD,EACjCE,EAAW,EAAQ,QACnBC,EAAS,EAAQ,QACjBC,EAAUP,EAAOQ,OACjBC,EAAOF,EACPG,EAAQH,EAAQI,UAChBC,EAAM,KACNC,EAAM,KAENC,EAAc,IAAIP,EAAQK,KAASA,EAEvC,GAAI,EAAQ,WAAuBE,GAAe,EAAQ,OAAR,CAAoB,WAGpE,OAFAD,EAAI,EAAQ,OAAR,CAAkB,WAAY,EAE3BN,EAAQK,IAAQA,GAAOL,EAAQM,IAAQA,GAA4B,QAArBN,EAAQ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zC,gBAAiB,EACvByC,EAAMvC,WAAa,GACnBa,OAAOC,eAAiB,KACxB0B,EAAGI,SAELJ,EAAGK,SAtIP,yCA0IIhN,KAAKmK,WAAanK,KAAKmK,WAAWxE,QAAQ,MAAO,MA1IrD,qCA4BI,OAAO3F,KAAKmK,WAAWpJ,OAAS,GAAKf,KAAK6K,aA5B9C,0BAgCI,OAAO7K,KAAKiK,eAAL,aAA4BjK,KAAKwJ,MAAjC,UAAiD,eAhC5D,GAAmD,QAEjD,QADC,kB,4BAID,QADC,kB,6BAMD,QAHC,eAAK,CACJyD,QAAS,Q,6BAKX,QADC,kB,+BAID,QADC,kB,oCAfkB,EAAqB,QATzC,eAAU,CACTC,cAAe,wBACfrG,KAAM,iBAAO,CACX0D,gBAAA,SAEFb,WAAY,CACVE,SAAA,SAGiB,WCxCua,I,wBCQxbC,EAAY,eACd,EACA7I,EACA+D,GACA,EACA,KACA,WACA,MAIa,EAAA8E,E,QCPM,EAArB,sMAK0E,QAAzD5G,aAAyD,MAAjD,OAAiD,EAAzC2E,EAAyC,EAAzCA,OAAyC,IAAjCuF,aAAiC,MAAzB,MAAyB,EAAlBlH,EAAkB,EAAlBA,GACpDjG,KAAK+H,QAAQC,KAAK,CAChB/E,MAAOA,EACP6J,MAAO,QACP7E,KAAMwB,EACN2D,UAAW,CACT5D,MAAOxJ,KAAKqN,SAAS7D,MACrB5B,SACA+C,OAAQwC,EACR3C,SAAUxK,KAAK+H,QAAQQ,MACvBgE,cAAetG,OAfvB,+BAEI,OAAOjG,KAAKsF,OAAOwB,QAAQ,qBAF/B,GAA8C,QAAzB,EAAgB,QADpC,QACoB","file":"js/chunk-7a69d094.7351c640.js","sourcesContent":["var global = require('./_global');\nvar inheritIfRequired = require('./_inherit-if-required');\nvar dP = require('./_object-dp').f;\nvar gOPN = require('./_object-gopn').f;\nvar isRegExp = require('./_is-regexp');\nvar $flags = require('./_flags');\nvar $RegExp = global.RegExp;\nvar Base = $RegExp;\nvar proto = $RegExp.prototype;\nvar re1 = /a/g;\nvar re2 = /a/g;\n// \"new\" creates a new object, old webkit buggy here\nvar CORRECT_NEW = new $RegExp(re1) !== re1;\n\nif (require('./_descriptors') && (!CORRECT_NEW || require('./_fails')(function () {\n re2[require('./_wks')('match')] = false;\n // RegExp constructor can alter flags and IsRegExp works correct with @@match\n return $RegExp(re1) != re1 || $RegExp(re2) == re2 || $RegExp(re1, 'i') != '/a/i';\n}))) {\n $RegExp = function RegExp(p, f) {\n var tiRE = this instanceof $RegExp;\n var piRE = isRegExp(p);\n var fiU = f === undefined;\n return !tiRE && piRE && p.constructor === $RegExp && fiU ? p\n : inheritIfRequired(CORRECT_NEW\n ? new Base(piRE && !fiU ? p.source : p, f)\n : Base((piRE = p instanceof $RegExp) ? p.source : p, piRE && fiU ? $flags.call(p) : f)\n , tiRE ? this : proto, $RegExp);\n };\n var proxy = function (key) {\n key in $RegExp || dP($RegExp, key, {\n configurable: true,\n get: function () { return Base[key]; },\n set: function (it) { Base[key] = it; }\n });\n };\n for (var keys = gOPN(Base), i = 0; keys.length > i;) proxy(keys[i++]);\n proto.constructor = $RegExp;\n $RegExp.prototype = proto;\n require('./_redefine')(global, 'RegExp', $RegExp);\n}\n\nrequire('./_set-species')('RegExp');\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('ContentLayout',{attrs:{\"title\":\"认证方式\"}},[_c('div',{staticClass:\"root\"},[_c('el-form',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.loading),expression:\"loading\"}],ref:\"authFrom\",attrs:{\"hide-required-asterisk\":_vm.actionType !== 'edit',\"model\":_vm.appAuthConfigs,\"rules\":_vm.rules,\"label-width\":\"108px\",\"label-position\":\"left\"},nativeOn:{\"submit\":function($event){$event.preventDefault();}}},[_c('el-form-item',{attrs:{\"label\":\"认证方式配置\",\"label-width\":_vm.labelWidth}},[_c('div',{staticStyle:{\"white-space\":\"nowrap\"}},[_vm._v(\"基于标准的OAuth2.0认证方式构建的WPS授权登录方式\")])]),(false)?_c('div',{staticClass:\"line\",staticStyle:{\"margin-bottom\":\"20px\"}}):_vm._e(),_c('el-form-item',{directives:[{name:\"show\",rawName:\"v-show\",value:(false),expression:\"false\"}],attrs:{\"label\":\"账号认证方式\",\"prop\":\"method\",\"label-width\":_vm.labelWidth}},[(_vm.actionType === 'edit')?_c('el-radio-group',{model:{value:(_vm.appAuthConfigs.auth_type),callback:function ($$v) {_vm.$set(_vm.appAuthConfigs, \"auth_type\", $$v)},expression:\"appAuthConfigs.auth_type\"}},[_c('p',[_c('el-radio',{attrs:{\"label\":'oauth'}},[_c('span',{staticClass:\"radio_title_color\"},[_vm._v(\"OAuth2.0\")]),_c('p',{staticClass:\"radio_desc_color\"},[_vm._v(\"支持authorization_code模式,适用于拥有server端的应用授权\")])])],1)]):[_vm._v(\"\\n \"+_vm._s(_vm.appAuthConfigs.auth_type)+\"\\n \")]],2),_c('div',{staticClass:\"line\"}),_c('div',{staticClass:\"block-title\"},[_vm._v(\"\\n 认证参数配置\\n \"),_c('el-tooltip',{attrs:{\"placement\":\"bottom-start\",\"effect\":\"light\"}},[_c('div',{staticClass:\"params_tips_wrap\",attrs:{\"slot\":\"content\"},slot:\"content\"},[_c('div',{staticClass:\"block-title\"},[_vm._v(\"认证参数\")]),_c('div',{staticClass:\"line\"}),_vm._l((_vm.oauthParamsTips),function(item){return _c('div',{key:item.title,staticClass:\"item\"},[_c('p',{staticClass:\"item-title\"},[_vm._v(_vm._s(item.title))]),_c('p',{staticClass:\"item-content\"},[_vm._v(_vm._s(item.content))])])})],2),_c('i',{staticClass:\"el-icon-question\"})])],1),_c('el-form-item',{attrs:{\"label\":\"APPID\",\"prop\":\"third_app_id\",\"label-width\":_vm.labelWidth}},[(_vm.actionType === 'edit')?_c('el-input',{attrs:{\"placeholder\":\"请输入\",\"maxlength\":50},on:{\"input\":function($event){return _vm.inputValidHandle('third_app_id',_vm.validRules['en.num'])}},model:{value:(_vm.appAuthConfigs.third_app_id),callback:function ($$v) {_vm.$set(_vm.appAuthConfigs, \"third_app_id\", $$v)},expression:\"appAuthConfigs.third_app_id\"}}):[_vm._v(\"\\n \"+_vm._s(_vm.appAuthConfigs.third_app_id)+\"\\n \")]],2),_c('el-form-item',{attrs:{\"label\":\"SECRET_KEY\",\"prop\":\"third_app_key\",\"label-width\":_vm.labelWidth}},[(_vm.actionType === 'edit')?_c('el-input',{attrs:{\"placeholder\":\"请输入\",\"maxlength\":100},on:{\"input\":function($event){return _vm.inputValidHandle('third_app_key',_vm.validRules['en.num'])}},model:{value:(_vm.appAuthConfigs.third_app_key),callback:function ($$v) {_vm.$set(_vm.appAuthConfigs, \"third_app_key\", $$v)},expression:\"appAuthConfigs.third_app_key\"}}):_c('div',[_vm._v(\"\\n \"+_vm._s(_vm.appAuthConfigs.third_app_key)+\"\\n \")])],1),_c('el-form-item',{staticClass:\"el-custom-form-item auth-page-url\",attrs:{\"label\":\"授权页面地址\",\"prop\":\"auth_url\",\"label-width\":_vm.labelWidth}},[_c('el-select',{staticClass:\"auth-url-selector\",attrs:{\"placeholder\":\"请选择\"},model:{value:(_vm.authUrlType),callback:function ($$v) {_vm.authUrlType=$$v},expression:\"authUrlType\"}},_vm._l((_vm.authUrlTypeOptions),function(item){return _c('el-option',{key:item.value,attrs:{\"label\":item.label,\"value\":item.value}})}),1),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.authUrlType === 1),expression:\"authUrlType === 1\"}]},[(_vm.actionType === 'edit')?[_c('el-form',{ref:\"authUrlForm\",attrs:{\"model\":_vm.appAuthConfigs,\"rules\":_vm.multiEndRules}},[_c('el-form-item',{staticClass:\"custom-form-item\",attrs:{\"prop\":\"wps_pc_auth_url\"}},[_c('el-input',{attrs:{\"placeholder\":\"请输入WPS PC客户端授权地址\"},model:{value:(_vm.appAuthConfigs.wps_pc_auth_url),callback:function ($$v) {_vm.$set(_vm.appAuthConfigs, \"wps_pc_auth_url\", $$v)},expression:\"appAuthConfigs.wps_pc_auth_url\"}})],1),_c('el-form-item',{staticClass:\"custom-form-item\",attrs:{\"prop\":\"auth_url\"}},[_c('el-input',{attrs:{\"placeholder\":\"请输入Web端授权地址\"},model:{value:(_vm.appAuthConfigs.auth_url),callback:function ($$v) {_vm.$set(_vm.appAuthConfigs, \"auth_url\", $$v)},expression:\"appAuthConfigs.auth_url\"}})],1),_c('el-form-item',{staticClass:\"custom-form-item\",attrs:{\"prop\":\"wps_mobile_auth_url\"}},[_c('el-input',{attrs:{\"placeholder\":\"请输入移动端授权地址\"},model:{value:(_vm.appAuthConfigs.wps_mobile_auth_url),callback:function ($$v) {_vm.$set(_vm.appAuthConfigs, \"wps_mobile_auth_url\", $$v)},expression:\"appAuthConfigs.wps_mobile_auth_url\"}})],1),_c('el-form-item',{staticClass:\"custom-form-item\",attrs:{\"prop\":\"h5_auth_url\"}},[_c('div',{staticClass:\"h5-input-wrapper\"},[_c('el-input',{staticClass:\"auth-url\",attrs:{\"placeholder\":\"请输入H5授权地址\"},model:{value:(_vm.appAuthConfigs.h5_auth_url),callback:function ($$v) {_vm.$set(_vm.appAuthConfigs, \"h5_auth_url\", $$v)},expression:\"appAuthConfigs.h5_auth_url\"}}),_c('el-input',{staticClass:\"h5-ua\",attrs:{\"placeholder\":\"默认UA: h5_sso_login\"},model:{value:(_vm.appAuthConfigs.h5_ua),callback:function ($$v) {_vm.$set(_vm.appAuthConfigs, \"h5_ua\", $$v)},expression:\"appAuthConfigs.h5_ua\"}})],1)])],1)]:[_c('ul',{staticClass:\"auth-url-list\"},[_c('li',{staticClass:\"auth-url-item\"},[_vm._v(\"PC客户端:\"+_vm._s(_vm.appAuthConfigs.wps_pc_auth_url))]),_c('li',{staticClass:\"auth-url-item\"},[_vm._v(\"Web端:\"+_vm._s(_vm.appAuthConfigs.auth_url))]),_c('li',{staticClass:\"auth-url-item\"},[_vm._v(\"移动端:\"+_vm._s(_vm.appAuthConfigs.wps_mobile_auth_url))]),_c('li',{staticClass:\"auth-url-item flex-box\"},[_c('p',{staticClass:\"url_info\"},[_vm._v(\"H5: \"+_vm._s(_vm.appAuthConfigs.h5_auth_url))]),_c('p',{staticClass:\"ua_info\"},[_vm._v(\"UA: \"+_vm._s(_vm.appAuthConfigs.h5_ua || (_vm.appAuthConfigs.h5_auth_url ? 'h5_sso_login' : '')))])])])]],2),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.authUrlType !== 1),expression:\"authUrlType !== 1\"}]},[(_vm.actionType === 'edit')?_c('el-input',{attrs:{\"placeholder\":\"请输入授权地址\",\"maxlength\":1000},model:{value:(_vm.appAuthConfigs.auth_url),callback:function ($$v) {_vm.$set(_vm.appAuthConfigs, \"auth_url\", $$v)},expression:\"appAuthConfigs.auth_url\"}}):_c('div',{staticClass:\"base-auth\"},[_vm._v(\"\\n \"+_vm._s(_vm.appAuthConfigs.auth_url)+\"\\n \")])],1)],1),_c('el-form-item',{attrs:{\"label\":\"重定向uri字段\",\"prop\":\"redirect_uri\",\"label-width\":_vm.labelWidth}},[(_vm.actionType === 'edit')?_c('el-input',{attrs:{\"placeholder\":\"请输入\",\"maxlength\":50},on:{\"input\":function($event){return _vm.inputValidHandle('redirect_uri',_vm.validRules['en.num.symbol'])}},model:{value:(_vm.appAuthConfigs.redirect_uri),callback:function ($$v) {_vm.$set(_vm.appAuthConfigs, \"redirect_uri\", $$v)},expression:\"appAuthConfigs.redirect_uri\"}}):[_vm._v(\"\\n \"+_vm._s(_vm.appAuthConfigs.redirect_uri)+\"\\n \")]],2),_c('el-form-item',{attrs:{\"label\":\"state字段\",\"prop\":\"state\",\"label-width\":_vm.labelWidth}},[(_vm.actionType === 'edit')?_c('el-input',{attrs:{\"placeholder\":\"请输入\",\"maxlength\":50},on:{\"input\":function($event){return _vm.inputValidHandle('state',_vm.validRules['en.num.symbol'])}},model:{value:(_vm.appAuthConfigs.state),callback:function ($$v) {_vm.$set(_vm.appAuthConfigs, \"state\", $$v)},expression:\"appAuthConfigs.state\"}}):[_vm._v(\"\\n \"+_vm._s(_vm.appAuthConfigs.state)+\"\\n \")]],2),_c('el-form-item',{attrs:{\"label\":\"授权码接口地址\",\"prop\":\"code_url\",\"label-width\":_vm.labelWidth}},[(_vm.actionType === 'edit')?_c('el-input',{attrs:{\"placeholder\":\"请输入\",\"maxlength\":1000},model:{value:(_vm.appAuthConfigs.code_url),callback:function ($$v) {_vm.$set(_vm.appAuthConfigs, \"code_url\", $$v)},expression:\"appAuthConfigs.code_url\"}}):[_vm._v(\"\\n \"+_vm._s(_vm.appAuthConfigs.code_url)+\"\\n \")]],2),_c('el-form-item',{attrs:{\"label\":\"授权码字段\",\"prop\":\"code\",\"label-width\":_vm.labelWidth}},[(_vm.actionType === 'edit')?_c('el-input',{attrs:{\"placeholder\":\"请输入\",\"maxlength\":50},on:{\"input\":function($event){return _vm.inputValidHandle('code',_vm.validRules['en.num.symbol'])}},model:{value:(_vm.appAuthConfigs.code),callback:function ($$v) {_vm.$set(_vm.appAuthConfigs, \"code\", $$v)},expression:\"appAuthConfigs.code\"}}):[_vm._v(\"\\n \"+_vm._s(_vm.appAuthConfigs.code)+\"\\n \")]],2),_c('el-form-item',{attrs:{\"label\":\"授权令牌接口地址\",\"prop\":\"access_token_url\",\"label-width\":_vm.labelWidth}},[(_vm.actionType === 'edit')?_c('el-input',{attrs:{\"placeholder\":\"请输入\",\"maxlength\":1000},model:{value:(_vm.appAuthConfigs.access_token_url),callback:function ($$v) {_vm.$set(_vm.appAuthConfigs, \"access_token_url\", $$v)},expression:\"appAuthConfigs.access_token_url\"}}):[_vm._v(\"\\n \"+_vm._s(_vm.appAuthConfigs.access_token_url)+\"\\n \")]],2),_c('el-form-item',{attrs:{\"label\":\"授权令牌字段\",\"prop\":\"access_token\",\"label-width\":_vm.labelWidth}},[(_vm.actionType === 'edit')?_c('el-input',{attrs:{\"placeholder\":\"请输入\",\"maxlength\":50},on:{\"input\":function($event){return _vm.inputValidHandle('access_token',_vm.validRules['en.num.symbol'])}},model:{value:(_vm.appAuthConfigs.access_token),callback:function ($$v) {_vm.$set(_vm.appAuthConfigs, \"access_token\", $$v)},expression:\"appAuthConfigs.access_token\"}}):[_vm._v(\"\\n \"+_vm._s(_vm.appAuthConfigs.access_token)+\"\\n \")]],2),_c('el-form-item',{attrs:{\"label\":\"用户标识字段\",\"prop\":\"union_id\",\"label-width\":_vm.labelWidth}},[(_vm.actionType === 'edit')?_c('el-input',{attrs:{\"placeholder\":\"请输入\",\"maxlength\":50},on:{\"input\":function($event){return _vm.inputValidHandle('union_id',_vm.validRules['en.num.symbol'])}},model:{value:(_vm.appAuthConfigs.union_id),callback:function ($$v) {_vm.$set(_vm.appAuthConfigs, \"union_id\", $$v)},expression:\"appAuthConfigs.union_id\"}}):[_vm._v(\"\\n \"+_vm._s(_vm.appAuthConfigs.union_id)+\"\\n \")]],2),_c('el-form-item',{attrs:{\"label\":\"用户昵称字段\",\"prop\":\"name\",\"label-width\":_vm.labelWidth}},[(_vm.actionType === 'edit')?_c('el-input',{attrs:{\"placeholder\":\"请输入\",\"maxlength\":50},on:{\"input\":function($event){return _vm.inputValidHandle('name',_vm.validRules['en.num.symbol'])}},model:{value:(_vm.appAuthConfigs.name),callback:function ($$v) {_vm.$set(_vm.appAuthConfigs, \"name\", $$v)},expression:\"appAuthConfigs.name\"}}):[_vm._v(\"\\n \"+_vm._s(_vm.appAuthConfigs.name)+\"\\n \")]],2),_c('el-form-item',{attrs:{\"label\":\"用户头像字段\",\"prop\":\"avatar\",\"label-width\":_vm.labelWidth}},[(_vm.actionType === 'edit')?_c('el-input',{attrs:{\"placeholder\":\"请输入\",\"maxlength\":50},on:{\"input\":function($event){return _vm.inputValidHandle('avatar',_vm.validRules['en.num.symbol'])}},model:{value:(_vm.appAuthConfigs.avatar),callback:function ($$v) {_vm.$set(_vm.appAuthConfigs, \"avatar\", $$v)},expression:\"appAuthConfigs.avatar\"}}):[_vm._v(\"\\n \"+_vm._s(_vm.appAuthConfigs.avatar)+\"\\n \")]],2),(!_vm.isPrivate)?[_c('div',{staticClass:\"line\"}),_c('div',{staticClass:\"block-title\"},[_vm._v(\"认证属性配置\\n \"),_c('el-tooltip',{attrs:{\"placement\":\"bottom-start\",\"effect\":\"light\"}},[_c('div',{staticClass:\"params_tips_wrap\",attrs:{\"slot\":\"content\"},slot:\"content\"},[_c('div',{staticClass:\"block-title\"},[_vm._v(\"认证属性\")]),_c('div',{staticClass:\"line\"}),_vm._l((_vm.propertyTips),function(item){return _c('div',{key:item.title,staticClass:\"item\"},[_c('p',{staticClass:\"item-title\"},[_vm._v(_vm._s(item.title))]),_c('p',{staticClass:\"item-content\"},[_vm._v(_vm._s(item.content))])])})],2),_c('i',{staticClass:\"el-icon-question\"})])],1),_c('el-form-item',{attrs:{\"label\":\"企业代码\",\"prop\":\"platform_code\",\"label-width\":_vm.labelWidth}},[(_vm.actionType === 'edit')?_c('el-input',{attrs:{\"placeholder\":\"请输入\",\"maxlength\":50},on:{\"input\":function($event){return _vm.inputValidHandle('platform_code',_vm.validRules['en.num.symbol'])}},model:{value:(_vm.appAuthConfigs.platform_code),callback:function ($$v) {_vm.$set(_vm.appAuthConfigs, \"platform_code\", $$v)},expression:\"appAuthConfigs.platform_code\"}}):[_vm._v(\"\\n \"+_vm._s(_vm.appAuthConfigs.platform_code)+\"\\n \")]],2),_c('el-form-item',{attrs:{\"label\":\"WPS绑定方式\",\"prop\":\"bind_mode\",\"label-width\":_vm.labelWidth}},[(_vm.actionType === 'edit')?_c('el-checkbox-group',{model:{value:(_vm.appAuthConfigs.bind_mode),callback:function ($$v) {_vm.$set(_vm.appAuthConfigs, \"bind_mode\", $$v)},expression:\"appAuthConfigs.bind_mode\"}},[_c('el-checkbox',{attrs:{\"label\":'phone'}},[_vm._v(\"手机登录\")]),_c('el-checkbox',{attrs:{\"label\":'qq'}},[_vm._v(\"QQ登录\")]),_c('el-checkbox',{attrs:{\"label\":'wechat'}},[_vm._v(\"微信登录\")])],1):[_vm._v(\"\\n \"+_vm._s(_vm.modeFormat)+\"\\n \")]],2)]:_vm._e(),_c('div',[(_vm.actionType==='view')?[_c('Button',{attrs:{\"type\":\"primary\"},on:{\"click\":function($event){_vm.actionType = 'edit'}}},[_vm._v(\"修改\")])]:[(_vm.isAppAdmin && !!_vm.originAppAuthConfigs)?_c('Button',{on:{\"click\":_vm.deleteNotice}},[_vm._v(\"删除\")]):_vm._e(),_c('Button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.save}},[_vm._v(\"保存\")])]],2)],2)],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Vue, Mixins } from 'vue-property-decorator'\nimport ContentLayout from '@/apps/open/layout/ContentLayout.vue'\nimport VerifyPhoneMixin from '@/apps/open/mixins/VerifyPhone'\nimport { EVerifyPhoneAction } from '@/apps/open/types'\nimport { deleteAppAuthConfigs } from '@/apps/open/services/app'\nimport { onRequestError } from '@/apps/open/utils'\nimport Button from '@components/Button'\nimport { priUrlReg } from '@/apps/open/constants'\n\n@Component({\n components: {\n ContentLayout,\n Button\n }\n})\nexport default class Auth extends Mixins(VerifyPhoneMixin) {\n actionType: string = 'edit'\n labelWidth: string = '150px'\n originAppAuthConfigs: any = null\n appAuthConfigs :any = {\n auth_type: 'oauth',\n platform_code: '',\n redirect_uri: '',\n state: '',\n code_url: '',\n access_token_url: '',\n auth_url: '',\n wps_pc_auth_url: '',\n wps_mobile_auth_url: '',\n h5_auth_url: '',\n bind_mode: ['phone'],\n app_id: '',\n third_app_key: '',\n code: '',\n access_token: '',\n union_id: '',\n name: '',\n avatar: ''\n }\n open_ssid = ''\n validRules: any = { 'en.num': /[^0-9a-zA-Z]/g, 'en.num.symbol': /[^0-9a-zA-Z!-~]/g, 'http.https': /^!(h|ht|htt|http|https)/ }\n loading: boolean = true\n oauthParamsTips: any[] = [\n { title: 'APPID', content: 'APPID是第三方应用的识别码' },\n { title: 'SECRET_KEY', content: 'SECRET_KEY是第三方应用的独立访问秘钥' },\n { title: '授权页面地址', content: '授权页面地址是第三方账号授权登录WPS时的第三方授权页面地址,可包含固定参数' },\n { title: '重定向uri字段(示例:redirect_uri)', content: '第三方授权页面回调地址字段名' },\n { title: 'state字段(示例:state)', content: '第三方授权页state参数字段名' },\n { title: '授权码接口地址', content: '第三方服务获取oauth code接口地址,可包含固定参数' },\n { title: '授权码字段(示例:oauth_code)', content: '临时的用户授权凭证,WPS用于换取第三方应用的授权令牌' },\n { title: '授权令牌接口地址', content: '第三方服务获取access_token接口地址,可包含固定参数' },\n { title: '授权令牌字段(示例:access_token)', content: '有时效的授权令牌凭证,WPS用于调用第三方应用的授权接口' },\n { title: '用户标识字段(示例:union_id)', content: '第三方应用的用户id字段,用户授权登录后,WPS才会获取' },\n { title: '用户昵称字段(示例:nickname)', content: '第三方应用的用户昵称字段,用户授权登录后,WPS才会获取' },\n { title: '用户头像字段(示例:avatar)', content: '第三方应用的用户头像字段,用户授权登录后,WPS才会获取' }\n ]\n propertyTips: any[] = [\n { title: '企业代码', content: '企业代码是用于第三方账号登录WPS的一种方式' },\n // { title: '单点登录UA关键字', content: '第三方应用触发单点登录WPS的UA关键字' },\n { title: 'WPS绑定方式', content: '第三方应用可以选择第三方账号首次登录WPS显示的绑定方式' }\n // { title: '加入企业行为', content: '第三方应用可以设置用户同步加入企业、异步加入企业' },\n // { title: '加入企业方式', content: '第三方应用可以设置用户加入企业的方式,2种方式:激活、认证' }\n ]\n\n authUrlType: number = 0;\n\n get authUrlTypeOptions () {\n return [{\n value: 0,\n label: '统一地址'\n },\n {\n value: 1,\n label: '各端地址'\n }]\n }\n\n get multiEndRules () {\n const urlReg = new RegExp(priUrlReg, 'i')\n const urlRule = this.isPrivate ? { pattern: urlReg, message: '请输入正确的地址' } : { type: 'url', message: '请输入正确的地址' }\n return {\n wps_pc_auth_url: [\n { required: true, message: `请输入PC客户端授权地址`, trigger: 'blur' },\n { min: 1, max: 1000, message: '长度在 1 到 1000 个字符', trigger: 'blur' },\n urlRule\n ],\n auth_url: [\n { required: true, message: `请输入Web端授权地址`, trigger: 'blur' },\n { min: 1, max: 1000, message: '长度在 1 到 1000 个字符', trigger: 'blur' },\n urlRule\n ],\n wps_mobile_auth_url: [\n { required: true, message: `请输入移动端授权地址`, trigger: 'blur' },\n { min: 1, max: 1000, message: '长度在 1 到 1000 个字符', trigger: 'blur' },\n urlRule\n ],\n h5_auth_url: [\n { required: true, message: `请输入H5授权地址`, trigger: 'blur' },\n { min: 1, max: 1000, message: '长度在 1 到 1000 个字符', trigger: 'blur' },\n urlRule\n ]\n }\n }\n\n get rules () {\n const urlReg = new RegExp(priUrlReg, 'i')\n const urlRule = this.isPrivate ? { pattern: urlReg, message: '请输入正确的地址' } : { type: 'url', message: '请输入正确的地址' }\n return {\n platform_code: [\n { required: true, message: `请输入企业代码`, trigger: 'blur' }, { min: 1, max: 50, message: '长度在 1 到 50 个字符', trigger: 'blur' }\n ],\n // h5_ua: [\n // { required: true, message: `请输入单点登录UA`, trigger: 'blur' }, { min: 1, max: 30, message: '长度在 1 到 30 个字符', trigger: 'blur' }\n // ],\n bind_mode: [\n { type: 'array', required: true, message: `请至少选择一个WPS绑定方式`, trigger: 'change' }\n ],\n third_app_id: [\n { required: true, message: `APPID`, trigger: 'blur' }, { min: 1, max: 50, message: '长度在 1 到 50 个字符', trigger: 'blur' }\n ],\n auth_url: [\n this.authUrlType === 0 && { required: true, message: `授权页面地址`, trigger: 'blur' },\n { min: 1, max: 1000, message: '长度在 1 到 1000 个字符', trigger: 'blur' },\n this.authUrlType === 1 ? { validator: this.verifyAuthUrl } : urlRule\n ],\n redirect_uri: [\n { required: true, message: `重定向uri字段`, trigger: 'blur' }, { min: 1, max: 50, message: '长度在 1 到 50 个字符', trigger: 'blur' }\n ],\n state: [\n { required: true, message: `state字段`, trigger: 'blur' }, { min: 1, max: 50, message: '长度在 1 到 50 个字符', trigger: 'blur' }\n ],\n code_url: [\n { required: true, message: `授权码接口地址`, trigger: 'blur' }, { min: 1, max: 1000, message: '长度在 1 到 1000 个字符', trigger: 'blur' }, urlRule\n ],\n access_token_url: [\n { required: true, message: `授权令牌接口地址`, trigger: 'blur' }, { min: 1, max: 1000, message: '长度在 1 到 1000 个字符', trigger: 'blur' }, urlRule\n ],\n third_app_key: [\n { required: true, message: `SECRET_KEY`, trigger: 'blur' }, { min: 1, max: 100, message: '长度在 1 到 100 个字符', trigger: 'blur' }\n ],\n code: [\n { required: true, message: `授权码字段`, trigger: 'blur' }, { min: 1, max: 50, message: '长度在 1 到 50 个字符', trigger: 'blur' }\n ],\n access_token: [\n { required: true, message: `授权令牌字段`, trigger: 'blur' }, { min: 1, max: 50, message: '长度在 1 到 50 个字符', trigger: 'blur' }\n ],\n union_id: [\n { required: true, message: `用户标识字段`, trigger: 'blur' }, { min: 1, max: 50, message: '长度在 1 到 50 个字符', trigger: 'blur' }\n ],\n name: [\n { required: true, message: `用户昵称字段`, trigger: 'blur' }, { min: 1, max: 50, message: '长度在 1 到 50 个字符', trigger: 'blur' }\n ],\n avatar: [\n { required: true, message: `用户头像字段`, trigger: 'blur' }, { min: 1, max: 50, message: '长度在 1 到 50 个字符', trigger: 'blur' }\n ]\n }\n }\n\n get isPrivate () {\n return this.$store.getters['isPrivate']\n }\n\n get appId () {\n return this.$route.params.id\n }\n get isEdit () {\n return !!this.appId\n }\n get isAppAdmin () {\n return this.$store.getters['isAppAdmin']\n }\n get authFromElement (): any {\n return this.$refs.authFrom as Vue & { offsetWidth: number }\n }\n get modeFormat () {\n const map:any = {\n wechat: '微信登录',\n qq: 'QQ登录',\n phone: '手机登录'\n }\n return this.appAuthConfigs.bind_mode.map((i:any) => {\n return map[i]\n }).join(',')\n }\n\n async mounted () {\n await this.$store.dispatch('Admin/GET_ADMIN_LIST')\n await this.loadAppAuthConfigs()\n }\n\n inputValidHandle (prop:string, rule:string) {\n this.appAuthConfigs[prop] = this.appAuthConfigs[prop].replace(rule, '')\n }\n\n handleAuthUrlPreSave () {\n if (this.authUrlType === 0) {\n this.appAuthConfigs.wps_pc_auth_url = ''\n this.appAuthConfigs.h5_auth_url = ''\n this.appAuthConfigs.wps_mobile_auth_url = ''\n }\n }\n\n async save () {\n if (await this.validateFrom()) {\n this.handleAuthUrlPreSave()\n if (!this.originAppAuthConfigs) {\n try {\n await this.$store.dispatch('App/SAVE_APP_AUTH_CONFIGS', this.formatOuterConfigs(this.appAuthConfigs))\n this.actionType = 'view'\n this.$message.success('创建成功')\n await this.loadAppAuthConfigs()\n } catch (error) {\n onRequestError(error)\n }\n } else {\n try {\n await this.$store.dispatch('App/UPDATE_APP_AUTH_CONFIGS', this.formatOuterConfigs(this.appAuthConfigs))\n this.actionType = 'view'\n this.$message.success('修改成功')\n await this.loadAppAuthConfigs()\n } catch (error) {\n onRequestError(error)\n }\n }\n }\n }\n\n verifyAuthUrl (rule: unknown, value: string, cb: Function) {\n this.$refs.authUrlForm && (this.$refs.authUrlForm as Vue & {validate: Function}).validate((valid: boolean, info: object) => {\n if (valid) {\n cb()\n }\n })\n }\n\n validateFrom () {\n return new Promise((resolve) => {\n this.authFromElement.validate((a:boolean, b:any) => {\n resolve(a)\n })\n })\n }\n\n // 加载配置信息\n async loadAppAuthConfigs () {\n try {\n await this.$store.dispatch('App/GET_APP_AUTH_CONFIGS', this.appId)\n const data = this.$store.getters['App/appAuthConfigs']\n this.actionType = 'view'\n this.originAppAuthConfigs = data\n this.formatInnerConfigs()\n } catch (error) {\n this.originAppAuthConfigs = null\n if (error.message === 'auth config not exists') {\n this.actionType = 'edit'\n } else {\n !this.isPrivate && onRequestError(error)\n this.actionType = 'view'\n }\n }\n this.loading = false\n }\n\n // 格式处理\n formatInnerConfigs () {\n this.appAuthConfigs = Object.assign({}, this.originAppAuthConfigs, this.originAppAuthConfigs.oauth_cfg)\n this.appAuthConfigs.bind_mode = this.appAuthConfigs.bind_mode.replace(/\\s+/g, '').split(',')\n }\n\n // 反格式处理\n formatOuterConfigs (data: any) {\n const oAuthConfigs = ['third_app_id', 'third_app_key', 'redirect_uri', 'auth_url', 'wps_mobile_auth_url', 'wps_pc_auth_url', 'h5_auth_url', 'access_token_url', 'access_token', 'code', 'state', 'code_url', 'union_id', 'name', 'avatar']\n const authConfigs = ['platform_code', 'h5_ua', 'auth_type', 'bind_mode']\n\n let v = { oauth_cfg: {} as any } as any\n for (const key in data) {\n if (oAuthConfigs.includes(key)) {\n v.oauth_cfg[key] = data[key]\n } else if (authConfigs.includes(key)) {\n v[key] = data[key]\n }\n }\n\n v.app_id = this.appId\n v.bind_mode = v.bind_mode.join(',')\n\n return v\n }\n\n deleteNotice () {\n this.isPrivate ? this.deleteConfirm('') : this.verifyPhone({\n title: '删除认证方式',\n action: EVerifyPhoneAction.DELETE_CERTIFICATION_WAY,\n cb: this.deleteConfirm\n })\n }\n\n deleteConfirm (open_ssid:string) {\n this.open_ssid = open_ssid\n const dialogBody = `\n
\n
确定要删除认证方式吗?
\n
认证方式删除后立即生效,认证信息将被清空,第三方账号将无法通过该认证方式登录WPS,请谨慎操作
\n
\n `\n this.$dialog.show({\n title: '删除认证方式',\n body: dialogBody,\n buttons: [\n { text: '取消' },\n { text: '确定',\n type: 'primary',\n fn: this.deleteAuth\n }\n ]\n })\n }\n\n async deleteAuth () {\n try {\n await deleteAppAuthConfigs(this.appId, this.open_ssid)\n this.$dialog.close()\n this.$message.success('删除成功')\n await this.loadAppAuthConfigs()\n } catch (error) {\n onRequestError(error)\n }\n }\n}\n","import mod from \"-!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Auth.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Auth.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./Auth.vue?vue&type=template&id=4bcae50c&scoped=true&\"\nimport script from \"./Auth.vue?vue&type=script&lang=ts&\"\nexport * from \"./Auth.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./Auth.vue?vue&type=style&index=0&id=4bcae50c&lang=scss&scoped=true&\"\nimport style1 from \"./Auth.vue?vue&type=style&index=1&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"4bcae50c\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"open-content\"},[_c('div',{staticClass:\"open-content-header\"},[_c('span',{staticClass:\"open-content-title\"},[_vm._v(_vm._s(_vm.title))]),_vm._t(\"after-title\")],2),_c('div',{staticClass:\"open-content-body\"},[_vm._t(\"default\")],2)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Vue, Prop } from 'vue-property-decorator'\n\n@Component\nexport default class ContentLayout extends Vue {\n @Prop()\n title?: string\n}\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ContentLayout.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ContentLayout.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./ContentLayout.vue?vue&type=template&id=155ecb03&scoped=true&\"\nimport script from \"./ContentLayout.vue?vue&type=script&lang=ts&\"\nexport * from \"./ContentLayout.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./ContentLayout.vue?vue&type=style&index=0&id=155ecb03&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"155ecb03\",\n null\n \n)\n\nexport default component.exports","import mod from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/index.js??ref--8-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/lib/loader.js??ref--8-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ContentLayout.vue?vue&type=style&index=0&id=155ecb03&lang=scss&scoped=true&\"; export default mod; export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/index.js??ref--8-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/lib/loader.js??ref--8-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ContentLayout.vue?vue&type=style&index=0&id=155ecb03&lang=scss&scoped=true&\"","import mod from \"-!../../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../node_modules/css-loader/index.js??ref--8-oneOf-1-1!../../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../../../node_modules/sass-loader/lib/loader.js??ref--8-oneOf-1-3!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Auth.vue?vue&type=style&index=1&lang=scss&\"; export default mod; export * from \"-!../../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../node_modules/css-loader/index.js??ref--8-oneOf-1-1!../../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../../../node_modules/sass-loader/lib/loader.js??ref--8-oneOf-1-3!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Auth.vue?vue&type=style&index=1&lang=scss&\"","export type OPTION_VALUE = string | number\n\nexport interface OPTION {\n value: OPTION_VALUE,\n label: string,\n children?: OPTION[]\n}\n\nexport interface IUser {\n id: number,\n name: string,\n avatar: string,\n phone: string,\n email: string,\n checked?: boolean\n}\n\nexport enum EVerifyPhoneAction {\n SIGNUP_DEV = 'sms_signup_dev', // 申请服务商\n RESET_APPKEY = 'sms_user_reset_app_key', // 重置APPKEY\n VIEW_APPKEY = 'sms_user_view_app_key', // 查看APPKEY\n TRANSFER_SUPER_ADMIN = 'sms_trans_admin', // 转让超管\n DELETE_APP = 'sms_user_delete_app', // 删除应用\n DELETE_CERTIFICATION_WAY = 'sms_user_delete_certification_way', // 删除应用认证方式信息\n}\n","import mod from \"-!../../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../node_modules/css-loader/index.js??ref--8-oneOf-1-1!../../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../../../node_modules/sass-loader/lib/loader.js??ref--8-oneOf-1-3!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Auth.vue?vue&type=style&index=0&id=4bcae50c&lang=scss&scoped=true&\"; export default mod; export * from \"-!../../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../node_modules/css-loader/index.js??ref--8-oneOf-1-1!../../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../../../node_modules/sass-loader/lib/loader.js??ref--8-oneOf-1-3!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Auth.vue?vue&type=style&index=0&id=4bcae50c&lang=scss&scoped=true&\"","import mod from \"-!../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../node_modules/css-loader/index.js??ref--8-oneOf-1-1!../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../../node_modules/sass-loader/lib/loader.js??ref--8-oneOf-1-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VerifyPhone.vue?vue&type=style&index=0&id=26306562&lang=scss&scoped=true&\"; export default mod; export * from \"-!../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../node_modules/css-loader/index.js??ref--8-oneOf-1-1!../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../../node_modules/sass-loader/lib/loader.js??ref--8-oneOf-1-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VerifyPhone.vue?vue&type=style&index=0&id=26306562&lang=scss&scoped=true&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:\"tip\"},[_vm._v(_vm._s(_vm.tip))]),(_vm.phone)?[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.captchaSuccess),expression:\"!captchaSuccess\"}],staticClass:\"verify\",attrs:{\"id\":\"captcha\"}}),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.captchaSuccess),expression:\"captchaSuccess\"}],staticClass:\"verify\"},[_c('el-input',{staticClass:\"msg-input\",attrs:{\"placeholder\":\"请输入短信验证码\",\"maxlength\":\"6\"},on:{\"input\":_vm.changeVerifyCode},model:{value:(_vm.verifyCode),callback:function ($$v) {_vm.verifyCode=$$v},expression:\"verifyCode\"}}),_c('el-button',{staticClass:\"send\",attrs:{\"type\":\"text\",\"disabled\":_vm.sendButtonDisable},on:{\"click\":_vm.sendVerifyCode}},[_vm._v(_vm._s(_vm.sendButtonText))])],1)]:[_c('div',{staticClass:\"empty-phone\"},[_vm._v(\"\\n 您暂未绑定手机号码,请前往\"),_c('Button',{attrs:{\"type\":\"text\",\"url\":_vm.USER_CENTER_URL}},[_vm._v(\"个人中心\")]),_vm._v(\"进行绑定\\n \")],1)],_c('div',{staticClass:\"open-dialog-footer\"},[_c('Button',{on:{\"click\":_vm.onCancel}},[_vm._v(\"取消\")]),_c('Button',{attrs:{\"type\":\"primary\",\"disabled\":_vm.disabledSubmit},on:{\"click\":_vm.submit}},[_vm._v(_vm._s(_vm.okText))])],1)],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Vue, Prop, Watch } from 'vue-property-decorator'\nimport { sendSms, verifyPhone } from '@/apps/open/services/user'\nimport { USER_CENTER_URL } from '@/apps/open/constants'\nimport Button from '@/apps/open/components/Button'\n\ndeclare const window: any\ndeclare const smartCaptcha: any\n\n@Component({\n componentName: 'VerifyPhoneDialogBody',\n data: () => ({\n USER_CENTER_URL\n }),\n components: {\n Button\n }\n})\nexport default class VerifyPhoneDialogBody extends Vue {\n @Prop()\n phone!: string\n\n @Prop()\n action!: string\n\n @Prop({\n default: '确定'\n })\n okText!: string\n\n @Prop()\n onCancel!: Function\n\n @Prop()\n verifySuccess!: Function\n\n captchaSuccess = false\n verifyCode = ''\n sendButtonText = '发送验证码'\n sendButtonDisable = false\n time = 60\n timer: any\n\n submitting = false\n\n get disabledSubmit () {\n return this.verifyCode.length < 6 || this.submitting\n }\n\n get tip () {\n return this.captchaSuccess ? `请输入${this.phone}收到的验证码` : '请先完成安全验证'\n }\n\n destroyed () {\n clearInterval(this.timer)\n window.CaptchaSuccess = null\n }\n\n timerFun () {\n if (this.time > 0) {\n this.sendButtonText = `重新发送(${this.time})`\n this.time--\n } else {\n clearInterval(this.timer)\n window.resetSmartCaptcha()\n this.time = 60\n this.sendButtonText = '重新发送'\n this.sendButtonDisable = false\n }\n }\n\n sendVerifyCode () {\n if (!window.CaptchaSuccess) {\n this.$message.warning('请点击智能验证按钮')\n return\n }\n let params: any = {\n action: this.action,\n aliyun_session: window.CaptchaSuccess.sessionId,\n aliyun_scene: window.NVC_Opt.scene,\n aliyun_token: window.CaptchaSuccess.token,\n aliyun_sig: window.CaptchaSuccess.sig,\n aliyun_appkey: window.NVC_Opt.appkey\n }\n sendSms(params)\n .then(() => {\n this.$message.info('验证码已发送')\n this.sendButtonDisable = true\n this.timer = setInterval(this.timerFun, 1000)\n }).catch((error) => {\n if (RegExp('SMSLimitReached').test(error.message)) {\n this.$message.error('验证码发送次数已超过限制,请明天再试')\n } else if (error.message === 'frequency limitation in 60s') {\n this.$message.error('验证码获取太频繁,请稍后重试')\n } else {\n this.$message.error(error.message)\n }\n })\n }\n\n submit () {\n let params = {\n captcha: this.verifyCode,\n action: this.action\n }\n this.submitting = true\n verifyPhone(params)\n .then((res) => {\n this.verifySuccess(res.data.open_ssid)\n }).catch((error) => {\n switch (error.message) {\n case 'invalid verify code':\n this.$message.error('验证码不正确,请重新输入')\n break\n case 'verify code not exists.':\n this.$message.error('验证码已失效,请重新获取')\n break\n default:\n this.$message.error(error.message)\n break\n }\n }).finally(() => {\n this.submitting = false\n })\n }\n\n mounted () {\n if (this.phone) {\n this.loadCaptcha()\n }\n }\n\n loadCaptcha () {\n const _this = this\n var ic = new smartCaptcha({\n renderTo: '#captcha',\n width: '100%',\n success: function (data: any) {\n _this.captchaSuccess = true\n window.CaptchaSuccess = {\n token: window.NVC_Opt.token,\n sessionId: data.sessionId,\n sig: data.sig\n }\n }\n })\n window.resetSmartCaptcha = function () {\n _this.captchaSuccess = false\n _this.verifyCode = ''\n window.CaptchaSuccess = null\n ic.reset()\n }\n ic.init()\n }\n\n changeVerifyCode () {\n this.verifyCode = this.verifyCode.replace(/\\D/g, '')\n }\n}\n","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VerifyPhone.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VerifyPhone.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./VerifyPhone.vue?vue&type=template&id=26306562&scoped=true&\"\nimport script from \"./VerifyPhone.vue?vue&type=script&lang=ts&\"\nexport * from \"./VerifyPhone.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./VerifyPhone.vue?vue&type=style&index=0&id=26306562&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"26306562\",\n null\n \n)\n\nexport default component.exports","import { Component, Vue } from 'vue-property-decorator'\nimport VerifyPhoneDialogBody from '@/apps/open/components/DialogBodys/VerifyPhone.vue'\nimport { EVerifyPhoneAction } from '@/apps/open/types'\n\ninterface IVerifyProps {\n title?: string\n okBtn?: string\n action: EVerifyPhoneAction\n cb: Function\n}\n\n@Component\nexport default class VerifyPhoneMixin extends Vue {\n get userInfo () {\n return this.$store.getters['User/userInfo']\n }\n\n verifyPhone ({ title = '安全验证', action, okBtn = '下一步', cb }: IVerifyProps) {\n this.$dialog.show({\n title: title,\n width: '400px',\n body: VerifyPhoneDialogBody,\n bodyProps: {\n phone: this.userInfo.phone,\n action,\n okText: okBtn,\n onCancel: this.$dialog.close,\n verifySuccess: cb\n }\n })\n }\n}\n"],"sourceRoot":""}