Commit 1c4daabd by 无尘

feat: 增加路由

parent eb7c61e2
.m-b-20[data-v-036c3cd4]{margin-bottom:20px}.common-bottom-border[data-v-2de688f2]{cursor:pointer;padding-bottom:2px;border-bottom:1px dashed #2f54eb}.app-market-body .app-market-list[data-v-2de688f2]{width:100%;height:119px;background:#f5f7fa;padding:18px 26px;-webkit-box-sizing:border-box;box-sizing:border-box}
\ No newline at end of file
.line-h-22[data-v-31b63e3a]{line-height:22px}.line-h-20[data-v-31b63e3a]{line-height:20px}.app-auth-body[data-v-31b63e3a]{width:100%}.app-auth-body .app-auth-head[data-v-31b63e3a]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;text-align:left;padding:0 20px;height:46px;color:#fff;background-color:#fff;-webkit-box-shadow:0 4px 6px 0 rgba(221,227,237,.29);box-shadow:0 4px 6px 0 rgba(221,227,237,.29)}.app-auth-body .app-auth-head img[data-v-31b63e3a]{width:22px}.app-auth-body .app-auth-head .web-name[data-v-31b63e3a]{padding-left:10px;font-size:16px;font-weight:600;color:#303133;line-height:22px;background:-webkit-gradient(linear,right top,left top,from(#5b4adb),to(#2da8ff));background:linear-gradient(270deg,#5b4adb,#2da8ff);-webkit-background-clip:text;-webkit-text-fill-color:transparent}.app-auth-body .app-auth-info[data-v-31b63e3a]{width:100%}.app-auth-body .app-auth-info .app-info-body[data-v-31b63e3a]{width:498px;min-height:374px;margin:50px auto;padding:20px 30px;background:#fff;-webkit-box-shadow:0 5px 9px 0 hsla(0,0%,87.1%,.28);box-shadow:0 5px 9px 0 hsla(0,0%,87.1%,.28);-webkit-box-sizing:border-box;box-sizing:border-box}.app-auth-body .app-auth-info .app-info-body .app-info-title[data-v-31b63e3a]{font-size:16px;font-weight:600;color:#303133;line-height:22px}.app-auth-body .app-auth-info .app-info-body .app-info-detail[data-v-31b63e3a]{min-height:227px;margin-top:25px;padding:15px 20px;-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #e4e7ed}.app-auth-body .app-auth-info .app-info-body .app-info-detail .app-top[data-v-31b63e3a]{border-bottom:1px solid #ebecf0;padding-bottom:15px}.app-auth-body .app-auth-info .app-info-body .app-info-detail .app-img[data-v-31b63e3a]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;width:42px;height:42px;max-width:42px;max-height:42px;border-radius:6px}.app-auth-body .app-auth-info .app-info-body .app-info-detail .app-img img[data-v-31b63e3a]{max-width:42px;max-height:42px;border-radius:6px}.app-auth-body .app-auth-info .app-info-body .app-info-detail .app-name[data-v-31b63e3a]{font-weight:600}.app-auth-body .app-auth-info .app-info-body .app-info-detail .auth-rights .auth-rights-title[data-v-31b63e3a]{padding:10px 0}.app-auth-body .app-auth-info .app-info-body .app-info-detail .auth-rights ul li[data-v-31b63e3a]{line-height:20px;margin-bottom:5px}.app-auth-body .app-info-btn[data-v-31b63e3a]{margin-top:30px;text-align:right}
\ No newline at end of file
.line-h-22[data-v-1b9a02d6]{line-height:22px}.line-h-20[data-v-1b9a02d6]{line-height:20px}.app-auth-body[data-v-1b9a02d6]{width:100%}.app-auth-body .app-auth-head[data-v-1b9a02d6]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;text-align:left;padding:0 20px;height:46px;color:#fff;background-color:#fff;-webkit-box-shadow:0 4px 6px 0 rgba(221,227,237,.29);box-shadow:0 4px 6px 0 rgba(221,227,237,.29)}.app-auth-body .app-auth-head img[data-v-1b9a02d6]{width:22px}.app-auth-body .app-auth-head .web-name[data-v-1b9a02d6]{padding-left:10px;font-size:16px;font-weight:600;color:#303133;line-height:22px;background:-webkit-gradient(linear,right top,left top,from(#5b4adb),to(#2da8ff));background:linear-gradient(270deg,#5b4adb,#2da8ff);-webkit-background-clip:text;-webkit-text-fill-color:transparent}.app-auth-body .app-auth-info[data-v-1b9a02d6]{width:100%}.app-auth-body .app-auth-info .app-info-body[data-v-1b9a02d6]{width:498px;min-height:374px;margin:50px auto;padding:20px 30px;background:#fff;-webkit-box-shadow:0 5px 9px 0 hsla(0,0%,87.1%,.28);box-shadow:0 5px 9px 0 hsla(0,0%,87.1%,.28);-webkit-box-sizing:border-box;box-sizing:border-box}.app-auth-body .app-auth-info .app-info-body .app-info-title[data-v-1b9a02d6]{font-size:16px;font-weight:500;color:#303133;line-height:22px}.app-auth-body .app-auth-info .app-info-body .app-info-detail[data-v-1b9a02d6]{min-height:227px;margin-top:25px;padding:15px 20px;-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #e4e7ed}.app-auth-body .app-auth-info .app-info-body .app-info-detail .app-top[data-v-1b9a02d6]{border-bottom:1px solid #ebecf0;padding-bottom:15px}.app-auth-body .app-auth-info .app-info-body .app-info-detail .app-img[data-v-1b9a02d6]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;width:42px;height:42px;max-width:42px;max-height:42px;border-radius:6px}.app-auth-body .app-auth-info .app-info-body .app-info-detail .app-img img[data-v-1b9a02d6]{max-width:42px;max-height:42px;border-radius:6px}.app-auth-body .app-auth-info .app-info-body .app-info-detail .auth-rights .auth-rights-title[data-v-1b9a02d6]{padding:10px 0}.app-auth-body .app-auth-info .app-info-body .app-info-detail .auth-rights ul li[data-v-1b9a02d6]{line-height:20px;margin-bottom:5px}.app-auth-body .app-info-btn[data-v-1b9a02d6]{margin-top:30px;text-align:right}
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0903084f"],{"4a78":function(t,a,n){"use strict";n.r(a);var e=function(){var t=this,a=t.$createElement,n=t._self._c||a;return n("div",{staticClass:"app-list"},[n("h3",{staticClass:"page-title"},[t._v("好办应用")]),n("div",[t._l(t.appList,(function(a){return n("div",{key:a.applicationId,staticClass:"app-item"},[n("el-dropdown",{staticClass:"app-item-menu"},[n("i",{staticClass:"iconfont icongengduo1 menu-icon"}),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[n("el-dropdown-item",{nativeOn:{click:function(n){return t.toAppBack(a)}}},[t._v("进入")]),n("el-dropdown-item",{nativeOn:{click:function(n){return t.toAppDetail(a)}}},[t._v("应用详情")])],1)],1),n("div",{class:["app-logo",{"no-logo":!a.applicationLogo}]},[a.applicationLogo?n("img",{attrs:{src:a.applicationLogo,alt:""}}):t._e()]),n("div",{staticClass:"app-info"},[n("p",{staticClass:"app-name"},[t._v(t._s(a.applicationName))]),n("el-button",{staticClass:"to-buy",attrs:{type:"text"},on:{click:t.toBuy}},[t._v("去订购 "),n("i",{staticClass:"iconfont iconjiantouxiangyou"})])],1),n("span",{staticClass:"out-time-tip"},[t._v("已过期")])],1)})),n("div",{staticClass:"to-app-center",on:{click:t.toAppCenter}},[t._v("\n 前往服务市场 "),n("i",{staticClass:"iconfont iconjiantouxiangyou"})])],2)])},i=[],o=n("8e83"),c=n("5937"),s=n("5b4e"),p=o["a"].getAppList,u=c["a"].getRoleMenu,r={name:"AppList",data:function(){return{appList:[]}},created:function(){this.getAppList(),this.$emit("showTab","/app-list")},methods:{getAppList:function(){var t=this;p().then((function(a){t.appList=a.result||[]}))},toAppBack:function(t){var a=this,n={menuId:t.applicationId,appType:2};u(n).then((function(n){if(!n.result||!n.result.length)return s["a"].showmsg("该应用您无权限操作,请联系超级管理员!","warning"),!1;a.$router.push("/apps?applicationId=".concat(t.applicationId))})).catch((function(t){}))},toAppDetail:function(t){var a=t||{},n=a.applicationId;this.$router.push("/app-detail?appId=".concat(n))},toBuy:function(){alert("暂无跳转链接")},toAppCenter:function(){alert("暂无跳转链接")}}},l=r,d=(n("891b"),n("2877")),f=Object(d["a"])(l,e,i,!1,null,"a018f946",null);a["default"]=f.exports},5937:function(t,a,n){"use strict";var e=n("71f6"),i={getRoleMenu:"/list-staff-role-menu"};i=Object(e["a"])(i,"/hb-manage-web"),a["a"]=i},"5b4e":function(t,a,n){"use strict";var e=n("5c96");a["a"]={showmsg:function(t,a){Object(e["Message"])({duration:1e3,message:t||"接口异常",type:a})}}},"71f6":function(t,a,n){"use strict";n.d(a,"a",(function(){return i}));n("ac6a"),n("456d");var e=n("b775");function i(t,a){t=t||{};var n=Object.keys(t);return n.forEach((function(n){var i=t[n];"string"===typeof i&&(i={url:i}),i.url="".concat(a).concat(i.url),t[n]=function(t,a){return Object(e["a"])(i,t,a)}})),t}},8754:function(t,a,n){},"891b":function(t,a,n){"use strict";var e=n("8754"),i=n.n(e);i.a},"8e83":function(t,a,n){"use strict";var e=n("71f6"),i={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},getAppAuthDetail:"/",postAuthRights:"/",postPhoneCode:{url:"/send-code",method:"post",useFormData:!0,useIntercept:!1},checkCode:{url:"/validate-code",method:"post",useFormData:!0,useIntercept:!1}};a["a"]=Object(e["a"])(i,"/hb-manage-web")}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0903084f"],{"4a78":function(t,n,a){"use strict";a.r(n);var i=function(){var t=this,n=t.$createElement,a=t._self._c||n;return a("div",{staticClass:"app-list"},[a("h3",{staticClass:"page-title"},[t._v("好办应用")]),a("div",[t._l(t.appList,(function(n){return a("div",{key:n.applicationId,staticClass:"app-item"},[a("el-dropdown",{staticClass:"app-item-menu"},[a("i",{staticClass:"iconfont icongengduo1 menu-icon"}),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{nativeOn:{click:function(a){return t.toAppBack(n)}}},[t._v("进入")]),a("el-dropdown-item",{nativeOn:{click:function(a){return t.toAppDetail(n)}}},[t._v("应用详情")])],1)],1),a("div",{class:["app-logo",{"no-logo":!n.applicationLogo}]},[n.applicationLogo?a("img",{attrs:{src:n.applicationLogo,alt:""}}):t._e()]),a("div",{staticClass:"app-info"},[a("p",{staticClass:"app-name"},[t._v(t._s(n.applicationName))]),a("el-button",{staticClass:"to-buy",attrs:{type:"text"},on:{click:t.toBuy}},[t._v("去订购 "),a("i",{staticClass:"iconfont iconjiantouxiangyou"})])],1),a("span",{staticClass:"out-time-tip"},[t._v("已过期")])],1)})),a("div",{staticClass:"to-app-center",on:{click:t.toAppCenter}},[t._v("\n 前往服务市场 "),a("i",{staticClass:"iconfont iconjiantouxiangyou"})])],2)])},o=[],e=a("8e83"),c=a("5937"),s=a("5b4e"),p=e["a"].getAppList,u=c["a"].getRoleMenu,r={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){var n=this,a={menuId:t.applicationId,appType:2};u(a).then((function(a){if(!a.result||!a.result.length)return s["a"].showmsg("该应用您无权限操作,请联系超级管理员!","warning"),!1;n.$router.push("/apps?applicationId=".concat(t.applicationId))})).catch((function(t){}))},toAppDetail:function(t){var n=t||{},a=n.applicationId;this.$router.push("/app-detail?appId=".concat(a))},toBuy:function(){alert("暂无跳转链接")},toAppCenter:function(){alert("暂无跳转链接")}}},l=r,f=(a("891b"),a("2877")),d=Object(f["a"])(l,i,o,!1,null,"a018f946",null);n["default"]=d.exports},5937:function(t,n,a){"use strict";var i=a("71f6"),o={getRoleMenu:"/list-staff-role-menu"};o=Object(i["a"])(o,"/hb-manage-web"),n["a"]=o},"5b4e":function(t,n,a){"use strict";var i=a("5c96");n["a"]={showmsg:function(t,n){Object(i["Message"])({duration:1e3,message:t||"接口异常",type:n})}}},"71f6":function(t,n,a){"use strict";a.d(n,"a",(function(){return o}));a("ac6a"),a("456d");var i=a("b775");function o(t,n){t=t||{};var a=Object.keys(t);return a.forEach((function(a){var o=t[a];"string"===typeof o&&(o={url:o}),o.url="".concat(n).concat(o.url),t[a]=function(t,n){return Object(i["a"])(o,t,n)}})),t}},8754:function(t,n,a){},"891b":function(t,n,a){"use strict";var i=a("8754"),o=a.n(i);o.a},"8e83":function(t,n,a){"use strict";var i=a("71f6"),o={getAppList:"/application-list",getAppDetail:"/application-detail"};n["a"]=Object(i["a"])(o,"/hb-manage-web")}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1d20d659"],{"18e1":function(t,e,a){},"1a52":function(t,e,a){"use strict";var o=a("18e1"),n=a.n(o);n.a},5136:function(t,e,a){"use strict";var o=a("de8c"),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("服务市场账号")])]),a("el-button",{staticClass:"m-l-20",attrs:{type:"primary"},on:{click:t.addAcount}},[t._v("添加")]),a("el-button",{staticClass:"m-l-20",attrs:{type:"text",loading:t.loadRefesh},on:{click:t.refreshData}},[t._v("同步刷新 ")]),a("span",{staticClass:"font-12 color-909399 p-l-15"},[t._v("更新时间:"+t._s(t._f("formatTimeStamp")(t.marketAccount.updateTime)))])],1),a("div",{staticClass:"app-market-list"},[a("el-form",{ref:"form",attrs:{model:t.form,"label-width":"80px"}},[a("el-form-item",{attrs:{label:"账号"}},[t._v("\n "+t._s(t.marketAccount.id||"--")+"\n ")]),a("el-form-item",{attrs:{label:"绑定时间"}},[t._v("\n "+t._s(t._f("formatTimeStamp")(t.marketAccount.bindDate))+"\n ")]),a("el-form-item",{attrs:{label:"绑定人"}},[t._v("\n "+t._s(t.marketAccount.bindName||"")+"\n ")])],1)],1),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,"label-width":"80px"}},[a("el-form-item",{attrs:{label:"手机号"}},[a("country-mobile",{attrs:{"nation-code":t.marketForm.nationCode,"input-width":500,"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)}},model:{value:t.marketForm.phoneNumber,callback:function(e){t.$set(t.marketForm,"phoneNumber",e)},expression:"marketForm.phoneNumber"}})],1),a("el-form-item",{attrs:{label:"验证码"}},[a("el-input",{attrs:{placeholder:"请输入验证码"},model:{value:t.marketForm.code,callback:function(e){t.$set(t.marketForm,"code",e)},expression:"marketForm.code"}}),a("el-button",{staticClass:"m-l-35",attrs:{disabled:t.disableBtn,type:"text"},on:{click:function(e){return t.sendCode()}}},[t._v(t._s(t.disableBtn&&60==t.countNum||!t.disableBtn&&t.countNum?"获取验证码":t.countNum+"s"))])],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)])},s=[],i=a("d157"),c=a("8e83"),l=a("a689"),u=a.n(l),m=a("5b4e"),d=c["a"].addMarketAccount,f=c["a"].postPhoneCode,h=c["a"].checkCode,p={name:"AddMarketDialog",data:function(){return{dialogVisible:!0,loadBtn:!1,marketForm:{nationCode:"86",phoneNumber:"",code:""},disableBtn:!0,countNum:60}},methods:{countDown:function(){var t=this,e=setInterval((function(){if(0===t.countNum)return clearInterval(e),t.countNum=60,t.disableBtn=!1,!1;t.countNum--}),1e3)},sendCode:Object(i["a"])((function(){var t=this,e=t.marketForm,a=e.phoneNumber,o=e.nationCode;if(""==a)return m["a"].showmsg("手机号不能为空","warning"),!1;var n=new u.a("+"+o+a);if(!n.isValid()||!n.isMobile())return m["a"].showmsg("手机号格式不正确","warning"),!1;var r={phoneNumber:a,nationCode:o,type:1};f(r).then((function(e){if("0000"==e.code){t.disableBtn=!0,t.countDown();var n=String(a),r=n.substr(0,3)+"****"+n.substr(7,n.length-1);return m["a"].showmsg("已发送验证码到".concat(o||"86","-").concat(r),"success"),!1}m["a"].showmsg(e.message||"未知错误","warning")})).catch((function(t){}))}),300),checkCode:function(){var t=this,e=t.marketForm,a=e.phoneNumber,o=e.nationCode,n=e.code,r={phoneNumber:a,nationCode:o,type:1,code:n};return new Promise((function(e,a){h(r).then((function(t){if("0000"==t.code)return e(!0),!1;m["a"].showmsg(t.message||"未知错误","warning"),e(!1)})).catch((function(a){e(!1),t.$message.error({duration:1e3,message:a.message})}))}))},submitForm:Object(i["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={};d(e).then((function(e){t.loadBtn=!1,"0000"==e.code?(m["a"].showmsg("操作成功","success"),t.$refs["ruleForm"].resetFields(),t.$emit("closeMarket",!0)):(m["a"].showmsg(e.message||"未知错误","warning"),t.$emit("closeMarket",!0))})).catch((function(e){t.loadBtn=!1}))},handleClose:function(){var t=this;t.$emit("closeMarket")}},watch:{marketForm:function(t){var e=this;t.phoneNumber&&(e.disableBtn=!1)}}},b=p,k=(a("5136"),a("2877")),g=Object(k["a"])(b,r,s,!1,null,"036c3cd4",null),v=g.exports,w=c["a"].getMarketAccount,C=c["a"].refreshMarketAccount,F={name:"",components:{AddMarketDialog:v},data:function(){return{wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",marketAccount:{id:"",bindDate:"",bindName:"",updateTime:""},loadRefesh:!1,showDialog:!1}},mounted:function(){var t=this;t.getMarket()},methods:{refreshData:function(){var t=this;t.refreshMarketData()},refreshMarketData:function(){var t=this;t.loadRefesh=!0;var e={wxEnterpriseId:t.wxEnterpriseId};C(e).then((function(e){t.loadRefesh=!1,m["a"].showmsg("刷新成功","success"),t.getMarket()})).catch((function(e){t.loadRefesh=!1}))},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={};w(e).then((function(e){e.result||(t.marketAccount=e.result||{})})).catch((function(t){}))}},watch:{}},_=F,A=(a("1a52"),Object(k["a"])(_,o,n,!1,null,"2de688f2",null));e["default"]=A.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},getAppAuthDetail:"/",postAuthRights:"/",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")},de8c:function(t,e,a){}}]);
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-40e8a9a0"],{"71f6":function(t,a,e){"use strict";e.d(a,"a",(function(){return n}));e("ac6a"),e("456d");var i=e("b775");function n(t,a){t=t||{};var e=Object.keys(t);return e.forEach((function(e){var n=t[e];"string"===typeof n&&(n={url:n}),n.url="".concat(a).concat(n.url),t[e]=function(t,a){return Object(i["a"])(n,t,a)}})),t}},"8e83":function(t,a,e){"use strict";var i=e("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},getAppAuthDetail:"/",postAuthRights:"/",postPhoneCode:{url:"/send-code",method:"post",useFormData:!0,useIntercept:!1},checkCode:{url:"/validate-code",method:"post",useFormData:!0,useIntercept:!1}};a["a"]=Object(i["a"])(n,"/hb-manage-web")},"9bc6":function(t,a,e){"use strict";e.r(a);var i=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"app-detail"},[e("el-form",{attrs:{"label-width":"90px"}},[e("h3",{staticClass:"model-title"},[t._v("应用信息")]),e("div",{staticClass:"app-info"},[e("div",{class:["app-logo",{"no-logo":!t.appData.applicationLogo}]},[t.appData.applicationLogo?e("img",{attrs:{src:t.appData.applicationLogo,alt:""}}):t._e()]),e("div",[e("p",{staticClass:"app-name"},[t._v(t._s(t.appData.applicationName||"--"))]),e("p",{staticClass:"app-desc"},[t._v(t._s(t.appData.applicationDesc))])])]),e("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:"版本"}},[t._v(t._s(t.appData.applicationVersion||"--"))]),e("el-form-item",{attrs:{label:"到期时间"}},[t._v("\n "+t._s(t.appData.overTime|t.timeStampToYmd||"--")+"\n "),e("el-tag",{staticStyle:{margin:"0 20px 0 10px"},attrs:{type:"danger"}},[t._v("已到期")]),e("el-button",{attrs:{type:"text"}},[t._v("去续费 "),e("i",{staticClass:"iconfont iconjiantouxiangyou"})])],1),e("h3",{staticClass:"model-title",staticStyle:{"margin-top":"40px"}},[t._v("应用设置")]),e("el-form-item",{attrs:{label:"可见范围"}},[e("h4",{staticClass:"sub-title"},[t._v("管理成员")]),e("div",{staticClass:"admin-list"},[t._l(t.appData.adminRange,(function(a){return e("el-tag",{key:a.roleId,attrs:{type:"info"}},[t._v(t._s(a.roleName))])})),0==t.appData.adminRange.length?e("span",{staticClass:"no-admin"},[t._v("暂无成员")]):t._e()],2),e("h4",{staticClass:"sub-title"},[t._v("门店成员")]),e("div",{staticClass:"admin-list"},[t._l(t.appData.storeAdminRange,(function(a){return e("el-tag",{key:a.roleId,attrs:{type:"info"}},[t._v(t._s(a.roleName))])})),0==t.appData.storeAdminRange.length?e("span",{staticClass:"no-admin"},[t._v("暂无成员")]):t._e()],2)])],1)],1)},n=[],p=e("8e83"),o=p["a"].getAppDetail,s={name:"AppDetail",data:function(){return{appData:{applicationName:"",applicationDesc:"",applicationVersion:"",overTime:"",adminRange:[],storeAdminRange:[],applicationLogo:""}}},created:function(){var t=this.$route.query.appId;t||this.$router.go(-1),this.$emit("showTab","/app-list"),this.getAppDetail(t)},methods:{getAppDetail:function(t){var a=this;o({applicationId:t}).then((function(t){var e=t.result||{},i=e.applicationName,n=e.applicationDesc,p=e.applicationVersion,o=e.overTime,s=e.adminRange,c=e.storeAdminRange,l=e.applicationLogo;Object.assign(a.appData,{applicationName:i,applicationDesc:n,applicationVersion:p,overTime:o,applicationLogo:l}),"string"==typeof s&&s.length>0&&(a.appData.adminRange=JSON.parse(s)),"string"==typeof c&&c.length>0&&(a.appData.storeAdminRange=JSON.parse(c))}))}}},c=s,l=(e("d265"),e("2877")),r=Object(l["a"])(c,i,n,!1,null,"c030ec20",null);a["default"]=r.exports},ab67:function(t,a,e){},d265:function(t,a,e){"use strict";var i=e("ab67"),n=e.n(i);n.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-40e8a9a0"],{"71f6":function(a,t,i){"use strict";i.d(t,"a",(function(){return n}));i("ac6a"),i("456d");var e=i("b775");function n(a,t){a=a||{};var i=Object.keys(a);return i.forEach((function(i){var n=a[i];"string"===typeof n&&(n={url:n}),n.url="".concat(t).concat(n.url),a[i]=function(a,t){return Object(e["a"])(n,a,t)}})),a}},"8e83":function(a,t,i){"use strict";var e=i("71f6"),n={getAppList:"/application-list",getAppDetail:"/application-detail"};t["a"]=Object(e["a"])(n,"/hb-manage-web")},"9bc6":function(a,t,i){"use strict";i.r(t);var e=function(){var a=this,t=a.$createElement,i=a._self._c||t;return i("div",{staticClass:"app-detail"},[i("el-form",{attrs:{"label-width":"90px"}},[i("h3",{staticClass:"model-title"},[a._v("应用信息")]),i("div",{staticClass:"app-info"},[i("div",{class:["app-logo",{"no-logo":!a.appData.applicationLogo}]},[a.appData.applicationLogo?i("img",{attrs:{src:a.appData.applicationLogo,alt:""}}):a._e()]),i("div",[i("p",{staticClass:"app-name"},[a._v(a._s(a.appData.applicationName||"--"))]),i("p",{staticClass:"app-desc"},[a._v(a._s(a.appData.applicationDesc))])])]),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:"版本"}},[a._v(a._s(a.appData.applicationVersion||"--"))]),i("el-form-item",{attrs:{label:"到期时间"}},[a._v("\n "+a._s(a.appData.overTime|a.timeStampToYmd||"--")+"\n "),i("el-tag",{staticStyle:{margin:"0 20px 0 10px"},attrs:{type:"danger"}},[a._v("已到期")]),i("el-button",{attrs:{type:"text"}},[a._v("去续费 "),i("i",{staticClass:"iconfont iconjiantouxiangyou"})])],1),i("h3",{staticClass:"model-title",staticStyle:{"margin-top":"40px"}},[a._v("应用设置")]),i("el-form-item",{attrs:{label:"可见范围"}},[i("h4",{staticClass:"sub-title"},[a._v("管理成员")]),i("div",{staticClass:"admin-list"},[a._l(a.appData.adminRange,(function(t){return i("el-tag",{key:t.roleId,attrs:{type:"info"}},[a._v(a._s(t.roleName))])})),0==a.appData.adminRange.length?i("span",{staticClass:"no-admin"},[a._v("暂无成员")]):a._e()],2),i("h4",{staticClass:"sub-title"},[a._v("门店成员")]),i("div",{staticClass:"admin-list"},[a._l(a.appData.storeAdminRange,(function(t){return i("el-tag",{key:t.roleId,attrs:{type:"info"}},[a._v(a._s(t.roleName))])})),0==a.appData.storeAdminRange.length?i("span",{staticClass:"no-admin"},[a._v("暂无成员")]):a._e()],2)])],1)],1)},n=[],p=i("8e83"),s=p["a"].getAppDetail,o={name:"AppDetail",data:function(){return{appData:{applicationName:"",applicationDesc:"",applicationVersion:"",overTime:"",adminRange:[],storeAdminRange:[],applicationLogo:""}}},created:function(){var a=this.$route.query.appId;a||this.$router.go(-1),this.$emit("showTab","/app-list"),this.getAppDetail(a)},methods:{getAppDetail:function(a){var t=this;s({applicationId:a}).then((function(a){var i=a.result||{},e=i.applicationName,n=i.applicationDesc,p=i.applicationVersion,s=i.overTime,o=i.adminRange,l=i.storeAdminRange,c=i.applicationLogo;Object.assign(t.appData,{applicationName:e,applicationDesc:n,applicationVersion:p,overTime:s,applicationLogo:c}),"string"==typeof o&&o.length>0&&(t.appData.adminRange=JSON.parse(o)),"string"==typeof l&&l.length>0&&(t.appData.storeAdminRange=JSON.parse(l))}))}}},l=o,c=(i("d265"),i("2877")),r=Object(c["a"])(l,e,n,!1,null,"c030ec20",null);t["default"]=r.exports},ab67:function(a,t,i){},d265:function(a,t,i){"use strict";var e=i("ab67"),n=i.n(e);n.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-48e8e9e2"],{6734:function(t,a,i){},ab67d:function(t,a,i){"use strict";var s=i("6734"),o=i.n(s);o.a},c686:function(t,a,i){"use strict";i.r(a);var s=function(){var t=this,a=t.$createElement,i=t._self._c||a;return i("div",{staticClass:"app-auth-body"},[t._m(0),i("div",{staticClass:"app-auth-info"},[i("div",{staticClass:"app-info-body"},[i("div",{staticClass:"app-info-title"},[t._v("应用授权")]),i("div",{staticClass:"app-info-detail"},[i("div",{staticClass:"flex app-top"},[i("div",{staticClass:"app-img"},[i("img",{attrs:{src:t.appInfo.iconUrl,alt:"app"}})]),i("div",{staticClass:"flex flex-column p-l-12 flex-space-between"},[i("div",{staticClass:"font-14 color-303133 line-h-22"},[t._v(t._s(t.appInfo.applicationName))]),i("div",{staticClass:"font-12 color-606266 line-h-20"},[t._v(t._s(t.appInfo.introduction))])])]),i("div",{staticClass:"auth-rights"},[i("div",{staticClass:"auth-rights-title font-14 color-909399"},[t._v("授权后将允许"+t._s(t.appInfo.applicationName||"")+"应用进行以下权限操作")]),i("div",[i("ul",t._l(t.rightsList,(function(a,s){return i("li",{key:s+"right",staticClass:"font-14 color-303133"},[t._v(t._s(a.rightsName))])})),0)])])]),i("div",{staticClass:"app-info-btn"},[i("el-checkbox",{staticClass:"p-r-10",model:{value:t.checkAuth,callback:function(a){t.checkAuth=a},expression:"checkAuth"}}),i("el-button",{attrs:{type:"text"},on:{click:t.toProtocol}},[t._v("授权同意《达摩授权服务协议》")]),i("el-button",{attrs:{disabled:!t.checkAuth,type:"primary"},on:{click:function(a){return a.stopPropagation(),t.toAuthRights(a)}}},[t._v("授权")])],1)])])])},o=[function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("div",{staticClass:"app-auth-head"},[s("img",{attrs:{src:i("cf05"),alt:"logo"}}),s("span",{staticClass:"web-name"},[t._v("好办管理平台")])])}],n={name:"AppAuth",components:{},data:function(){return{appInfo:{appId:"",applicationName:"",introduction:"",iconUrl:"https://pic01-10001430.image.myqcloud.com/69918371857506304/1594638566081_O1zMw.jpg",rights:""},checkAuth:!1,rightsList:[]}},mounted:function(){var t=this;t.getAppData()},methods:{toProtocol:function(){window.open("/app-center/protocol","_blank","noopener")},toAuthRights:function(){var t=this;t.$router.push("/")},getAppData:function(){var t=this;t.appInfo={}}},watch:{}},c=n,e=(i("ab67d"),i("2877")),p=Object(e["a"])(c,s,o,!1,null,"31b63e3a",null);a["default"]=p.exports},cf05:function(t,a,i){t.exports=i.p+"img/logo.861ef5c7.png"}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-90312de2"],{"6b47":function(t,a,i){"use strict";var s=i("ece8"),o=i.n(s);o.a},c686:function(t,a,i){"use strict";i.r(a);var s=function(){var t=this,a=t.$createElement,i=t._self._c||a;return i("div",{staticClass:"app-auth-body"},[t._m(0),i("div",{staticClass:"app-auth-info"},[i("div",{staticClass:"app-info-body"},[i("div",{staticClass:"app-info-title"},[t._v("应用授权")]),i("div",{staticClass:"app-info-detail"},[i("div",{staticClass:"flex app-top"},[i("div",{staticClass:"app-img"},[i("img",{attrs:{src:t.appInfo.iconUrl,alt:"app"}})]),i("div",{staticClass:"flex flex-column p-l-12 flex-space-between"},[i("div",{staticClass:"font-14 color-303133 line-h-22"},[t._v(t._s(t.appInfo.applicationName))]),i("div",{staticClass:"font-12 color-606266 line-h-20"},[t._v(t._s(t.appInfo.introduction))])])]),i("div",{staticClass:"auth-rights"},[i("div",{staticClass:"auth-rights-title font-14 color-909399"},[t._v("授权后将允许"+t._s(t.appInfo.applicationName||"")+"应用进行以下权限操作")]),i("div",[i("ul",t._l(t.rightsList,(function(a,s){return i("li",{key:s+"right",staticClass:"font-14 color-303133"},[t._v(t._s(a.rightsName))])})),0)])])]),i("div",{staticClass:"app-info-btn"},[i("el-checkbox",{staticClass:"p-r-10",model:{value:t.checkAuth,callback:function(a){t.checkAuth=a},expression:"checkAuth"}}),i("el-button",{attrs:{type:"text"},on:{click:t.toProtocol}},[t._v("授权同意《达摩授权服务协议》")]),i("el-button",{attrs:{disabled:!t.checkAuth,type:"primary"},on:{click:function(a){return a.stopPropagation(),t.toAuthRights(a)}}},[t._v("授权")])],1)])])])},o=[function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("div",{staticClass:"app-auth-head"},[s("img",{attrs:{src:i("cf05"),alt:"logo"}}),s("span",{staticClass:"web-name"},[t._v("好办管理平台")])])}],n={name:"AppAuth",components:{},data:function(){return{appInfo:{appId:"",applicationName:"",introduction:"",iconUrl:"https://pic01-10001430.image.myqcloud.com/69918371857506304/1594638566081_O1zMw.jpg",rights:""},checkAuth:!1,rightsList:[]}},mounted:function(){var t=this;t.getAppData()},methods:{toProtocol:function(){window.open("/app-center/protocol","_blank","noopener")},toAuthRights:function(){var t=this;t.$router.push("/")},getAppData:function(){var t=this;t.appInfo={}}},watch:{}},c=n,e=(i("6b47"),i("2877")),p=Object(e["a"])(c,s,o,!1,null,"1b9a02d6",null);a["default"]=p.exports},cf05:function(t,a,i){t.exports=i.p+"img/logo.861ef5c7.png"},ece8:function(t,a,i){}}]);
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
/*
* @Descripttion: 当前组件信息
* @version: 1.0.0
* @Author: 无尘
* @Date: 2020-09-08 17:11:02
* @LastEditors: 无尘
* @LastEditTime: 2020-10-19 14:49:31
*/
import getFetch from './get-fetch';
const api = {
getAppList: '/application-list', // 获取应用列表
getAppDetail: '/application-detail', // 获取应用详情
getMarketAccount: '/get-account-info', // 获取服务市场账号
refreshMarketAccount: '/refesh-account-info', // 刷新服务市场账号
addMarketAccount: {
url: '/bind-service-account', // 添加服务市场账号
method: 'post',
useFormData: true,
useIntercept: false
},
getAppAuthDetail: '/', // 获取应用授权详情
postAuthRights: '/', // 授权
postPhoneCode: {
url: '/send-code', // 发送验证码
method: 'post',
useFormData: true,
useIntercept: false
},
checkCode: {
url: '/validate-code', // 校验验证码
method: 'post',
useFormData: true,
useIntercept: false
},
};
export default getFetch(api, '/hb-manage-web');
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-07-24 12:19:48
* @LastEditors: 无尘
* @LastEditTime: 2020-08-14 10:03:39
* @LastEditTime: 2020-10-19 14:46:14
*/
import getFetch from './get-fetch.js';
......@@ -34,7 +34,7 @@ let api = {
getRefreshLog: '/sync/sync-task', // 查看刷新日志
getSyncFailDetail: '/sync-task-detail', // 查看失败日志
getNationCode: '/nationcode/get-nationcode-list', // 获取国家码(暂无用)
getNationCode: '/get-nation-code-list', // 获取国家码
getGicGroup: '/gic-department-list', // 获取gic部门(暂无用)
getGicStore: '/get-store-list', // 获取gic门店(暂无用)
......
<!--
* @Descripttion: 添加服务市场账号
* @version: 1.0.0
* @Author: 无尘
* @Date: 2020-10-16 14:22:10
* @LastEditors: 无尘
* @LastEditTime: 2020-10-19 15:22:20
-->
<!--
使用帮助
<add-market-dialog @closeMarket="closeMarket"></add-market-dialog>
import AddMarketDialog from '@/components/app/add-market-dialog.vue';
-->
<template>
<el-dialog title="绑定服务市场账号" :visible.sync="dialogVisible" width="600px" :before-close="handleClose">
<div class="">
<el-form ref="ruleForm" :model="marketForm" label-width="80px">
<el-form-item label="手机号">
<country-mobile :nation-code.sync="marketForm.nationCode" :input-width="500" :limit-class="'limit-color'" v-model="marketForm.phoneNumber" :holder="'请输入'"></country-mobile>
</el-form-item>
<el-form-item label="验证码">
<el-input v-model="marketForm.code" placeholder="请输入验证码"></el-input><el-button class="m-l-35" :disabled="disableBtn" type="text" @click="sendCode()">{{ (disableBtn && countNum == 60) || (!disableBtn && !!countNum) ? '获取验证码' : countNum + 's' }}</el-button>
</el-form-item>
</el-form>
</div>
<div slot="footer" class="dialog-footer">
<el-button @click="handleClose">取消</el-button>
<el-button type="primary" :loading="loadBtn" @click="submitForm('ruleForm')">确认</el-button>
</div>
</el-dialog>
</template>
<script>
import { _debounce } from '@/common/js/public';
import fetch from '@/api/app-controls';
import PhoneNumber from 'awesome-phonenumber';
const { addMarketAccount, postPhoneCode, checkCode } = fetch;
import showMsg from '@/common/js/showmsg';
export default {
name: 'AddMarketDialog',
data() {
return {
dialogVisible: true,
loadBtn: false,
marketForm: {
nationCode: '86',
phoneNumber: '',
code: ''
},
disableBtn: true, // 发验证码.默认无手机号,不可点击
countNum: 60,
};
},
methods: {
/**
* @description: 倒计时
* @author: 无尘
*/
countDown() {
const that = this;
let time = setInterval(function() {
if (that.countNum === 0) {
clearInterval(time);
that.countNum = 60;
that.disableBtn = false;
return false;
}
that.countNum--;
}, 1000);
},
/**
* @description: 发送验证码
* @returns {Boolean}
* @author: 无尘
*/
sendCode: _debounce(function() {
const that = this;
let { phoneNumber, nationCode } = that.marketForm;
if (phoneNumber == '' ) {
showMsg.showmsg('手机号不能为空', 'warning');
return false;
}
const pn = new PhoneNumber('+' + nationCode + phoneNumber);
if (!pn.isValid() || !pn.isMobile()) {
showMsg.showmsg('手机号格式不正确', 'warning');
return false;
}
let params = {
phoneNumber,
nationCode,
type: 1
// isTest: 1 , // 测试时使用
};
postPhoneCode(params)
.then(res => {
if (res.code == '0000') {
that.disableBtn = true;
that.countDown();
const phone = String(phoneNumber);
let handle = phone.substr(0, 3) + '****' + phone.substr(7, phone.length - 1);
showMsg.showmsg(`已发送验证码到${nationCode || '86'}-${handle}`, 'success');
return false;
}
showMsg.showmsg(res.message || '未知错误', 'warning');
})
.catch(function(error) {
});
}, 300),
/**
* @description: 校验验证码
* @returns {Function}
* @author: 无尘
*/
checkCode() {
const that = this;
let { phoneNumber, nationCode, code } = that.marketForm;
let params = {
phoneNumber,
nationCode,
type: 1,
code
};
return new Promise((resolve, reject) => {
checkCode(params)
.then(res => {
if (res.code == '0000') {
resolve(true);
return false;
}
showMsg.showmsg(res.message || '未知错误', 'warning');
resolve(false);
})
.catch(function(error) {
resolve(false);
that.$message.error({
duration: 1000,
message: error.message
});
});
});
},
/**
* @description: 保存
* @param {String} formName
* @author: 无尘
*/
submitForm: _debounce(function(formName) {
const that = this;
that.$refs[formName].validate(valid => {
if (valid) {
that.postSave();
}
});
}, 300),
postSave() {
const that = this;
that.loadBtn = true;
const data = {
};
addMarketAccount(data)
.then(res => {
that.loadBtn = false;
if (res.code == '0000') {
showMsg.showmsg('操作成功', 'success');
that.$refs['ruleForm'].resetFields();
that.$emit('closeMarket', true);
}else {
showMsg.showmsg(res.message || '未知错误', 'warning');
that.$emit('closeMarket', true);
}
})
.catch(error => {
that.loadBtn = false;
});
},
/**
* @description: 关闭弹窗
* @author: 无尘
*/
handleClose() {
const that = this;
that.$emit('closeMarket');
}
},
watch: {
marketForm(obj) {
const that = this;
if (obj.phoneNumber) {
that.disableBtn = false;
}
}
},
};
</script>
<style lang="less" scoped>
.m-b-20 {
margin-bottom: 20px;
}
</style>
......@@ -4,11 +4,12 @@
* @Author: 无尘
* @Date: 2019-07-03 18:50:33
* @LastEditors: 无尘
* @LastEditTime: 2020-09-09 15:27:40
* @LastEditTime: 2020-10-19 14:35:46
-->
<!--
限制输入框组件
<countryMobile
:nationCode.sync="loginForm.nationCode"
:input-width="500"
:limit-class="'limit-color'"
:disflag='disflag'
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-07-16 16:37:05
* @LastEditors: 无尘
* @LastEditTime: 2020-10-16 10:20:16
* @LastEditTime: 2020-10-16 11:46:45
*/
import _import from './_import.js';
......@@ -167,7 +167,14 @@ export const routes = [
path: '/app-detail',
meta: { title: '服务应用详情' },
component: _import('app-controls', 'app-detail')
}
},
{
path: '/app-market',
meta: {
title: '服务市场'
},
component: _import('app-controls', 'app-market')
},
]
},
{
......
<!--
* @Descripttion: 服务市场账号
* @version: 1.0.0
* @Author: 无尘
* @Date: 2020-10-16 11:46:25
* @LastEditors: 无尘
* @LastEditTime: 2020-10-19 14:32:54
-->
<template>
<div class="app-market-body">
<div class="app-market-account">
<el-tooltip class="item" effect="dark" content="绑定服务市场账号后可购买应用。购买信息在服务市场可查看。" placement="top-start"> <span class="font-16 color-303133 font-w-600 common-bottom-border">服务市场账号</span></el-tooltip>
<el-button class="m-l-20" type="primary" @click="addAcount">添加</el-button>
<el-button class="m-l-20" type="text" :loading="loadRefesh" @click="refreshData">同步刷新 </el-button>
<span class="font-12 color-909399 p-l-15">更新时间:{{ marketAccount.updateTime | formatTimeStamp}}</span>
</div>
<div class="app-market-list">
<el-form ref="form" :model="form" label-width="80px">
<el-form-item label="账号">
{{marketAccount.id || '--'}}
</el-form-item>
<el-form-item label="绑定时间">
{{marketAccount.bindDate | formatTimeStamp}}
</el-form-item>
<el-form-item label="绑定人">
{{marketAccount.bindName || ''}}
</el-form-item>
</el-form>
</div>
<add-market-dialog v-if="showDialog" @closeMarket="closeMarket"></add-market-dialog>
</div>
</template>
<script>
import AddMarketDialog from '@/components/app/add-market-dialog.vue';
import fetch from '@/api/app-controls';
const { getMarketAccount, refreshMarketAccount } = fetch;
import showMsg from '@/common/js/showmsg';
export default {
name: '',
components: { AddMarketDialog },
data() {
return {
wxEnterpriseId: localStorage.getItem('haoBanUser') ? JSON.parse(localStorage.getItem('haoBanUser')).wxEnterpriseId : '',
marketAccount: {
id: '',
bindDate: '',
bindName: '',
updateTime: ''
},
loadRefesh: false,
showDialog: false
};
},
// 生命周期 - 挂载完成(访问DOM元素)
mounted() {
const that = this;
that.getMarket();
},
// methods
methods: {
refreshData() {
const that = this;
that.refreshMarketData();
},
/**
* @description: 刷新数据
* @author: 无尘
*/
refreshMarketData() {
const that = this;
that.loadRefesh = true;
const para = {
wxEnterpriseId: that.wxEnterpriseId
};
refreshMarketAccount(para)
.then(res => {
that.loadRefesh = false;
showMsg.showmsg('刷新成功', 'success');
that.getMarket();
})
.catch(function(error) {
that.loadRefesh = false;
});
},
/**
* @description: 添加
* @author: 无尘
*/
addAcount() {
const that = this;
that.showDialog = true;
},
closeMarket(res) {
const that = this;
that.showDialog = false;
if (res) {
that.getMarket();
}
},
/**
* @description: 获取服务市场账号
* @author: 无尘
*/
getMarket() {
const that = this;
const para = {
};
getMarketAccount(para)
.then(res => {
if (!res.result) {
that.marketAccount = res.result || {};
}
})
.catch(function(error) {
});
}
},
watch: {}
};
</script>
<style lang='less' scoped>
.common-bottom-border {
cursor: pointer;
padding-bottom: 2px;
border-bottom: 1px dashed #2f54eb;
}
.app-market-body {
.app-market-list {
width: 100%;
height: 119px;
background: #F5F7FA;
padding: 18px 26px;
box-sizing: border-box;
}
}
</style>
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-10-16 10:18:02
* @LastEditors: 无尘
* @LastEditTime: 2020-10-16 11:39:56
* @LastEditTime: 2020-10-16 11:44:00
-->
<template>
<div class="app-auth-body">
......@@ -131,7 +131,7 @@ export default {
box-sizing: border-box;
.app-info-title {
font-size: 16px;
font-weight: 500;
font-weight: 600;
color: #303133;
line-height: 22px;
}
......@@ -160,6 +160,9 @@ export default {
border-radius: 6px;
}
}
.app-name {
font-weight: 600;
}
.auth-rights {
.auth-rights-title {
padding: 10px 0;
......
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