Files
peko-h5/view/peko/modules/myincome/static/js/2.a2b32e8c55ba73112c78.js
2022-10-10 14:23:18 +08:00

2 lines
13 KiB
JavaScript

webpackJsonp([2],{CwSZ:function(e,t,r){"use strict";var o=r("p8xL"),n=r("XgCd"),i=Object.prototype.hasOwnProperty,a={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},c=Array.isArray,s=Array.prototype.push,l=function(e,t){s.apply(e,c(t)?t:[t])},u=Date.prototype.toISOString,f={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,formatter:n.formatters[n.default],indices:!1,serializeDate:function(e){return u.call(e)},skipNulls:!1,strictNullHandling:!1},d=function e(t,r,n,i,a,s,u,d,p,m,h,y,v){var g=t;if("function"==typeof u?g=u(r,g):g instanceof Date?g=m(g):"comma"===n&&c(g)&&(g=g.join(",")),null===g){if(i)return s&&!y?s(r,f.encoder,v):r;g=""}if("string"==typeof g||"number"==typeof g||"boolean"==typeof g||o.isBuffer(g))return s?[h(y?r:s(r,f.encoder,v))+"="+h(s(g,f.encoder,v))]:[h(r)+"="+h(String(g))];var b,j=[];if(void 0===g)return j;if(c(u))b=u;else{var w=Object.keys(g);b=d?w.sort(d):w}for(var O=0;O<b.length;++O){var C=b[O];a&&null===g[C]||(c(g)?l(j,e(g[C],"function"==typeof n?n(r,C):r,n,i,a,s,u,d,p,m,h,y,v)):l(j,e(g[C],r+(p?"."+C:"["+C+"]"),n,i,a,s,u,d,p,m,h,y,v)))}return j};e.exports=function(e,t){var r,o=e,s=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(void 0!==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=n.default;if(void 0!==e.format){if(!i.call(n.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var o=n.formatters[r],a=f.filter;return("function"==typeof e.filter||c(e.filter))&&(a=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:f.addQueryPrefix,allowDots:void 0===e.allowDots?f.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:f.charsetSentinel,delimiter:void 0===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:o,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}}(t);"function"==typeof s.filter?o=(0,s.filter)("",o):c(s.filter)&&(r=s.filter);var u,p=[];if("object"!=typeof o||null===o)return"";u=t&&t.arrayFormat in a?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var m=a[u];r||(r=Object.keys(o)),s.sort&&r.sort(s.sort);for(var h=0;h<r.length;++h){var y=r[h];s.skipNulls&&null===o[y]||l(p,d(o[y],y,m,s.strictNullHandling,s.skipNulls,s.encode?s.encoder:null,s.filter,s.sort,s.allowDots,s.serializeDate,s.formatter,s.encodeValuesOnly,s.charset))}var v=p.join(s.delimiter),g=!0===s.addQueryPrefix?"?":"";return s.charsetSentinel&&("iso-8859-1"===s.charset?g+="utf8=%26%2310003%3B&":g+="utf8=%E2%9C%93&"),v.length>0?g+v:""}},DDCP:function(e,t,r){"use strict";var o=r("p8xL"),n=Object.prototype.hasOwnProperty,i={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:o.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},a=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},c=function(e,t,r){if(e){var o=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/g,a=/(\[[^[\]]*])/.exec(o),c=a?o.slice(0,a.index):o,s=[];if(c){if(!r.plainObjects&&n.call(Object.prototype,c)&&!r.allowPrototypes)return;s.push(c)}for(var l=0;null!==(a=i.exec(o))&&l<r.depth;){if(l+=1,!r.plainObjects&&n.call(Object.prototype,a[1].slice(1,-1))&&!r.allowPrototypes)return;s.push(a[1])}return a&&s.push("["+o.slice(a.index)+"]"),function(e,t,r){for(var o=t,n=e.length-1;n>=0;--n){var i,a=e[n];if("[]"===a&&r.parseArrays)i=[].concat(o);else{i=r.plainObjects?Object.create(null):{};var c="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,s=parseInt(c,10);r.parseArrays||""!==c?!isNaN(s)&&a!==c&&String(s)===c&&s>=0&&r.parseArrays&&s<=r.arrayLimit?(i=[])[s]=o:i[c]=o:i={0:o}}o=i}return o}(s,t,r)}};e.exports=function(e,t){var r=function(e){if(!e)return i;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==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=void 0===e.charset?i.charset:e.charset;return{allowDots:void 0===e.allowDots?i.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:i.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:i.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:i.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:i.comma,decoder:"function"==typeof e.decoder?e.decoder:i.decoder,delimiter:"string"==typeof e.delimiter||o.isRegExp(e.delimiter)?e.delimiter:i.delimiter,depth:"number"==typeof e.depth?e.depth:i.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:i.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:i.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:i.strictNullHandling}}(t);if(""===e||null===e||void 0===e)return r.plainObjects?Object.create(null):{};for(var s="string"==typeof e?function(e,t){var r,c={},s=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,l=t.parameterLimit===1/0?void 0:t.parameterLimit,u=s.split(t.delimiter,l),f=-1,d=t.charset;if(t.charsetSentinel)for(r=0;r<u.length;++r)0===u[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===u[r]?d="utf-8":"utf8=%26%2310003%3B"===u[r]&&(d="iso-8859-1"),f=r,r=u.length);for(r=0;r<u.length;++r)if(r!==f){var p,m,h=u[r],y=h.indexOf("]="),v=-1===y?h.indexOf("="):y+1;-1===v?(p=t.decoder(h,i.decoder,d),m=t.strictNullHandling?null:""):(p=t.decoder(h.slice(0,v),i.decoder,d),m=t.decoder(h.slice(v+1),i.decoder,d)),m&&t.interpretNumericEntities&&"iso-8859-1"===d&&(m=a(m)),m&&t.comma&&m.indexOf(",")>-1&&(m=m.split(",")),n.call(c,p)?c[p]=o.combine(c[p],m):c[p]=m}return c}(e,r):e,l=r.plainObjects?Object.create(null):{},u=Object.keys(s),f=0;f<u.length;++f){var d=u[f],p=c(d,s[d],r);l=o.merge(l,p,r)}return o.compact(l)}},XgCd:function(e,t,r){"use strict";var o=String.prototype.replace,n=/%20/g;e.exports={default:"RFC3986",formatters:{RFC1738:function(e){return o.call(e,n,"+")},RFC3986:function(e){return e}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},"b+Mi":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r("+EAh"),n=r("KTi7"),i=(r("QLzJ"),r("hff3")),a=(r("mw3O"),r("X2Oc")),c=r("Z4iZ"),s=null,l={data:function(){return{info:{},userinfo:{phone:""},name:"",account:"",code:"",getCodeTitle:"獲取驗證碼",styleCode:!0,isShowLeft:this.$route.query.isShowLeft}},components:{navigation:i.a},computed:{cutPhone:function(){var e=this.userinfo.phone;return e?e.slice(0,3)+"****"+e.slice(7,11):e}},created:function(){console.log(this.isShowLeft),document.title="綁定支付寶",this.getAlipayInfo(),a.a.initNav({type:4,data:{msg:"",link:"",title:"",showUrl:"",imgUrl:"",desc:""}})},methods:{back:function(){this.$router.go(-1)},getAlipayInfo:function(){var e=this;Object(o.g)({uid:window.sessionStorage.getItem("uid")||info.uid}).then(function(t){null!=t.data?e.userinfo=t.data.data:e.$message.error(t.data.message)})},bindAliPay:function(){var e=this,t=void 0,r=this.account,i=this.name,a=this.code;if(!r||!i||!a)return this.$toast("請輸入正確的參數");t=Object(c.b)().app?{uid:window.sessionStorage.getItem("uid")||info.uid,zxcAccount:Object(n.a)(r,"1ea53d260ecf11e7b56e00163e046a26"),zxcAccountName:Object(n.a)(i,"1ea53d260ecf11e7b56e00163e046a26"),code:a}:{uid:window.sessionStorage.getItem("uid")||info.uid,alipayAccount:r,alipayAccountName:i,code:a},Object(o.a)(t).then(function(t){null!=t.data.data?(e.$toast("綁定成功"),0==e.isShowLeft?e.$router.push({path:"/MyIncome",query:{isShowLeft:e.isShowLeft}}):e.$router.replace({path:"/WithDraw"})):(e.$toast(t.data.message),e.$message.error(t.data.message))})},getSms:function(){var e=this;if(this.styleCode){var t;t=Object(n.a)(this.userinfo.phone,"1ea53d260ecf11e7b56e00163e046a26"),console.log(t);var r={mobile:t,type:4,deviceId:info.deviceId};console.log(r),this.styleCode=!1,Object(o.k)(r).then(function(t){200===t.data.code?(e.$toast("獲取驗證碼成功"),e.timer()):(e.styleCode=!0,e.$toast(t.data.message),e.$message.error(t.data.message))})}else this.$toast("驗證碼已發送至您的手機")},timer:function(){var e=this,t=60;clearInterval(s),this.getCodeTitle="重新獲取("+t+"s)",s=setInterval(function(){t--,e.getCodeTitle="重新獲取("+t+"s)",t<=0&&(clearInterval(s),e.styleCode=!0,e.getCodeTitle="獲取驗證碼")},1e3)}}},u={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"box-all"},[this.$store.state.isApp?e._e():r("navigation",{attrs:{title:"綁定支付寶",rightTitle:""}}),e._v(" "),r("div",{staticClass:"input-number"},[r("input",{directives:[{name:"model",rawName:"v-model",value:e.account,expression:"account"}],staticClass:"number",attrs:{placeholder:"輸入支付寶賬號"},domProps:{value:e.account},on:{input:function(t){t.target.composing||(e.account=t.target.value)}}})]),e._v(" "),r("div",{staticClass:"input-number"},[r("input",{directives:[{name:"model",rawName:"v-model",value:e.name,expression:"name"}],staticClass:"number",attrs:{placeholder:"輸入支付寶真實姓名"},domProps:{value:e.name},on:{input:function(t){t.target.composing||(e.name=t.target.value)}}})]),e._v(" "),r("div",{staticClass:"crystal-text"},[e._v("驗證手機號:"+e._s(e.cutPhone))]),e._v(" "),r("div",{staticClass:"input-number"},[r("input",{directives:[{name:"model",rawName:"v-model",value:e.code,expression:"code"}],staticClass:"code",attrs:{placeholder:"輸入短信驗證碼",type:"number"},domProps:{value:e.code},on:{input:function(t){t.target.composing||(e.code=t.target.value)}}}),e._v(" "),r("div",{staticClass:"div-code",on:{click:e.getSms}},[e._v(e._s(e.getCodeTitle))])]),e._v(" "),r("div",{staticClass:"sure",on:{click:e.bindAliPay}},[e._v("確定綁定")])],1)},staticRenderFns:[]};var f=r("VU/8")(l,u,!1,function(e){r("o2sj")},"data-v-f1630f80",null);t.default=f.exports},mw3O:function(e,t,r){"use strict";var o=r("CwSZ"),n=r("DDCP"),i=r("XgCd");e.exports={formats:i,parse:n,stringify:o}},o2sj:function(e,t){},p8xL:function(e,t,r){"use strict";var o=Object.prototype.hasOwnProperty,n=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,t){for(var r=t&&t.plainObjects?Object.create(null):{},o=0;o<e.length;++o)void 0!==e[o]&&(r[o]=e[o]);return r};e.exports={arrayToObject:a,assign:function(e,t){return Object.keys(t).reduce(function(e,r){return e[r]=t[r],e},e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],o=0;o<t.length;++o)for(var i=t[o],a=i.obj[i.prop],c=Object.keys(a),s=0;s<c.length;++s){var l=c[s],u=a[l];"object"==typeof u&&null!==u&&-1===r.indexOf(u)&&(t.push({obj:a,prop:l}),r.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(n(r)){for(var o=[],i=0;i<r.length;++i)void 0!==r[i]&&o.push(r[i]);t.obj[t.prop]=o}}}(t),e},decode:function(e,t,r){var o=e.replace(/\+/g," ");if("iso-8859-1"===r)return o.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(o)}catch(e){return o}},encode:function(e,t,r){if(0===e.length)return e;var o="string"==typeof e?e:String(e);if("iso-8859-1"===r)return escape(o).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var n="",a=0;a<o.length;++a){var c=o.charCodeAt(a);45===c||46===c||95===c||126===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122?n+=o.charAt(a):c<128?n+=i[c]:c<2048?n+=i[192|c>>6]+i[128|63&c]:c<55296||c>=57344?n+=i[224|c>>12]+i[128|c>>6&63]+i[128|63&c]:(a+=1,c=65536+((1023&c)<<10|1023&o.charCodeAt(a)),n+=i[240|c>>18]+i[128|c>>12&63]+i[128|c>>6&63]+i[128|63&c])}return n},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},merge:function e(t,r,i){if(!r)return t;if("object"!=typeof r){if(n(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(i&&(i.plainObjects||i.allowPrototypes)||!o.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var c=t;return n(t)&&!n(r)&&(c=a(t,i)),n(t)&&n(r)?(r.forEach(function(r,n){if(o.call(t,n)){var a=t[n];a&&"object"==typeof a&&r&&"object"==typeof r?t[n]=e(a,r,i):t.push(r)}else t[n]=r}),t):Object.keys(r).reduce(function(t,n){var a=r[n];return o.call(t,n)?t[n]=e(t[n],a,i):t[n]=a,t},c)}}}});
//# sourceMappingURL=2.a2b32e8c55ba73112c78.js.map