text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-72287e31"],{1793:function(e,t,r){"use strict";var n=r("30ef"),o=r("2e9b"),i=Object.prototype.hasOwnProperty,a={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,c=Array.prototype.push,s=function(e,t){c.apply(e,l(t)?t:[t])},u=Date.prototype.toISOString,p=o["default"],f={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,format:p,formatter:o.formatters[p],indices:!1,serializeDate:function(e){return u.call(e)},skipNulls:!1,strictNullHandling:!1},d=function(e){return"string"===typeof e||"number"===typeof e||"boolean"===typeof e||"symbol"===typeof e||"bigint"===typeof e},y=function e(t,r,o,i,a,c,u,p,y,m,h,g,b){var v=t;if("function"===typeof u?v=u(r,v):v instanceof Date?v=m(v):"comma"===o&&l(v)&&(v=v.join(",")),null===v){if(i)return c&&!g?c(r,f.encoder,b,"key"):r;v=""}if(d(v)||n.isBuffer(v)){if(c){var O=g?r:c(r,f.encoder,b,"key");return[h(O)+"="+h(c(v,f.encoder,b,"value"))]}return[h(r)+"="+h(String(v))]}var j,_=[];if("undefined"===typeof v)return _;if(l(u))j=u;else{var w=Object.keys(v);j=p?w.sort(p):w}for(var S=0;S<j.length;++S){var k=j[S];a&&null===v[k]||(l(v)?s(_,e(v[k],"function"===typeof o?o(r,k):r,o,i,a,c,u,p,y,m,h,g,b)):s(_,e(v[k],r+(y?"."+k:"["+k+"]"),o,i,a,c,u,p,y,m,h,g,b)))}return _},m=function(e){if(!e)return f;if(null!==e.encoder&&void 0!==e.encoder&&"function"!==typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||f.charset;if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=o["default"];if("undefined"!==typeof e.format){if(!i.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n=o.formatters[r],a=f.filter;return("function"===typeof e.filter||l(e.filter))&&(a=e.filter),{addQueryPrefix:"boolean"===typeof e.addQueryPrefix?e.addQueryPrefix:f.addQueryPrefix,allowDots:"undefined"===typeof e.allowDots?f.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:f.charsetSentinel,delimiter:"undefined"===typeof e.delimiter?f.delimiter:e.delimiter,encode:"boolean"===typeof e.encode?e.encode:f.encode,encoder:"function"===typeof e.encoder?e.encoder:f.encoder,encodeValuesOnly:"boolean"===typeof e.encodeValuesOnly?e.encodeValuesOnly:f.encodeValuesOnly,filter:a,formatter:n,serializeDate:"function"===typeof e.serializeDate?e.serializeDate:f.serializeDate,skipNulls:"boolean"===typeof e.skipNulls?e.skipNulls:f.skipNulls,sort:"function"===typeof e.sort?e.sort:null,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:f.strictNullHandling}};e.exports=function(e,t){var r,n,o=e,i=m(t);"function"===typeof i.filter?(n=i.filter,o=n("",o)):l(i.filter)&&(n=i.filter,r=n);var c,u=[];if("object"!==typeof o||null===o)return"";c=t&&t.arrayFormat in a?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var p=a[c];r||(r=Object.keys(o)),i.sort&&r.sort(i.sort);for(var f=0;f<r.length;++f){var d=r[f];i.skipNulls&&null===o[d]||s(u,y(o[d],d,p,i.strictNullHandling,i.skipNulls,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.formatter,i.encodeValuesOnly,i.charset))}var h=u.join(i.delimiter),g=!0===i.addQueryPrefix?"?":"";return i.charsetSentinel&&("iso-8859-1"===i.charset?g+="utf8=%26%2310003%3B&":g+="utf8=%E2%9C%93&"),h.length>0?g+h:""}},"2e9b":function(e,t,r){"use strict";var n=String.prototype.replace,o=/%20/g,i=r("30ef"),a={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports=i.assign({default:a.RFC3986,formatters:{RFC1738:function(e){return n.call(e,o,"+")},RFC3986:function(e){return String(e)}}},a)},"30ef":function(e,t,r){"use strict";var n=Object.prototype.hasOwnProperty,o=Array.isArray,i=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),a=function(e){while(e.length>1){var t=e.pop(),r=t.obj[t.prop];if(o(r)){for(var n=[],i=0;i<r.length;++i)"undefined"!==typeof r[i]&&n.push(r[i]);t.obj[t.prop]=n}}},l=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)"undefined"!==typeof e[n]&&(r[n]=e[n]);return r},c=function e(t,r,i){if(!r)return t;if("object"!==typeof r){if(o(t))t.push(r);else{if(!t||"object"!==typeof t)return[t,r];(i&&(i.plainObjects||i.allowPrototypes)||!n.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!==typeof t)return[t].concat(r);var a=t;return o(t)&&!o(r)&&(a=l(t,i)),o(t)&&o(r)?(r.forEach((function(r,o){if(n.call(t,o)){var a=t[o];a&&"object"===typeof a&&r&&"object"===typeof r?t[o]=e(a,r,i):t.push(r)}else t[o]=r})),t):Object.keys(r).reduce((function(t,o){var a=r[o];return n.call(t,o)?t[o]=e(t[o],a,i):t[o]=a,t}),a)},s=function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},u=function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(o){return n}},p=function(e,t,r){if(0===e.length)return e;var n=e;if("symbol"===typeof e?n=Symbol.prototype.toString.call(e):"string"!==typeof e&&(n=String(e)),"iso-8859-1"===r)return escape(n).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var o="",a=0;a<n.length;++a){var l=n.charCodeAt(a);45===l||46===l||95===l||126===l||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122?o+=n.charAt(a):l<128?o+=i[l]:l<2048?o+=i[192|l>>6]+i[128|63&l]:l<55296||l>=57344?o+=i[224|l>>12]+i[128|l>>6&63]+i[128|63&l]:(a+=1,l=65536+((1023&l)<<10|1023&n.charCodeAt(a)),o+=i[240|l>>18]+i[128|l>>12&63]+i[128|l>>6&63]+i[128|63&l])}return o},f=function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var o=t[n],i=o.obj[o.prop],l=Object.keys(i),c=0;c<l.length;++c){var s=l[c],u=i[s];"object"===typeof u&&null!==u&&-1===r.indexOf(u)&&(t.push({obj:i,prop:s}),r.push(u))}return a(t),e},d=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},y=function(e){return!(!e||"object"!==typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},m=function(e,t){return[].concat(e,t)};e.exports={arrayToObject:l,assign:s,combine:m,compact:f,decode:u,encode:p,isBuffer:y,isRegExp:d,merge:c}},"82c6":function(e,t,r){"use strict";var n=r("1793"),o=r("ff84"),i=r("2e9b");e.exports={formats:i,parse:o,stringify:n}},"90e7":function(e,t,r){"use strict";r.d(t,"b",(function(){return i})),r.d(t,"c",(function(){return a})),r.d(t,"a",(function(){return l}));var n=r("66df"),o=r("82c6"),i=function(e){var t={group:e};return n["a"].request({url:"setting/getbygroup",method:"post",data:o.stringify(t)})},a=function(e,t){return n["a"].request({url:"setting/updatebygorup",method:"post",params:{group:e},data:o.stringify(t)})},l=function(){return n["a"].request({url:"setting/get_money_type",method:"post"})}},e3c0:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("Row",[r("Col",{attrs:{span:"11"}},[r("card",[r("Alert",{attrs:{"show-icon":""}},[e._v("\n          温馨提示\n          "),r("template",{slot:"desc"},[e._v("配置三方支付相关的信息")])],2),r("Form",{attrs:{model:e.setting,"label-width":150}},[r("FormItem",{attrs:{label:"H5支付页主题颜色"}},[r("ColorPicker",{model:{value:e.setting.button_color,callback:function(t){e.$set(e.setting,"button_color",t)},expression:"setting.button_color"}})],1),r("FormItem",{attrs:{label:"APPSecret(一门APP支付))"}},[r("Input",{attrs:{placeholder:"请填写一门APP支付回调APPSecret"},model:{value:e.setting.pay_appkey,callback:function(t){e.$set(e.setting,"pay_appkey",t)},expression:"setting.pay_appkey"}})],1),r("FormItem",{attrs:{label:"订单号前缀"}},[r("Input",{attrs:{placeholder:"只能是英文数字(如 yimen)"},model:{value:e.setting.pay_order_pre,callback:function(t){e.$set(e.setting,"pay_order_pre",t)},expression:"setting.pay_order_pre"}})],1),r("FormItem",{attrs:{label:"积分类型"}},[r("Select",{model:{value:e.setting.money_type,callback:function(t){e.$set(e.setting,"money_type",t)},expression:"setting.money_type"}},e._l(e.moneyType,(function(t){return r("Option",{key:t.key,attrs:{value:t.key}},[e._v(e._s(t.value))])})),1)],1),r("FormItem",[r("Button",{attrs:{type:"primary"},on:{click:function(t){return e.update()}}},[e._v("提交")])],1)],1)],1)],1),r("Col",{attrs:{span:"11",offset:"1"}},[r("Card",[r("p",{attrs:{slot:"title"},slot:"title"},[r("Icon",{attrs:{type:"ios-navigate"}}),e._v("配置说明\n        ")],1),r("div",{staticStyle:{margin:"10px"}},[r("List",{attrs:{border:""}},[r("ListItem",[e._v("H5支付页面主题颜色仅对./source/plugin/yimen_app/static/pay/index.html生效")]),r("ListItem",{staticStyle:{color:"#DC143C"}},[e._v("一门APP支付Secret在一门app后台app配置（微信支付或者支付宝支付）中可以找到")]),r("ListItem",{staticStyle:{color:"#8B008B"}},[e._v("APP支付回调地址(在一门app开发平台填入)：你的域名/plugin.php?id=yimen_app&s=pay/app_notify")]),r("ListItem",{staticStyle:{color:"red"}},[e._v("其他的支付回调地址（在支付官方填入）：你的域名/source/plugin/yimen_app/notify.php")]),r("ListItem",[r("a",{attrs:{href:"https://bbs.yimenapp.com/thread-11831-1-1.html",target:"_blank"}},[e._v("更多详细图文教程")])])],1)],1)])],1)],1)],1)},o=[],i=r("90e7"),a={name:"global",data:function(){return{setting:{pay_order_pre:"",app_pay:"1",h5_pay:"1",pc_pay:"1",button_local:"1",button_pos:"1",button_color:"#ff0000",pay_appkey:"",pc_button_color:"#ff0000",money_type:"1"},lastSetting:"",moneyType:[]}},mounted:function(){this.getMoneyType(),this.getSetting()},methods:{getSetting:function(){var e=this;Object(i["b"])("pay_global").then((function(t){e.setting=t.data.data,e.lastSetting=JSON.stringify(t.data.data)})).catch((function(e){console.log(e)}))},getMoneyType:function(){var e=this;Object(i["a"])().then((function(t){e.moneyType=t.data.data}))},update:function(){var e=this;this.isArrayChange(this.setting,this.lastSetting)?this.$Notice.info({title:"无需改变",desc:"暂无提交改动"}):Object(i["c"])("pay_global",this.setting).then((function(t){e.lastSetting=JSON.stringify(e.setting),e.$Notice.success({title:"更新消息",desc:t.data.msg})})).catch((function(e){console.log(e)}))},isArrayChange:function(e,t){return JSON.stringify(e)==t}}},l=a,c=r("5511"),s=Object(c["a"])(l,n,o,!1,null,null,null);t["default"]=s.exports},ff84:function(e,t,r){"use strict";var n=r("30ef"),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},l=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},c="utf8=%26%2310003%3B",s="utf8=%E2%9C%93",u=function(e,t){var r,u={},p=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,f=t.parameterLimit===1/0?void 0:t.parameterLimit,d=p.split(t.delimiter,f),y=-1,m=t.charset;if(t.charsetSentinel)for(r=0;r<d.length;++r)0===d[r].indexOf("utf8=")&&(d[r]===s?m="utf-8":d[r]===c&&(m="iso-8859-1"),y=r,r=d.length);for(r=0;r<d.length;++r)if(r!==y){var h,g,b=d[r],v=b.indexOf("]="),O=-1===v?b.indexOf("="):v+1;-1===O?(h=t.decoder(b,a.decoder,m,"key"),g=t.strictNullHandling?null:""):(h=t.decoder(b.slice(0,O),a.decoder,m,"key"),g=t.decoder(b.slice(O+1),a.decoder,m,"value")),g&&t.interpretNumericEntities&&"iso-8859-1"===m&&(g=l(g)),g&&"string"===typeof g&&t.comma&&g.indexOf(",")>-1&&(g=g.split(",")),b.indexOf("[]=")>-1&&(g=i(g)?[g]:g),o.call(u,h)?u[h]=n.combine(u[h],g):u[h]=g}return u},p=function(e,t,r){for(var n=t,o=e.length-1;o>=0;--o){var i,a=e[o];if("[]"===a&&r.parseArrays)i=[].concat(n);else{i=r.plainObjects?Object.create(null):{};var l="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,c=parseInt(l,10);r.parseArrays||""!==l?!isNaN(c)&&a!==l&&String(c)===l&&c>=0&&r.parseArrays&&c<=r.arrayLimit?(i=[],i[c]=n):i[l]=n:i={0:n}}n=i}return n},f=function(e,t,r){if(e){var n=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,l=r.depth>0&&i.exec(n),c=l?n.slice(0,l.index):n,s=[];if(c){if(!r.plainObjects&&o.call(Object.prototype,c)&&!r.allowPrototypes)return;s.push(c)}var u=0;while(r.depth>0&&null!==(l=a.exec(n))&&u<r.depth){if(u+=1,!r.plainObjects&&o.call(Object.prototype,l[1].slice(1,-1))&&!r.allowPrototypes)return;s.push(l[1])}return l&&s.push("["+n.slice(l.index)+"]"),p(s,t,r)}},d=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!==typeof e.decoder)throw new TypeError("Decoder has to be a function.");if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new Error("The charset option must be either utf-8, iso-8859-1, or undefined");var t="undefined"===typeof e.charset?a.charset:e.charset;return{allowDots:"undefined"===typeof e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"===typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,arrayLimit:"number"===typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"===typeof e.comma?e.comma:a.comma,decoder:"function"===typeof e.decoder?e.decoder:a.decoder,delimiter:"string"===typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"===typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"===typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"===typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"===typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}};e.exports=function(e,t){var r=d(t);if(""===e||null===e||"undefined"===typeof e)return r.plainObjects?Object.create(null):{};for(var o="string"===typeof e?u(e,r):e,i=r.plainObjects?Object.create(null):{},a=Object.keys(o),l=0;l<a.length;++l){var c=a[l],s=f(c,o[c],r);i=n.merge(i,s,r)}return n.compact(i)}}}]);