| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-shop-djqQm"],{"02cb":function(t,e,o){"use strict";var r=o("dbce");Object.defineProperty(e,"__esModule",{value:!0}),e.confirm=i,e.couponsOrder=a,e.getCouponsList=u,e.order_comment=s,e.product=d,e.express_query=l,e.upload=c,e.orderList=f,e.orderDetail=h,e.orderCancel=g,e.orderDel=p,e.refund=v,e.refundReason=m,e.orderTake=b,e.orderPay=w,e.createOrderkey=y,e.computedOrderkey=T,e.view_order=C;var n=r(o("4bb5"));function i(t){return(0,n.default)({url:"/api/order/confirm",method:"post",data:t})}function a(t,e,o){return(0,n.default)({url:"/api/coupons/order/"+e+"/"+o,method:"get",data:t})}function u(t,e){return(0,n.default)({url:"/api/coupons/user/"+e,method:"get",data:t})}function s(t){return(0,n.default)({url:"/api/order/comment",method:"post",data:t})}function d(t){return(0,n.default)({url:"/api/order/product",method:"post",data:t})}function l(t){return(0,n.default)({url:"/api/order/express_query",method:"get",data:t})}function c(t){return(0,n.upFilse)({url:"/api/upload/image",method:"post",data:t})}function f(t){return(0,n.default)({url:"/api/order/list",method:"get",data:t})}function h(t,e){return(0,n.default)({url:"/api/order/detail/"+e,method:"get",data:t})}function g(t){return(0,n.default)({url:"/api/order/cancel",method:"post",data:t})}function p(t){return(0,n.default)({url:"/api/order/del",method:"get",data:t})}function v(t){return(0,n.default)({url:"/api/order/refund/verify",method:"post",data:t})}function m(t){return(0,n.default)({url:"/api/order/refund/reason",method:"get",data:t})}function b(t){return(0,n.default)({url:"/api/order/take",method:"post",data:t})}function w(t){return(0,n.default)({url:"/api/order/pay",method:"post",data:t})}function y(t,e){return(0,n.default)({url:"/api/order/create/"+e,method:"post",data:t})}function T(t){return(0,n.default)({url:"/api/order/computed/"+t.orderkey,method:"post",data:t})}function C(t){return(0,n.default)({url:"/api/order/view_order",method:"get",data:t})}},"0991":function(t,e,o){"use strict";var r=o("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(o("e127")),i=o("02cb"),a=o("b0c9"),u={components:{tkiQrcode:n.default},filters:{showTime:function(t){var e="";if(0==t&&(e="永久有效"),t){var o=new Date(1e3*t),r=o.getFullYear(),n=o.getMonth()+1,i=o.getDate();o.getHours(),o.getMinutes(),o.getSeconds();e="有效期至:"+r+"年"+n+"月"+i+"日",console.log(e)}return e}},data:function(){return{code:"",list:[],id:"",cid:"tki-qrcode-canvas",size:440,unit:"upx",show:!0,background:"#ffffff",foreground:"#333333",pdground:"#333333",icon:"",iconSize:40,lv:3,onval:!0,loadMake:!0,usingComponents:!1,showLoading:!1,loadingText:"二维码生成中",src:"",ratio:1,ctxSrc:"",loading:!0}},onLoad:function(t){t.id&&(this.id=t.id,this.loadData()),t.code&&(this.code=t.code,this.getYhqDetail())},onShow:function(){},onReachBottom:function(){},onReady:function(){},methods:{loadData:function(){var t=this;(0,i.view_order)({order_id:this.id}).then((function(e){var o=e.data;t.list=o.coupon,console.log(t.list)}))},qrR:function(){},getYhqDetail:function(){var t=this;(0,a.getYhqDetail)({code:t.code}).then((function(e){console.log(e),t.list.push(e.data)}))}}};e.default=u},"16aa":function(t,e,o){"use strict";var r;o.d(e,"b",(function(){return n})),o.d(e,"c",(function(){return i})),o.d(e,"a",(function(){return r}));var n=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)},i=[]},3928:function(t,e,o){"use strict";var r=o("a940"),n=o.n(r);n.a},"3f43":function(t,e,o){"use strict";o("cb29"),o("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={};(function(){function t(t){var e,o,r;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),r=128+(63&t),[e,o,r])}function e(e){for(var o=[],r=0;r<e.length;r++)for(var n=e.charCodeAt(r),i=t(n),a=0;a<i.length;a++)o.push(i[a]);return o}function o(t,o){this.typeNumber=-1,this.errorCorrectLevel=o,this.modules=null,this.moduleCount=0,this.dataCache=null,this.rsBlocks=null,this.totalDataCount=-1,this.data=t,this.utf8bytes=e(t),this.make()}o.prototype={constructor:o,getModuleCount:function(){return this.moduleCount},make:function(){this.getRightType(),this.dataCache=this.createData(),this.createQrcode()},makeImpl:function(t){this.moduleCount=4*this.typeNumber+17,this.modules=new Array(this.moduleCount);for(var e=0;e<this.moduleCount;e++)this.modules[e]=new Array(this.moduleCount);this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(!0,t),this.typeNumber>=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 r=-1;r<=7;r++)e+r<=-1||this.moduleCount<=e+r||(this.modules[t+o][e+r]=0<=o&&o<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==o||6==o)||2<=o&&o<=4&&2<=r&&r<=4)},createQrcode:function(){for(var t=0,e=0,o=null,r=0;r<8;r++){this.makeImpl(r);var n=a.getLostPoint(this);(0==r||t>n)&&(t=n,e=r,o=this.modules)}this.modules=o,this.setupTypeInfo(!1,e),this.typeNumber>=7&&this.setupTypeNumber(!1)},setupTimingPattern:function(){for(var t=8;t<this.moduleCount-8;t++)null==this.modules[t][6]&&(this.modules[t][6]=t%2==0,null==this.modules[6][t]&&(this.modules[6][t]=t%2==0))},setupPositionAdjustPattern:function(){for(var t=a.getPatternPosition(this.typeNumber),e=0;e<t.length;e++)for(var o=0;o<t.length;o++){var r=t[e],n=t[o];if(null==this.modules[r][n])for(var i=-2;i<=2;i++)for(var u=-2;u<=2;u++)this.modules[r+i][n+u]=-2==i||2==i||-2==u||2==u||0==i&&0==u}},setupTypeNumber:function(t){for(var e=a.getBCHTypeNumber(this.typeNumber),o=0;o<18;o++){var r=!t&&1==(e>>o&1);this.modules[Math.floor(o/3)][o%3+this.moduleCount-8-3]=r,this.modules[o%3+this.moduleCount-8-3][Math.floor(o/3)]=r}},setupTypeInfo:function(t,e){for(var o=n[this.errorCorrectLevel]<<3|e,r=a.getBCHTypeInfo(o),i=0;i<15;i++){var u=!t&&1==(r>>i&1);i<6?this.modules[i][8]=u:i<8?this.modules[i+1][8]=u:this.modules[this.moduleCount-15+i][8]=u;u=!t&&1==(r>>i&1);i<8?this.modules[8][this.moduleCount-i-1]=u:i<9?this.modules[8][15-i-1+1]=u:this.modules[8][15-i-1]=u}this.modules[this.moduleCount-8][8]=!t},createData:function(){var t=new c,e=this.typeNumber>9?16:8;t.put(4,4),t.put(this.utf8bytes.length,e);for(var r=0,n=this.utf8bytes.length;r<n;r++)t.put(this.utf8bytes[r],8);t.length+4<=8*this.totalDataCount&&t.put(0,4);while(t.length%8!=0)t.putBit(!1);while(1){if(t.length>=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,r=0,n=this.rsBlock.length/3,i=new Array,u=0;u<n;u++)for(var s=this.rsBlock[3*u+0],l=this.rsBlock[3*u+1],c=this.rsBlock[3*u+2],f=0;f<s;f++)i.push([c,l]);for(var h=new Array(i.length),g=new Array(i.length),p=0;p<i.length;p++){var v=i[p][0],m=i[p][1]-v;o=Math.max(o,v),r=Math.max(r,m),h[p]=new Array(v);for(u=0;u<h[p].length;u++)h[p][u]=255&t.buffer[u+e];e+=v;var b=a.getErrorCorrectPolynomial(m),w=new d(h[p],b.getLength()-1),y=w.mod(b);g[p]=new Array(b.getLength()-1);for(u=0;u<g[p].length;u++){var T=u+y.getLength()-g[p].length;g[p][u]=T>=0?y.get(T):0}}var C=new Array(this.totalDataCount),P=0;for(u=0;u<o;u++)for(p=0;p<i.length;p++)u<h[p].length&&(C[P++]=h[p][u]);for(u=0;u<r;u++)for(p=0;p<i.length;p++)u<g[p].length&&(C[P++]=g[p][u]);return C},mapData:function(t,e){for(var o=-1,r=this.moduleCount-1,n=7,i=0,u=this.moduleCount-1;u>0;u-=2){6==u&&u--;while(1){for(var s=0;s<2;s++)if(null==this.modules[r][u-s]){var d=!1;i<t.length&&(d=1==(t[i]>>>n&1));var l=a.getMask(e,r,u-s);l&&(d=!d),this.modules[r][u-s]=d,n--,-1==n&&(i++,n=7)}if(r+=o,r<0||this.moduleCount<=r){r-=o,o=-o;break}}}}},o.PAD0=236,o.PAD1=17;for(var n=[1,0,3,2],i={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<<a.getBCHDigit(e)-a.getBCHDigit(a.G15);return(t<<10|e)^a.G15_MASK},getBCHTypeNumber:function(t){var e=t<<12;while(a.getBCHDigit(e)-a.getBCHDigit(a.G18)>=0)e^=a.G18<<a.getBCHDigit(e)-a.getBCHDigit(a.G18);return t<<12|e},getBCHDigit:function(t){var e=0;while(0!=t)e++,t>>>=1;return e},getPatternPosition:function(t){return a.PATTERN_POSITION_TABLE[t-1]},getMask:function(t,e,o){switch(t){case i.PATTERN000:return(e+o)%2==0;case i.PATTERN001:return e%2==0;case i.PATTERN010:return o%3==0;case i.PATTERN011:return(e+o)%3==0;case i.PATTERN100:return(Math.floor(e/2)+Math.floor(o/3))%2==0;case i.PATTERN101:return e*o%2+e*o%3==0;case i.PATTERN110:return(e*o%2+e*o%3)%2==0;case i.PATTERN111:return(e*o%3+(e+o)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}},getErrorCorrectPolynomial:function(t){for(var e=new d([1],0),o=0;o<t;o++)e=e.multiply(new d([1,u.gexp(o)],0));return e},getLostPoint:function(t){for(var e=t.getModuleCount(),o=0,r=0,n=0;n<e;n++)for(var i=0,a=t.modules[n][0],u=0;u<e;u++){var s=t.modules[n][u];if(u<e-6&&s&&!t.modules[n][u+1]&&t.modules[n][u+2]&&t.modules[n][u+3]&&t.modules[n][u+4]&&!t.modules[n][u+5]&&t.modules[n][u+6]&&(u<e-10?t.modules[n][u+7]&&t.modules[n][u+8]&&t.modules[n][u+9]&&t.modules[n][u+10]&&(o+=40):u>3&&t.modules[n][u-1]&&t.modules[n][u-2]&&t.modules[n][u-3]&&t.modules[n][u-4]&&(o+=40)),n<e-1&&u<e-1){var d=0;s&&d++,t.modules[n+1][u]&&d++,t.modules[n][u+1]&&d++,t.modules[n+1][u+1]&&d++,0!=d&&4!=d||(o+=3)}a^s?i++:(a=s,i>=5&&(o+=3+i-5),i=1),s&&r++}for(u=0;u<e;u++)for(i=0,a=t.modules[0][u],n=0;n<e;n++){s=t.modules[n][u];n<e-6&&s&&!t.modules[n+1][u]&&t.modules[n+2][u]&&t.modules[n+3][u]&&t.modules[n+4][u]&&!t.modules[n+5][u]&&t.modules[n+6][u]&&(n<e-10?t.modules[n+7][u]&&t.modules[n+8][u]&&t.modules[n+9][u]&&t.modules[n+10][u]&&(o+=40):n>3&&t.modules[n-1][u]&&t.modules[n-2][u]&&t.modules[n-3][u]&&t.modules[n-4][u]&&(o+=40)),a^s?i++:(a=s,i>=5&&(o+=3+i-5),i=1)}var l=Math.abs(100*r/e/e-50)/5;return o+=10*l,o}},u={glog:function(t){if(t<1)throw new Error("glog("+t+")");return u.LOG_TABLE[t]},gexp:function(t){while(t<0)t+=255;while(t>=256)t-=255;return u.EXP_TABLE[t]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},s=0;s<8;s++)u.EXP_TABLE[s]=1<<s;for(s=8;s<256;s++)u.EXP_TABLE[s]=u.EXP_TABLE[s-4]^u.EXP_TABLE[s-5]^u.EXP_TABLE[s-6]^u.EXP_TABLE[s-8];for(s=0;s<255;s++)u.LOG_TABLE[u.EXP_TABLE[s]]=s;function d(t,e){if(void 0==t.length)throw new Error(t.length+"/"+e);var o=0;while(o<t.length&&0==t[o])o++;this.num=new Array(t.length-o+e);for(var r=0;r<t.length-o;r++)this.num[r]=t[r+o]}d.prototype={get:function(t){return this.num[t]},getLength:function(){return this.num.length},multiply:function(t){for(var e=new Array(this.getLength()+t.getLength()-1),o=0;o<this.getLength();o++)for(var r=0;r<t.getLength();r++)e[o+r]^=u.gexp(u.glog(this.get(o))+u.glog(t.get(r)));return new d(e,0)},mod:function(t){var e=this.getLength(),o=t.getLength();if(e-o<0)return this;for(var r=new Array(e),n=0;n<e;n++)r[n]=this.get(n);while(r.length>=o){var i=u.glog(r[0])-u.glog(t.get(0));for(n=0;n<t.getLength();n++)r[n]^=u.gexp(u.glog(t.get(n))+i);while(0==r[0])r.shift()}return new d(r,0)}};var l=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]];function c(){this.buffer=new Array,this.length=0}o.prototype.getRightType=function(){for(var t=1;t<41;t++){var e=l[4*(t-1)+this.errorCorrectLevel];if(void 0==e)throw new Error("bad rs block @ typeNumber:"+t+"/errorCorrectLevel:"+this.errorCorrectLevel);for(var o=e.length/3,r=0,n=0;n<o;n++){var i=e[3*n+0],a=e[3*n+2];r+=a*i}var u=t>9?2:1;if(this.utf8bytes.length+u<r||40==t){this.typeNumber=t,this.rsBlock=e,this.totalDataCount=r;break}}},c.prototype={get:function(t){var e=Math.floor(t/8);return this.buffer[e]>>>7-t%8&1},put:function(t,e){for(var o=0;o<e;o++)this.putBit(t>>>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=[];r=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 r=null,n=(e=0,f.length);e<n;e++)if(f[e].text==this.options.text&&f[e].text.correctLevel==this.options.correctLevel){r=f[e].obj;break}e==n&&(r=new o(this.options.text,this.options.correctLevel),f.push({text:this.options.text,correctLevel:this.options.correctLevel,obj:r}));var i=function(t){var e=t.options;return e.pdground&&(t.row>1&&t.row<5&&t.col>1&&t.col<5||t.row>t.count-6&&t.row<t.count-2&&t.col>1&&t.col<5||t.row>1&&t.row<5&&t.col>t.count-6&&t.col<t.count-2)?e.pdground:e.foreground},a=function(t){t.showLoading&&uni.showLoading({title:t.loadingText,mask:!0});for(var e=uni.createCanvasContext(t.canvasId,t.context),o=r.getModuleCount(),n=t.size,a=t.imageSize,u=(n/o).toPrecision(4),s=(n/o).toPrecision(4),d=0;d<o;d++)for(var l=0;l<o;l++){var c=Math.ceil((l+1)*u)-Math.floor(l*u),f=Math.ceil((d+1)*u)-Math.floor(d*u),h=i({row:d,col:l,count:o,options:t});e.setFillStyle(r.modules[d][l]?h:t.background),e.fillRect(Math.round(l*u),Math.round(d*s),c,f)}if(t.image){var g=function(e,o,r,n,i,a,u,s,d){e.setLineWidth(u),e.setFillStyle(t.background),e.setStrokeStyle(t.background),e.beginPath(),e.moveTo(o+a,r),e.arcTo(o+n,r,o+n,r+a,a),e.arcTo(o+n,r+i,o+n-a,r+i,a),e.arcTo(o,r+i,o,r+i-a,a),e.arcTo(o,r,o+a,r,a),e.closePath(),s&&e.fill(),d&&e.stroke()},p=Number(((n-a)/2).toFixed(2)),v=Number(((n-a)/2).toFixed(2));g(e,p,v,a,a,2,6,!0,!0),e.drawImage(t.image,p,v,a,a)}setTimeout((function(){e.draw(!0,(function(){setTimeout((function(){uni.canvasToTempFilePath({width:t.width,height:t.height,destWidth:t.width,destHeight:t.height,canvasId:t.canvasId,quality:Number(1),success:function(e){t.cbResult&&t.cbResult(e.tempFilePath)},fail:function(e){t.cbResult&&t.cbResult(e)},complete:function(){t.showLoading&&uni.hideLoading()}},t.context)}),t.text.length+100)}))}),t.usingComponents?0:150)};a(this.options)},r.prototype.clear=function(t){var e=uni.createCanvasContext(this.options.canvasId,this.options.context);e.clearRect(0,0,this.options.size,this.options.size),e.draw(!1,(function(){t&&t()}))}})();var n=r;e.default=n},"5a7b":function(t,e,o){"use strict";var r=o("4ea4");o("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n,i=r(o("3f43")),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}):n=new i.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(""),n.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},"7a71":function(t,e,o){"use strict";var r=o("fca5"),n=o.n(r);n.a},"83b4":function(t,e,o){"use strict";o.r(e);var r=o("0991"),n=o.n(r);for(var i in r)"default"!==i&&function(t){o.d(e,t,(function(){return r[t]}))}(i);e["default"]=n.a},"983e":function(t,e,o){t.exports=o.p+"static/img/ysy.3e03f265.png"},a72e:function(t,e,o){"use strict";o.r(e);var r=o("a946"),n=o("83b4");for(var i in n)"default"!==i&&function(t){o.d(e,t,(function(){return n[t]}))}(i);o("3928");var a,u=o("f0c5"),s=Object(u["a"])(n["default"],r["b"],r["c"],!1,null,"e628d6bc",null,!1,r["a"],a);e["default"]=s.exports},a940:function(t,e,o){var r=o("bcf0");"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var n=o("4f06").default;n("4fc22b0a",r,!0,{sourceMap:!1,shadowMode:!1})},a946:function(t,e,o){"use strict";o.d(e,"b",(function(){return n})),o.d(e,"c",(function(){return i})),o.d(e,"a",(function(){return r}));var r={tkiQrcode:o("e127").default},n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("v-uni-view",{staticClass:"content"},[r("v-uni-swiper",{staticClass:"box",attrs:{"indicator-dots":t.list.length>1}},t._l(t.list,(function(e,n){return r("v-uni-swiper-item",{staticClass:"djq-wrap"},[r("v-uni-view",[r("v-uni-view",{staticClass:"djq-top flex f-d-c f-j-c"},[r("v-uni-view",{staticClass:"djq-name"},[t._v(t._s(e.coupon_title))]),r("v-uni-view",{staticClass:"djq-time"},[t._v(t._s(t._f("showTime")(e.end_time)))])],1),r("v-uni-view",{staticClass:"djq-body"},[1==e.status?r("v-uni-view",{staticClass:"used"},[r("v-uni-image",{attrs:{src:o("983e"),mode:""}})],1):t._e(),2==e.status?r("v-uni-view",{staticClass:"used"},[r("v-uni-image",{attrs:{src:o("ad02"),mode:""}})],1):t._e(),r("v-uni-view",{staticClass:"ewm"},[r("tki-qrcode",{ref:"qrcode",refInFor:!0,attrs:{cid:"aaa"+n,val:e.code,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),r("v-uni-view",{staticClass:"ewm-code"},[t._v(t._s(e.code))])],1)],1)],1)})),1)],1)},i=[]},ad02:function(t,e,o){t.exports=o.p+"static/img/ygq.db746fd3.png"},b0c9:function(t,e,o){"use strict";var r=o("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.store_cate=i,e.getStoreList=a,e.getStoreDetail=u,e.getYhqDetail=s,e.getGift=d,e.getCity=l;var n=r(o("4bb5"));function i(t){return(0,n.default)({url:"/api/store_cate",method:"get",data:t})}function a(t){return(0,n.default)({url:"/api/store_list",method:"get",data:t})}function u(t,e){return(0,n.default)({url:"/api/store_details/"+e,method:"get",data:t})}function s(t){return(0,n.default)({url:"/api/coupon_datalis",method:"get",data:t})}function d(t){return(0,n.default)({url:"/api/share",method:"post",data:t})}function l(t){return(0,n.default)({url:"/api/address",method:"get",data:t})}},bcf0:function(t,e,o){var r=o("24fb");e=r(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/*颜色*/\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 功能栏字体大小 */\n/*功能栏左侧小图标*/uni-page-body[data-v-e628d6bc]{height:100%;background-color:#f9e24f}.box[data-v-e628d6bc]{width:%?696?%;margin:auto;height:%?1060?%}.djq-wrap[data-v-e628d6bc]{width:%?696?%;background-color:#fff;position:relative;margin:auto;margin-top:%?100?%}.djq-wrap .djq-top[data-v-e628d6bc]{height:%?185?%;background:#f5f5f5;overflow:hidden}.djq-wrap .djq-top .djq-name[data-v-e628d6bc]{padding:0 %?60?%;font-size:%?44?%;font-weight:700;text-align:center;color:#222}.djq-wrap .djq-top .djq-time[data-v-e628d6bc]{font-size:%?24?%;font-weight:500;color:#686868}.djq-wrap .djq-top[data-v-e628d6bc]::after, .djq-wrap .djq-top[data-v-e628d6bc]::before{content:"";height:%?120?%;width:%?120?%;border-radius:50%;position:absolute;top:%?-60?%;background-color:#f9e24f}.djq-wrap .djq-top[data-v-e628d6bc]::before{left:%?-60?%}.djq-wrap .djq-top[data-v-e628d6bc]::after{right:%?-60?%}.djq-wrap .djq-body[data-v-e628d6bc]{height:%?770?%;position:relative;padding-top:%?115?%}.djq-wrap .djq-body[data-v-e628d6bc]::after, .djq-wrap .djq-body[data-v-e628d6bc]::before{content:"";height:%?120?%;width:%?120?%;border-radius:50%;position:absolute;bottom:%?-60?%;background-color:#f9e24f}.djq-wrap .djq-body[data-v-e628d6bc]::before{left:%?-60?%}.djq-wrap .djq-body[data-v-e628d6bc]::after{right:%?-60?%}.djq-wrap .djq-body .used[data-v-e628d6bc]{position:absolute;top:%?0?%;right:%?0?%;z-index:99;height:%?440?%;width:%?440?%}.djq-wrap .djq-body .used uni-image[data-v-e628d6bc]{width:100%;height:100%}.djq-wrap .djq-body .ewm[data-v-e628d6bc]{width:%?440?%;height:%?440?%;margin:auto}.djq-wrap .djq-body .ewm-code[data-v-e628d6bc]{padding-top:%?55?%;font-size:%?44?%;font-weight:700;color:#333;text-align:center}body.?%PAGE?%[data-v-e628d6bc]{background-color:#f9e24f}',""]),t.exports=e},cb29:function(t,e,o){var r=o("23e7"),n=o("81d5"),i=o("44d2");r({target:"Array",proto:!0},{fill:n}),i("fill")},e127:function(t,e,o){"use strict";o.r(e);var r=o("16aa"),n=o("fba4");for(var i in n)"default"!==i&&function(t){o.d(e,t,(function(){return n[t]}))}(i);o("7a71");var a,u=o("f0c5"),s=Object(u["a"])(n["default"],r["b"],r["c"],!1,null,"6560465a",null,!1,r["a"],a);e["default"]=s.exports},eb76:function(t,e,o){var r=o("24fb");e=r(!1),e.push([t.i,".tki-qrcode[data-v-6560465a]{position:relative}.tki-qrcode-canvas[data-v-6560465a]{position:fixed;top:%?-99999?%;left:%?-99999?%;z-index:-99999}",""]),t.exports=e},fba4:function(t,e,o){"use strict";o.r(e);var r=o("5a7b"),n=o.n(r);for(var i in r)"default"!==i&&function(t){o.d(e,t,(function(){return r[t]}))}(i);e["default"]=n.a},fca5:function(t,e,o){var r=o("eb76");"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var n=o("4f06").default;n("77a4cf78",r,!0,{sourceMap:!1,shadowMode:!1})}}]);
|