Commit fc21ca00 by 无尘

fix: 修改应用跳转

parent fa25f477
.m-b-50[data-v-2ad72052]{margin-bottom:50px}.app-list[data-v-2ad72052]{padding:20px 30px;min-height:100%;background-color:#fff}.app-list .page-title[data-v-2ad72052]{margin-bottom:18px;font-size:16px;font-weight:700;color:#303133;line-height:22px}.app-list .app-item[data-v-2ad72052]{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-align:center;-ms-flex-align:center;align-items:center;float:left;margin-right:20px;margin-bottom:20px;padding:10px;width:185px;height:67px;background:#fff;border-radius:4px;border:1px solid #e4e7ed;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.app-list .app-item[data-v-2ad72052]:hover{-webkit-box-shadow:0 2px 7px 0 rgba(122,138,203,.2);box-shadow:0 2px 7px 0 rgba(122,138,203,.2)}.app-list .app-item:hover .app-item-menu[data-v-2ad72052]{opacity:1}.app-list .app-item .app-item-menu[data-v-2ad72052]{position:absolute;top:2px;right:10px;z-index:1;padding:0 2px;opacity:0;border-radius:2px}.app-list .app-item .app-item-menu[data-v-2ad72052]:hover{background:#f0f5ff}.app-list .app-item .app-item-menu:hover .menu-icon[data-v-2ad72052]{color:#2f54ed}.app-list .app-item .app-item-menu .menu-icon[data-v-2ad72052]{color:#909399;cursor:pointer}.app-list .app-item .out-time-tip[data-v-2ad72052]{position:absolute;right:0;bottom:5px;z-index:1;width:49px;height:17px;font-size:12px;font-weight:400;color:#f5222d;background:rgba(245,34,45,.09);border-radius:100px 0 0 100px}.app-list .app-item .app-logo[data-v-2ad72052],.app-list .app-item .out-time-tip[data-v-2ad72052]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.app-list .app-item .app-logo[data-v-2ad72052]{-ms-flex-negative:0;flex-shrink:0;margin-right:10px;width:46px;height:46px}.app-list .app-item .app-logo img[data-v-2ad72052]{max-width:100%;max-height:100%}.app-list .app-item .app-logo.no-logo[data-v-2ad72052]{background:#e4e7ed}.app-list .app-item .app-info[data-v-2ad72052]{width:calc(100% - 50px)}.app-list .app-item .app-info .app-name[data-v-2ad72052]{width:100%;font-size:14px;font-weight:400;color:#303133;line-height:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.app-list .app-item .app-info .to-buy[data-v-2ad72052]{font-size:12px;line-height:17px}.app-list .to-app-center[data-v-2ad72052]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:172px;height:67px;font-size:14px;font-weight:400;color:#c0c4cc;border-radius:4px;border:1px dashed #e4e7ed;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}.app-list .to-app-center[data-v-2ad72052]:hover{color:#2f54ed;border-color:#2f54ed}
\ No newline at end of file
.m-b-50[data-v-09aefea6]{margin-bottom:50px}.app-list[data-v-09aefea6]{padding:20px 30px;min-height:100%;background-color:#fff}.app-list .page-title[data-v-09aefea6]{margin-bottom:18px;font-size:16px;font-weight:700;color:#303133;line-height:22px}.app-list .app-item[data-v-09aefea6]{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-align:center;-ms-flex-align:center;align-items:center;float:left;margin-right:20px;margin-bottom:20px;padding:10px;width:185px;height:67px;background:#fff;border-radius:4px;border:1px solid #e4e7ed;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.app-list .app-item[data-v-09aefea6]:hover{-webkit-box-shadow:0 2px 7px 0 rgba(122,138,203,.2);box-shadow:0 2px 7px 0 rgba(122,138,203,.2)}.app-list .app-item:hover .app-item-menu[data-v-09aefea6]{opacity:1}.app-list .app-item .app-item-menu[data-v-09aefea6]{position:absolute;top:2px;right:10px;z-index:1;padding:0 2px;opacity:0;border-radius:2px}.app-list .app-item .app-item-menu[data-v-09aefea6]:hover{background:#f0f5ff}.app-list .app-item .app-item-menu:hover .menu-icon[data-v-09aefea6]{color:#2f54ed}.app-list .app-item .app-item-menu .menu-icon[data-v-09aefea6]{color:#909399;cursor:pointer}.app-list .app-item .out-time-tip[data-v-09aefea6]{position:absolute;right:0;bottom:5px;z-index:1;width:49px;height:17px;font-size:12px;font-weight:400;color:#f5222d;background:rgba(245,34,45,.09);border-radius:100px 0 0 100px}.app-list .app-item .app-logo[data-v-09aefea6],.app-list .app-item .out-time-tip[data-v-09aefea6]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.app-list .app-item .app-logo[data-v-09aefea6]{-ms-flex-negative:0;flex-shrink:0;margin-right:10px;width:46px;height:46px}.app-list .app-item .app-logo img[data-v-09aefea6]{max-width:100%;max-height:100%}.app-list .app-item .app-logo.no-logo[data-v-09aefea6]{background:#e4e7ed}.app-list .app-item .app-info[data-v-09aefea6]{width:calc(100% - 50px)}.app-list .app-item .app-info .app-name[data-v-09aefea6]{width:100%;font-size:14px;font-weight:400;color:#303133;line-height:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.app-list .app-item .app-info .to-buy[data-v-09aefea6]{font-size:12px;line-height:17px}.app-list .to-app-center[data-v-09aefea6]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:172px;height:67px;font-size:14px;font-weight:400;color:#c0c4cc;border-radius:4px;border:1px dashed #e4e7ed;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}.app-list .to-app-center[data-v-09aefea6]:hover{color:#2f54ed;border-color:#2f54ed}
\ 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-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} .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-c3085e60]{margin-left:20px}.common-bottom-border[data-v-c3085e60]{cursor:pointer;padding-bottom:2px;border-bottom:1px dashed #2f54eb}.app-market-body[data-v-c3085e60]{min-height:100%;background:#fff;padding:20px}.app-market-body .app-market-list[data-v-c3085e60]{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-c3085e60]{margin-bottom:10px}
\ No newline at end of file \ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3abc71b9"],{"410e":function(t,n,e){"use strict";var a=e("b543"),o=e.n(a);o.a},"4a78":function(t,n,e){"use strict";e.r(n);var a=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"app-list"},[t._l(t.appList,(function(n,a){return[n.applications&&n.applications.length?e("div",{key:a+"cate",staticClass:"m-b-50"},[e("h3",{staticClass:"page-title"},[t._v(t._s(n.applicationCategoryName||"--"))]),e("div",[t._l(n.applications,(function(n){return e("div",{key:n.applicationId,staticClass:"app-item cursor-pointer",on:{click:function(e){return e.stopPropagation(),t.toAppBack(n)}}},[e("el-dropdown",{staticClass:"app-item-menu"},[e("i",{staticClass:"iconfont icongengduo1 menu-icon"}),e("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e("el-dropdown-item",{nativeOn:{click:function(e){return t.toAppBack(n)}}},[t._v("进入")]),e("el-dropdown-item",{nativeOn:{click:function(e){return t.toAppDetail(n)}}},[t._v("应用详情")])],1)],1),e("div",{class:["app-logo",{"no-logo":!n.applicationLogo}]},[n.applicationLogo?e("img",{attrs:{src:n.applicationLogo,alt:""}}):t._e()]),e("div",{staticClass:"app-info"},[e("p",{staticClass:"app-name"},[t._v(t._s(n.applicationName))]),t._e()],1),(new Date).getTime()-n.overTime>0?e("span",{staticClass:"out-time-tip"},[t._v("已过期")]):t._e()],1)})),e("div",{staticClass:"to-app-center",on:{click:t.toAppCenter}},[t._v("\n 前往服务市场 "),e("i",{staticClass:"iconfont iconjiantouxiangyou"})])],2)]):t._e()]})),t.item.applications&&t.item.applications.length?t._e():e("div",{staticClass:"to-app-center",on:{click:t.toAppCenter}},[t._v("\n 前往服务市场 "),e("i",{staticClass:"iconfont iconjiantouxiangyou"})])],2)},o=[],i=(e("ac6a"),e("456d"),e("96cf"),e("1da1")),c=e("8e83"),p=c["a"].getAppList,r=c["a"].getMarketAccount,s={name:"AppList",data:function(){return{appList:[]}},created:function(){this.getAppList(),this.$emit("showTab","/app-list")},methods:{getAppList:function(){var t=this;p().then((function(n){t.appList=n.result||[]}))},toAppBack:function(t){window.open("/hb-application-auth/auth/custom?authToken=".concat(t.appId),"_blank","noopener")},toAppDetail:function(t){var n=t||{},e=n.authType,a=n.appId,o=n.applicationId,i=n.menuId;if(!e)return window.open("/hb-application-auth/auth/custom?authToken=".concat(a),"_blank","noopener"),!1;this.$router.push("/app-detail?applicationId=".concat(o,"&appId=").concat(a,"&menuId=").concat(i))},toBuy:function(t){var n=t||{},e=n.applicationId;window.open("/market/hb/product/server/".concat(e),"_blank","noopener")},getMarket:function(){var t={};return new Promise((function(n,e){r(t).then((function(t){n(t.result||{})})).catch((function(t){n({})}))}))},toAppCenter:function(){var t=Object(i["a"])(regeneratorRuntime.mark((function t(){var n,e;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=this,t.next=3,n.getMarket();case 3:if(e=t.sent,Object.keys(e).length){t.next=7;break}return n.$router.push("/app-market"),t.abrupt("return",!1);case 7:window.open("/market/hb/product/allList","_blank","noopener");case 8:case"end":return t.stop()}}),t,this)})));function n(){return t.apply(this,arguments)}return n}()}},u=s,l=(e("410e"),e("2877")),d=Object(l["a"])(u,a,o,!1,null,"2ad72052",null);n["default"]=d.exports},"71f6":function(t,n,e){"use strict";e.d(n,"a",(function(){return o}));e("ac6a"),e("456d");var a=e("b775");function o(t,n){t=t||{};var e=Object.keys(t);return e.forEach((function(e){var o=t[e];"string"===typeof o&&(o={url:o}),o.url="".concat(n).concat(o.url),t[e]=function(t,n){return Object(a["a"])(o,t,n)}})),t}},"8e83":function(t,n,e){"use strict";var a=e("71f6"),o={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}};n["a"]=Object(a["a"])(o,"/hb-manage-web")},b543:function(t,n,e){}}]);
\ 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-58dfdaee"],{1254:function(t,n,e){},"4a78":function(t,n,e){"use strict";e.r(n);var a=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"app-list"},[t._l(t.appList,(function(n,a){return[n.applications&&n.applications.length?e("div",{key:a+"cate",staticClass:"m-b-50"},[e("h3",{staticClass:"page-title"},[t._v(t._s(n.applicationCategoryName||"--"))]),e("div",[t._l(n.applications,(function(n){return e("div",{key:n.applicationId,staticClass:"app-item cursor-pointer",on:{click:function(e){return e.stopPropagation(),t.toAppBack(n)}}},[e("el-dropdown",{staticClass:"app-item-menu"},[e("i",{staticClass:"iconfont icongengduo1 menu-icon"}),e("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e("el-dropdown-item",{nativeOn:{click:function(e){return t.toAppBack(n)}}},[t._v("进入")]),e("el-dropdown-item",{nativeOn:{click:function(e){return t.toAppDetail(n)}}},[t._v("应用详情")])],1)],1),e("div",{class:["app-logo",{"no-logo":!n.applicationLogo}]},[n.applicationLogo?e("img",{attrs:{src:n.applicationLogo,alt:""}}):t._e()]),e("div",{staticClass:"app-info"},[e("p",{staticClass:"app-name"},[t._v(t._s(n.applicationName))]),t._e()],1),(new Date).getTime()-n.overTime>0?e("span",{staticClass:"out-time-tip"},[t._v("已过期")]):t._e()],1)})),e("div",{staticClass:"to-app-center",on:{click:t.toAppCenter}},[t._v("\n 前往服务市场 "),e("i",{staticClass:"iconfont iconjiantouxiangyou"})])],2)]):t._e()]}))],2)},o=[],i=(e("ac6a"),e("456d"),e("96cf"),e("1da1")),c=e("8e83"),p=c["a"].getAppList,r=c["a"].getMarketAccount,s={name:"AppList",data:function(){return{appList:[]}},created:function(){this.getAppList(),this.$emit("showTab","/app-list")},methods:{getAppList:function(){var t=this;p().then((function(n){t.appList=n.result||[]}))},toAppBack:function(t){window.open("/hb-application-auth/auth/custom?authToken=".concat(t.appId),"_blank","noopener")},toAppDetail:function(t){var n=t||{},e=n.authType,a=n.appId,o=n.applicationId,i=n.menuId;if(!e)return window.open("/hb-application-auth/auth/custom?authToken=".concat(a),"_blank","noopener"),!1;this.$router.push("/app-detail?applicationId=".concat(o,"&appId=").concat(a,"&menuId=").concat(i))},toBuy:function(t){var n=t||{},e=n.applicationId;window.open("/market/hb/product/server/".concat(e),"_blank","noopener")},getMarket:function(){var t={};return new Promise((function(n,e){r(t).then((function(t){n(t.result||{})})).catch((function(t){n({})}))}))},toAppCenter:function(){var t=Object(i["a"])(regeneratorRuntime.mark((function t(){var n,e;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=this,t.next=3,n.getMarket();case 3:if(e=t.sent,Object.keys(e).length){t.next=7;break}return n.$router.push("/app-market"),t.abrupt("return",!1);case 7:window.open("/market/hb/product/allList","_blank","noopener");case 8:case"end":return t.stop()}}),t,this)})));function n(){return t.apply(this,arguments)}return n}()}},u=s,l=(e("803f"),e("2877")),d=Object(l["a"])(u,a,o,!1,null,"09aefea6",null);n["default"]=d.exports},"71f6":function(t,n,e){"use strict";e.d(n,"a",(function(){return o}));e("ac6a"),e("456d");var a=e("b775");function o(t,n){t=t||{};var e=Object.keys(t);return e.forEach((function(e){var o=t[e];"string"===typeof o&&(o={url:o}),o.url="".concat(n).concat(o.url),t[e]=function(t,n){return Object(a["a"])(o,t,n)}})),t}},"803f":function(t,n,e){"use strict";var a=e("1254"),o=e.n(a);o.a},"8e83":function(t,n,e){"use strict";var a=e("71f6"),o={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}};n["a"]=Object(a["a"])(o,"/hb-manage-web")}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d5353fa0"],{4463:function(t,e,a){"use strict";var o=a("f5b3"),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":"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:""},showDialog:!1}},mounted:function(){var t=this;t.getMarket(),t.$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("4463"),Object(p["a"])($,o,n,!1,null,"c3085e60",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){},d6a1:function(t,e,a){"use strict";var o=a("f841"),n=a.n(o);n.a},f5b3:function(t,e,a){},f841:function(t,e,a){}}]);
\ No newline at end of file
...@@ -27,6 +27,9 @@ ...@@ -27,6 +27,9 @@
</div> </div>
</div> </div>
</template> </template>
<div v-if="!item.applications || !item.applications.length" class="to-app-center" @click="toAppCenter">
前往服务市场&nbsp;<i class="iconfont iconjiantouxiangyou"></i>
</div>
</div> </div>
</template> </template>
......
...@@ -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-23 15:44:32 * @LastEditTime: 2020-10-26 15:58:19
--> -->
<template> <template>
<div class="app-market-body"> <div class="app-market-body">
...@@ -48,7 +48,6 @@ export default { ...@@ -48,7 +48,6 @@ export default {
bindTime: '', bindTime: '',
bindName: '' bindName: ''
}, },
loadRefesh: false,
showDialog: false showDialog: false
}; };
}, },
...@@ -56,7 +55,7 @@ export default { ...@@ -56,7 +55,7 @@ export default {
mounted() { mounted() {
const that = this; const that = this;
that.getMarket(); that.getMarket();
this.$emit('showTab', '/app-market'); that.$emit('showTab', '/app-market');
}, },
// methods // methods
methods: { methods: {
......
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