webpackJsonp([6],{"3HL9":function(t,i,a){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var s={data:function(){return{item:{plugin:{}},loading:!0,installLoading:!1,installTip:"安装"}},components:{userinfo:a("FOXq").a},created:function(){var t=this;t.get_json(t.$store.state.api+"Plugin/"+t.$route.params.id,function(i){t.item=i,t.loading=!1})},methods:{pay:function(){var t=this;t.$confirm("购买插件会与域名绑定，并且只能在当前域名下使用, 请确认是否在当前域名下购买本插件?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){t.$store.state.pay=t.item.plugin,t.jump_router("/pay")})},install:function(){var t=this;t.installLoading=!0,t.installTip="安装中...",t.get_json(t.$store.state.api+"Plugin/"+t.$route.params.id+"/install/domain/"+document.domain,function(i){t.item.status=20,t.loading=!1})}}},n={render:function(){var t=this,i=t.$createElement,a=t._self._c||i;return a("div",{staticClass:"main"},[a("div",{staticClass:"panel wizard-type1"},[a("div",{staticClass:"panel-heading bk-bg-primary"},[a("div",{staticClass:"list-articles"},[a("button",{staticClass:"btn btn-default release",attrs:{type:"button"}},[t._v("模板")]),t._v(" "),a("div",{staticClass:"pull-right"},[a("userinfo")],1)])]),t._v(" "),a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"report-data"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col-sm-12"},[a("div",{staticClass:"item bs"},[a("div",{staticClass:"img pull-left ri-1"},[a("img",{attrs:{src:t.item.plugin.fullpathThumbnail}})]),t._v(" "),a("div",{staticClass:"info"},[a("span",[t._v(t._s(t.item.plugin.name))]),t._v(" "),a("div",{staticClass:"pf"},[a("el-rate",{attrs:{disabled:"","show-score":"","text-color":"#ff9900","score-template":"20"},model:{value:t.item.plugin.id,callback:function(i){t.$set(t.item.plugin,"id",i)},expression:"item.plugin.id"}}),t._v(" "),0==t.item.status?a("div",{staticClass:"jgk"},[a("b",[a("i",[t._v("¥")]),t._v("\n                    "+t._s(t.item.plugin.price)+"\n                  ")])]):t._e()],1),t._v(" "),20==t.item.status?a("el-button",{attrs:{type:"success"},on:{click:function(i){t.jump_href(t.item.plugin.path)}}},[t._v("打开")]):10==t.item.status||0==t.item.plugin.price?a("el-button",{attrs:{type:"primary",loading:t.installLoading},on:{click:t.install}},[t._v(t._s(t.installTip))]):0==t.item.status||0!=t.item.plugin.price?a("el-button",{attrs:{type:"warning",icon:"iconfont icon-car"},on:{click:t.pay}},[t._v("  购买")]):t._e()],1),t._v(" "),a("div",{staticClass:"clearfix"}),t._v(" "),a("p",[t._v(t._s(t.item.plugin.description))])])])])]),t._v(" "),a("div",{staticClass:"panel-body",domProps:{innerHTML:t._s(t.item.plugin.content)}})])])},staticRenderFns:[]};var e=a("VU/8")(s,n,!1,function(t){a("C+/b")},"data-v-53f27ffe",null);i.default=e.exports},"C+/b":function(t,i){}});