webpackJsonp([137],{"5Np7":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});a("OWWB");var s=a("1fWZ"),n=(a("i0mo"),a("Hkar")),i=(a("cOrn"),a("77gS"));a("7+uW").a.use(s.a).use(n.a).use(i.a);var r={name:"about",data:function(){return{info:{},app_ver:"8.0"}},created:function(){this.get_ver();var t=this;window.plus&&plus.runtime.getProperty(plus.runtime.appid,function(e){t.app_ver=e.version})},methods:{get_ver:function(){this.$toast.loading({message:"正在检查...",forbidClick:!0});var t=this;if(!window.plus)return t.$toast.clear(),t.$toast.success({message:"当前已经是最新版本!",duration:1e3}),!1;plus.runtime.getProperty(plus.runtime.appid,function(e){wgtVer=e.version,t.$axios("post","/api/pro/version/check",{version:wgtVer.toString()}).then(function(e){t.info=e.data.data,t.$toast.clear(),1==e.data.code?e.data.data.status?t.$toast.success({message:"当前已经是最新版本!",duration:1e3}):t.$dialog.alert({title:"发现新版本"+e.data.data.new_version.version,message:"确定要更新吗?(更新完成将自动重启)"}).then(function(){t.$toast.loading({duration:0,mask:!0,type:"loading",message:"更新中...",forbidClick:!0}),t.downWgt(e.data.data.new_version.app_path)}):t.$toast.success({message:"当前已经是最新版本!",duration:1e3})})})},downWgt:function(t){var e=this;if(!window.plus)return!1;plus.downloader.createDownload(t,{filename:"_doc/update/"},function(t,a){200==a?e.installWgt(t.filename):(e.$toast.clear(),Object(i.a)({type:"danger",message:"下载失败,请稍后重试",duration:1e3}))}).start()},installWgt:function(t){if(!window.plus)return!1;this.$toast.clear(),plus.runtime.install(t,{force:!0},function(){plus.runtime.restart()},function(t){plus.runtime.restart()})}}},o={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("van-nav-bar",{attrs:{title:"关于功道云","left-text":"返回","left-arrow":""},on:{"click-left":t.$route_back}}),t._v(" "),a("div",{staticClass:"body_com has_header"},[a("div",{staticClass:"version_box"},[a("img",{staticStyle:{width:"1.5rem",height:"1.5rem","border-radius":"1rem"},attrs:{src:"static/images/logo.png"}}),t._v(" "),a("div",{staticClass:"app_name"},[t._v("功道云")]),t._v(" "),t.app_ver?a("div",{staticClass:"app_version"},[t._v(t._s(t.app_ver))]):t._e()]),t._v(" "),a("div",{staticStyle:{padding:"0.32rem"}},[a("van-cell-group",[a("van-cell",{attrs:{title:"更新公告","is-link":"",to:"/noticeList"}}),t._v(" "),a("van-cell",{attrs:{title:"检测更新","is-link":""},on:{click:t.get_ver}})],1)],1)]),t._v(" "),a("div",{staticClass:"copy-right"},[a("p",[a("a",{on:{click:function(e){return t.$router.push({name:"user_agreement"})}}},[t._v("《软件许可及服务协议》")]),t._v("\n 和\n "),a("a",{on:{click:function(e){return t.$router.push({name:"privacy_agreement"})}}},[t._v("《隐私保护指引》")])]),t._v(" "),a("p",{staticClass:"text"},[t._v("功道云 版权所有")]),t._v(" "),a("p",{staticClass:"text"},[t._v("Copyright ©2015-2024 Kung Dao Cloud All Rights Reserved.")])])],1)},staticRenderFns:[]};var u=a("VU/8")(r,o,!1,function(t){a("Jy2V")},"data-v-435d9e4d",null);e.default=u.exports},Jy2V:function(t,e){}});