1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-subPackages-home-shareDetail"],{"03b1":function(t,e,n){"use strict";n.r(e);var o=n("b839"),a=n("8f68");for(var i in a)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(i);n("1175");var r=n("f0c5"),s=Object(r["a"])(a["default"],o["b"],o["c"],!1,null,"754b49a1",null,!1,o["a"],void 0);e["default"]=s.exports},1175:function(t,e,n){"use strict";var o=n("7179"),a=n.n(o);a.a},"123c":function(t,e,n){"use strict";n.r(e);var o=n("eff7"),a=n.n(o);for(var i in o)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(i);e["default"]=a.a},1335:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return o}));var o={uIcon:n("5fbc").default},a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{},[n("v-uni-view",{staticClass:"u-navbar",class:{"u-navbar-fixed":t.isFixed,"u-border-bottom":t.borderBottom},style:[t.navbarStyle]},[n("v-uni-view",{staticClass:"u-status-bar",style:{height:t.statusBarHeight+"px"}}),n("v-uni-view",{staticClass:"u-navbar-inner",style:[t.navbarInnerStyle]},[t.isBack?n("v-uni-view",{staticClass:"u-back-wrap",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goBack.apply(void 0,arguments)}}},[n("v-uni-view",{staticClass:"u-icon-wrap"},[n("u-icon",{attrs:{name:t.backIconName,color:t.backIconColor,size:t.backIconSize}})],1),t.backText?n("v-uni-view",{staticClass:"u-icon-wrap u-back-text u-line-1",style:[t.backTextStyle]},[t._v(t._s(t.backText))]):t._e()],1):t._e(),t.title?n("v-uni-view",{staticClass:"u-navbar-content-title",style:[t.titleStyle]},[n("v-uni-view",{staticClass:"u-title u-line-1",style:{color:t.titleColor,fontSize:t.titleSize+"rpx",fontWeight:t.titleBold?"bold":"normal"}},[t._v(t._s(t.title))])],1):t._e(),n("v-uni-view",{staticClass:"u-slot-content"},[t._t("default")],2),n("v-uni-view",{staticClass:"u-slot-right"},[t._t("right")],2)],1)],1),t.isFixed&&!t.immersive?n("v-uni-view",{staticClass:"u-navbar-placeholder",style:{width:"100%",height:Number(t.navbarHeight)+t.statusBarHeight+"px"}}):t._e()],1)},i=[]},1624:function(t,e,n){var o=n("24fb");e=o(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.u-navbar[data-v-2920cc37]{width:100%}.u-navbar-fixed[data-v-2920cc37]{position:fixed;left:0;right:0;top:0;z-index:991}.u-status-bar[data-v-2920cc37]{width:100%}.u-navbar-inner[data-v-2920cc37]{display:flex;flex-direction:row;justify-content:space-between;position:relative;align-items:center}.u-back-wrap[data-v-2920cc37]{display:flex;flex-direction:row;align-items:center;flex:1;flex-grow:0;padding:%?14?% %?14?% %?14?% %?24?%}.u-back-text[data-v-2920cc37]{padding-left:%?4?%;font-size:%?30?%}.u-navbar-content-title[data-v-2920cc37]{display:flex;flex-direction:row;align-items:center;justify-content:center;flex:1;position:absolute;left:0;right:0;height:%?60?%;text-align:center;flex-shrink:0}.u-navbar-centent-slot[data-v-2920cc37]{flex:1}.u-title[data-v-2920cc37]{line-height:%?60?%;font-size:%?32?%;flex:1}.u-navbar-right[data-v-2920cc37]{flex:1;display:flex;flex-direction:row;align-items:center;justify-content:flex-end}.u-slot-content[data-v-2920cc37]{flex:1;display:flex;flex-direction:row;align-items:center}',""]),t.exports=e},"1e94":function(t,e,n){"use strict";n.r(e);var o=n("4b3d"),a=n("d9ab");for(var i in a)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(i);n("ed00");var r=n("f0c5"),s=Object(r["a"])(a["default"],o["b"],o["c"],!1,null,"895cbc16",null,!1,o["a"],void 0);e["default"]=s.exports},"21fe":function(t,e,n){var o=n("8af0");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var a=n("4f06").default;a("4090d02f",o,!0,{sourceMap:!1,shadowMode:!1})},3981:function(t,e,n){"use strict";n.r(e);var o=n("5c12"),a=n.n(o);for(var i in o)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(i);e["default"]=a.a},"3b49":function(t,e,n){"use strict";var o=n("bb55"),a=n.n(o);a.a},4485:function(t,e,n){"use strict";n("7a82");var o=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("d3b7"),n("159b"),n("b64b"),n("14d9"),n("99af");var a=o(n("03b1")),i={components:{createShareImage:a.default},data:function(){return{background:{backgroundImage:"transparent"},goods_id:"",goodsParams:{},canvasImage:"",posterInfo:{},share_content:"",select_share_image_id:-3,previous_page_options:{},shop_type:""}},computed:{isJdGoods:function(){return 4==this.shop_type}},onLoad:function(t){this.previous_page_options=t;var e=t.img,n=void 0===e?"":e,o=t.goods_id,a=void 0===o?"":o,i=t.coupon_price,r=void 0===i?"":i,s=t.discount_price,c=void 0===s?"":s,u=t.price,l=void 0===u?"":u,d=t.is_coupon,f=void 0===d?"":d,h=t.commission_rate,g=void 0===h?"":h,p=t.is_high_commission,m=void 0===p?"":p,v=t.coupon_end_time,b=void 0===v?"":v,_=t.coupon_start_time,w=void 0===_?"":_,x=t.title,y=void 0===x?"":x;this.goods_id=decodeURIComponent(a),this.goodsParams={goods_id:decodeURIComponent(a),coupon_price:decodeURIComponent(r),discount_price:decodeURIComponent(c),price:decodeURIComponent(l),is_coupon:decodeURIComponent(f),commission_rate:decodeURIComponent(g),is_high_commission:decodeURIComponent(m),coupon_end_time:decodeURIComponent(b),coupon_start_time:decodeURIComponent(w),img:decodeURIComponent(n),title:decodeURIComponent(y)},this.shop_type=t.shop_type||""},onShareAppMessage:function(t){var e=this,n=this.posterInfo.title,o=uni.getStorageSync("userInfo")||"",a=[];Object.keys(this.previous_page_options).forEach((function(t){a.push([t,e.previous_page_options[t]].join("="))}));var i=a.join("&"),r="/pages/subPackages/home/goodsDetail?invite_code=".concat(o.invite_code,"&").concat(i);return this.isJdGoods&&(r="/pages/subPackages/home/jdGoodsDetail?invite_code=".concat(o.invite_code,"&").concat(i)),{title:n,path:r,imageUrl:this.goodsParams.img?this.goodsParams.img:this.posterInfo.small_images[0],desc:"",content:"",success:function(t){uni.showToast({title:"分享成功"})},fail:function(t){uni.showToast({title:"分享失败",icon:"none"})}}},methods:{openclickImage:function(t){var e="";e=-2==t?this.goodsParams.img:-1==t?this.canvasImage:this.posterInfo.small_images[t];var n=e;wx.previewImage({current:n,urls:[n],fail:function(){console.log("fail")},complete:function(){console.info("点击图片了")}})},selectImg:function(t){this.select_share_image_id==t?this.select_share_image_id=-3:this.select_share_image_id=t},goShare:function(){var t=this,e="".concat(this.share_content,"\n[爱心]下单链接:").concat(this.posterInfo.url);this.$copyEvent({text:e,toast_title:"文案已复制",cb:function(){if(-3!=t.select_share_image_id)if(-2==t.select_share_image_id)wx.downloadFile({url:t.goodsParams.img,success:function(t){wx.showShareImageMenu({path:t.tempFilePath})}});else if(-1==t.select_share_image_id)wx.showShareImageMenu({path:t.canvasImage});else{var e=t.posterInfo.small_images[t.select_share_image_id];wx.downloadFile({url:e,success:function(t){wx.showShareImageMenu({path:t.tempFilePath})}})}}})},getCanvasImage:function(t){var e=t.image,n=t.posterInfo;this.canvasImage=e,this.posterInfo=n,this.share_content="".concat(this.isJdGoods?"京东\n":"").concat(n.title,"\n").concat(1==n.is_coupon&&0!=n.coupon_price?"【在售】".concat(n.price,"\n【券后价】").concat(n.discount_price):"【在售】".concat(n.discount_price),"\n")}}};e.default=i},"4b3d":function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return o}));var o={uNavbar:n("6103").default,uIcon:n("5fbc").default},a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",[n("u-navbar",{attrs:{"is-back":!0,title:"分享赚钱",background:t.background,"title-color":"#181818","back-icon-color":"#181818"}}),n("v-uni-image",{staticClass:"head_bg",attrs:{src:"/static/imgs/head_bg.png",mode:"widthFix"}}),n("v-uni-view",{staticClass:"area_block"},[n("v-uni-view",{staticClass:"area_title"},[t._v("文案编辑")]),n("v-uni-textarea",{staticClass:"h_block textare",attrs:{"placeholder-style":"color:#ccc",placeholder:"请输入文案"},model:{value:t.share_content,callback:function(e){t.share_content=e},expression:"share_content"}}),n("v-uni-view",{staticClass:"h_block"},[t._v("【下单链接】"+t._s(t.posterInfo&&t.posterInfo.url?t.posterInfo.url:"-"))])],1),n("v-uni-view",{staticClass:"area_block area_block_image"},[n("v-uni-view",{staticClass:"area_title"},[t._v("图片选择")]),n("v-uni-scroll-view",{staticClass:"image_blcok",attrs:{"scroll-x":"true"}},[t.canvasImage?n("v-uni-view",{staticClass:"image_item",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.openclickImage(-1)}}},[n("u-icon",{staticClass:"image_select",attrs:{name:"checkmark-circle-fill",color:-1==t.select_share_image_id?"#FB3F3C":"#ccc",size:"40"},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.selectImg(-1)}}}),n("v-uni-image",{staticClass:"image",attrs:{src:t.canvasImage}})],1):t._e(),t.goodsParams.img?n("v-uni-view",{staticClass:"image_item",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.openclickImage(-2)}}},[n("u-icon",{staticClass:"image_select",attrs:{name:"checkmark-circle-fill",color:-2==t.select_share_image_id?"#FB3F3C":"#ccc",size:"40"},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.selectImg(-2)}}}),n("v-uni-image",{staticClass:"image",attrs:{src:t.goodsParams.img}})],1):t._e(),t._l(t.posterInfo.small_images,(function(e,o){return n("v-uni-view",{key:o,staticClass:"image_item",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.openclickImage(o)}}},[n("u-icon",{staticClass:"image_select",attrs:{name:"checkmark-circle-fill",color:t.select_share_image_id==o?"#FB3F3C":"#ccc",size:"40"},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.selectImg(o)}}}),n("v-uni-image",{staticClass:"image",attrs:{src:e}})],1)}))],2)],1),n("v-uni-view",{staticClass:"share_hint"},[t._v("提示:点击【分享】将自动复制文案和转发选中图片,请前往对话框进行文字粘贴")]),n("v-uni-view",{staticClass:"share_button_view"},[n("v-uni-button",{staticClass:"share_xcx",attrs:{"open-type":"share"}},[t._v("分享小程序")]),n("v-uni-button",{staticClass:"share_hint_img",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goShare.apply(void 0,arguments)}}},[t._v("分享")])],1),n("createShareImage",{attrs:{goodsParams:t.goodsParams,isJdGoods:t.isJdGoods},on:{getCanvasImage:function(e){arguments[0]=e=t.$handleEvent(e),t.getCanvasImage.apply(void 0,arguments)}}})],1)},i=[]},"505f":function(t,e,n){"use strict";n("7a82");var o=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=o(n("53ca"));n("14d9"),n("d9e2"),n("d401"),n("a9e3"),n("cb29"),n("e9c4");var i={};(function(){function t(t){var e,n,o;return t<128?[t]:t<2048?(e=192+(t>>6),n=128+(63&t),[e,n]):(e=224+(t>>12),n=128+(t>>6&63),o=128+(63&t),[e,n,o])}function e(e,n){this.typeNumber=-1,this.errorCorrectLevel=n,this.modules=null,this.moduleCount=0,this.dataCache=null,this.rsBlocks=null,this.totalDataCount=-1,this.data=e,this.utf8bytes=function(e){for(var n=[],o=0;o<e.length;o++)for(var a=e.charCodeAt(o),i=t(a),r=0;r<i.length;r++)n.push(i[r]);return n}(e),this.make()}e.prototype={constructor:e,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 n=-1;n<=7;n++)if(!(t+n<=-1||this.moduleCount<=t+n))for(var o=-1;o<=7;o++)e+o<=-1||this.moduleCount<=e+o||(this.modules[t+n][e+o]=0<=n&&n<=6&&(0==o||6==o)||0<=o&&o<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=o&&o<=4)},createQrcode:function(){for(var t=0,e=0,n=null,o=0;o<8;o++){this.makeImpl(o);var a=r.getLostPoint(this);(0==o||t>a)&&(t=a,e=o,n=this.modules)}this.modules=n,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=r.getPatternPosition(this.typeNumber),e=0;e<t.length;e++)for(var n=0;n<t.length;n++){var o=t[e],a=t[n];if(null==this.modules[o][a])for(var i=-2;i<=2;i++)for(var s=-2;s<=2;s++)this.modules[o+i][a+s]=-2==i||2==i||-2==s||2==s||0==i&&0==s}},setupTypeNumber:function(t){for(var e=r.getBCHTypeNumber(this.typeNumber),n=0;n<18;n++){var o=!t&&1==(e>>n&1);this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=o,this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=o}},setupTypeInfo:function(t,e){for(var o=n[this.errorCorrectLevel]<<3|e,a=r.getBCHTypeInfo(o),i=0;i<15;i++){var s=!t&&1==(a>>i&1);i<6?this.modules[i][8]=s:i<8?this.modules[i+1][8]=s:this.modules[this.moduleCount-15+i][8]=s;s=!t&&1==(a>>i&1);i<8?this.modules[8][this.moduleCount-i-1]=s:i<9?this.modules[8][15-i-1+1]=s:this.modules[8][15-i-1]=s}this.modules[this.moduleCount-8][8]=!t},createData:function(){var t=new d,n=this.typeNumber>9?16:8;t.put(4,4),t.put(this.utf8bytes.length,n);for(var o=0,a=this.utf8bytes.length;o<a;o++)t.put(this.utf8bytes[o],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(e.PAD0,8),t.length>=8*this.totalDataCount)break;t.put(e.PAD1,8)}return this.createBytes(t)},createBytes:function(t){for(var e=0,n=0,o=0,a=this.rsBlock.length/3,i=new Array,s=0;s<a;s++)for(var c=this.rsBlock[3*s+0],l=this.rsBlock[3*s+1],d=this.rsBlock[3*s+2],f=0;f<c;f++)i.push([d,l]);for(var h=new Array(i.length),g=new Array(i.length),p=0;p<i.length;p++){var m=i[p][0],v=i[p][1]-m;n=Math.max(n,m),o=Math.max(o,v),h[p]=new Array(m);for(s=0;s<h[p].length;s++)h[p][s]=255&t.buffer[s+e];e+=m;var b=r.getErrorCorrectPolynomial(v),_=new u(h[p],b.getLength()-1),w=_.mod(b);g[p]=new Array(b.getLength()-1);for(s=0;s<g[p].length;s++){var x=s+w.getLength()-g[p].length;g[p][s]=x>=0?w.get(x):0}}var y=new Array(this.totalDataCount),k=0;for(s=0;s<n;s++)for(p=0;p<i.length;p++)s<h[p].length&&(y[k++]=h[p][s]);for(s=0;s<o;s++)for(p=0;p<i.length;p++)s<g[p].length&&(y[k++]=g[p][s]);return y},mapData:function(t,e){for(var n=-1,o=this.moduleCount-1,a=7,i=0,s=this.moduleCount-1;s>0;s-=2){6==s&&s--;while(1){for(var c=0;c<2;c++)if(null==this.modules[o][s-c]){var u=!1;i<t.length&&(u=1==(t[i]>>>a&1));var l=r.getMask(e,o,s-c);l&&(u=!u),this.modules[o][s-c]=u,a--,-1==a&&(i++,a=7)}if(o+=n,o<0||this.moduleCount<=o){o-=n,n=-n;break}}}}},e.PAD0=236,e.PAD1=17;for(var n=[1,0,3,2],o={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},r={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(r.getBCHDigit(e)-r.getBCHDigit(r.G15)>=0)e^=r.G15<<r.getBCHDigit(e)-r.getBCHDigit(r.G15);return(t<<10|e)^r.G15_MASK},getBCHTypeNumber:function(t){var e=t<<12;while(r.getBCHDigit(e)-r.getBCHDigit(r.G18)>=0)e^=r.G18<<r.getBCHDigit(e)-r.getBCHDigit(r.G18);return t<<12|e},getBCHDigit:function(t){var e=0;while(0!=t)e++,t>>>=1;return e},getPatternPosition:function(t){return r.PATTERN_POSITION_TABLE[t-1]},getMask:function(t,e,n){switch(t){case o.PATTERN000:return(e+n)%2==0;case o.PATTERN001:return e%2==0;case o.PATTERN010:return n%3==0;case o.PATTERN011:return(e+n)%3==0;case o.PATTERN100:return(Math.floor(e/2)+Math.floor(n/3))%2==0;case o.PATTERN101:return e*n%2+e*n%3==0;case o.PATTERN110:return(e*n%2+e*n%3)%2==0;case o.PATTERN111:return(e*n%3+(e+n)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}},getErrorCorrectPolynomial:function(t){for(var e=new u([1],0),n=0;n<t;n++)e=e.multiply(new u([1,s.gexp(n)],0));return e},getLostPoint:function(t){for(var e=t.getModuleCount(),n=0,o=0,a=0;a<e;a++)for(var i=0,r=t.modules[a][0],s=0;s<e;s++){var c=t.modules[a][s];if(s<e-6&&c&&!t.modules[a][s+1]&&t.modules[a][s+2]&&t.modules[a][s+3]&&t.modules[a][s+4]&&!t.modules[a][s+5]&&t.modules[a][s+6]&&(s<e-10?t.modules[a][s+7]&&t.modules[a][s+8]&&t.modules[a][s+9]&&t.modules[a][s+10]&&(n+=40):s>3&&t.modules[a][s-1]&&t.modules[a][s-2]&&t.modules[a][s-3]&&t.modules[a][s-4]&&(n+=40)),a<e-1&&s<e-1){var u=0;c&&u++,t.modules[a+1][s]&&u++,t.modules[a][s+1]&&u++,t.modules[a+1][s+1]&&u++,0!=u&&4!=u||(n+=3)}r^c?i++:(r=c,i>=5&&(n+=3+i-5),i=1),c&&o++}for(s=0;s<e;s++)for(i=0,r=t.modules[0][s],a=0;a<e;a++){c=t.modules[a][s];a<e-6&&c&&!t.modules[a+1][s]&&t.modules[a+2][s]&&t.modules[a+3][s]&&t.modules[a+4][s]&&!t.modules[a+5][s]&&t.modules[a+6][s]&&(a<e-10?t.modules[a+7][s]&&t.modules[a+8][s]&&t.modules[a+9][s]&&t.modules[a+10][s]&&(n+=40):a>3&&t.modules[a-1][s]&&t.modules[a-2][s]&&t.modules[a-3][s]&&t.modules[a-4][s]&&(n+=40)),r^c?i++:(r=c,i>=5&&(n+=3+i-5),i=1)}var l=Math.abs(100*o/e/e-50)/5;return n+=10*l,n}},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)},c=0;c<8;c++)s.EXP_TABLE[c]=1<<c;for(c=8;c<256;c++)s.EXP_TABLE[c]=s.EXP_TABLE[c-4]^s.EXP_TABLE[c-5]^s.EXP_TABLE[c-6]^s.EXP_TABLE[c-8];for(c=0;c<255;c++)s.LOG_TABLE[s.EXP_TABLE[c]]=c;function u(t,e){if(void 0==t.length)throw new Error(t.length+"/"+e);var n=0;while(n<t.length&&0==t[n])n++;this.num=new Array(t.length-n+e);for(var o=0;o<t.length-n;o++)this.num[o]=t[o+n]}u.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),n=0;n<this.getLength();n++)for(var o=0;o<t.getLength();o++)e[n+o]^=s.gexp(s.glog(this.get(n))+s.glog(t.get(o)));return new u(e,0)},mod:function(t){var e=this.getLength(),n=t.getLength();if(e-n<0)return this;for(var o=new Array(e),a=0;a<e;a++)o[a]=this.get(a);while(o.length>=n){var i=s.glog(o[0])-s.glog(t.get(0));for(a=0;a<t.getLength();a++)o[a]^=s.gexp(s.glog(t.get(a))+i);while(0==o[0])o.shift()}return new u(o,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 d(){this.buffer=new Array,this.length=0}e.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 n=e.length/3,o=0,a=0;a<n;a++){var i=e[3*a+0],r=e[3*a+2];o+=r*i}var s=t>9?2:1;if(this.utf8bytes.length+s<o||40==t){this.typeNumber=t,this.rsBlock=e,this.totalDataCount=o;break}}},d.prototype={get:function(t){var e=Math.floor(t/8);return this.buffer[e]>>>7-t%8&1},put:function(t,e){for(var n=0;n<e;n++)this.putBit(t>>>e-n-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=[];i=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 n in t)this.options[n]=t[n];for(var o=null,i=(n=0,f.length);n<i;n++)if(f[n].text==this.options.text&&f[n].text.correctLevel==this.options.correctLevel){o=f[n].obj;break}n==i&&(o=new e(this.options.text,this.options.correctLevel),f.push({text:this.options.text,correctLevel:this.options.correctLevel,obj:o}));var r=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};(function(t){t.showLoading&&uni.showLoading({title:t.loadingText,mask:!0});for(var e=uni.createCanvasContext(t.canvasId,t.context),n=o.getModuleCount(),a=t.size,i=t.imageSize,c=(a/n).toPrecision(4),u=(a/n).toPrecision(4),l=0;l<n;l++)for(var d=0;d<n;d++){var f=Math.ceil((d+1)*c)-Math.floor(d*c),h=Math.ceil((l+1)*c)-Math.floor(l*c),g=r({row:l,col:d,count:n,options:t});e.setFillStyle(o.modules[l][d]?g:t.background),e.fillRect(Math.round(d*c),Math.round(l*u),f,h)}if(t.image){var p=Number(((a-i)/2).toFixed(2)),m=Number(((a-i)/2).toFixed(2));(function(e,n,o,a,i,r,s,c,u){e.setLineWidth(s),e.setFillStyle(t.background),e.setStrokeStyle(t.background),e.beginPath(),e.moveTo(n+r,o),e.arcTo(n+a,o,n+a,o+r,r),e.arcTo(n+a,o+i,n+a-r,o+i,r),e.arcTo(n,o+i,n,o+i-r,r),e.arcTo(n,o,n+r,o,r),e.closePath(),c&&e.fill(),u&&e.stroke()})(e,p,m,i,i,2,6,!0,!0),e.drawImage(t.image,p,m,i,i)}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&&(s(e.tempFilePath)?s(e.apFilePath)?t.cbResult(e.tempFilePath):t.cbResult(e.apFilePath):t.cbResult(e.tempFilePath))},fail:function(e){t.cbResult&&t.cbResult(e)},complete:function(){uni.hideLoading()}},t.context)}),t.text.length+100)}))}),t.usingComponents?0:150)})(this.options);var s=function(t){var e=(0,a.default)(t),n=!1;return"number"==e&&""==String(t)||"undefined"==e?n=!0:"object"==e?"{}"!=JSON.stringify(t)&&"[]"!=JSON.stringify(t)&&null!=t||(n=!0):"string"==e?""!=t&&"undefined"!=t&&"null"!=t&&"{}"!=t&&"[]"!=t||(n=!0):"function"==e&&(n=!1),n}},i.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 r=i;e.default=r},"5c12":function(t,e,n){"use strict";n("7a82");var o=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=o(n("53ca"));n("a9e3"),n("e9c4");var i,r=o(n("505f")),s={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(){""!=this.result&&uni.saveImageToPhotosAlbum({filePath:this.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=(0,a.default)(t),n=!1;return"number"==e&&""==String(t)||"undefined"==e?n=!0:"object"==e?"{}"!=JSON.stringify(t)&&"[]"!=JSON.stringify(t)&&null!=t||(n=!0):"string"==e?""!=t&&"undefined"!=t&&"null"!=t&&"{}"!=t&&"[]"!=t||(n=!0):"function"==e&&(n=!1),n}},watch:{size:function(t,e){var n=this;t==e||this._empty(t)||(this.cSize=t,this._empty(this.val)||setTimeout((function(){n._makeCode()}),100))},val:function(t,e){var n=this;this.onval&&(t==e||this._empty(t)||setTimeout((function(){n._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=s},"5f8d":function(t,e,n){var o=n("24fb");e=o(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.head_bg[data-v-895cbc16]{position:absolute;top:0;left:0;width:100%}.area_block[data-v-895cbc16]{width:%?702?%;height:%?594?%;background:#fff;border-radius:%?12?%;margin:%?18?% auto 0;position:relative}.area_block .area_title[data-v-895cbc16]{color:#181818;font-size:%?32?%;line-height:%?106?%;border-bottom:%?2?% solid #f9f9fa;padding-left:%?42?%}.area_block .h_block[data-v-895cbc16]{width:%?662?%;background:#f6f6f6;padding:%?26?%;color:#181818;font-size:%?28?%;line-height:%?40?%;margin:auto;box-sizing:border-box}.area_block .textare[data-v-895cbc16]{margin-top:%?26?%;margin-bottom:%?10?%;height:%?336?%}.area_block_image[data-v-895cbc16]{height:%?366?%}.image_blcok[data-v-895cbc16]{white-space:nowrap;width:100%;margin-top:%?44?%}.image_blcok .image_item[data-v-895cbc16]{display:inline-block;width:%?180?%;height:%?180?%;margin-left:%?20?%;position:relative}.image_blcok .image_item .image_select[data-v-895cbc16]{position:absolute;top:%?0?%;right:%?0?%;padding:%?10?% %?10?% %?40?% %?40?%}.image_blcok .image_item .image[data-v-895cbc16]{width:100%;height:100%}.share_hint[data-v-895cbc16]{width:%?654?%;height:%?68?%;font-size:%?24?%;color:#e55454;line-height:%?34?%;margin:%?26?% auto 0}.share_button_view[data-v-895cbc16]{width:%?628?%;height:%?84?%;background:#ffbb93;border-radius:%?42?%;margin:%?56?% auto 0;display:flex;align-items:center}.share_button_view uni-button[data-v-895cbc16]{background:transparent;margin:0;width:50%;color:#fff;font-size:%?36?%;font-weight:700}.share_button_view uni-button[data-v-895cbc16]::after{border:none}.share_button_view .share_hint_img[data-v-895cbc16]{width:%?366?%;height:100%;background:linear-gradient(90deg,#ff9048,#fb3f3c);border-radius:%?42?%}',""]),t.exports=e},6103:function(t,e,n){"use strict";n.r(e);var o=n("1335"),a=n("123c");for(var i in a)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(i);n("3b49");var r=n("f0c5"),s=Object(r["a"])(a["default"],o["b"],o["c"],!1,null,"2920cc37",null,!1,o["a"],void 0);e["default"]=s.exports},7179:function(t,e,n){var o=n("c0aa");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var a=n("4f06").default;a("bc20dd80",o,!0,{sourceMap:!1,shadowMode:!1})},"8af0":function(t,e,n){var o=n("24fb");e=o(!1),e.push([t.i,".tki-qrcode[data-v-f049ede4]{position:relative}.tki-qrcode-canvas[data-v-f049ede4]{position:fixed;top:%?-99999?%;left:%?-99999?%;z-index:-99999}",""]),t.exports=e},"8f68":function(t,e,n){"use strict";n.r(e);var o=n("efcb"),a=n.n(o);for(var i in o)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(i);e["default"]=a.a},b3be:function(t,e,n){"use strict";var o=n("21fe"),a=n.n(o);a.a},b661:function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){}));var o=function(){var t=this.$createElement,e=this._self._c||t;return e("v-uni-view",{staticClass:"tki-qrcode"},[e("v-uni-canvas",{staticClass:"tki-qrcode-canvas",style:{width:this.cpSize+"px",height:this.cpSize+"px"},attrs:{"canvas-id":this.cid}}),e("v-uni-image",{directives:[{name:"show",rawName:"v-show",value:this.show,expression:"show"}],style:{width:this.cpSize+"px",height:this.cpSize+"px"},attrs:{src:this.result}})],1)},a=[]},b839:function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){}));var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",[n("tkiQrcode",{ref:"qrcode",staticStyle:{position:"fixed",left:"-9999px",top:"0"},attrs:{val:t.qrcodeVal,size:90,unit:"px",background:"#fff",foreground:"#000",pdground:"#000",lv:"3",icon:"/static/imgs/avatar-login.png",iconSize:"15"},on:{result:function(e){arguments[0]=e=t.$handleEvent(e),t.onResultQrCode.apply(void 0,arguments)}}}),t.refreshCanvas?n("v-uni-canvas",{staticClass:"myCanvas",staticStyle:{width:"375px",height:"500px",position:"fixed",left:"-9999px",top:"0"},attrs:{"canvas-id":"myCanvas"}}):t._e()],1)},a=[]},bb55:function(t,e,n){var o=n("1624");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var a=n("4f06").default;a("768dc6c5",o,!0,{sourceMap:!1,shadowMode:!1})},c0aa:function(t,e,n){var o=n("24fb");e=o(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.clipboard-container[data-v-754b49a1]{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:%?648?%;min-height:%?400?%;padding:%?52?% %?28?%;border-radius:%?120?% %?120?% %?32?% %?32?%;background-color:#fff;z-index:999}.clipboard-container .clipbpard_bg[data-v-754b49a1]{border-radius:%?120?% %?120?% 0 0;position:absolute;top:0;left:0;width:100%}.clipboard-container .content[data-v-754b49a1]{position:relative;z-index:9}.clipboard-container .mask-title[data-v-754b49a1]{display:flex;align-items:center;justify-content:center;color:#181818;font-size:%?40?%;line-height:%?56?%;font-weight:700;letter-spacing:%?2?%}.clipboard-container .mask-title .clipbpard_title_img[data-v-754b49a1]{width:%?30?%;height:%?30?%;margin:0 %?16?%}.clipboard-container .close[data-v-754b49a1]{position:absolute;bottom:%?-100?%;left:0;right:0;margin:auto;width:%?60?%;height:%?60?%}.clipboard-container .goods-container[data-v-754b49a1]{display:flex;align-items:center;margin-top:%?84?%}.clipboard-container .goods-container .goods-img[data-v-754b49a1]{width:%?200?%;height:%?200?%;border-radius:%?18?%}.clipboard-container .goods-container .goods-info[data-v-754b49a1]{flex:1;margin-left:%?20?%}.clipboard-container .goods-container .goods-info .goods-title[data-v-754b49a1]{font-size:%?28?%;color:#181818;line-height:%?40?%;\n /* // 超出两行省略号 */word-break:break-all;overflow:hidden;-webkit-line-clamp:2;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical}.clipboard-container .goods-container .goods-info .goods-price[data-v-754b49a1]{color:#ff4040;font-size:%?36?%;line-height:%?50?%;margin-top:%?14?%}.clipboard-container .goods-container .goods-info .goods-quan[data-v-754b49a1]{display:flex;align-items:center;margin-top:%?14?%}.clipboard-container .goods-container .goods-info .goods-quan .coupon-wrap[data-v-754b49a1]{margin-right:%?30?%;display:flex;align-items:center;width:%?155?%;height:%?36?%;background-image:url(/static/imgs/quan.png);background-repeat:no-repeat;background-size:100% 100%;color:#ff4040;font-size:%?26?%}.clipboard-container .goods-container .goods-info .goods-quan .coupon-wrap.coupon-fan[data-v-754b49a1]{background-image:url(/static/imgs/fan.png);color:#ae4300}.clipboard-container .goods-container .goods-info .goods-quan .coupon-wrap .label[data-v-754b49a1]{width:%?48?%;text-align:center}.clipboard-container .goods-container .goods-info .goods-quan .coupon-wrap .value[data-v-754b49a1]{flex:1;text-align:center}.clipboard-container .clipbpard-buttones[data-v-754b49a1]{display:flex;align-items:center;justify-content:center;margin-top:%?70?%}.clipboard-container .clipbpard-buttones .clipbpard-button[data-v-754b49a1]{width:%?252?%;height:%?80?%;background:linear-gradient(90deg,#ff9048,#fb3f3c);border-radius:%?40?%;color:#fff;font-size:%?32?%;line-height:%?80?%;text-align:center;margin:0 %?10?%}.clipboard-container .clipbpard-buttones .clipbpard-button.share[data-v-754b49a1]{background:#ffeed9;color:#ae4300}.clipboard-container .clipbpard-buttones .clipbpard-button uni-text[data-v-754b49a1]{margin-left:%?10?%}.clipboard-container .search_con[data-v-754b49a1]{color:#181818;font-size:%?28?%;line-height:%?40?%;padding:%?90?% %?24?% 0;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:6;overflow:hidden;\n /*! autoprefixer: off */-webkit-box-orient:vertical;\n /*! autoprefixer: on */word-break:break-all}',""]),t.exports=e},cb29:function(t,e,n){var o=n("23e7"),a=n("81d5"),i=n("44d2");o({target:"Array",proto:!0},{fill:a}),i("fill")},d9ab:function(t,e,n){"use strict";n.r(e);var o=n("4485"),a=n.n(o);for(var i in o)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(i);e["default"]=a.a},de70:function(t,e,n){var o=n("5f8d");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var a=n("4f06").default;a("252e5fca",o,!0,{sourceMap:!1,shadowMode:!1})},ed00:function(t,e,n){"use strict";var o=n("de70"),a=n.n(o);a.a},efcb:function(t,e,n){"use strict";n("7a82");var o=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("d3b7"),n("d81d"),n("cb29");var a=o(n("5530")),i=o(n("c7eb")),r=o(n("1da1")),s=n("9e2a"),c=o(n("f3a3")),u=getApp();try{u.globalData.$router}catch(d){}var l={name:"createShareImage",props:{goodsParams:{type:Object,default:function(){return{}}},isJdGoods:{type:Boolean,default:function(){return!1}}},components:{tkiQrcode:c.default},data:function(){return{search_goods:{},search_con:"",show:!1,isLogin:!1,isShowTbAuth:!1,refreshCanvas:!0,canvasImg:"",qrcodeVal:"",qrcodeImg:"",posterInfo:{}}},mounted:function(){this.handleShareGoods()},methods:{handleShareGoods:function(){var t=this;return(0,r.default)((0,i.default)().mark((function e(){return(0,i.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(console.log("handleShareGoods => "),e.prev=1,!t.isJdGoods){e.next=8;break}return e.next=5,t.handleGetJdPosterInfo();case 5:t.posterInfo=e.sent,e.next=11;break;case 8:return e.next=10,t.handleGetPosterInfo();case 10:t.posterInfo=e.sent;case 11:console.log("this.posterInfo => ",t.posterInfo),t.handleGetQrCodeImg(t.posterInfo.url),e.next=18;break;case 15:e.prev=15,e.t0=e["catch"](1),console.log("error => ",e.t0);case 18:case"end":return e.stop()}}),e,null,[[1,15]])})))()},handleGetJdPosterInfo:function(){var t=this;console.log("handleGetJdPosterInfo==>",this.goodsParams);var e=this.goodsParams.goods_id;return new Promise(function(){var n=(0,r.default)((0,i.default)().mark((function n(o,r){var s,c,u,l,d;return(0,i.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.prev=0,s=t.$api_jd.jdShareCommonGoods,c={goods_id:e},uni.showLoading({title:"加载中...",mask:!0}),console.log("京东进来了",s),n.next=7,t.$postJSON(s,c);case 7:u=n.sent,l=u.data,console.log("京东进来了1"),uni.hideLoading(),l&&0==l.errno?(d=l.rst.data,d.small_images=d.small_images.map((function(t){return t.url})),o((0,a.default)({},d))):(uni.showToast({title:l.err||"操作失败",icon:"none"}),r(l.err||"操作失败")),n.next=17;break;case 14:n.prev=14,n.t0=n["catch"](0),r(n.t0);case 17:case"end":return n.stop()}}),n,null,[[0,14]])})));return function(t,e){return n.apply(this,arguments)}}())},handleGetPosterInfo:function(){var t=this;console.log("handleGetPosterInfo => ");var e=this.goodsParams,n=e.goods_id,o=e.is_coupon,s=e.coupon_price,c=e.price,u=e.discount_price,l=e.commission_rate,d=e.coupon_end_time,f=e.coupon_start_time;return new Promise(function(){var e=(0,r.default)((0,i.default)().mark((function e(r,h){var g,p,m,v;return(0,i.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,g=t.$api.goodsItem_shareCommonGoods,p={goods_id:n,is_coupon:o,coupon_price:s,price:c,discount_price:u,commission_rate:l,coupon_end_time:d,coupon_start_time:f},uni.showLoading({title:"加载中...",mask:!0}),e.next=6,t.$postJSON(g,p);case 6:m=e.sent,v=m.data,uni.hideLoading(),v&&0==v.errno&&v.rst.data.goods_id?r((0,a.default)({},v.rst.data)):(uni.showToast({title:v.err||"操作失败",icon:"none"}),h(v.err||"操作失败")),e.next=15;break;case 12:e.prev=12,e.t0=e["catch"](0),h(e.t0);case 15:case"end":return e.stop()}}),e,null,[[0,12]])})));return function(t,n){return e.apply(this,arguments)}}())},handleGetQrCodeImg:function(t){var e=this;return(0,r.default)((0,i.default)().mark((function n(){return(0,i.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.prev=0,e.qrcodeVal=t,n.next=4,e.$nextTick();case 4:e.$refs.qrcode._makeCode(),n.next=10;break;case 7:n.prev=7,n.t0=n["catch"](0),e.$emit("getCanvasImage",{image:"",posterInfo:e.posterInfo});case 10:case"end":return n.stop()}}),n,null,[[0,7]])})))()},onResultQrCode:function(t){console.log("onResultQrCode res => ",t),this.qrcodeImg=t,this.handleDrawPoster(this.posterInfo)},handleRefreshCanvas:function(){var t=this;return(0,r.default)((0,i.default)().mark((function e(){return(0,i.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.refreshCanvas=!1,e.next=3,t.$nextTick();case 3:t.refreshCanvas=!0;case 4:case"end":return e.stop()}}),e)})))()},handleDrawPoster:function(t){var e=this;return(0,r.default)((0,i.default)().mark((function n(){var o,a,c,u,l,d,f,h,g,p,m,v,b,_,w,x,y,k,C,I,P;return(0,i.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return console.log("handleDrawPoster => posterInfo ",t),o={4:"/static/imgs/jd-icon.png",1:"/static/imgs/icon-tmall.png",0:"/static/imgs/icon-tb.png"},n.prev=2,a=t.title,c=o[t.shop_type],u=t.img,l=t.discount_price,d=t.price,f=t.userinfo.headimg,h=t.userinfo.nickname,g=t.userinfo.invite_code,p=e.qrcodeImg,uni.showLoading({title:"加载中...",mask:!0}),e.handleRefreshCanvas(),m=uni.createCanvasContext("myCanvas",e),m.beginPath(),v=375,500,m.width=v,m.height=500,m.clearRect(0,0,v,500),m.setFillStyle("#ffffff"),m.fillRect(0,0,v,500),m.closePath(),m.beginPath(),m.drawImage(c,20,8,14,14),m.closePath(),m.beginPath(),m.setFillStyle("#333"),m.font="13px Arial",(0,s.canvasTextAutoLine)(m," ".concat(a),20,20,260,20),m.closePath(),console.log("goodsTitle => ",a),m.beginPath(),n.next=36,uni.getImageInfo({src:u});case 36:return b=n.sent,b[1]&&"getImageInfo:ok"===b[1].errMsg&&m.drawImage(b[1].path,30,55,v-60,v-60),m.closePath(),m.beginPath(),_=55+v-60+30,m.setFillStyle("#EC0B00"),m.font="14px Arial",m.fillText("券后 ¥".concat(l),20,_),m.closePath(),m.beginPath(),w=m.measureText("券后 ¥".concat(l)).width+40,x=m.measureText(d).width+20,m.setFillStyle("#333"),m.font="14px Arial",m.fillText("¥".concat(d),w,_),m.rect(w,_-5,x,1),m.setFillStyle("#333"),m.fill(),m.closePath(),n.next=57,uni.getImageInfo({src:p});case 57:return y=n.sent,y[1]&&"getImageInfo:ok"===y[1].errMsg&&m.drawImage(y[1].path,270,_-10,90,90),m.beginPath(),k=_+20+16,m.setFillStyle("#333"),m.font="13px Arial",m.fillText(h,54,k),m.closePath(),m.beginPath(),C=k+34,m.setFillStyle("#333"),m.font="13px Arial",m.fillText("邀请码:".concat(g),20,C),m.closePath(),m.beginPath(),I=_+20,n.next=75,uni.getImageInfo({src:f});case 75:P=n.sent,P[1]&&"getImageInfo:ok"===P[1].errMsg&&(0,s.circleImgOne)(m,P[1].path,20,I,12),m.closePath(),m.draw(!1,(0,r.default)((0,i.default)().mark((function t(){return(0,i.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick();case 2:uni.canvasToTempFilePath({fileType:"png",canvasId:"myCanvas",success:function(t){console.log("res => ",t),e.canvasImg=t.tempFilePath,e.$emit("getCanvasImage",{image:e.canvasImg,posterInfo:e.posterInfo})},fail:function(t){e.$emit("getCanvasImage",{image:e.canvasImg,posterInfo:e.posterInfo})}},e);case 3:case"end":return t.stop()}}),t)})))),n.next=84;break;case 81:n.prev=81,n.t0=n["catch"](2),e.$emit("getCanvasImage",{image:e.canvasImg,posterInfo:e.posterInfo});case 84:return n.prev=84,uni.hideLoading(),n.finish(84);case 87:case"end":return n.stop()}}),n,null,[[2,81,84,87]])})))()}}};e.default=l},eff7:function(t,e,n){"use strict";n("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("a9e3");var o=uni.getSystemInfoSync(),a={},i={name:"u-navbar",props:{height:{type:[String,Number],default:""},backIconColor:{type:String,default:"#606266"},backIconName:{type:String,default:"nav-back"},backIconSize:{type:[String,Number],default:"44"},backText:{type:String,default:""},backTextStyle:{type:Object,default:function(){return{color:"#606266"}}},title:{type:String,default:""},titleWidth:{type:[String,Number],default:"250"},titleColor:{type:String,default:"#606266"},titleBold:{type:Boolean,default:!1},titleSize:{type:[String,Number],default:32},isBack:{type:[Boolean,String],default:!0},background:{type:Object,default:function(){return{background:"#ffffff"}}},isFixed:{type:Boolean,default:!0},immersive:{type:Boolean,default:!1},borderBottom:{type:Boolean,default:!0},zIndex:{type:[String,Number],default:""},customBack:{type:Function,default:null}},data:function(){return{menuButtonInfo:a,statusBarHeight:o.statusBarHeight}},computed:{navbarInnerStyle:function(){var t={};return t.height=this.navbarHeight+"px",t},navbarStyle:function(){var t={};return t.zIndex=this.zIndex?this.zIndex:this.$u.zIndex.navbar,Object.assign(t,this.background),t},titleStyle:function(){var t={};return t.left=(o.windowWidth-uni.upx2px(this.titleWidth))/2+"px",t.right=(o.windowWidth-uni.upx2px(this.titleWidth))/2+"px",t.width=uni.upx2px(this.titleWidth)+"px",t},navbarHeight:function(){return this.height?this.height:44}},created:function(){},methods:{goBack:function(){"function"===typeof this.customBack?this.customBack.bind(this.$u.$parent.call(this))():uni.navigateBack()}}};e.default=i},f3a3:function(t,e,n){"use strict";n.r(e);var o=n("b661"),a=n("3981");for(var i in a)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(i);n("b3be");var r=n("f0c5"),s=Object(r["a"])(a["default"],o["b"],o["c"],!1,null,"f049ede4",null,!1,o["a"],void 0);e["default"]=s.exports}}]);
|