| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2ec7da44"],{"0272":function(t,e,i){"use strict";var n=i("ac1e"),r=i("42ee"),o=i("65c3"),s=i("62f1"),a=i("7685"),l=i("5635"),c=i("6844"),d=i("1dd1"),f=i("c26a"),u=i("bd47"),m=i("37e1"),h=i("48f1"),b=i("f13d"),g=i("915b"),p=i("56ce"),v=g.UNSUPPORTED_Y,x=4294967295,w=Math.min,y=r([].push),_=r("".slice),k=r("".indexOf),C=!p((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var i="ab".split(t);return 2!==i.length||"a"!==i[0]||"b"!==i[1]})),N="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;o("split",(function(t,e,i){var r="0".split(void 0,0).length?function(t,i){return void 0===t&&0===i?[]:n(e,this,t,i)}:e;return[function(e,i){var o=l(this),s=a(e)?m(e,t):void 0;return s?n(s,e,o,i):n(r,u(o),e,i)},function(t,n){var o=s(this),a=u(t);if(!N){var l=i(r,o,a,n,r!==e);if(l.done)return l.value}var m=c(o,RegExp),g=u(h(o)),p=!!~k(g,"u")||!!~k(g,"v");v?~k(g,"g")||(g+="g"):~k(g,"y")||(g+="y");var C=new m(v?"^(?:"+o.source+")":o,g),T=void 0===n?x:n>>>0;if(0===T)return[];if(0===a.length)return null===b(C,a)?[a]:[];var z=0,P=0,O=[];while(P<a.length){C.lastIndex=v?0:P;var R,j=b(C,v?_(a,P):a);if(null===j||(R=w(f(C.lastIndex+(v?P:0)),a.length))===z)P=d(a,P,p);else{if(y(O,_(a,z,P)),O.length===T)return O;for(var A=1;A<=j.length-1;A++)if(y(O,j[A]),O.length===T)return O;P=z=R}}return y(O,_(a,z)),O}]}),N||!C,v)},"066b":function(t,e,i){"use strict";var n=i("04c2"),r=i("f5ed").trim,o=i("d6c5");n({target:"String",proto:!0,forced:o("trim")},{trim:function(){return r(this)}})},c9d4:function(t,e,i){"use strict";i.r(e);var n=function(){var t=this,e=t._self._c;return e("el-dialog",{attrs:{title:"模板 + 文案 + 预览",visible:t.visible,width:"720px","append-to-body":"","custom-class":"print-card-dialog"},on:{"update:visible":function(e){t.visible=e},close:t.close}},[e("div",{staticClass:"preview-wrap"},[e("div",{staticClass:"size-badge"},[t._v("横版 148 × 100mm")]),e("div",{ref:"printArea",staticClass:"card"},[e("div",{staticClass:"blob pink"}),e("div",{staticClass:"blob yellow"}),e("div",{staticClass:"card-inner"},[e("div",{staticClass:"to"},[t._v("To "+t._s(t.toName))]),e("div",{staticClass:"greeting"},[t._v(t._s(t.greeting))]),e("div",{staticClass:"body"},[t._v(t._s(t.bodyText))]),e("div",{staticClass:"from"},[t._v("From "+t._s(t.fromName))])])])]),e("span",{attrs:{slot:"footer"},slot:"footer"},[e("el-button",{attrs:{type:"success"},on:{click:t.doPrint}},[t._v("打印")]),e("el-button",{on:{click:t.close}},[t._v("关闭")])],1)])},r=[],o=(i("e491"),i("17ee"),i("71e2"),i("8f26"),i("d9d9"),i("0401"),i("d27c"),i("0272"),i("066b"),{name:"print-card-dialog",data:function(){return{visible:!1,toName:"",greeting:"生日快乐",bodyText:"",fromName:""}},methods:{open:function(t){if(t){this.visible=!0,this.toName=t.receiveUserName||"贵宾",this.fromName=t.bookName||t.shopAdminName||"您的朋友";var e=(t.cardInfo||"").trim();if(e){var i=e.split(/[\n\r]+/).filter(Boolean);i[0]&&i[0].length<=12?(this.greeting=i[0],this.bodyText=i.slice(1).join(" ")||e):(this.greeting="祝福",this.bodyText=e)}else this.greeting="生日快乐",this.bodyText="愿你今天被鲜花和温柔包围,生日快乐,天天开心。"}},close:function(){this.visible=!1},doPrint:function(){var t=this.$refs.printArea;if(t){var e=window.open("","_blank");e?(e.document.write('\n\t\t\t\t<html><head><title>打印贺卡</title>\n\t\t\t\t<style>\n\t\t\t\t\t@page { size: 148mm 100mm; margin: 0; }\n\t\t\t\t\tbody { margin: 0; font-family: "Microsoft YaHei", sans-serif; }\n\t\t\t\t\t.card { width: 148mm; height: 100mm; position: relative; overflow: hidden;\n\t\t\t\t\t\tdisplay: flex; align-items: center; justify-content: center; }\n\t\t\t\t\t.blob { position: absolute; border-radius: 50%; filter: blur(30px); }\n\t\t\t\t\t.pink { width: 80mm; height: 80mm; background: #ffd6e7; left: -20mm; top: -20mm; }\n\t\t\t\t\t.yellow { width: 70mm; height: 70mm; background: #ffe9b8; right: -15mm; bottom: -15mm; }\n\t\t\t\t\t.card-inner { position: relative; z-index: 1; text-align: center; padding: 10mm; width: 100%; box-sizing: border-box; }\n\t\t\t\t\t.to { color: #555; font-size: 14px; }\n\t\t\t\t\t.greeting { color: #c2185b; font-size: 28px; font-weight: 700; margin: 8px 0; }\n\t\t\t\t\t.body { color: #555; font-size: 13px; line-height: 1.6; }\n\t\t\t\t\t.from { text-align: right; margin-top: 16px; color: #555; font-size: 13px; }\n\t\t\t\t</style></head><body>'.concat(t.outerHTML,"</body></html>\n\t\t\t")),e.document.close(),e.focus(),setTimeout((function(){e.print(),e.close()}),300)):this.$message.warning("请允许弹窗后重试")}}}}),s=o,a=(i("ebf0"),i("1805")),l=Object(a["a"])(s,n,r,!1,null,"36c7725f",null);e["default"]=l.exports},d6c5:function(t,e,i){"use strict";var n=i("d240").PROPER,r=i("56ce"),o=i("2e27"),s="
";t.exports=function(t){return r((function(){return!!o[t]()||s[t]()!==s||n&&o[t].name!==t}))}},db7a:function(t,e,i){},ebf0:function(t,e,i){"use strict";i("db7a")}}]);
|