(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["mzYdt"],{1890:function(t,n,e){"use strict";e("6c50")},"25f0":function(t,n,e){"use strict";var a=e("6eeb"),i=e("825a"),r=e("d039"),u=e("ad6d"),o="toString",s=RegExp.prototype,c=s[o],d=r((function(){return"/a/b"!=c.call({source:"a",flags:"b"})})),l=c.name!=o;(d||l)&&a(RegExp.prototype,o,(function(){var t=i(this),n=String(t.source),e=t.flags,a=String(void 0===e&&t instanceof RegExp&&!("flags"in s)?u.call(t):e);return"/"+n+"/"+a}),{unsafe:!0})},3284:function(t,n,e){"use strict";e.d(n,"b",(function(){return i})),e.d(n,"a",(function(){return r})),e.d(n,"z",(function(){return u})),e.d(n,"i",(function(){return o})),e.d(n,"p",(function(){return s})),e.d(n,"S",(function(){return c})),e.d(n,"o",(function(){return d})),e.d(n,"q",(function(){return l})),e.d(n,"E",(function(){return p})),e.d(n,"F",(function(){return f})),e.d(n,"G",(function(){return h})),e.d(n,"A",(function(){return m})),e.d(n,"D",(function(){return v})),e.d(n,"C",(function(){return g})),e.d(n,"B",(function(){return b})),e.d(n,"N",(function(){return w})),e.d(n,"K",(function(){return y})),e.d(n,"O",(function(){return S})),e.d(n,"M",(function(){return C})),e.d(n,"L",(function(){return k})),e.d(n,"w",(function(){return x})),e.d(n,"y",(function(){return F})),e.d(n,"f",(function(){return _})),e.d(n,"c",(function(){return z})),e.d(n,"h",(function(){return I})),e.d(n,"e",(function(){return N})),e.d(n,"d",(function(){return U})),e.d(n,"n",(function(){return A})),e.d(n,"m",(function(){return D})),e.d(n,"Q",(function(){return O})),e.d(n,"k",(function(){return Q})),e.d(n,"T",(function(){return j})),e.d(n,"P",(function(){return L})),e.d(n,"H",(function(){return E})),e.d(n,"j",(function(){return $})),e.d(n,"R",(function(){return P})),e.d(n,"l",(function(){return R})),e.d(n,"I",(function(){return M})),e.d(n,"t",(function(){return T})),e.d(n,"g",(function(){return B})),e.d(n,"x",(function(){return K})),e.d(n,"v",(function(){return G})),e.d(n,"s",(function(){return J})),e.d(n,"r",(function(){return q})),e.d(n,"J",(function(){return Y})),e.d(n,"u",(function(){return W}));var a=e("284b"),i=function(t){return a["a"].post("/adminv2/miniprogram/videoList",t)},r=function(t){return a["a"].post("/adminv2/miniprogram/addVideoForProgram",t)},u=function(t){return a["a"].post("/adminv2/applet/banner/list",t)},o=function(t){return a["a"].post("/adminv2/applet/banner/add",t)},s=function(t){return a["a"].post("/adminv2/applet/banner/detail",t)},c=function(t){return a["a"].post("/adminv2/applet/banner/update",t)},d=function(t){return a["a"].post("/adminv2/applet/banner/delete",t)},l=function(t){return a["a"].post("/adminv2/applet/banner/enableFlag",t)},p=function(t){return a["a"].post("/adminv2/applet/privateAd/add",t)},f=function(t){return a["a"].post("/adminv2/applet/privateAd/detail",t)},h=function(t){return a["a"].post("/adminv2/applet/privateAd/update",t)},m=function(t){return a["a"].post("/adminv2/applet/liveDesc/add",t)},v=function(t){return a["a"].post("/adminv2/applet/liveDesc/update",t)},g=function(t){return a["a"].post("/adminv2/applet/liveDesc/list",t)},b=function(t){return a["a"].post("/adminv2/applet/liveDesc/delete",t)},w=function(t){return a["a"].post("/adminv2/applet/sharePoster/list",t)},y=function(t){return a["a"].post("/adminv2/applet/sharePoster/add",t)},S=function(t){return a["a"].post("/adminv2/applet/sharePoster/update",t)},C=function(t){return a["a"].post("/adminv2/applet/sharePoster/enableFlag",t)},k=function(t){return a["a"].post("/adminv2/applet/sharePoster/delete",t)},x=function(t){return a["a"].post("/adminv2/applet/liveDesc/getShowSwitch",t)},F=function(t){return a["a"].post("/adminv2/applet/liveDesc/isShowSwitch",t)},_=function(t){return a["a"].post("/adminv2/applet/active/list",t)},z=function(t){return a["a"].post("/adminv2/applet/active/add",t)},I=function(t){return a["a"].post("/adminv2/applet/active/update",t)},N=function(t){return a["a"].post("/adminv2/applet/active/enableFlag",t)},U=function(t){return a["a"].post("/adminv2/applet/active/delete",t)},A=function(t){return a["a"].post("/adminv2/activities/shuihu/commentList",t)},D=function(t){return a["a"].post("/adminv2/activities/shuihu/commentEnableFlag",t)},O=function(t){return a["a"].post("/adminv2/activities/shuihu/topicList",t)},Q=function(t){return a["a"].post("/adminv2/activities/shuihu/addTopic",t)},j=function(t){return a["a"].post("/adminv2/activities/shuihu/updateTopic",t)},L=function(t){return a["a"].post("/adminv2/activities/shuihu/topicEnableFlag",t)},E=function(t){return a["a"].post("/adminv2/activities/shuihu/qaList",t)},$=function(t){return a["a"].post("/adminv2/activities/shuihu/addQa",t)},P=function(t){return a["a"].post("/adminv2/activities/shuihu/updateQa",t)},R=function(t){return a["a"].post("/adminv2/activities/shuihu/answerList",t)},M=function(t){return a["a"].post("/adminv2/activities/shuihu/saveAnswer",t)},T=function(t){return a["a"].post("/adminv2/activities/shuihu/getAnswerInfo",t)},B=function(t){return a["a"].post("/adminv2/activities/shuihu/activeQr",t)},K=function(t){return a["a"].post("/adminv2/activities/shuihu/isShowSwitch",t)},G=function(t){return a["a"].post("/adminv2/activities/shuihu/getShowSwitch",t)},J=function(t){return a["a"].post("/adminv2/activities/shuihu/getActiveQr",t)},q=function(t){return a["a"].post("/adminv2/activities/shuihu/gameList",t)},Y=function(t){return a["a"].post("/adminv2/activities/shuihu/saveGame",t)},W=function(t){return a["a"].post("/adminv2/activities/shuihu/getGameInfo",t)}},"481e":function(t,n,e){},"6c50":function(t,n,e){},"6ffe":function(t,n,e){"use strict";var a=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"pagination"},[e("a-pagination",{attrs:{"page-size-options":t.pageSizeOptions,total:t.count,"show-total":function(t,n){return"总共"+t+"条"},"page-size":t.pageSize,showQuickJumper:"",showSizeChanger:t.showSizeChanger},on:{showSizeChange:t.onShowSizeChange,change:t.onchange},scopedSlots:t._u([{key:"buildOptionText",fn:function(n){return["99"!==n.value?e("span",[t._v(t._s(n.value)+"条/页")]):t._e()]}}]),model:{value:t.current,callback:function(n){t.current=n},expression:"current"}})],1)},i=[],r=(e("a9e3"),{props:{count:{type:Number,defaule:0},pageNo:{type:Number,default:1},showSizeChanger:{type:Boolean,default:!0}},data:function(){return{pageSizeOptions:["20","30","40","50","100","200"],current:1,pageSize:20}},watch:{pageNo:function(t){this.current=t}},created:function(){this.current=this.pageNo},methods:{onShowSizeChange:function(t,n){this.current=1,this.$emit("showSizeChangeFn",t,n),this.pageSize=n},onchange:function(t,n){this.$emit("showSizeChangeFn",t,n)}}}),u=r,o=(e("ae61"),e("2877")),s=Object(o["a"])(u,a,i,!1,null,"ae5bacaa",null);n["a"]=s.exports},9644:function(t,n,e){"use strict";e("481e")},"96b4":function(t,n,e){},a65c:function(t,n,e){"use strict";var a=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",[e("div",{staticClass:"maxBox"},[e("div",{staticClass:"imgClass"},[t.imgUrl.length>0||t.readOnly?t._l(t.imgUrl,(function(n,a){return e("div",{key:a,staticClass:"box",on:{mouseenter:function(n){return t.handleMouse(a)},mouseleave:function(n){t.indexChange=-1}}},[e("img",{attrs:{src:n,alt:""}}),t.readOnly?t._e():e("div",{directives:[{name:"show",rawName:"v-show",value:t.indexChange==a,expression:"indexChange == index"}],staticClass:"mark",on:{click:function(n){return t.circleClick(a)}}},[t._v("删除 ")])])})):t._e(),t.imgUrl.length1024*n){var a=this.urlSize>=1024?this.urlSize/1024+"M":"".concat(n,"k");return s["a"].warning("图片大小不能超过".concat(a)),!1}var i=new FileReader;i.readAsDataURL(e),i.onload=function(n){if(1==t.sizeWh){var a=0,i=0,u=new Image;u.src=n.target.result,u.onload=function(){a=this.width,i=this.height},setTimeout((function(){if(console.log(a,i),a>650||i>1e3)return s["a"].warning("请上传小于等于650*1000图片!"),!1;var u=t.dataURLtoFile(n.target.result,e.name),c=new window.FormData;c.append("uploadFile",u),o.a.post("".concat(r["a"],"/admin/files/upload/images"),c).then((function(n){200==n.data.code&&(t.imgUrl.push(n.data.data.url),t.$emit("avatarfns",t.imgUrl))}))}),1e3)}else{var c=t.dataURLtoFile(n.target.result,e.name),d=new window.FormData;d.append("uploadFile",c),o.a.post("".concat(r["a"],"/admin/files/upload/images"),d).then((function(n){200==n.data.code&&(t.imgUrl.push(n.data.data.url),t.$emit("avatarfns",t.imgUrl))}))}}},GetPercent:function(t,n){return t=parseFloat(t),n=parseFloat(n),isNaN(t)||isNaN(n)?"-":Math.round(t/n*100)/100},dataURLtoFile:function(t,n){var e=t.split(","),a=e[0].match(/:(.*?);/)[1],i=atob(e[1]),r=i.length,u=new Uint8Array(r);while(r--)u[r]=i.charCodeAt(r);return new File([u],n,{type:a})}},mounted:function(){}},d=c,l=(e("9644"),e("2877")),p=Object(l["a"])(d,a,i,!1,null,"6b1c416e",null);n["a"]=p.exports},ae61:function(t,n,e){"use strict";e("96b4")},ebb1:function(t,n,e){"use strict";e.r(n);var a=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{attrs:{id:"third_Party_order"}},[e("a-spin",{attrs:{spinning:t.spinning,size:"large",tip:t.tip}},[e("a-tabs",{model:{value:t.activeKey,callback:function(n){t.activeKey=n},expression:"activeKey"}},[e("a-tab-pane",{key:1,attrs:{tab:"内容列表"}},[e("div",{staticClass:"isDisplay"},[e("div",{staticClass:"top"},[e("a-form",{attrs:{layout:"inline"}},[e("a-form-item",[e("a-button",{staticClass:"margin_right20",attrs:{icon:"plus",type:"primary"},on:{click:function(n){return t.addClick("1")}}},[t._v("添加")]),e("a-button",{staticClass:"margin_right20",attrs:{type:"primary"},on:{click:t.switchClick}},[t._v("当前状态:"+t._s(t.switchNma?"是":"否"))])],1)],1)],1),e("a-table",{attrs:{columns:t.columns,"data-source":t.tableData,pagination:!1,"row-key":function(t){return t.id},loading:t.tableLoading},scopedSlots:t._u([{key:"enableFlag",fn:function(t,n){return e("span",{},[0==n.enableFlag?e("a-badge",{attrs:{status:"warning",text:"已下架"}}):e("a-badge",{attrs:{status:"success",text:"已上架"}})],1)}},{key:"operation",fn:function(n,a){return e("span",{},[e("a",{staticClass:"margin_right10",attrs:{type:"primary"},on:{click:function(n){return t.editClick(a)}}},[t._v("编辑")])])}}])})],1)]),e("a-tab-pane",{key:2,attrs:{tab:"入口二维码"}},[e("div",{staticClass:"box"},[e("span",[t._v("二维码:")]),e("UpdataImg",{attrs:{imageUrlNum:1,imgUrl:t.shareImageQrArr,urlSize:500},on:{avatarfns:t.shareImageQrFun}})],1),t.shareImageShow?e("span",{staticStyle:{color:"red"}},[t._v("请上传二维码")]):t._e(),e("a-button",{staticClass:"tijiao",attrs:{type:"primary"},on:{click:t.tijiao}},[t._v("提 交")])],1)],1)],1),e("router-view")],1)},i=[],r=(e("d3b7"),e("25f0"),e("ac1f"),e("1276"),e("3284")),u=e("6ffe"),o=e("a65c"),s=e("c1df"),c=e.n(s),d=e("f64c"),l={components:{MyPagination:u["a"],UpdataImg:o["a"]},created:function(){this.getInitFn(),this.getShowSwitcInit(),this.getActiveQrInit()},data:function(){return{tip:"",spinning:!1,activeKey:1,tableLoading:!1,shareImageShow:!1,switchNma:0,shareImageQrArr:[],columns:[{title:"名称",dataIndex:"title",key:"title"},{title:"视频链接",dataIndex:"fileUrl",key:"fileUrl"},{title:"日期",dataIndex:"effectiveDate",key:"effectiveDate",width:"120px"},{title:"操作",width:"70px",dataIndex:"operation",key:"operation",scopedSlots:{customRender:"operation"}}],tableData:[]}},methods:{moment:c.a,dateTimeChange:function(t,n){this.form.effectiveDay=n},addClick:function(){this.$router.push("/appletsManage/mzYdtEdit/0")},editClick:function(t){this.$router.push("/appletsManage/mzYdtEdit/".concat(t.id))},shareImageQrFun:function(){console.log(this.shareImageQrArr)},getInitFn:function(){var t=this;Object(r["l"])({pageSize:50,pageNo:1}).then((function(n){n.code;var e=n.data;t.tableLoading=!1,t.tableData=e}))},tijiao:function(){Object(r["g"])({qr:this.shareImageQrArr.toString()}).then((function(t){var n=t.code;t.data;200===n&&d["a"].success("保存成功")}))},getActiveQrInit:function(){var t=this;Object(r["s"])().then((function(n){n.code;var e=n.data;t.shareImageQrArr=e.split(",")}))},switchClick:function(){var t=this,n=this.switchNma?"0":"1";Object(r["x"])({switch:n}).then((function(n){n.code,n.data;t.switchNma=!t.switchNma}))},getShowSwitcInit:function(){var t=this;Object(r["v"])().then((function(n){n.code;var e=n.data;t.switchNma=1*e}))}}},p=l,f=(e("1890"),e("2877")),h=Object(f["a"])(p,a,i,!1,null,"7be5e08e",null);n["default"]=h.exports}}]); //# sourceMappingURL=mzYdt.ddfd639d.js.map