| 1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-5e6f"],{"+h1d":function(t,e,s){"use strict";var a={components:{video_course:s("bmyc").a},props:{defaultActive:{type:String,default:""},slideName:{type:String,default:""},slideBottomName:{type:String,default:""},top_style:{type:String,default:""}},data:function(){return{search:{}}},mounted:function(){},methods:{}},i=(s("sxda"),s("KHd+")),n=Object(i.a)(a,function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"all"},[s("video_course",{attrs:{defaultActive:t.defaultActive}}),t._v(" "),s("div",{staticStyle:{width:"calc(100% - 150px)"},attrs:{id:"app"}},[t._t("top-other"),t._v(" "),s("div",{staticClass:"top-pane",style:t.top_style},[s("div",{staticClass:"vue-main-title"},[s("div",{staticClass:"vue-main-title-left"}),t._v(" "),s("div",{staticClass:"vue-main-title-content"},[t._v(t._s(t.slideName))]),t._v(" "),t._t("top")],2),t._v(" "),s("div",{staticClass:"vue-search"},[t._t("content")],2)]),t._v(" "),t.slideBottomName?s("div",{staticClass:"table-pane"},[s("div",{staticClass:"vue-main-title"},[s("div",{staticClass:"vue-main-title-left"}),t._v(" "),s("div",{staticClass:"vue-main-title-content"},[t._v(t._s(t.slideBottomName))])]),t._v(" "),s("div",{staticClass:"vue-search"},[t._t("content-bottom")],2)]):t._e(),t._v(" "),t.slideBottomName?s("div",{staticClass:"vue-page"},[t._t("vue-page")],2):t._e(),t._v(" "),t._t("bottom-other")],2)],1)},[],!1,null,"121101e6",null);n.options.__file="slide_cpm.vue";e.a=n.exports},"4x2w":function(t,e,s){"use strict";s.r(e);var a=s("14Xm"),i=s.n(a),n=s("D3Ub"),o=s.n(n),c={components:{slide_cpm:s("+h1d").a},data:function(){return{search:{is_open:0},dataDetail:{}}},mounted:function(){this.getSetData()},methods:{copyLink:function(t){var e=document.createElement("input");e.value=t,document.body.appendChild(e),e.select(),document.execCommand("copy"),this.$message({type:"success",message:"复制成功"}),document.body.removeChild(e)},getSetData:function(t,e){var s=this;return o()(i.a.mark(function t(){var e,a,n,o;return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,$http.pc_get("plugin/wechatVideoCourses/getSet",{});case 2:e=t.sent,a=e.data,n=e.result,o=e.msg,console.log(a,n,o,222),n?(s.search.is_open=a.is_open?a.is_open:0,s.dataDetail=a):s.$message.error(o);case 8:case"end":return t.stop()}},t,s)}))()},saveSet:function(){var t=this;return o()(i.a.mark(function e(){var s,a,n,o;return i.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,$http.pc_post("plugin/wechatVideoCourses/saveSet",{data:t.search});case 2:s=e.sent,a=s.data,n=s.result,o=s.msg,console.log(a,n,o,222),n?t.$message.success(o):t.$message.error(o);case 8:case"end":return e.stop()}},e,t)}))()}}},l=(s("fzw2"),s("KHd+")),r=Object(l.a)(c,function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"video-course"},[s("slide_cpm",{attrs:{defaultActive:"videoCourse",slideName:"基础设置",top_style:"height: 100vh;"}},[s("el-form",{staticClass:"demo-form-inline",attrs:{slot:"content","label-width":"200px"},slot:"content"},[s("el-form-item",{attrs:{label:"插件开关"}},[s("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:t.search.is_open,callback:function(e){t.$set(t.search,"is_open",e)},expression:"search.is_open"}})],1),t._v(" "),s("el-form-item",{attrs:{label:"管理员/分公司链接"}},[s("el-button",{staticClass:"width-btn",attrs:{plain:""},on:{click:function(e){t.copyLink(t.dataDetail.role_url)}}},[t._v("H5")])],1),t._v(" "),s("el-form-item",{attrs:{label:"课程答题聚合页链接"}},[s("el-button",{staticClass:"width-btn",attrs:{plain:""},on:{click:function(e){t.copyLink(t.dataDetail.course_url)}}},[t._v("复制链接")])],1)],1),t._v(" "),s("div",{staticClass:"send-buttons",attrs:{slot:"bottom-other"},slot:"bottom-other"},[s("el-button",{attrs:{type:"primary"},on:{click:t.saveSet}},[t._v("提交")])],1)],1)],1)},[],!1,null,"5bcb45ce",null);r.options.__file="index.vue";e.default=r.exports},E4ZW:function(t,e,s){},dX9F:function(t,e,s){},fzw2:function(t,e,s){"use strict";var a=s("dX9F");s.n(a).a},sxda:function(t,e,s){"use strict";var a=s("E4ZW");s.n(a).a}}]);
|