(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-order-verifyCode"],{"0e27":function(t,e,o){"use strict";var n=o("5626"),i=o.n(n);i.a},"0f20":function(t,e,o){"use strict";o.r(e);var n=o("dc79"),i=o("8e36");for(var r in i)"default"!==r&&function(t){o.d(e,t,(function(){return i[t]}))}(r);o("2414");var a,s=o("f0c5"),u=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"caa30384",null,!1,n["a"],a);e["default"]=u.exports},"1f7d":function(t,e,o){"use strict";o.r(e);var n=o("8a2c"),i=o.n(n);for(var r in n)"default"!==r&&function(t){o.d(e,t,(function(){return n[t]}))}(r);e["default"]=i.a},"20c0":function(t,e,o){"use strict";var n;o.d(e,"b",(function(){return i})),o.d(e,"c",(function(){return r})),o.d(e,"a",(function(){return n}));var i=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("v-uni-view",{staticClass:"tki-qrcode"},[o("v-uni-canvas",{staticClass:"tki-qrcode-canvas",style:{width:t.cpSize+"px",height:t.cpSize+"px"},attrs:{"canvas-id":t.cid}}),o("v-uni-image",{directives:[{name:"show",rawName:"v-show",value:t.show,expression:"show"}],style:{width:t.cpSize+"px",height:t.cpSize+"px"},attrs:{src:t.result}})],1)},r=[]},2414:function(t,e,o){"use strict";var n=o("d859"),i=o.n(n);i.a},"2f9c":function(t,e,o){"use strict";o.r(e);var n=o("20c0"),i=o("1f7d");for(var r in i)"default"!==r&&function(t){o.d(e,t,(function(){return i[t]}))}(r);o("0e27");var a,s=o("f0c5"),u=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"58d9c21c",null,!1,n["a"],a);e["default"]=u.exports},"542d":function(t,e,o){"use strict";var n=o("23e7"),i=o("d039"),r=o("408a"),a=1..toPrecision,s=i((function(){return"1"!==a.call(1,void 0)}))||!i((function(){a.call({})}));n({target:"Number",proto:!0,forced:s},{toPrecision:function(t){return void 0===t?a.call(r(this)):a.call(r(this),t)}})},5626:function(t,e,o){var n=o("dc56");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=o("4f06").default;i("13b0db93",n,!0,{sourceMap:!1,shadowMode:!1})},"5da6":function(t,e,o){"use strict";var n=o("4ea4");o("ac1f"),o("5319"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(o("5530")),r=n(o("2f9c")),a=o("2f62"),s={comments:{tkiQrcode:r.default},data:function(){return{cid:"tki-qrcode-canvas",size:362,unit:"upx",show:!0,val:"",background:"#ffffff",foreground:"#333333",pdground:"#333333",icon:"",iconSize:40,lv:3,onval:!1,loadMake:!0,usingComponents:!1,showLoading:!1,loadingText:"二维码生成中",src:"",ratio:1,ctxSrc:"",loading:!0,canHeight:"",canWeidth:""}},computed:(0,i.default)({},(0,a.mapState)("user",["userInfo","orderInfo","hasLogin"])),onShow:function(){console.log(this.userInfo),this.hasLogin&&console.log(this.userInfo)},onLoad:function(t){this.val=t.code.replace(/\s/g,""),console.log(this.val)},methods:{qrR:function(t){this.src=t}}};e.default=s},"8a2c":function(t,e,o){"use strict";var n=o("4ea4");o("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i,r=n(o("f89e")),a={name:"tki-qrcode",props:{cid:{type:String,default:"tki-qrcode-canvas"},size:{type:Number,default:200},unit:{type:String,default:"upx"},show:{type:Boolean,default:!0},val:{type:String,default:""},background:{type:String,default:"#ffffff"},foreground:{type:String,default:"#000000"},pdground:{type:String,default:"#000000"},icon:{type:String,default:""},iconSize:{type:Number,default:40},lv:{type:Number,default:3},onval:{type:Boolean,default:!1},loadMake:{type:Boolean,default:!1},usingComponents:{type:Boolean,default:!0},showLoading:{type:Boolean,default:!0},loadingText:{type:String,default:"二维码生成中"}},data:function(){return{result:""}},methods:{_makeCode:function(){var t=this;this._empty(this.val)?uni.showToast({title:"二维码内容不能为空",icon:"none",duration:2e3}):i=new r.default({context:t,canvasId:t.cid,usingComponents:t.usingComponents,showLoading:t.showLoading,loadingText:t.loadingText,text:t.val,size:t.cpSize,background:t.background,foreground:t.foreground,pdground:t.pdground,correctLevel:t.lv,image:t.icon,imageSize:t.iconSize,cbResult:function(e){t._result(e)}})},_clearCode:function(){this._result(""),i.clear()},_saveCode:function(){var t=this;""!=this.result&&uni.saveImageToPhotosAlbum({filePath:t.result,success:function(){uni.showToast({title:"二维码保存成功",icon:"success",duration:2e3})}})},_result:function(t){this.result=t,this.$emit("result",t)},_empty:function(t){var e=typeof t,o=!1;return"number"==e&&""==String(t)||"undefined"==e?o=!0:"object"==e?"{}"!=JSON.stringify(t)&&"[]"!=JSON.stringify(t)&&null!=t||(o=!0):"string"==e?""!=t&&"undefined"!=t&&"null"!=t&&"{}"!=t&&"[]"!=t||(o=!0):"function"==e&&(o=!1),o}},watch:{size:function(t,e){var o=this;t==e||this._empty(t)||(this.cSize=t,this._empty(this.val)||setTimeout((function(){o._makeCode()}),100))},val:function(t,e){var o=this;this.onval&&(t==e||this._empty(t)||setTimeout((function(){o._makeCode()}),0))}},computed:{cpSize:function(){return"upx"==this.unit?uni.upx2px(this.size):this.size}},mounted:function(){var t=this;this.loadMake&&(this._empty(this.val)||setTimeout((function(){t._makeCode()}),0))}};e.default=a},"8e36":function(t,e,o){"use strict";o.r(e);var n=o("5da6"),i=o.n(n);for(var r in n)"default"!==r&&function(t){o.d(e,t,(function(){return n[t]}))}(r);e["default"]=i.a},cb29:function(t,e,o){var n=o("23e7"),i=o("81d5"),r=o("44d2");n({target:"Array",proto:!0},{fill:i}),r("fill")},d25d:function(t,e,o){var n=o("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/*颜色*/\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 功能栏字体大小 */\n/*功能栏左侧小图标*/uni-page-body[data-v-caa30384]{height:100%;background-color:#fff}.user-logo[data-v-caa30384]{height:%?300?%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.user-logo uni-image[data-v-caa30384]{width:%?102?%;height:%?102?%;border-radius:50%}.user-logo .user-name[data-v-caa30384]{padding-top:%?25?%;font-size:%?34?%;font-family:SourceHanSansCN;font-weight:400;color:#2b2b2b}.code-warpper[data-v-caa30384]{width:%?515?%;height:%?515?%;margin:0 auto;border:%?3?% solid #901b21;padding-top:%?46?%}.code-warpper .code-content[data-v-caa30384]{width:%?362?%;height:%?365?%;margin:0 auto}.code-warpper .code[data-v-caa30384]{padding-top:%?31?%;font-size:%?36?%;font-family:PingFang SC;font-weight:700;color:#333;text-align:center}.btm[data-v-caa30384]{padding-top:%?45?%;font-size:%?30?%;font-family:PingFang SC;font-weight:700;color:#333;text-align:center}body.?%PAGE?%[data-v-caa30384]{background-color:#fff}',""]),t.exports=e},d859:function(t,e,o){var n=o("d25d");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=o("4f06").default;i("b409a310",n,!0,{sourceMap:!1,shadowMode:!1})},dc56:function(t,e,o){var n=o("24fb");e=n(!1),e.push([t.i,".tki-qrcode[data-v-58d9c21c]{position:relative}.tki-qrcode-canvas[data-v-58d9c21c]{position:fixed;top:%?-99999?%;left:%?-99999?%;z-index:-99999}",""]),t.exports=e},dc79:function(t,e,o){"use strict";o.d(e,"b",(function(){return i})),o.d(e,"c",(function(){return r})),o.d(e,"a",(function(){return n}));var n={tkiQrcode:o("2f9c").default},i=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("v-uni-view",{staticClass:"content"},[o("v-uni-view",{staticClass:"user-logo"},[o("v-uni-image",{attrs:{src:t.userInfo.avatar,mode:""}}),o("v-uni-view",{staticClass:"user-name"},[t._v(t._s(t.userInfo.nickname))])],1),o("v-uni-view",{staticClass:"code-warpper"},[o("v-uni-view",{staticClass:"code-content"},[o("tki-qrcode",{ref:"qrcode",attrs:{cid:t.cid,val:t.val,size:t.size,unit:t.unit,background:t.background,foreground:t.foreground,pdground:t.pdground,iconSize:t.iconSize,lv:t.lv,onval:t.onval,loadMake:t.loadMake,usingComponents:t.usingComponents},on:{result:function(e){arguments[0]=e=t.$handleEvent(e),t.qrR.apply(void 0,arguments)}}})],1),o("v-uni-view",{staticClass:"code"},[t._v(t._s(t.val))])],1),o("v-uni-view",{staticClass:"btm"},[t._v("向商家出示二维码")])],1)},r=[]},f89e:function(t,e,o){"use strict";o("cb29"),o("a9e3"),o("b680"),o("542d"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={};(function(){function t(t){var e,o,n;return t<128?[t]:t<2048?(e=192+(t>>6),o=128+(63&t),[e,o]):(e=224+(t>>12),o=128+(t>>6&63),n=128+(63&t),[e,o,n])}function e(e){for(var o=[],n=0;n=7&&this.setupTypeNumber(!0),this.mapData(this.dataCache,t)},setupPositionProbePattern:function(t,e){for(var o=-1;o<=7;o++)if(!(t+o<=-1||this.moduleCount<=t+o))for(var n=-1;n<=7;n++)e+n<=-1||this.moduleCount<=e+n||(this.modules[t+o][e+n]=0<=o&&o<=6&&(0==n||6==n)||0<=n&&n<=6&&(0==o||6==o)||2<=o&&o<=4&&2<=n&&n<=4)},createQrcode:function(){for(var t=0,e=0,o=null,n=0;n<8;n++){this.makeImpl(n);var i=a.getLostPoint(this);(0==n||t>i)&&(t=i,e=n,o=this.modules)}this.modules=o,this.setupTypeInfo(!1,e),this.typeNumber>=7&&this.setupTypeNumber(!1)},setupTimingPattern:function(){for(var t=8;t>o&1);this.modules[Math.floor(o/3)][o%3+this.moduleCount-8-3]=n,this.modules[o%3+this.moduleCount-8-3][Math.floor(o/3)]=n}},setupTypeInfo:function(t,e){for(var o=i[this.errorCorrectLevel]<<3|e,n=a.getBCHTypeInfo(o),r=0;r<15;r++){var s=!t&&1==(n>>r&1);r<6?this.modules[r][8]=s:r<8?this.modules[r+1][8]=s:this.modules[this.moduleCount-15+r][8]=s;s=!t&&1==(n>>r&1);r<8?this.modules[8][this.moduleCount-r-1]=s:r<9?this.modules[8][15-r-1+1]=s:this.modules[8][15-r-1]=s}this.modules[this.moduleCount-8][8]=!t},createData:function(){var t=new d,e=this.typeNumber>9?16:8;t.put(4,4),t.put(this.utf8bytes.length,e);for(var n=0,i=this.utf8bytes.length;n=8*this.totalDataCount)break;if(t.put(o.PAD0,8),t.length>=8*this.totalDataCount)break;t.put(o.PAD1,8)}return this.createBytes(t)},createBytes:function(t){for(var e=0,o=0,n=0,i=this.rsBlock.length/3,r=new Array,s=0;s=0?y.get(T):0}}var C=new Array(this.totalDataCount),P=0;for(s=0;s0;s-=2){6==s&&s--;while(1){for(var u=0;u<2;u++)if(null==this.modules[n][s-u]){var l=!1;r>>i&1));var c=a.getMask(e,n,s-u);c&&(l=!l),this.modules[n][s-u]=l,i--,-1==i&&(r++,i=7)}if(n+=o,n<0||this.moduleCount<=n){n-=o,o=-o;break}}}}},o.PAD0=236,o.PAD1=17;for(var i=[1,0,3,2],r={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},a={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(t){var e=t<<10;while(a.getBCHDigit(e)-a.getBCHDigit(a.G15)>=0)e^=a.G15<=0)e^=a.G18<>>=1;return e},getPatternPosition:function(t){return a.PATTERN_POSITION_TABLE[t-1]},getMask:function(t,e,o){switch(t){case r.PATTERN000:return(e+o)%2==0;case r.PATTERN001:return e%2==0;case r.PATTERN010:return o%3==0;case r.PATTERN011:return(e+o)%3==0;case r.PATTERN100:return(Math.floor(e/2)+Math.floor(o/3))%2==0;case r.PATTERN101:return e*o%2+e*o%3==0;case r.PATTERN110:return(e*o%2+e*o%3)%2==0;case r.PATTERN111:return(e*o%3+(e+o)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}},getErrorCorrectPolynomial:function(t){for(var e=new l([1],0),o=0;o3&&t.modules[i][s-1]&&t.modules[i][s-2]&&t.modules[i][s-3]&&t.modules[i][s-4]&&(o+=40)),i=5&&(o+=3+r-5),r=1),u&&n++}for(s=0;s3&&t.modules[i-1][s]&&t.modules[i-2][s]&&t.modules[i-3][s]&&t.modules[i-4][s]&&(o+=40)),a^u?r++:(a=u,r>=5&&(o+=3+r-5),r=1)}var c=Math.abs(100*n/e/e-50)/5;return o+=10*c,o}},s={glog:function(t){if(t<1)throw new Error("glog("+t+")");return s.LOG_TABLE[t]},gexp:function(t){while(t<0)t+=255;while(t>=256)t-=255;return s.EXP_TABLE[t]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},u=0;u<8;u++)s.EXP_TABLE[u]=1<=o){var r=s.glog(n[0])-s.glog(t.get(0));for(i=0;i9?2:1;if(this.utf8bytes.length+s>>7-t%8&1},put:function(t,e){for(var o=0;o>>e-o-1&1)},putBit:function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var f=[];n=function(t){if(this.options={text:"",size:256,correctLevel:3,background:"#ffffff",foreground:"#000000",pdground:"#000000",image:"",imageSize:30,canvasId:t.canvasId,context:t.context,usingComponents:t.usingComponents,showLoading:t.showLoading,loadingText:t.loadingText},"string"===typeof t&&(t={text:t}),t)for(var e in t)this.options[e]=t[e];for(var n=null,i=(e=0,f.length);e1&&t.row<5&&t.col>1&&t.col<5||t.row>t.count-6&&t.row1&&t.col<5||t.row>1&&t.row<5&&t.col>t.count-6&&t.col