You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
shipin/public/admin/system_static/js/chunk-123c1b32.f32a638b.js

1 lines
10 KiB

(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-123c1b32"],{"2c3e":function(t,e,n){"use strict";var r=n("83ab"),a=n("9f7f").MISSED_STICKY,i=n("c6b6"),c=n("edd0"),o=n("69f3").get,u=RegExp.prototype,s=TypeError;r&&a&&c(u,"sticky",{configurable:!0,get:function(){if(this!==u){if("RegExp"===i(this))return!!o(this).sticky;throw new s("Incompatible receiver, RegExp required")}}})},"4d63":function(t,e,n){"use strict";var r=n("83ab"),a=n("da84"),i=n("e330"),c=n("94ca"),o=n("7156"),u=n("9112"),s=n("241c").f,d=n("3a9b"),l=n("44e7"),f=n("577e"),p=n("90d8"),h=n("9f7f"),g=n("aeb0"),b=n("cb2d"),m=n("d039"),v=n("1a2d"),w=n("69f3").enforce,y=n("2626"),O=n("b622"),_=n("fce3"),j=n("107c"),E=O("match"),x=a.RegExp,C=x.prototype,k=a.SyntaxError,T=i(C.exec),R=i("".charAt),S=i("".replace),D=i("".indexOf),G=i("".slice),$=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,I=/a/g,M=/a/g,A=(n=new x(I)!==I,h.MISSED_STICKY),P=h.UNSUPPORTED_Y;O=r&&(!n||A||_||j||m((function(){return M[E]=!1,x(I)!==I||x(M)===M||"/a/i"!==String(x(I,"i"))})));if(c("RegExp",O)){for(var U=function(t,e){var n,r,a=d(C,this),i=l(t),c=void 0===e,s=[],h=t;if(!a&&i&&c&&t.constructor===U)return t;if((i||d(C,t))&&(t=t.source,c)&&(e=p(h)),t=void 0===t?"":f(t),e=void 0===e?"":f(e),h=t,i=e=_&&"dotAll"in I&&(n=!!e&&-1<D(e,"s"))?S(e,/s/g,""):e,A&&"sticky"in I&&(r=!!e&&-1<D(e,"y"))&&P&&(e=S(e,/y/g,"")),j&&(t=(c=function(t){for(var e,n=t.length,r=0,a="",i=[],c={},o=!1,u=!1,s=0,d="";r<=n;r++){if("\\"===(e=R(t,r)))e+=R(t,++r);else if("]"===e)o=!1;else if(!o)switch(!0){case"["===e:o=!0;break;case"("===e:T($,G(t,r+1))&&(r+=2,u=!0),a+=e,s++;continue;case">"===e&&u:if(""===d||v(c,d))throw new k("Invalid capture group name");c[d]=!0,u=!(i[i.length]=[d,s]),d="";continue}u?d+=e:a+=e}return[a,i]}(t))[0],s=c[1]),c=o(x(t,e),a?this:C,U),(n||r||s.length)&&(e=w(c),n&&(e.dotAll=!0,e.raw=U(function(t){for(var e,n=t.length,r=0,a="",i=!1;r<=n;r++)"\\"===(e=R(t,r))?a+=e+R(t,++r):i||"."!==e?("["===e?i=!0:"]"===e&&(i=!1),a+=e):a+="[\\s\\S]";return a}(t),i)),r&&(e.sticky=!0),s.length)&&(e.groups=s),t!==h)try{u(c,"source",""===h?"(?:)":h)}catch(t){}return c},L=s(x),q=0;L.length>q;)g(U,x,L[q++]);(C.constructor=U).prototype=C,b(a,"RegExp",U,{constructor:!0})}y("RegExp")},"61f7":function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"c",(function(){return u})),n.d(e,"b",(function(){return s}));var r=n("ade3"),a=n("5530");function i(t,e){/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length)));var n,r,a={"M+":t.getMonth()+1,"d+":t.getDate(),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds()};for(n in a)new RegExp("(".concat(n,")")).test(e)&&(r=a[n]+"",e=e.replace(RegExp.$1,1===RegExp.$1.length?r:("00"+r).substr(r.length)));return e}n("ac1f"),n("00b4"),n("5319"),n("4d63"),n("c607"),n("2c3e"),n("25f0"),n("498a"),n("d3b7"),n("13d5"),n("b64b"),n("99af");var c={min:"%s最小长度为:min",max:"%s最大长度为:max",length:"%s长度必须为:length",range:"%s长度为:range",pattern:"$s格式错误"};function o(t,e){t.message=function(t){return e.replace("%s",t||"")}}function u(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return Object(a.a)({required:!0,message:t,type:"string"},e)}function s(t){return d.pattern(/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,t)}o(u,"请输入%s"),o(s,"%s格式不正确");var d=Object.keys(c).reduce((function(t,e){return t[e]=function(t){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},c="range"===e?{min:t[0],max:t[1]}:Object(r.a)({},e,t);return Object(a.a)(Object(a.a)({message:n.replace(":".concat(e),"range"===e?"".concat(t[0],"-").concat(t[1]):t),type:"string"},c),i)},o(t[e],c[e]),t}),{})},b562:function(t,e,n){"use strict";n.d(e,"l",(function(){return a})),n.d(e,"u",(function(){return i})),n.d(e,"q",(function(){return c})),n.d(e,"a",(function(){return o})),n.d(e,"i",(function(){return u})),n.d(e,"j",(function(){return s})),n.d(e,"k",(function(){return d})),n.d(e,"f",(function(){return l})),n.d(e,"g",(function(){return f})),n.d(e,"h",(function(){return p})),n.d(e,"r",(function(){return h})),n.d(e,"t",(function(){return g})),n.d(e,"s",(function(){return b})),n.d(e,"x",(function(){return m})),n.d(e,"v",(function(){return v})),n.d(e,"w",(function(){return w})),n.d(e,"p",(function(){return y})),n.d(e,"n",(function(){return O})),n.d(e,"o",(function(){return _})),n.d(e,"m",(function(){return j})),n.d(e,"c",(function(){return E})),n.d(e,"b",(function(){return x})),n.d(e,"e",(function(){return C})),n.d(e,"d",(function(){return k})),n("99af");var r=n("6b6c");function a(){return Object(r.a)({url:"app/routine/syncSubscribe",method:"GET"})}function i(){return Object(r.a)({url:"app/wechat/syncSubscribe",method:"GET"})}function c(t){return Object(r.a)({url:"app/wechat/menu",method:"get"})}function o(t){return Object(r.a)({url:"app/wechat/menu",method:"post",data:t})}function u(t){return Object(r.a)({url:t.url,method:"post",data:t.key})}function s(t){return Object(r.a)({url:"app/routine/download",method:"post",data:t})}function d(){return Object(r.a)({url:"app/routine/info",method:"get"})}function l(t){return Object(r.a)({url:"app/wechat/keyword",method:"get",params:t})}function f(t){return Object(r.a)({url:"app/wechat/keyword/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function p(t,e){return Object(r.a)({url:t,method:"get",params:e.key})}function h(t){return Object(r.a)({url:"/app/wechat/news",method:"POST",data:t})}function g(t){return Object(r.a)({url:"app/wechat/news",method:"GET",params:t})}function b(t){return Object(r.a)({url:"app/wechat/news/".concat(t),method:"GET"})}function m(){return Object(r.a)({url:"app/wechat/tag",method:"GET"})}function v(){return Object(r.a)({url:"app/wechat/tag/create",method:"GET"})}function w(t){return Object(r.a)({url:"app/wechat/tag/".concat(t,"/edit"),method:"GET"})}function y(){return Object(r.a)({url:"app/wechat/group",method:"GET"})}function O(){return Object(r.a)({url:"app/wechat/group/create",method:"GET"})}function _(t){return Object(r.a)({url:"app/wechat/group/".concat(t,"/edit"),method:"GET"})}function j(t){return Object(r.a)({url:"app/wechat/action",method:"GET",params:t})}function E(t){return Object(r.a)({url:"app/wechat/code_reply/".concat(t),method:"GET"})}function x(){return Object(r.a)({url:"setting/city/full_list",method:"GET"})}function C(t){return Object(r.a)({url:"app/kefu/auto_reply/list",method:"get",params:t})}function k(t){return Object(r.a)({url:"app/kefu/auto_reply/form/"+t,method:"get"})}},c607:function(t,e,n){"use strict";var r=n("83ab"),a=n("fce3"),i=n("c6b6"),c=n("edd0"),o=n("69f3").get,u=RegExp.prototype,s=TypeError;r&&a&&c(u,"dotAll",{configurable:!0,get:function(){if(this!==u){if("RegExp"===i(this))return!!o(this).dotAll;throw new s("Incompatible receiver, RegExp required")}}})},d5bf:function(t,e,n){},dccd:function(t,e,n){"use strict";n("d5bf")},ddee:function(t,e,n){"use strict";n.r(e);var r=n("5530"),a=n("b562"),i=n("2f62"),c=n("61f7");r={name:"routineTemplate",filters:{formatDate:function(t){if(0!==t)return t=new Date(1e3*t),Object(c.a)(t,"yyyy-MM-dd hh:mm")}},data:function(){return{grid:{xl:7,lg:7,md:12,sm:24,xs:24},iframeUrl:"".concat(location.origin,"/pages/index/index?mdType=iframeWindow"),is_live:1,pageData:{code:"",routine_name:"",help:"",appId:"1"}}},created:function(){var t=this;Object(a.k)().then((function(e){t.pageData=e.data}))},watch:{$route:function(t,e){}},computed:Object(r.a)(Object(r.a)({},Object(i.d)("media",["isMobile"])),{},{labelWidth:function(){return this.isMobile?void 0:"80px"},labelPosition:function(){return this.isMobile?"top":"right"}}),methods:{downLoad:function(){var t=this;Object(a.j)({is_live:this.is_live}).then((function(t){window.open(t.data.url)})).catch((function(e){t.$message.warning(e.msg)}))},downLoadCode:function(t){if(!t)return this.$message.warning("暂无小程序码");var e=new Image;e.src=t,e.setAttribute("crossOrigin","anonymous"),e.onload=function(){var t=document.createElement("canvas");t.width=e.width,t.height=e.height,t.getContext("2d").drawImage(e,0,0,e.width,e.height);t=t.toDataURL();var n=document.createElement("a"),r=new MouseEvent("click");n.download=name||"photo",n.href=t,n.dispatchEvent(r)}}}},n("dccd"),i=n("2877"),n=Object(i.a)(r,(function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"i-layout-page-header header-title"},[e("span",{staticClass:"ivu-page-header-title"},[t._v(t._s(t.$route.meta.title))])]),e("el-card",{staticClass:"ivu-mt",attrs:{bordered:!1,shadow:"never"}},[e("div",{staticClass:"flex-wrapper"},[e("div",[e("iframe",{ref:"iframe",staticClass:"iframe-box",attrs:{src:t.iframeUrl,frameborder:"0"}}),e("div",{staticClass:"mask"})]),e("div",{staticClass:"right"},[e("div",{staticClass:"content"},[e("div",{staticClass:"content-box title"},[e("div",{staticClass:"line"}),e("div",{staticClass:"right title"},[t._v("小程序设置")])]),t.pageData.appId||t.pageData.code?t._e():e("el-alert",[e("template",{slot:"title"},[t._v("\n 您尚未配置小程序信息,请"),e("router-link",{attrs:{to:{path:t.$routeProStr+"/setting/system_config_retail/3/7"}}},[t._v("立即设置")])],1)],2),e("div",{staticClass:"content-box"},[e("div",{staticClass:"left"},[t._v("小程序名称:")]),e("div",{staticClass:"right"},[t._v(t._s(t.pageData.routine_name||"未命名"))])]),e("div",{staticClass:"content-box"},[e("div",{staticClass:"left"},[t._v("小程序码:")]),e("div",{staticClass:"right"},[e("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.downLoadCode(t.pageData.code)}}},[t._v("下载小程序码")])],1)]),e("div",{staticClass:"content-box"},[e("div",{staticClass:"left"},[t._v("小程序包:")]),e("div",{staticClass:"right"},[e("span",[t._v("是否已开通小程序直播")]),e("el-radio-group",{staticClass:"rad",attrs:{size:"large"},model:{value:t.is_live,callback:function(e){t.is_live=e},expression:"is_live"}},[e("el-radio",{attrs:{label:0}},[t._v("未开通")]),e("el-radio",{attrs:{label:1}},[t._v("已开通")])],1)],1)]),e("div",{staticClass:"content-box last"},[e("div",{staticClass:"left"}),e("div",{staticClass:"right"},[e("div",[t._v("\n 请谨慎选择是否有开通小程序直播功能,否则将影响小程序的发布 可前往\n "),e("a",{attrs:{href:t.pageData.help,target:"_blank"}},[t._v("帮助文档")]),t._v("\n 查看如何开通直播功能\n ")]),e("el-button",{staticClass:"mt10",attrs:{type:"primary"},on:{click:function(e){return t.downLoad()}}},[t._v("下载小程序包")])],1)])],1)])])])],1)}),[],!1,null,"420e3246",null);e.default=n.exports}}]);