Commit 49b46506 by 无尘

fix: 修改应用跳转

parent fd45a8e1
.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-4a4fd84b]{margin-left:20px}.common-bottom-border[data-v-4a4fd84b]{cursor:pointer;padding-bottom:2px;border-bottom:1px dashed #2f54eb}.app-market-body[data-v-4a4fd84b]{min-height:100%;background:#fff;padding:20px}.app-market-body .app-market-list[data-v-4a4fd84b]{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-4a4fd84b]{margin-bottom:10px} .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-55bde430]{margin-left:20px}.common-bottom-border[data-v-55bde430]{cursor:pointer;padding-bottom:2px;border-bottom:1px dashed #2f54eb}.app-market-body[data-v-55bde430]{min-height:100%;background:#fff;padding:20px}.app-market-body .app-market-list[data-v-55bde430]{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-55bde430]{margin-bottom:10px}
\ No newline at end of file \ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-43ea9309"],{1281: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":"85px"}},[a("el-form-item",{staticClass:"color-303133",attrs:{label:"账号"}},[t._v("\n "+t._s(t._f("formatPhoneNum")(t.marketAccount.phoneNumber))+t._s(t.marketAccount.phoneNumber?"":"--")+"\n ")]),a("el-form-item",{staticClass:"color-303133",attrs:{label:"绑定时间"}},[t._v("\n "+t._s(t._f("formatTimeStamp")(t.marketAccount.bindTime))+" "+t._s(t.marketAccount.bindTime?"":"--")+"\n ")]),a("el-form-item",{staticClass:"color-303133",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=[],r=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)])},i=[],s=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)},l=[],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("7593"),a("2877")),f=Object(p["a"])(m,s,l,!1,null,"097fcda5",null),h=f.exports,b=a("d157"),k=a("8e83"),v=a("5b4e"),g=a("a689"),C=a.n(g),w=k["a"].addMarketAccount,_={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,r={phoneNumber:a,nationCode:o,password:n};w(r).then((function(e){t.loadBtn=!1,"0000"==e.code?(v["a"].showmsg("绑定成功","success"),t.$refs["ruleForm"].resetFields(),t.$emit("closeMarket",!0)):v["a"].showmsg(e.message||"未知错误","warning")})).catch((function(e){t.loadBtn=!1}))},handleClose:function(){var t=this;t.$emit("closeMarket")}},watch:{}},N=_,F=(a("d6a1"),Object(p["a"])(N,r,i,!1,null,"d68298fc",null)),y=F.exports,A=k["a"].getMarketAccount,M={name:"",components:{AddMarketDialog:y},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={};A(e).then((function(e){t.marketAccount=e.result||{}})).catch((function(t){}))}},watch:{}},$=M,x=(a("a1d2"),Object(p["a"])($,o,n,!1,null,"55bde430",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:"/app-category-list",getAppDetail:"/application-detail",getMarketAccount:"/get-account-info",refreshMarketAccount:"/refesh-account-info",addMarketAccount:{url:"/bind-service-account",method:"post",useFormData:!0,useIntercept:!1},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){},a1d2:function(t,e,a){"use strict";var o=a("1281"),n=a.n(o);n.a},d6a1:function(t,e,a){"use strict";var o=a("f841"),n=a.n(o);n.a},f841:function(t,e,a){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f3a10a42"],{2441:function(t,e,a){"use strict";var o=a("a3ed"),n=a.n(o);n.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._f("formatPhoneNum")(t.marketAccount.phoneNumber))+t._s(t.marketAccount.phoneNumber?"":"--")+"\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=[],r=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)])},i=[],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"),k=a("8e83"),v=a("5b4e"),g=a("a689"),C=a.n(g),w=k["a"].addMarketAccount,_={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,r={phoneNumber:a,nationCode:o,password:n};w(r).then((function(e){t.loadBtn=!1,"0000"==e.code?(v["a"].showmsg("绑定成功","success"),t.$refs["ruleForm"].resetFields(),t.$emit("closeMarket",!0)):v["a"].showmsg(e.message||"未知错误","warning")})).catch((function(e){t.loadBtn=!1}))},handleClose:function(){var t=this;t.$emit("closeMarket")}},watch:{}},N=_,F=(a("d6a1"),Object(p["a"])(N,r,i,!1,null,"d68298fc",null)),y=F.exports,A=k["a"].getMarketAccount,M={name:"",components:{AddMarketDialog:y},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={};A(e).then((function(e){t.marketAccount=e.result||{}})).catch((function(t){}))}},watch:{}},$=M,x=(a("2441"),Object(p["a"])($,o,n,!1,null,"4a4fd84b",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:"/app-category-list",getAppDetail:"/application-detail",getMarketAccount:"/get-account-info",refreshMarketAccount:"/refesh-account-info",addMarketAccount:{url:"/bind-service-account",method:"post",useFormData:!0,useIntercept:!1},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){},a3ed:function(t,e,a){},d6a1:function(t,e,a){"use strict";var o=a("f841"),n=a.n(o);n.a},f841:function(t,e,a){}}]);
\ No newline at end of file
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2020-10-16 11:46:25 * @Date: 2020-10-16 11:46:25
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2020-10-21 15:49:56 * @LastEditTime: 2020-10-23 15:44:32
--> -->
<template> <template>
<div class="app-market-body"> <div class="app-market-body">
...@@ -15,14 +15,14 @@ ...@@ -15,14 +15,14 @@
<!-- <span v-if="!!marketAccount.accountId" class="font-12 color-909399 p-l-15">更新时间:{{ marketAccount.updateTime | formatTimeStamp}}</span> --> <!-- <span v-if="!!marketAccount.accountId" class="font-12 color-909399 p-l-15">更新时间:{{ marketAccount.updateTime | formatTimeStamp}}</span> -->
</div> </div>
<div v-if="!!marketAccount.accountId" class="app-market-list"> <div v-if="!!marketAccount.accountId" class="app-market-list">
<el-form ref="form" label-width="120px"> <el-form ref="form" label-width="85px">
<el-form-item label="账号"> <el-form-item class="color-303133" label="账号">
{{marketAccount.phoneNumber | formatPhoneNum }}{{!marketAccount.phoneNumber ? '--' : '' }} {{marketAccount.phoneNumber | formatPhoneNum }}{{!marketAccount.phoneNumber ? '--' : '' }}
</el-form-item> </el-form-item>
<el-form-item label="绑定时间"> <el-form-item class="color-303133" label="绑定时间">
{{marketAccount.bindTime | formatTimeStamp}} {{!marketAccount.bindTime ? '--' : ''}} {{marketAccount.bindTime | formatTimeStamp}} {{!marketAccount.bindTime ? '--' : ''}}
</el-form-item> </el-form-item>
<el-form-item label="绑定人"> <el-form-item class="color-303133" label="绑定人">
{{marketAccount.bindName || '--'}} {{marketAccount.bindName || '--'}}
</el-form-item> </el-form-item>
</el-form> </el-form>
......
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