webpackJsonp([8],{"3HL9":function(t,i,s){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var a={data:function(){return{item:{plugin:{}},loading:!0,installLoading:!1,installTip:"安装"}},components:{userinfo:s("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.$message.success("安装成功！"),t.item.status=20,t.loading=!1})}}},n={render:function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",{staticClass:"main"},[s("div",{staticClass:"panel wizard-type1"},[s("div",{staticClass:"panel-heading bk-bg-primary"},[s("div",{staticClass:"list-articles"},[s("button",{staticClass:"btn btn-default release",attrs:{type:"button"}},[t._v("模板")]),t._v(" "),s("div",{staticClass:"pull-right"},[s("userinfo")],1)])]),t._v(" "),s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"report-data"},[s("div",{staticClass:"row"},[s("div",{staticClass:"col-sm-12"},[s("div",{staticClass:"item bs"},[s("div",{staticClass:"img pull-left ri-1"},[s("img",{attrs:{src:t.item.plugin.fullpathThumbnail}})]),t._v(" "),s("div",{staticClass:"info"},[s("span",[t._v(t._s(t.item.plugin.name))]),t._v(" "),s("div",{staticClass:"pf"},[s("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?s("div",{staticClass:"jgk"},[s("b",[s("i",[t._v("¥")]),t._v("\n                    "+t._s(t.item.plugin.price)+"\n                  ")])]):t._e()],1),t._v(" "),20==t.item.status?s("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?s("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?s("el-button",{attrs:{type:"warning",icon:"iconfont icon-car"},on:{click:t.pay}},[t._v("  购买")]):t._e()],1),t._v(" "),s("div",{staticClass:"clearfix"}),t._v(" "),s("p",[t._v(t._s(t.item.plugin.description))])])])])]),t._v(" "),s("div",{staticClass:"panel-body",domProps:{innerHTML:t._s(t.item.plugin.content)}})])])},staticRenderFns:[]};var e=s("VU/8")(a,n,!1,function(t){s("6gdT")},"data-v-09549ed0",null);i.default=e.exports},"6gdT":function(t,i){}});