Commit c848da25 by 无尘

fix: 修改国家码

parent 40b426c0
.input-line-cell[data-v-94ae41c0]{position:relative;display:inline-block}.w-92[data-v-94ae41c0]{width:92px}.el-input-group[data-v-94ae41c0] .el-input-group__prepend{background:#fff}.w-340[data-v-94ae41c0]{width:340px}.w-340[data-v-94ae41c0] .el-input__inner{font-size:14px;color:#fff;background-color:hsla(0,0%,100%,.1)}.el-input[data-v-94ae41c0] .el-input__inner{font-size:14px;color:#606266;background-color:hsla(0,0%,100%,.1)}.el-input.is-disabled[data-v-94ae41c0]{opacity:.5}.el-input .is-disabled[data-v-94ae41c0] .el-input__inner{font-size:14px;color:#fff;background-color:hsla(0,0%,100%,.1)}.m-b-20[data-v-d68298fc]{margin-bottom:20px}.m-l-20[data-v-0e041bb7]{margin-left:20px}.common-bottom-border[data-v-0e041bb7]{cursor:pointer;padding-bottom:2px;border-bottom:1px dashed #2f54eb}.app-market-body[data-v-0e041bb7]{min-height:100%;background:#fff;padding:20px}.app-market-body .app-market-list[data-v-0e041bb7]{width:100%;min-height:119px;margin-top:22px;background:#f5f7fa;padding:18px 26px;-webkit-box-sizing:border-box;box-sizing:border-box}.app-market-body .app-market-list .el-form-item[data-v-0e041bb7]{margin-bottom:10px}
\ No newline at end of file
.input-line-cell[data-v-097fcda5]{position:relative;display:inline-block}.w-92[data-v-097fcda5]{width:92px}.el-input-group[data-v-097fcda5] .el-input-group__prepend{background:#fff}.w-340[data-v-097fcda5]{width:340px}.w-340[data-v-097fcda5] .el-input__inner{font-size:14px;color:#fff;background-color:hsla(0,0%,100%,.1)}.el-input[data-v-097fcda5] .el-input__inner{font-size:14px;color:#606266;background-color:hsla(0,0%,100%,.1)}.el-input.is-disabled[data-v-097fcda5]{opacity:.5}.el-input .is-disabled[data-v-097fcda5] .el-input__inner{font-size:14px;color:#fff;background-color:hsla(0,0%,100%,.1)}.m-b-20[data-v-d68298fc]{margin-bottom:20px}.m-l-20[data-v-0e041bb7]{margin-left:20px}.common-bottom-border[data-v-0e041bb7]{cursor:pointer;padding-bottom:2px;border-bottom:1px dashed #2f54eb}.app-market-body[data-v-0e041bb7]{min-height:100%;background:#fff;padding:20px}.app-market-body .app-market-list[data-v-0e041bb7]{width:100%;min-height:119px;margin-top:22px;background:#f5f7fa;padding:18px 26px;-webkit-box-sizing:border-box;box-sizing:border-box}.app-market-body .app-market-list .el-form-item[data-v-0e041bb7]{margin-bottom:10px}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-ec50fba6"],{"06c5":function(t,e,a){},"16d4":function(t,e,a){"use strict";var o=a("06c5"),n=a.n(o);n.a},"4ca5":function(t,e,a){},"53b1":function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-market-body"},[a("div",{staticClass:"app-market-account"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"绑定服务市场账号后可购买应用。购买信息在服务市场可查看。",placement:"top-start"}},[a("span",{staticClass:"font-16 color-303133 font-w-600 common-bottom-border"},[t._v("服务市场账号")])]),t.marketAccount.accountId?t._e():a("el-button",{staticClass:"m-l-20",attrs:{type:"primary"},on:{click:t.addAcount}},[t._v("添加")])],1),t.marketAccount.accountId?a("div",{staticClass:"app-market-list"},[a("el-form",{ref:"form",attrs:{"label-width":"120px"}},[a("el-form-item",{attrs:{label:"账号"}},[t._v("\n "+t._s(t.marketAccount.accountId||"--")+"\n ")]),a("el-form-item",{attrs:{label:"绑定时间"}},[t._v("\n "+t._s(t._f("formatTimeStamp")(t.marketAccount.bindTime))+" "+t._s(t.marketAccount.bindTime?"":"--")+"\n ")]),a("el-form-item",{attrs:{label:"绑定人"}},[t._v("\n "+t._s(t.marketAccount.bindName||"--")+"\n ")])],1)],1):t._e(),t.showDialog?a("add-market-dialog",{on:{closeMarket:t.closeMarket}}):t._e()],1)},n=[],i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:"绑定服务市场账号",visible:t.dialogVisible,width:"600px","before-close":t.handleClose},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("div",{},[a("el-form",{ref:"ruleForm",attrs:{model:t.marketForm,rules:t.rules,"label-width":"80px"}},[a("el-form-item",{attrs:{label:"手机号",prop:"phoneNumber"}},[a("country-mobile",{attrs:{"nation-code":t.marketForm.nationCode,"input-width":400,"limit-class":"limit-color",holder:"请输入手机号"},on:{"update:nationCode":function(e){return t.$set(t.marketForm,"nationCode",e)},"update:nation-code":function(e){return t.$set(t.marketForm,"nationCode",e)},checkPhoneNum:t.checkPhoneNum},model:{value:t.marketForm.phoneNumber,callback:function(e){t.$set(t.marketForm,"phoneNumber",e)},expression:"marketForm.phoneNumber"}})],1),a("el-form-item",{attrs:{label:"密码",prop:"password"}},[a("el-input",{staticStyle:{width:"400px"},attrs:{placeholder:"请输入密码",maxlength:"16"},model:{value:t.marketForm.password,callback:function(e){t.$set(t.marketForm,"password",e)},expression:"marketForm.password"}})],1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:t.handleClose}},[t._v("取消")]),a("el-button",{attrs:{type:"primary",loading:t.loadBtn},on:{click:function(e){return t.submitForm("ruleForm")}}},[t._v("确认")])],1)])},r=[],l=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{class:["input-line-cell",t.limitClass],style:{width:t.inputWidth+"px"}},[a("el-input",{style:{width:t.inputWidth+"px"},attrs:{maxlength:"20",disabled:t.disflag,placeholder:t.holder},on:{blur:function(e){return t.inputBlur()}},nativeOn:{keyup:function(e){return function(e){return t.toInput(e)}(e)}},model:{value:t.itemValue,callback:function(e){t.itemValue=e},expression:"itemValue"}},[a("el-select",{staticClass:"w-92",attrs:{slot:"prepend",disabled:t.disflag},on:{change:t.changeCode},slot:"prepend",model:{value:t.selCode,callback:function(e){t.selCode=e},expression:"selCode"}},t._l(t.nationCodeList,(function(e,o){return a("el-option",{key:o+"option",attrs:{label:"+"+e.nationCode,value:e.nationCode}},[t._v(t._s(e.name+" +"+e.nationCode))])})),1)],1)],1)},s=[],c=(a("a481"),a("c5f6"),a("e230")),u=c["a"].getNationCode,d={name:"CountryMobile",props:{value:{type:[String,Number],default:""},nationCode:{type:[String,Number],default:"86"},inputWidth:{type:Number,default:167},holder:{type:String,default:"请输入"},disflag:{type:Boolean,default:!1},limitClass:{type:String,default:""}},data:function(){return{itemValue:this.value,selCode:this.nationCode||"86",nationCodeList:[]}},mounted:function(){var t=this;t.getNationalData(),t.itemValue=t.value||"",t.selCode=t.nationCode||"86"},methods:{changeCode:function(){var t=this;t.$emit("update:nationCode",t.selCode),t.$emit("input",t.itemValue),t.$emit("checkPhoneNum")},toInput:function(t){var e=this;e.itemValue=t.target.value.replace(/[^0-9]/gi,""),e.$emit("input",e.itemValue)},inputBlur:function(){var t=this;t.$emit("input",t.itemValue)},getNationalData:function(){var t=this;u({}).then((function(e){t.nationCodeList=e.result||[]})).catch((function(t){}))}},watch:{value:function(t,e){var a=this;a.itemValue=t||""},nationCode:function(t,e){var a=this;a.selCode=t||"86"}}},m=d,p=(a("16d4"),a("2877")),f=Object(p["a"])(m,l,s,!1,null,"94ae41c0",null),h=f.exports,b=a("d157"),v=a("8e83"),k=a("5b4e"),g=a("a689"),C=a.n(g),w=v["a"].addMarketAccount,A={name:"AddMarketDialog",components:{countryMobile:h},data:function(){var t=this,e=function(e,a,o){if(""===a)o(new Error("请输入手机号"));else{var n=new C.a("+"+t.marketForm.nationCode+a);n.isValid()&&n.isMobile()?o():o(new Error("手机号格式不正确"))}};return{dialogVisible:!0,loadBtn:!1,marketForm:{nationCode:"86",phoneNumber:"",password:""},rules:{phoneNumber:[{required:!0,validator:e,trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"}]}}},methods:{checkPhoneNum:function(){var t=this;t.$refs["ruleForm"].validate((function(t){if(t)return!1}))},submitForm:Object(b["a"])((function(t){var e=this;e.$refs[t].validate((function(t){t&&e.postSave()}))}),300),postSave:function(){var t=this;t.loadBtn=!0;var e=t.marketForm,a=e.phoneNumber,o=e.nationCode,n=e.password,i={phoneNumber:a,nationCode:o,password:n};w(i).then((function(e){t.loadBtn=!1,"0000"==e.code?(k["a"].showmsg("绑定成功","success"),t.$refs["ruleForm"].resetFields(),t.$emit("closeMarket",!0)):k["a"].showmsg(e.message||"未知错误","warning")})).catch((function(e){t.loadBtn=!1}))},handleClose:function(){var t=this;t.$emit("closeMarket")}},watch:{}},_=A,F=(a("d6a1"),Object(p["a"])(_,i,r,!1,null,"d68298fc",null)),N=F.exports,y=v["a"].getMarketAccount,M={name:"",components:{AddMarketDialog:N},data:function(){return{wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",marketAccount:{accountId:"",bindTime:"",bindName:""},loadRefesh:!1,showDialog:!1}},mounted:function(){var t=this;t.getMarket(),this.$emit("showTab","/app-market")},methods:{addAcount:function(){var t=this;t.showDialog=!0},closeMarket:function(t){var e=this;e.showDialog=!1,t&&e.getMarket()},getMarket:function(){var t=this,e={};y(e).then((function(e){e.result||(t.marketAccount=e.result||{})})).catch((function(t){}))}},watch:{}},$=M,x=(a("dd83"),Object(p["a"])($,o,n,!1,null,"0e041bb7",null));e["default"]=x.exports},"8e83":function(t,e,a){"use strict";var o=a("71f6"),n={getAppList:"/application-list",getAppDetail:"/application-detail",getMarketAccount:"/get-account-info",refreshMarketAccount:"/refesh-account-info",addMarketAccount:{url:"/bind-service-account",method:"post",useFormData:!0,useIntercept:!1},getAuthAppDetail:"/get-application-info",getAppAuthInfo:"/right-list",postAuthRights:"/oauth/authorize",postPhoneCode:{url:"/send-code",method:"post",useFormData:!0,useIntercept:!1},checkCode:{url:"/validate-code",method:"post",useFormData:!0,useIntercept:!1}};e["a"]=Object(o["a"])(n,"/hb-manage-web")},d6a1:function(t,e,a){"use strict";var o=a("f841"),n=a.n(o);n.a},dd83:function(t,e,a){"use strict";var o=a("4ca5"),n=a.n(o);n.a},f841:function(t,e,a){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f8b43f16"],{"4ca5":function(t,e,a){},"53b1":function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-market-body"},[a("div",{staticClass:"app-market-account"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"绑定服务市场账号后可购买应用。购买信息在服务市场可查看。",placement:"top-start"}},[a("span",{staticClass:"font-16 color-303133 font-w-600 common-bottom-border"},[t._v("服务市场账号")])]),t.marketAccount.accountId?t._e():a("el-button",{staticClass:"m-l-20",attrs:{type:"primary"},on:{click:t.addAcount}},[t._v("添加")])],1),t.marketAccount.accountId?a("div",{staticClass:"app-market-list"},[a("el-form",{ref:"form",attrs:{"label-width":"120px"}},[a("el-form-item",{attrs:{label:"账号"}},[t._v("\n "+t._s(t.marketAccount.accountId||"--")+"\n ")]),a("el-form-item",{attrs:{label:"绑定时间"}},[t._v("\n "+t._s(t._f("formatTimeStamp")(t.marketAccount.bindTime))+" "+t._s(t.marketAccount.bindTime?"":"--")+"\n ")]),a("el-form-item",{attrs:{label:"绑定人"}},[t._v("\n "+t._s(t.marketAccount.bindName||"--")+"\n ")])],1)],1):t._e(),t.showDialog?a("add-market-dialog",{on:{closeMarket:t.closeMarket}}):t._e()],1)},n=[],i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:"绑定服务市场账号",visible:t.dialogVisible,width:"600px","before-close":t.handleClose},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("div",{},[a("el-form",{ref:"ruleForm",attrs:{model:t.marketForm,rules:t.rules,"label-width":"80px"}},[a("el-form-item",{attrs:{label:"手机号",prop:"phoneNumber"}},[a("country-mobile",{attrs:{"nation-code":t.marketForm.nationCode,"input-width":400,"limit-class":"limit-color",holder:"请输入手机号"},on:{"update:nationCode":function(e){return t.$set(t.marketForm,"nationCode",e)},"update:nation-code":function(e){return t.$set(t.marketForm,"nationCode",e)},checkPhoneNum:t.checkPhoneNum},model:{value:t.marketForm.phoneNumber,callback:function(e){t.$set(t.marketForm,"phoneNumber",e)},expression:"marketForm.phoneNumber"}})],1),a("el-form-item",{attrs:{label:"密码",prop:"password"}},[a("el-input",{staticStyle:{width:"400px"},attrs:{placeholder:"请输入密码",maxlength:"16"},model:{value:t.marketForm.password,callback:function(e){t.$set(t.marketForm,"password",e)},expression:"marketForm.password"}})],1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:t.handleClose}},[t._v("取消")]),a("el-button",{attrs:{type:"primary",loading:t.loadBtn},on:{click:function(e){return t.submitForm("ruleForm")}}},[t._v("确认")])],1)])},r=[],l=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{class:["input-line-cell",t.limitClass],style:{width:t.inputWidth+"px"}},[a("el-input",{style:{width:t.inputWidth+"px"},attrs:{maxlength:"20",disabled:t.disflag,placeholder:t.holder},on:{blur:function(e){return t.inputBlur()}},nativeOn:{keyup:function(e){return function(e){return t.toInput(e)}(e)}},model:{value:t.itemValue,callback:function(e){t.itemValue=e},expression:"itemValue"}},[a("el-select",{staticClass:"w-92",attrs:{slot:"prepend",disabled:t.disflag},on:{change:t.changeCode},slot:"prepend",model:{value:t.selCode,callback:function(e){t.selCode=e},expression:"selCode"}},t._l(t.nationCodeList,(function(e,o){return a("el-option",{key:o+"option",attrs:{label:"+"+e.nationCode,value:e.nationCode}},[t._v(t._s(e.name+" +"+e.nationCode))])})),1)],1)],1)},s=[],u=(a("a481"),a("c5f6"),a("e230")),c=u["a"].getNationCode,d={name:"CountryMobile",props:{value:{type:[String,Number],default:""},nationCode:{type:[String,Number],default:"86"},inputWidth:{type:Number,default:167},holder:{type:String,default:"请输入"},disflag:{type:Boolean,default:!1},limitClass:{type:String,default:""}},data:function(){return{itemValue:this.value,selCode:this.nationCode||"86",nationCodeList:[]}},mounted:function(){var t=this;t.getNationalData(),t.itemValue=t.value||"",t.selCode=t.nationCode||"86"},methods:{changeCode:function(){var t=this;t.$emit("update:nationCode",t.selCode),t.$emit("input",t.itemValue),t.$emit("checkPhoneNum")},toInput:function(t){var e=this;e.itemValue=t.target.value.replace(/[^0-9]/gi,""),e.$emit("input",e.itemValue)},inputBlur:function(){var t=this;t.$emit("input",t.itemValue)},getNationalData:function(){var t=this;c({}).then((function(e){t.nationCodeList=e.result||[]})).catch((function(t){}))}},watch:{value:function(t,e){var a=this;a.itemValue=t||""},nationCode:function(t,e){var a=this;a.selCode=t||"86"}}},m=d,p=(a("7593"),a("2877")),f=Object(p["a"])(m,l,s,!1,null,"097fcda5",null),h=f.exports,b=a("d157"),v=a("8e83"),k=a("5b4e"),g=a("a689"),C=a.n(g),w=v["a"].addMarketAccount,A={name:"AddMarketDialog",components:{countryMobile:h},data:function(){var t=this,e=function(e,a,o){if(""===a)o(new Error("请输入手机号"));else{var n=new C.a("+"+t.marketForm.nationCode+a);n.isValid()&&n.isMobile()?o():o(new Error("手机号格式不正确"))}};return{dialogVisible:!0,loadBtn:!1,marketForm:{nationCode:"86",phoneNumber:"",password:""},rules:{phoneNumber:[{required:!0,validator:e,trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"}]}}},methods:{checkPhoneNum:function(){var t=this;t.$refs["ruleForm"].validate((function(t){if(t)return!1}))},submitForm:Object(b["a"])((function(t){var e=this;e.$refs[t].validate((function(t){t&&e.postSave()}))}),300),postSave:function(){var t=this;t.loadBtn=!0;var e=t.marketForm,a=e.phoneNumber,o=e.nationCode,n=e.password,i={phoneNumber:a,nationCode:o,password:n};w(i).then((function(e){t.loadBtn=!1,"0000"==e.code?(k["a"].showmsg("绑定成功","success"),t.$refs["ruleForm"].resetFields(),t.$emit("closeMarket",!0)):k["a"].showmsg(e.message||"未知错误","warning")})).catch((function(e){t.loadBtn=!1}))},handleClose:function(){var t=this;t.$emit("closeMarket")}},watch:{}},_=A,F=(a("d6a1"),Object(p["a"])(_,i,r,!1,null,"d68298fc",null)),N=F.exports,y=v["a"].getMarketAccount,M={name:"",components:{AddMarketDialog:N},data:function(){return{wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",marketAccount:{accountId:"",bindTime:"",bindName:""},loadRefesh:!1,showDialog:!1}},mounted:function(){var t=this;t.getMarket(),this.$emit("showTab","/app-market")},methods:{addAcount:function(){var t=this;t.showDialog=!0},closeMarket:function(t){var e=this;e.showDialog=!1,t&&e.getMarket()},getMarket:function(){var t=this,e={};y(e).then((function(e){e.result||(t.marketAccount=e.result||{})})).catch((function(t){}))}},watch:{}},$=M,x=(a("dd83"),Object(p["a"])($,o,n,!1,null,"0e041bb7",null));e["default"]=x.exports},7593:function(t,e,a){"use strict";var o=a("9e07"),n=a.n(o);n.a},"8e83":function(t,e,a){"use strict";var o=a("71f6"),n={getAppList:"/application-list",getAppDetail:"/application-detail",getMarketAccount:"/get-account-info",refreshMarketAccount:"/refesh-account-info",addMarketAccount:{url:"/bind-service-account",method:"post",useFormData:!0,useIntercept:!1},getAuthAppDetail:"/get-application-info",getAppAuthInfo:"/right-list",postAuthRights:"/oauth/authorize",postPhoneCode:{url:"/send-code",method:"post",useFormData:!0,useIntercept:!1},checkCode:{url:"/validate-code",method:"post",useFormData:!0,useIntercept:!1}};e["a"]=Object(o["a"])(n,"/hb-manage-web")},"9e07":function(t,e,a){},d6a1:function(t,e,a){"use strict";var o=a("f841"),n=a.n(o);n.a},dd83:function(t,e,a){"use strict";var o=a("4ca5"),n=a.n(o);n.a},f841:function(t,e,a){}}]);
\ No newline at end of file
......@@ -11,7 +11,7 @@
"version": "conventional-changelog -p angular -i changelog.md -s -r 0 && git add changelog.md"
},
"dependencies": {
"awesome-phonenumber": "^2.35.0",
"awesome-phonenumber": "^2.40.0",
"axios": "^0.19.0",
"babel-polyfill": "^6.26.0",
"clipboard": "^2.0.4",
......
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 to comment