diff --git a/vip/index.html b/vip/index.html index 42ea637..0432b53 100644 --- a/vip/index.html +++ b/vip/index.html @@ -2,4 +2,4 @@ document.documentElement.style.fontSize = document.documentElement.clientWidth / 20 + 'px' }) var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)')) - document.write('')
\ No newline at end of file + document.write('')
\ No newline at end of file diff --git a/vip/static/css/GiftPackList.css b/vip/static/css/GiftPackList.css index c07c14d..90662e3 100644 --- a/vip/static/css/GiftPackList.css +++ b/vip/static/css/GiftPackList.css @@ -94,7 +94,7 @@ } .box_ware_item_title { - font-size: 30upx; + font-size: 28upx; word-break: break-all; text-overflow: ellipsis; display: -webkit-box; diff --git a/vip/static/js/index.e5212582.js b/vip/static/js/index.eecbfdb4.js index 02785fb..5d0fffb 100644 --- a/vip/static/js/index.e5212582.js +++ b/vip/static/js/index.eecbfdb4.js @@ -1 +1 @@ -(function(e){function n(n){for(var t,r,c=n[0],s=n[1],g=n[2],u=0,l=[];ui.parts.length&&(a.parts.length=i.parts.length)}else{var r=[];for(o=0;o0?i("v-uni-text",[t._v("¥"+t._s(this.giftPrice))]):t._e(),this.giftPrice>0&&this.giftIntegral>0?i("v-uni-text",[t._v("/")]):t._e(),this.giftIntegral>0?i("v-uni-text",[t._v(t._s(this.giftIntegral)+"积分")]):t._e(),this.giftType>0?i("v-uni-text",[t._v(t._s(this.actTitle))]):t._e()],1),i("v-uni-view",{staticClass:"top_foot"},[i("v-uni-view",{staticClass:"top_foot_price"},[i("v-uni-text",[t._v("原价:"+t._s(this.giftPosPrice)+"元")])],1),i("v-uni-view",{staticClass:"top_foot_qty"},[this.giftType>0?i("v-uni-text",[t._v("已领:"+t._s(this.giftQty)+"件")]):t._e(),this.giftType<=0?i("v-uni-text",[t._v("已售:"+t._s(this.giftQty)+"件")]):t._e()],1)],1)],1),i("v-uni-view",{staticClass:"box_ware"},[i("v-uni-view",{staticClass:"box_ware_title"},[i("v-uni-text",[t._v("礼包内容")])],1),t._l(t.wareCard,function(e,a){return i("v-uni-view",{key:a,staticClass:"box_ware_box"},[i("v-uni-view",{staticClass:"box_ware_img"},[1==e.lbType?i("v-uni-image",{attrs:{src:""==e.wareImage?t.$GetInfo.imgHttp+"/miniapp/images/giftbag/empty.jpg":t.$GetInfo.imgHttp+e.wareImage}}):t._e(),2==e.lbType?i("v-uni-image",{attrs:{src:t.$GetInfo.imgHttp+"/miniapp/images/giftbag/gift05.png"}}):t._e(),3==e.lbType?i("v-uni-image",{attrs:{src:t.$GetInfo.imgHttp+"/miniapp/images/giftbag/gift02.png"}}):t._e(),4==e.lbType?i("v-uni-image",{attrs:{src:t.$GetInfo.imgHttp+"/miniapp/images/giftbag/gift03.png"}}):t._e(),5==e.lbType?i("v-uni-image",{attrs:{src:t.$GetInfo.imgHttp+"/miniapp/images/giftbag/gift04.png"}}):t._e()],1),i("v-uni-view",{staticClass:"box_ware_item"},[i("v-uni-view",{staticClass:"box_ware_item_title"},[i("v-uni-text",[t._v(t._s(e.couponName))])],1),i("v-uni-view",{staticClass:"box_ware_item_price"},[i("v-uni-text")],1),i("v-uni-view",{staticClass:"box_ware_item_qty"},[i("v-uni-text",[t._v("数量:"+t._s(e.num))])],1),i("v-uni-view",{staticClass:"box_ware_code"},[0==t.isBuy&1==e.lbType?i("v-uni-image",{attrs:{src:t.$GetInfo.imgHttp+"/miniapp/images/giftbag/gift06.png"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.GetQrCode.apply(void 0,arguments)}}}):t._e(),0==t.isBuy&2==e.lbType?i("v-uni-image",{attrs:{src:t.$GetInfo.imgHttp+"/miniapp/images/giftbag/gift06.png"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.GetWebHttp(0)}}}):t._e(),0==t.isBuy&3==e.lbType?i("v-uni-image",{attrs:{src:t.$GetInfo.imgHttp+"/miniapp/images/giftbag/gift06.png"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.GetWebHttp(1)}}}):t._e(),0==t.isBuy&e.lbType>3?i("v-uni-text",[t._v("奖励已发放")]):t._e()],1)],1)],1)})],2),i("v-uni-view",{staticClass:"foot_box"},[i("v-uni-view",{staticClass:"foot_box_title"},[i("v-uni-text",[t._v("活动说明")])],1),i("v-uni-view",{staticClass:"foot_box_remark",domProps:{innerHTML:t._s(this.giftRemark)}})],1),i("v-uni-view",{staticClass:"foot_empty"}),1==this.isBuy?i("v-uni-view",{staticClass:"foot_button"},[this.giftPrice>0&&this.giftIntegral>0?i("v-uni-view",{staticClass:"foot_button_left"},[i("v-uni-text",{on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.GetBuyPrice.apply(void 0,arguments)}}},[t._v("立即购买")])],1):t._e(),this.giftPrice>0&&this.giftIntegral>0?i("v-uni-view",{staticClass:"foot_button_right"},[i("v-uni-text",{on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.GetBuyIntegral.apply(void 0,arguments)}}},[t._v("立即兑换")])],1):t._e(),this.giftPrice>0&&this.giftIntegral<=0?i("v-uni-view",{staticClass:"foot_button_buy"},[i("v-uni-text",{on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.GetBuyPrice.apply(void 0,arguments)}}},[t._v("立即购买")])],1):t._e(),this.giftPrice<=0&&this.giftIntegral>0?i("v-uni-view",{staticClass:"foot_button_intalge"},[i("v-uni-text",{on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.GetBuyIntegral.apply(void 0,arguments)}}},[t._v("立即兑换")])],1):t._e()],1):t._e(),0==this.isBuy?i("v-uni-view",{staticClass:"foot_button"},[0==this.giftState&this.getDate>=t.DateToTime(this.giftstarTime.replace(/-/g,"/"))?i("v-uni-view",{staticClass:"foot_button_buy"},[i("v-uni-text",{on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.GetQrCode.apply(void 0,arguments)}}},[t._v("立即使用")])],1):t._e(),0==this.giftState&t.getDatei.parts.length&&(a.parts.length=i.parts.length)}else{var r=[];for(o=0;o0?i("v-uni-text",[t._v("¥"+t._s(this.giftPrice))]):t._e(),this.giftPrice>0&&this.giftIntegral>0?i("v-uni-text",[t._v("/")]):t._e(),this.giftIntegral>0?i("v-uni-text",[t._v(t._s(this.giftIntegral)+"积分")]):t._e(),this.giftType>0?i("v-uni-text",[t._v(t._s(this.actTitle))]):t._e()],1),i("v-uni-view",{staticClass:"top_foot"},[i("v-uni-view",{staticClass:"top_foot_price"},[i("v-uni-text",[t._v("原价:"+t._s(this.giftPosPrice)+"元")])],1),i("v-uni-view",{staticClass:"top_foot_qty"},[this.giftType>0?i("v-uni-text",[t._v("已领:"+t._s(this.giftQty)+"件")]):t._e(),this.giftType<=0?i("v-uni-text",[t._v("已售:"+t._s(this.giftQty)+"件")]):t._e()],1)],1)],1),i("v-uni-view",{staticClass:"box_ware"},[i("v-uni-view",{staticClass:"box_ware_title"},[i("v-uni-text",[t._v("礼包内容")])],1),t._l(t.wareCard,function(e,a){return i("v-uni-view",{key:a,staticClass:"box_ware_box"},[i("v-uni-view",{staticClass:"box_ware_img"},[1==e.lbType?i("v-uni-image",{attrs:{src:""==e.wareImage?t.$GetInfo.imgHttp+"/miniapp/images/giftbag/empty.jpg":t.$GetInfo.imgHttp+e.wareImage}}):t._e(),2==e.lbType?i("v-uni-image",{attrs:{src:t.$GetInfo.imgHttp+"/miniapp/images/giftbag/gift05.png"}}):t._e(),3==e.lbType?i("v-uni-image",{attrs:{src:t.$GetInfo.imgHttp+"/miniapp/images/giftbag/gift02.png"}}):t._e(),4==e.lbType?i("v-uni-image",{attrs:{src:t.$GetInfo.imgHttp+"/miniapp/images/giftbag/gift03.png"}}):t._e(),5==e.lbType?i("v-uni-image",{attrs:{src:t.$GetInfo.imgHttp+"/miniapp/images/giftbag/gift04.png"}}):t._e()],1),i("v-uni-view",{staticClass:"box_ware_item"},[i("v-uni-view",{staticClass:"box_ware_item_title"},[i("v-uni-text",[t._v(t._s(e.couponName))])],1),i("v-uni-view",{staticClass:"box_ware_item_price"},[i("v-uni-text")],1),i("v-uni-view",{staticClass:"box_ware_item_qty"},[i("v-uni-text",[t._v("数量:"+t._s(e.num))])],1),i("v-uni-view",{staticClass:"box_ware_code"},[0==t.isBuy&1==e.lbType?i("v-uni-image",{attrs:{src:t.$GetInfo.imgHttp+"/miniapp/images/giftbag/gift06.png"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.GetQrCode.apply(void 0,arguments)}}}):t._e(),0==t.isBuy&2==e.lbType?i("v-uni-image",{attrs:{src:t.$GetInfo.imgHttp+"/miniapp/images/giftbag/gift06.png"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.GetWebHttp(0)}}}):t._e(),0==t.isBuy&3==e.lbType?i("v-uni-image",{attrs:{src:t.$GetInfo.imgHttp+"/miniapp/images/giftbag/gift06.png"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.GetWebHttp(1)}}}):t._e(),0==t.isBuy&e.lbType>3?i("v-uni-text",[t._v("奖励已发放")]):t._e()],1)],1)],1)})],2),i("v-uni-view",{staticClass:"foot_box"},[i("v-uni-view",{staticClass:"foot_box_title"},[i("v-uni-text",[t._v("活动说明")])],1),i("v-uni-view",{staticClass:"foot_box_remark",domProps:{innerHTML:t._s(this.giftRemark)}})],1),i("v-uni-view",{staticClass:"foot_empty"}),1==this.isBuy?i("v-uni-view",{staticClass:"foot_button"},[this.giftPrice>0&&this.giftIntegral>0?i("v-uni-view",{staticClass:"foot_button_left"},[i("v-uni-text",{on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.GetBuyPrice.apply(void 0,arguments)}}},[t._v("立即购买")])],1):t._e(),this.giftPrice>0&&this.giftIntegral>0?i("v-uni-view",{staticClass:"foot_button_right"},[i("v-uni-text",{on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.GetBuyIntegral.apply(void 0,arguments)}}},[t._v("立即兑换")])],1):t._e(),this.giftPrice>0&&this.giftIntegral<=0?i("v-uni-view",{staticClass:"foot_button_buy"},[i("v-uni-text",{on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.GetBuyPrice.apply(void 0,arguments)}}},[t._v("立即购买")])],1):t._e(),this.giftPrice<=0&&this.giftIntegral>0?i("v-uni-view",{staticClass:"foot_button_intalge"},[i("v-uni-text",{on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.GetBuyIntegral.apply(void 0,arguments)}}},[t._v("立即兑换")])],1):t._e()],1):t._e(),0==this.isBuy?i("v-uni-view",{staticClass:"foot_button"},[0==this.giftState&this.getDate>=t.DateToTime(this.giftstarTime.replace(/-/g,"/"))?i("v-uni-view",{staticClass:"foot_button_buy"},[i("v-uni-text",{on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.GetQrCode.apply(void 0,arguments)}}},[t._v("立即使用")])],1):t._e(),0==this.giftState&t.getDate10*n.width?r.fontSize=10*n.width:r.fontSize=n.fontSize,r.guardHeight=n.height+r.fontSize/2+n.textMargin,r}return b(e,t),l(e,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{12}$/)&&this.data[11]==g(this.data)}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var t="";return t+="101",t+=(0,s.default)(this.data.substr(0,6),"LLLLLL"),t+="01010",t+=(0,s.default)(this.data.substr(6,6),"RRRRRR"),t+="101",{data:t,text:this.text}}},{key:"guardedEncoding",value:function(){var t=[];return this.displayValue&&t.push({data:"00000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),t.push({data:"101"+(0,s.default)(this.data[0],"L"),options:{height:this.guardHeight}}),t.push({data:(0,s.default)(this.data.substr(1,5),"LLLLL"),text:this.text.substr(1,5),options:{fontSize:this.fontSize}}),t.push({data:"01010",options:{height:this.guardHeight}}),t.push({data:(0,s.default)(this.data.substr(6,5),"RRRRR"),text:this.text.substr(6,5),options:{fontSize:this.fontSize}}),t.push({data:(0,s.default)(this.data[11],"R")+"101",options:{height:this.guardHeight}}),this.displayValue&&t.push({data:"00000000",text:this.text.substr(11,1),options:{textAlign:"right",fontSize:this.fontSize}}),t}}]),e}(h.default);function g(t){var e,n=0;for(e=1;e<11;e+=2)n+=(0,o.default)(t[e]);for(e=0;e<11;e+=2)n+=3*(0,o.default)(t[e]);return(10-n%10)%10}e.default=y},"19df":function(t,e,n){e=t.exports=n("2350")(!1),e.push([t.i,".tki-barcode[data-v-5a93a568]{position:relative}.tki-barcode-canvas[data-v-5a93a568]{position:fixed;top:%?-99999?%;left:%?-99999?%;z-index:-99999}",""])},"2bb4":function(t,e,n){"use strict";var r,o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"tki-barcode"},[n("v-uni-canvas",{staticClass:"tki-barcode-canvas",style:{width:t.canvasWidth+"px",height:t.canvasHeight+"px"},attrs:{"canvas-id":t.cid}}),n("v-uni-image",{directives:[{name:"show",rawName:"v-show",value:t.show,expression:"show"}],style:{width:t.canvasWidth+"px",height:t.canvasHeight+"px"},attrs:{src:t.result}})],1)},a=[];n.d(e,"b",function(){return o}),n.d(e,"c",function(){return a}),n.d(e,"a",function(){return r})},"3db2":function(t,e,n){"use strict";var r=n("288e"),o=r(n("061b")),a=r(n("4d16")),i=r(n("4aa6")),u=r(n("85f2"));Object.defineProperty(e,"__esModule",{value:!0});var f=function(){function t(t,e){for(var n=0;n10*n.width?10*n.width:n.fontSize,r.guardHeight=n.height+r.fontSize/2+n.textMargin,r}return b(e,t),f(e,[{key:"encode",value:function(){return this.options.flat?this.encodeFlat():this.encodeGuarded()}},{key:"leftText",value:function(t,e){return this.text.substr(t,e)}},{key:"leftEncode",value:function(t,e){return(0,s.default)(t,e)}},{key:"rightText",value:function(t,e){return this.text.substr(t,e)}},{key:"rightEncode",value:function(t,e){return(0,s.default)(t,e)}},{key:"encodeGuarded",value:function(){var t={fontSize:this.fontSize},e={height:this.guardHeight};return[{data:l.SIDE_BIN,options:e},{data:this.leftEncode(),text:this.leftText(),options:t},{data:l.MIDDLE_BIN,options:e},{data:this.rightEncode(),text:this.rightText(),options:t},{data:l.SIDE_BIN,options:e}]}},{key:"encodeFlat",value:function(){var t=[l.SIDE_BIN,this.leftEncode(),l.MIDDLE_BIN,this.rightEncode(),l.SIDE_BIN];return{data:t.join(""),text:this.text}}}]),e}(h.default);e.default=y},"421e":function(t,e,n){"use strict";var r=n("288e"),o=r(n("e814"));n("386d");var a=r(n("061b")),i=r(n("4d16")),u=r(n("4aa6")),f=r(n("85f2"));Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var n=0;n10*n.width?r.fontSize=10*n.width:r.fontSize=n.fontSize,r.guardHeight=n.height+r.fontSize/2+n.textMargin,r}return y(e,t),l(e,[{key:"valid",value:function(){return this.isValid}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var t="";return t+="101",t+=this.encodeMiddleDigits(),t+="010101",{data:t,text:this.text}}},{key:"guardedEncoding",value:function(){var t=[];return this.displayValue&&t.push({data:"00000000",text:this.text[0],options:{textAlign:"left",fontSize:this.fontSize}}),t.push({data:"101",options:{height:this.guardHeight}}),t.push({data:this.encodeMiddleDigits(),text:this.text.substring(1,7),options:{fontSize:this.fontSize}}),t.push({data:"010101",options:{height:this.guardHeight}}),this.displayValue&&t.push({data:"00000000",text:this.text[7],options:{textAlign:"right",fontSize:this.fontSize}}),t}},{key:"encodeMiddleDigits",value:function(){var t=this.upcA[0],e=this.upcA[this.upcA.length-1],n=E[(0,o.default)(e)][(0,o.default)(t)];return(0,s.default)(this.middleDigits,n)}}]),e}(h.default);function m(t,e){for(var n=(0,o.default)(t[t.length-1]),r=g[n],a="",i=0,u=0;u=a(t);return e+String.fromCharCode(r?206:205)+u(t,r)}e.default=function(t){var e=void 0,n=i(t).length;if(n>=2)e=r.C_START_CHAR+f(t);else{var l=o(t)>a(t);e=(l?r.A_START_CHAR:r.B_START_CHAR)+u(t,l)}return e.replace(/[\xCD\xCE]([^])[\xCD\xCE]/,function(t,e){return String.fromCharCode(203)+e})}},"629a":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MSI1110=e.MSI1010=e.MSI11=e.MSI10=e.MSI=void 0;var r=n("018d"),o=h(r),a=n("5ab4"),i=h(a),u=n("4408"),f=h(u),l=n("b010"),c=h(l),s=n("eee3"),d=h(s);function h(t){return t&&t.__esModule?t:{default:t}}e.MSI=o.default,e.MSI10=i.default,e.MSI11=f.default,e.MSI1010=c.default,e.MSI1110=d.default},"62dd":function(t,e,n){"use strict";var r=n("288e"),o=r(n("061b")),a=r(n("4d16")),i=r(n("4aa6")),u=r(n("85f2"));Object.defineProperty(e,"__esModule",{value:!0}),e.GenericBarcode=void 0;var f=function(){function t(t,e){for(var n=0;n=200){a=t.shift()-105;var i=s.SWAP[a];void 0!==i?o=e.next(t,n+1,i):(r!==s.SET_A&&r!==s.SET_B||a!==s.SHIFT||(t[0]=r===s.SET_A?t[0]>95?t[0]-96:t[0]:t[0]<32?t[0]+96:t[0]),o=e.next(t,n+1,r))}else a=e.correctIndex(t,r),o=e.next(t,n+1,r);var u=e.getBar(a),f=a*n;return{result:u+o.result,checksum:f+o.checksum}}}]),e}(c.default);e.default=_},d18d:function(t,e,n){"use strict";n("28a5"),Object.defineProperty(e,"__esModule",{value:!0});var r=n("5904"),o=function(t,e,n){var o=t.split("").map(function(t,n){return r.BINARIES[e[n]]}).map(function(e,n){return e?e[t[n]]:""});if(n){var a=t.length-1;o=o.map(function(t,e){return e0?(n=0,h.setTextAlign("left")):"right"==o?(n=e.width-1,h.setTextAlign("right")):(n=e.width/2,h.setTextAlign("center")),h.fillStyle=t.fontColor,void 0!=e.text&&h.fillText(e.text,n,r))},move:function(t){h.translate(t.width,0)},prepare:function(t,e){t.background&&(h.fillStyle=t.background,h.fillRect(0,0,e.width,e.height)),h.translate(t.marginLeft,0)},draw:function(t,e){var n=this;h.draw(!1,function(){n.toImgs(t,e)})},toImgs:function(t,e){setTimeout(function(){uni.canvasToTempFilePath({width:e.width,height:e.height,destWidth:e.width,destHeight:e.height,canvasId:p,fileType:"png",success:function(t){_(t.tempFilePath)},fail:function(t){_(t)},complete:function(){uni.hideLoading()}},d)},t.text.length+100)}};function E(t,e){var n,r=[],u=e.marginLeft+e.marginRight;return(0,i.default)(t)?r=(0,o.default)(t):r[0]=JSON.parse((0,a.default)(t)),r.forEach(function(t,o){var a=h.measureText(r[o].text?r[o].text:"").width,i=r[o].data.length*e.width,f=0;e.displayValue&&i0?e.fontSize+e.textMargin:0)+e.marginTop+e.marginBottom:r[o].height=n=e.height+(e.displayValue&&(r[o].text?r[o].text:"").length>0?e.fontSize+e.textMargin:0)+e.marginTop+e.marginBottom}),{encodings:r,width:u,height:n}}function w(t){t.marginTop=void 0==t.marginTop?t.margin:t.marginTop,t.marginBottom=void 0==t.marginBottom?t.margin:t.marginBottom,t.marginRight=void 0==t.marginRight?t.margin:t.marginRight,t.marginLeft=void 0==t.marginLeft?t.margin:t.marginLeft}}})();var c=l;e.default=c},dc86:function(t,e,n){"use strict";n.r(e);var r=n("b064"),o=n.n(r);for(var a in r)"default"!==a&&function(t){n.d(e,t,function(){return r[t]})}(a);e["default"]=o.a},defc:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UPCE=e.UPC=e.EAN2=e.EAN5=e.EAN8=e.EAN13=void 0;var r=n("449f"),o=v(r),a=n("c5d8"),i=v(a),u=n("b175"),f=v(u),l=n("8372"),c=v(l),s=n("155f"),d=v(s),h=n("421e"),p=v(h);function v(t){return t&&t.__esModule?t:{default:t}}e.EAN13=o.default,e.EAN8=i.default,e.EAN5=f.default,e.EAN2=c.default,e.UPC=d.default,e.UPCE=p.default},ec33:function(t,e,n){"use strict";var r=n("288e"),o=r(n("e814")),a=r(n("061b")),i=r(n("4d16")),u=r(n("4aa6")),f=r(n("85f2"));Object.defineProperty(e,"__esModule",{value:!0}),e.pharmacode=void 0;var l=function(){function t(t,e){for(var n=0;n=3&&this.number<=131070}}]),e}(s.default);e.pharmacode=_},eee3:function(t,e,n){"use strict";var r=n("288e"),o=r(n("061b")),a=r(n("4d16")),i=r(n("4aa6"));Object.defineProperty(e,"__esModule",{value:!0});var u=n("018d"),f=c(u),l=n("77f0");function c(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function h(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=(0,i.default)(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(a.default?(0,a.default)(t,e):t.__proto__=e)}var p=function(t){function e(t,n){return s(this,e),t+=(0,l.mod11)(t),t+=(0,l.mod10)(t),d(this,(e.__proto__||(0,o.default)(e)).call(this,t,n))}return h(e,t),e}(f.default);e.default=p},f1cf:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CODE128C=e.CODE128B=e.CODE128A=e.CODE128=void 0;var r=n("c3ff"),o=s(r),a=n("9bc4"),i=s(a),u=n("c3d0"),f=s(u),l=n("b9d9"),c=s(l);function s(t){return t&&t.__esModule?t:{default:t}}e.CODE128=o.default,e.CODE128A=i.default,e.CODE128B=f.default,e.CODE128C=c.default},f2d6:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.START_BIN="1010",e.END_BIN="11101",e.BINARIES=["00110","10001","01001","11000","00101","10100","01100","00011","10010","01010"]},f38cc:function(t,e,n){"use strict";n.r(e);var r=n("2bb4"),o=n("f9e2");for(var a in o)"default"!==a&&function(t){n.d(e,t,function(){return o[t]})}(a);n("f653");var i,u=n("f0c5"),f=Object(u["a"])(o["default"],r["b"],r["c"],!1,null,"5a93a568",null,!1,r["a"],i);e["default"]=f.exports},f41d:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("795a"),o=n("f1cf"),a=n("defc"),i=n("c360"),u=n("629a"),f=n("ec33"),l=n("7eee"),c=n("62dd");e.default={CODE39:r.CODE39,CODE128:o.CODE128,CODE128A:o.CODE128A,CODE128B:o.CODE128B,CODE128C:o.CODE128C,EAN13:a.EAN13,EAN8:a.EAN8,EAN5:a.EAN5,EAN2:a.EAN2,UPC:a.UPC,UPCE:a.UPCE,ITF14:i.ITF14,ITF:i.ITF,MSI:u.MSI,MSI10:u.MSI10,MSI11:u.MSI11,MSI1010:u.MSI1010,MSI1110:u.MSI1110,PHARMACODE:f.pharmacode,CODABAR:l.codabar,GENERICBARCODE:c.GenericBarcode}},f653:function(t,e,n){"use strict";var r=n("b546"),o=n.n(r);o.a},f9e2:function(t,e,n){"use strict";n.r(e);var r=n("d79a"),o=n.n(r);for(var a in r)"default"!==a&&function(t){n.d(e,t,function(){return r[t]})}(a);e["default"]=o.a}}]); \ No newline at end of file diff --git a/vip/static/js/pages-MyGiftPack-QrCode.abbed65d.js b/vip/static/js/pages-MyGiftPack-QrCode.abbed65d.js deleted file mode 100644 index d343020..0000000 --- a/vip/static/js/pages-MyGiftPack-QrCode.abbed65d.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-MyGiftPack-QrCode"],{"018d":function(t,e,n){"use strict";var r=n("288e");n("386d"),n("6b54");var o=r(n("e814")),a=r(n("061b")),i=r(n("4d16")),u=r(n("4aa6")),f=r(n("85f2"));Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var n=0;n10*n.width?r.fontSize=10*n.width:r.fontSize=n.fontSize,r.guardHeight=n.height+r.fontSize/2+n.textMargin,r}return b(e,t),l(e,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{12}$/)&&this.data[11]==g(this.data)}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var t="";return t+="101",t+=(0,s.default)(this.data.substr(0,6),"LLLLLL"),t+="01010",t+=(0,s.default)(this.data.substr(6,6),"RRRRRR"),t+="101",{data:t,text:this.text}}},{key:"guardedEncoding",value:function(){var t=[];return this.displayValue&&t.push({data:"00000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),t.push({data:"101"+(0,s.default)(this.data[0],"L"),options:{height:this.guardHeight}}),t.push({data:(0,s.default)(this.data.substr(1,5),"LLLLL"),text:this.text.substr(1,5),options:{fontSize:this.fontSize}}),t.push({data:"01010",options:{height:this.guardHeight}}),t.push({data:(0,s.default)(this.data.substr(6,5),"RRRRR"),text:this.text.substr(6,5),options:{fontSize:this.fontSize}}),t.push({data:(0,s.default)(this.data[11],"R")+"101",options:{height:this.guardHeight}}),this.displayValue&&t.push({data:"00000000",text:this.text.substr(11,1),options:{textAlign:"right",fontSize:this.fontSize}}),t}}]),e}(h.default);function g(t){var e,n=0;for(e=1;e<11;e+=2)n+=(0,o.default)(t[e]);for(e=0;e<11;e+=2)n+=3*(0,o.default)(t[e]);return(10-n%10)%10}e.default=y},"19df":function(t,e,n){e=t.exports=n("2350")(!1),e.push([t.i,".tki-barcode[data-v-5a93a568]{position:relative}.tki-barcode-canvas[data-v-5a93a568]{position:fixed;top:%?-99999?%;left:%?-99999?%;z-index:-99999}",""])},"2adc":function(t,e,n){"use strict";var r,o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"box_count"},[n("v-uni-view",[n("v-uni-image",{attrs:{src:t.qrCode}})],1),n("v-uni-view",[n("v-uni-text",[t._v("当前核销码仅限当面使用")])],1)],1)},a=[];n.d(e,"b",function(){return o}),n.d(e,"c",function(){return a}),n.d(e,"a",function(){return r})},"2bb4":function(t,e,n){"use strict";var r,o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"tki-barcode"},[n("v-uni-canvas",{staticClass:"tki-barcode-canvas",style:{width:t.canvasWidth+"px",height:t.canvasHeight+"px"},attrs:{"canvas-id":t.cid}}),n("v-uni-image",{directives:[{name:"show",rawName:"v-show",value:t.show,expression:"show"}],style:{width:t.canvasWidth+"px",height:t.canvasHeight+"px"},attrs:{src:t.result}})],1)},a=[];n.d(e,"b",function(){return o}),n.d(e,"c",function(){return a}),n.d(e,"a",function(){return r})},"3db2":function(t,e,n){"use strict";var r=n("288e"),o=r(n("061b")),a=r(n("4d16")),i=r(n("4aa6")),u=r(n("85f2"));Object.defineProperty(e,"__esModule",{value:!0});var f=function(){function t(t,e){for(var n=0;n10*n.width?10*n.width:n.fontSize,r.guardHeight=n.height+r.fontSize/2+n.textMargin,r}return b(e,t),f(e,[{key:"encode",value:function(){return this.options.flat?this.encodeFlat():this.encodeGuarded()}},{key:"leftText",value:function(t,e){return this.text.substr(t,e)}},{key:"leftEncode",value:function(t,e){return(0,s.default)(t,e)}},{key:"rightText",value:function(t,e){return this.text.substr(t,e)}},{key:"rightEncode",value:function(t,e){return(0,s.default)(t,e)}},{key:"encodeGuarded",value:function(){var t={fontSize:this.fontSize},e={height:this.guardHeight};return[{data:l.SIDE_BIN,options:e},{data:this.leftEncode(),text:this.leftText(),options:t},{data:l.MIDDLE_BIN,options:e},{data:this.rightEncode(),text:this.rightText(),options:t},{data:l.SIDE_BIN,options:e}]}},{key:"encodeFlat",value:function(){var t=[l.SIDE_BIN,this.leftEncode(),l.MIDDLE_BIN,this.rightEncode(),l.SIDE_BIN];return{data:t.join(""),text:this.text}}}]),e}(h.default);e.default=y},"421e":function(t,e,n){"use strict";var r=n("288e"),o=r(n("e814"));n("386d");var a=r(n("061b")),i=r(n("4d16")),u=r(n("4aa6")),f=r(n("85f2"));Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var n=0;n10*n.width?r.fontSize=10*n.width:r.fontSize=n.fontSize,r.guardHeight=n.height+r.fontSize/2+n.textMargin,r}return y(e,t),l(e,[{key:"valid",value:function(){return this.isValid}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var t="";return t+="101",t+=this.encodeMiddleDigits(),t+="010101",{data:t,text:this.text}}},{key:"guardedEncoding",value:function(){var t=[];return this.displayValue&&t.push({data:"00000000",text:this.text[0],options:{textAlign:"left",fontSize:this.fontSize}}),t.push({data:"101",options:{height:this.guardHeight}}),t.push({data:this.encodeMiddleDigits(),text:this.text.substring(1,7),options:{fontSize:this.fontSize}}),t.push({data:"010101",options:{height:this.guardHeight}}),this.displayValue&&t.push({data:"00000000",text:this.text[7],options:{textAlign:"right",fontSize:this.fontSize}}),t}},{key:"encodeMiddleDigits",value:function(){var t=this.upcA[0],e=this.upcA[this.upcA.length-1],n=E[(0,o.default)(e)][(0,o.default)(t)];return(0,s.default)(this.middleDigits,n)}}]),e}(h.default);function m(t,e){for(var n=(0,o.default)(t[t.length-1]),r=g[n],a="",i=0,u=0;u=a(t);return e+String.fromCharCode(r?206:205)+u(t,r)}e.default=function(t){var e=void 0,n=i(t).length;if(n>=2)e=r.C_START_CHAR+f(t);else{var l=o(t)>a(t);e=(l?r.A_START_CHAR:r.B_START_CHAR)+u(t,l)}return e.replace(/[\xCD\xCE]([^])[\xCD\xCE]/,function(t,e){return String.fromCharCode(203)+e})}},"629a":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MSI1110=e.MSI1010=e.MSI11=e.MSI10=e.MSI=void 0;var r=n("018d"),o=h(r),a=n("5ab4"),i=h(a),u=n("4408"),f=h(u),l=n("b010"),c=h(l),s=n("eee3"),d=h(s);function h(t){return t&&t.__esModule?t:{default:t}}e.MSI=o.default,e.MSI10=i.default,e.MSI11=f.default,e.MSI1010=c.default,e.MSI1110=d.default},"62dd":function(t,e,n){"use strict";var r=n("288e"),o=r(n("061b")),a=r(n("4d16")),i=r(n("4aa6")),u=r(n("85f2"));Object.defineProperty(e,"__esModule",{value:!0}),e.GenericBarcode=void 0;var f=function(){function t(t,e){for(var n=0;n=200){a=t.shift()-105;var i=s.SWAP[a];void 0!==i?o=e.next(t,n+1,i):(r!==s.SET_A&&r!==s.SET_B||a!==s.SHIFT||(t[0]=r===s.SET_A?t[0]>95?t[0]-96:t[0]:t[0]<32?t[0]+96:t[0]),o=e.next(t,n+1,r))}else a=e.correctIndex(t,r),o=e.next(t,n+1,r);var u=e.getBar(a),f=a*n;return{result:u+o.result,checksum:f+o.checksum}}}]),e}(c.default);e.default=_},d18d:function(t,e,n){"use strict";n("28a5"),Object.defineProperty(e,"__esModule",{value:!0});var r=n("5904"),o=function(t,e,n){var o=t.split("").map(function(t,n){return r.BINARIES[e[n]]}).map(function(e,n){return e?e[t[n]]:""});if(n){var a=t.length-1;o=o.map(function(t,e){return e0?(n=0,h.setTextAlign("left")):"right"==o?(n=e.width-1,h.setTextAlign("right")):(n=e.width/2,h.setTextAlign("center")),h.fillStyle=t.fontColor,void 0!=e.text&&h.fillText(e.text,n,r))},move:function(t){h.translate(t.width,0)},prepare:function(t,e){t.background&&(h.fillStyle=t.background,h.fillRect(0,0,e.width,e.height)),h.translate(t.marginLeft,0)},draw:function(t,e){var n=this;h.draw(!1,function(){n.toImgs(t,e)})},toImgs:function(t,e){setTimeout(function(){uni.canvasToTempFilePath({width:e.width,height:e.height,destWidth:e.width,destHeight:e.height,canvasId:p,fileType:"png",success:function(t){_(t.tempFilePath)},fail:function(t){_(t)},complete:function(){uni.hideLoading()}},d)},t.text.length+100)}};function E(t,e){var n,r=[],u=e.marginLeft+e.marginRight;return(0,i.default)(t)?r=(0,o.default)(t):r[0]=JSON.parse((0,a.default)(t)),r.forEach(function(t,o){var a=h.measureText(r[o].text?r[o].text:"").width,i=r[o].data.length*e.width,f=0;e.displayValue&&i0?e.fontSize+e.textMargin:0)+e.marginTop+e.marginBottom:r[o].height=n=e.height+(e.displayValue&&(r[o].text?r[o].text:"").length>0?e.fontSize+e.textMargin:0)+e.marginTop+e.marginBottom}),{encodings:r,width:u,height:n}}function w(t){t.marginTop=void 0==t.marginTop?t.margin:t.marginTop,t.marginBottom=void 0==t.marginBottom?t.margin:t.marginBottom,t.marginRight=void 0==t.marginRight?t.margin:t.marginRight,t.marginLeft=void 0==t.marginLeft?t.margin:t.marginLeft}}})();var c=l;e.default=c},dc86:function(t,e,n){"use strict";n.r(e);var r=n("b064"),o=n.n(r);for(var a in r)"default"!==a&&function(t){n.d(e,t,function(){return r[t]})}(a);e["default"]=o.a},defc:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UPCE=e.UPC=e.EAN2=e.EAN5=e.EAN8=e.EAN13=void 0;var r=n("449f"),o=v(r),a=n("c5d8"),i=v(a),u=n("b175"),f=v(u),l=n("8372"),c=v(l),s=n("155f"),d=v(s),h=n("421e"),p=v(h);function v(t){return t&&t.__esModule?t:{default:t}}e.EAN13=o.default,e.EAN8=i.default,e.EAN5=f.default,e.EAN2=c.default,e.UPC=d.default,e.UPCE=p.default},e86d:function(t,e,n){var r=n("a287");"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var o=n("4f06").default;o("ff28811e",r,!0,{sourceMap:!1,shadowMode:!1})},ec33:function(t,e,n){"use strict";var r=n("288e"),o=r(n("e814")),a=r(n("061b")),i=r(n("4d16")),u=r(n("4aa6")),f=r(n("85f2"));Object.defineProperty(e,"__esModule",{value:!0}),e.pharmacode=void 0;var l=function(){function t(t,e){for(var n=0;n=3&&this.number<=131070}}]),e}(s.default);e.pharmacode=_},eee3:function(t,e,n){"use strict";var r=n("288e"),o=r(n("061b")),a=r(n("4d16")),i=r(n("4aa6"));Object.defineProperty(e,"__esModule",{value:!0});var u=n("018d"),f=c(u),l=n("77f0");function c(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function h(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=(0,i.default)(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(a.default?(0,a.default)(t,e):t.__proto__=e)}var p=function(t){function e(t,n){return s(this,e),t+=(0,l.mod11)(t),t+=(0,l.mod10)(t),d(this,(e.__proto__||(0,o.default)(e)).call(this,t,n))}return h(e,t),e}(f.default);e.default=p},f1cf:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CODE128C=e.CODE128B=e.CODE128A=e.CODE128=void 0;var r=n("c3ff"),o=s(r),a=n("9bc4"),i=s(a),u=n("c3d0"),f=s(u),l=n("b9d9"),c=s(l);function s(t){return t&&t.__esModule?t:{default:t}}e.CODE128=o.default,e.CODE128A=i.default,e.CODE128B=f.default,e.CODE128C=c.default},f2d6:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.START_BIN="1010",e.END_BIN="11101",e.BINARIES=["00110","10001","01001","11000","00101","10100","01100","00011","10010","01010"]},f38cc:function(t,e,n){"use strict";n.r(e);var r=n("2bb4"),o=n("f9e2");for(var a in o)"default"!==a&&function(t){n.d(e,t,function(){return o[t]})}(a);n("f653");var i,u=n("f0c5"),f=Object(u["a"])(o["default"],r["b"],r["c"],!1,null,"5a93a568",null,!1,r["a"],i);e["default"]=f.exports},f41d:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("795a"),o=n("f1cf"),a=n("defc"),i=n("c360"),u=n("629a"),f=n("ec33"),l=n("7eee"),c=n("62dd");e.default={CODE39:r.CODE39,CODE128:o.CODE128,CODE128A:o.CODE128A,CODE128B:o.CODE128B,CODE128C:o.CODE128C,EAN13:a.EAN13,EAN8:a.EAN8,EAN5:a.EAN5,EAN2:a.EAN2,UPC:a.UPC,UPCE:a.UPCE,ITF14:i.ITF14,ITF:i.ITF,MSI:u.MSI,MSI10:u.MSI10,MSI11:u.MSI11,MSI1010:u.MSI1010,MSI1110:u.MSI1110,PHARMACODE:f.pharmacode,CODABAR:l.codabar,GENERICBARCODE:c.GenericBarcode}},f653:function(t,e,n){"use strict";var r=n("b546"),o=n.n(r);o.a},f9e2:function(t,e,n){"use strict";n.r(e);var r=n("d79a"),o=n.n(r);for(var a in r)"default"!==a&&function(t){n.d(e,t,function(){return r[t]})}(a);e["default"]=o.a}}]); \ No newline at end of file