(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-dailishang-invite-invite"],{"00b6":function(t,e,a){"use strict";a.r(e);var i=a("1c7a"),n=a.n(i);for(var o in i)"default"!==o&&function(t){a.d(e,t,(function(){return i[t]}))}(o);e["default"]=n.a},"1c7a":function(t,e,a){"use strict";var i=a("4ea4");a("99af"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(a("5530")),o={data:function(){return{code:"",qrcodeUrl:""}},computed:{shareUrl:function(){var t="".concat(location.origin,"/pages/dailishang/invitelanding/invitelanding?code=").concat(this.code,"&config_id=").concat(this.userInfo.config_id);return this.userInfo.source_id&&-1!=this.userInfo.source_id?"".concat(t,"&source_id=").concat(this.userInfo.source_id):t}},methods:{toShareDetail:function(){console.log(location.origin),uni.setClipboardData({data:this.shareUrl,success:function(){uni.showToast({title:"复制链接成功,快去分享给好友吧~"})}})},showQrcode:function(){uni.previewImage({urls:[this.qrcodeUrl]})},copy:function(t){uni.setClipboardData({data:t.currentTarget.dataset.text,success:function(){uni.showToast({title:"复制成功"})}})},download:function(){uni.previewImage({urls:[this.qrcodeUrl]})},loadInvite:function(){var t=this;this.reqByuser({url:"service/agent/?l=my.invite",success:function(e){1==e.data.status?(t.code=e.data.data.code,t.$refs.uqrcode.make({mode:"canvas",size:97,text:t.shareUrl}).then((function(e){console.log(e),t.qrcodeUrl=e.tempFilePath}))):uni.showToast({icon:"error",title:e.data.msg})}})}},onLoad:function(t){var e=this;this.userInfo.config_id?this.loadInvite():this.reqByuser({url:"service/agent/?l=my.getInfo",method:"GET",data:{},success:function(t){if(1==t.data.status){var a=t.data.data;e.user=a.user,e.setUserInfo((0,n.default)((0,n.default)({},e.userInfo),e.user)),e.config=a.config,getApp().globalData.config=a.config,e.loadInvite()}else uni.showToast({icon:"error",title:t.data.msg})}})}};e.default=o},"23f7":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */uni-page-body[data-v-136acf84]{height:100%;display:flex;flex-direction:column}.app[data-v-136acf84]{flex:1;display:flex;flex-direction:column;justify-content:space-between;align-items:center;box-sizing:border-box;padding:0 %?86?%}.app .dl[data-v-136acf84]{flex:1;height:33%;display:flex;flex-direction:column;justify-content:center;align-items:center}.app .dl .h3[data-v-136acf84]{font-size:%?34?%;font-family:PingFangSC-Medium,PingFang SC}.app .dl > *[data-v-136acf84]{margin:%?10?% 0}.app .dl .qrcode[data-v-136acf84]{width:%?194?%;height:%?194?%}.app .dl .code[data-v-136acf84]{color:#00ab78;font-size:%?88?%;font-family:FZJUNH_CUJW--GB1-0,FZJUNH_CUJW--GB1}',""]),t.exports=e},"4a5e":function(t,e,a){"use strict";var i=a("4ea4");a("d3b7"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(a("5530")),o={};(function(){function t(t){this.mode=a.MODE_8BIT_BYTE,this.data=t}function e(t,e){this.typeNumber=t,this.errorCorrectLevel=e,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=new Array}t.prototype={getLength:function(t){return this.data.length},write:function(t){for(var e=0;e=7&&this.setupTypeNumber(t),null==this.dataCache&&(this.dataCache=e.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,a)},setupPositionProbePattern:function(t,e){for(var a=-1;a<=7;a++)if(!(t+a<=-1||this.moduleCount<=t+a))for(var i=-1;i<=7;i++)e+i<=-1||this.moduleCount<=e+i||(this.modules[t+a][e+i]=0<=a&&a<=6&&(0==i||6==i)||0<=i&&i<=6&&(0==a||6==a)||2<=a&&a<=4&&2<=i&&i<=4)},getBestMaskPattern:function(){for(var t=0,e=0,a=0;a<8;a++){this.makeImpl(!0,a);var i=s.getLostPoint(this);(0==a||t>i)&&(t=i,e=a)}return e},createMovieClip:function(t,e,a){var i=t.createEmptyMovieClip(e,a),n=1;this.make();for(var o=0;o>a&1);this.modules[Math.floor(a/3)][a%3+this.moduleCount-8-3]=i}for(a=0;a<18;a++){i=!t&&1==(e>>a&1);this.modules[a%3+this.moduleCount-8-3][Math.floor(a/3)]=i}},setupTypeInfo:function(t,e){for(var a=this.errorCorrectLevel<<3|e,i=s.getBCHTypeInfo(a),n=0;n<15;n++){var o=!t&&1==(i>>n&1);n<6?this.modules[n][8]=o:n<8?this.modules[n+1][8]=o:this.modules[this.moduleCount-15+n][8]=o}for(n=0;n<15;n++){o=!t&&1==(i>>n&1);n<8?this.modules[8][this.moduleCount-n-1]=o:n<9?this.modules[8][15-n-1+1]=o:this.modules[8][15-n-1]=o}this.modules[this.moduleCount-8][8]=!t},mapData:function(t,e){for(var a=-1,i=this.moduleCount-1,n=7,o=0,r=this.moduleCount-1;r>0;r-=2){6==r&&r--;while(1){for(var c=0;c<2;c++)if(null==this.modules[i][r-c]){var d=!1;o>>n&1));var l=s.getMask(e,i,r-c);l&&(d=!d),this.modules[i][r-c]=d,n--,-1==n&&(o++,n=7)}if(i+=a,i<0||this.moduleCount<=i){i-=a,a=-a;break}}}}},e.PAD0=236,e.PAD1=17,e.createData=function(t,a,i){for(var n=u.getRSBlocks(t,a),o=new f,r=0;r8*d)throw new Error("code length overflow. ("+o.getLengthInBits()+">"+8*d+")");o.getLengthInBits()+4<=8*d&&o.put(0,4);while(o.getLengthInBits()%8!=0)o.putBit(!1);while(1){if(o.getLengthInBits()>=8*d)break;if(o.put(e.PAD0,8),o.getLengthInBits()>=8*d)break;o.put(e.PAD1,8)}return e.createBytes(o,n)},e.createBytes=function(t,e){for(var a=0,i=0,n=0,o=new Array(e.length),r=new Array(e.length),c=0;c=0?p.get(v):0}}var m=0;for(f=0;f=0)e^=s.G15<=0)e^=s.G18<>>=1;return e},getPatternPosition:function(t){return s.PATTERN_POSITION_TABLE[t-1]},getMask:function(t,e,a){switch(t){case r.PATTERN000:return(e+a)%2==0;case r.PATTERN001:return e%2==0;case r.PATTERN010:return a%3==0;case r.PATTERN011:return(e+a)%3==0;case r.PATTERN100:return(Math.floor(e/2)+Math.floor(a/3))%2==0;case r.PATTERN101:return e*a%2+e*a%3==0;case r.PATTERN110:return(e*a%2+e*a%3)%2==0;case r.PATTERN111:return(e*a%3+(e+a)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}},getErrorCorrectPolynomial:function(t){for(var e=new l([1],0),a=0;a5&&(a+=3+o-5)}for(i=0;i=256)t-=255;return c.EXP_TABLE[t]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},d=0;d<8;d++)c.EXP_TABLE[d]=1<=1&&e<=127?a+=t.charAt(i):e>2047?(a+=String.fromCharCode(224|e>>12&15),a+=String.fromCharCode(128|e>>6&63),a+=String.fromCharCode(128|e>>0&63)):(a+=String.fromCharCode(192|e>>6&31),a+=String.fromCharCode(128|e>>0&63));return a}l.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),a=0;a>>7-t%8&1)},put:function(t,e){for(var a=0;a>>e-a-1&1))},getLengthInBits:function(){return this.length},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++}},o={errorCorrectLevel:i,defaults:{size:354,margin:0,backgroundColor:"#FFFFFF",foregroundColor:"#000000",fileType:"png",errorCorrectLevel:i.H,typeNumber:-1},getModules:function(t){t=(0,n.default)((0,n.default)({},this.defaults),t);var a=new e(t.typeNumber,t.errorCorrectLevel);return a.addData(h(t.text)),a.make(),a.modules},make:function(t,e){var a=this;return new Promise((function(i,o){if(t=(0,n.default)((0,n.default)({},a.defaults),t),!t.canvasId)throw new Error("uQRCode: Please set canvasId!");var r=a.getModules(t),s=(t.size-2*t.margin)/r.length,c=s,d=Date.now(),l=uni.createCanvasContext(t.canvasId,e);l.setFillStyle(t.backgroundColor),l.fillRect(0,0,t.size,t.size);for(var u=0;u uni-view[data-v-136acf84]:first-child{width:%?500?%}.topinfo .address .adr-shop[data-v-136acf84]{display:flex;align-items:center}.topinfo .address .adr-shop .sp-name[data-v-136acf84]{margin:0 %?16?%;color:#333;font-size:%?28?%;line-height:%?40?%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.topinfo .address .adr-shop .icon-address[data-v-136acf84]{flex-shrink:0}.topinfo .address .range[data-v-136acf84]{font-size:%?22?%;line-height:%?32?%;color:#666;margin-top:%?12?%;display:inline-block}.topinfo .address .switch[data-v-136acf84]{background-color:#00ab78;border-radius:%?30?%;padding:%?6?%;display:flex;align-items:center;flex-shrink:0}.topinfo .address .switch uni-text[data-v-136acf84]{font-size:%?24?%;color:#fff;padding:0 %?18?%;border-radius:%?30?%;line-height:%?38?%;display:inline-block}.topinfo .address .switch uni-text.active[data-v-136acf84]{background-color:#fff;color:#00ab78}.topinfo .msg[data-v-136acf84]{margin-top:%?12?%;display:flex;font-size:%?22?%;line-height:%?32?%;justify-content:space-between;align-items:center}.topinfo .msg > uni-text[data-v-136acf84]:first-child{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;height:%?36?%}.topinfo .msg .more[data-v-136acf84]{font-size:%?20?%;line-height:%?28?%;color:#999;display:flex;align-items:center;flex-shrink:0}.topinfo .msg .more[data-v-136acf84]:after{content:"";background:url('+Q+') no-repeat 50%;background-size:contain;display:inline-block;width:%?10?%;height:%?6?%;margin-left:%?8?%}.topinfo .msg.showmore > uni-text[data-v-136acf84]:first-child{opacity:0}.topinfo .msg.showmore .more[data-v-136acf84]:after{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.topinfo .shop-desc-box[data-v-136acf84]{position:relative;width:100%}.topinfo .shop-desc-layer[data-v-136acf84]{position:absolute;left:%?-32?%;right:%?-32?%;background-color:#fff;top:0;padding:%?32?%}.topinfo .shop-desc-layer .desc[data-v-136acf84]{margin-top:%?32?%;color:#666;font-size:%?22?%}.topinfo .shop-desc-layer uni-navigator[data-v-136acf84]{margin-top:%?32?%}.topinfo .shop-desc-layer .h3[data-v-136acf84]{display:block;font-size:%?26?%;color:#00ab78}.topinfo .shop-desc-layer .section[data-v-136acf84]{display:flex;flex-direction:column;margin-top:%?32?%;font-size:%?22?%;color:#666;line-height:%?34?%}.topinfo .shop-desc-layer .section .h3[data-v-136acf84]{margin-bottom:%?8?%}.nav-item[data-v-136acf84]{display:flex;justify-content:space-between;align-items:center;padding:%?20?% 0;font-size:%?28?%;color:#111}.nav-item .icon[data-v-136acf84]{width:%?36?%;height:%?36?%;min-width:auto;margin-right:%?16?%}.nav-item > uni-text[data-v-136acf84]{min-width:%?104?%;flex-shrink:0}.nav-item > uni-view[data-v-136acf84]{display:flex;align-items:baseline;color:#333;flex:1;margin-left:%?12?%;justify-content:flex-end;text-align:right}.nav-item > uni-view[data-v-136acf84]:after{flex-shrink:0;content:"";width:%?10?%;height:%?18?%;background:url('+D+') no-repeat;background-size:contain;margin-left:%?12?%}.nav-item > uni-view .tip[data-v-136acf84]{color:#999;font-size:%?24?%}.nav-item > uni-view .gray[data-v-136acf84]{color:#999}.nav-item[data-v-136acf84]:last-child{margin-bottom:0}.nav-item.noright > uni-view[data-v-136acf84]:after{display:none}.nav-item.help[data-v-136acf84]{padding:%?31?% 0;font-size:%?30?%}.nav-item.help > uni-text[data-v-136acf84]{flex-shrink:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.goods-item[data-v-136acf84]{display:flex;margin-bottom:%?40?%;align-items:center}.goods-item uni-image[data-v-136acf84]{width:%?174?%;height:%?174?%;border-radius:%?10?%;margin-right:%?16?%;flex-shrink:0}.goods-item > uni-view[data-v-136acf84]{flex:1;display:flex;flex-direction:column;justify-content:space-between;box-sizing:border-box}.goods-item .title[data-v-136acf84]{font-size:%?28?%;line-height:%?40?%;text-align:justify}.goods-item .tips[data-v-136acf84]{font-size:%?22?%;color:#999;display:flex;justify-content:space-between}.goods-item .ctrls[data-v-136acf84]{display:flex;justify-content:space-between;margin-top:%?14?%}.goods-item.mini uni-image[data-v-136acf84], .goods-item.inorder uni-image[data-v-136acf84]{width:%?124?%;height:%?124?%}.goods-item.inorder .title[data-v-136acf84]{display:flex;justify-content:space-between;margin-right:0}.goods-item.inorder .title .price[data-v-136acf84]{align-items:flex-end}.goods-item.inorder > uni-view[data-v-136acf84]{flex:1;display:flex;flex-direction:column;justify-content:space-between;height:%?124?%}.swiper-cont[data-v-136acf84]{position:relative}.swiper-cont .swiper[data-v-136acf84]{width:100%;height:%?494?%}.swiper-cont .swiper .videoposter[data-v-136acf84], .swiper-cont .swiper uni-image[data-v-136acf84]{width:100%;height:100%}.swiper-cont .swiper .videoposter[data-v-136acf84]:after{content:"";position:absolute;background-color:rgba(0,0,0,.3);top:0;left:0;right:0;bottom:0}.swiper-cont .swiper .videoposter .btn-play[data-v-136acf84]{background:url('+Y+") no-repeat;background-size:contain;width:%?100?%;height:%?100?%;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);z-index:1}.swiper-cont .swiper .videoposter uni-video[data-v-136acf84]{display:none}.swiper-cont .swiper .videoposter.playing uni-image[data-v-136acf84], .swiper-cont .swiper .videoposter.playing[data-v-136acf84]:after, .swiper-cont .swiper .videoposter.playing .btn-play[data-v-136acf84]{display:none}.swiper-cont .swiper .videoposter.playing uni-video[data-v-136acf84]{display:block}.swiper-cont .dots[data-v-136acf84]{position:absolute;display:flex;justify-content:center;width:100%;left:0;bottom:%?24?%}.swiper-cont .dots uni-text[data-v-136acf84]{width:%?8?%;height:%?8?%;background-color:#aeaeae;margin:0 %?6?%;border-radius:%?5?%}.swiper-cont .dots uni-text.active[data-v-136acf84]{background-color:#fff;width:%?36?%}.form[data-v-136acf84]{display:flex;flex-direction:column;padding:0 %?36?%;box-sizing:border-box}.form .form-item[data-v-136acf84]{display:flex;align-items:center;padding:%?32?% 0;border-bottom:%?1?% solid #eee}.form .form-item[data-v-136acf84]:last-child{border-bottom:0}.form .form-item .label[data-v-136acf84]{font-size:%?30?%;min-width:%?176?%;flex-shrink:0;white-space:nowrap}.form .form-item .content[data-v-136acf84]{flex:1;display:flex;align-items:center;font-size:%?30?%;justify-content:space-between}.form .form-item .content uni-input[data-v-136acf84]{flex:1}.form .form-item .content .disabled[data-v-136acf84]{color:#999}.form .form-item .link[data-v-136acf84]{color:#00ab78}.form .form-item .checkboxgroup[data-v-136acf84]{display:flex}.form .form-item .checkboxgroup > uni-view[data-v-136acf84]{display:flex;align-items:center;margin-right:%?60?%}.form .form-item .checkboxgroup > uni-view .icon-checkbox[data-v-136acf84]{display:inline-block;margin-right:%?8?%}.form.mini .label[data-v-136acf84], .form.mini .content[data-v-136acf84]{font-size:%?24?%}.form.mini .form-item[data-v-136acf84]{padding-bottom:%?8?%}",""]),t.exports=e},"8b17":function(t,e,a){"use strict";a.r(e);var i=a("fe65"),n=a("c214");for(var o in n)"default"!==o&&function(t){a.d(e,t,(function(){return n[t]}))}(o);a("fe6b");var r,s=a("f0c5"),c=Object(s["a"])(n["default"],i["b"],i["c"],!1,null,"4e9c5622",null,!1,i["a"],r);e["default"]=c.exports},9261:function(t,e,a){var i=a("23f7");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("0e420043",i,!0,{sourceMap:!1,shadowMode:!1})},"95ab":function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return o})),a.d(e,"a",(function(){return i}));var i={uqrcode:a("8b17").default},n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"app"},[a("v-uni-view",{staticClass:"dl"},[a("v-uni-text",{staticClass:"h3"},[t._v("邀请方式一")]),a("v-uni-text",{staticClass:"msg"},[t._v("将如下邀请码告知被邀请人,申请时输入即可")]),a("v-uni-view",{staticClass:"code",attrs:{"data-text":t.code},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.copy.apply(void 0,arguments)}}},[t._v(t._s(t.code))]),a("v-uni-text",{staticClass:"button mini",attrs:{"data-text":t.code},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.copy.apply(void 0,arguments)}}},[t._v("复制邀请码")])],1),a("v-uni-view",{staticClass:"dl"},[a("v-uni-text",{staticClass:"h3"},[t._v("邀请方式二")]),a("v-uni-text",{staticClass:"msg"},[t._v("将如下邀请码告知被邀请人,申请时输入即可")]),a("v-uni-view",{staticClass:"qrcode",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.showQrcode.apply(void 0,arguments)}}},[a("uqrcode",{ref:"uqrcode"})],1),a("v-uni-text",{staticClass:"button mini",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.download.apply(void 0,arguments)}}},[t._v("下载图片")])],1),a("v-uni-view",{staticClass:"dl"},[a("v-uni-text",{staticClass:"h3"},[t._v("邀请方式三")]),a("v-uni-text",{staticClass:"button",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toShareDetail.apply(void 0,arguments)}}},[t._v("点击分享给好友")])],1)],1)},o=[]},c214:function(t,e,a){"use strict";a.r(e);var i=a("f9ca"),n=a.n(i);for(var o in i)"default"!==o&&function(t){a.d(e,t,(function(){return i[t]}))}(o);e["default"]=n.a},c7e5:function(t,e,a){"use strict";var i=a("9261"),n=a.n(i);n.a},ea44:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".uqrcode-view[data-v-4e9c5622]{\ndisplay:flex;box-sizing:border-box;\nflex-direction:column}.uqrcode-view-row[data-v-4e9c5622]{\ndisplay:flex;box-sizing:border-box;\nflex-direction:row}.uqrcode-view-col[data-v-4e9c5622]{\ndisplay:flex;box-sizing:border-box\n}",""]),t.exports=e},f9ca:function(t,e,a){"use strict";var i=a("4ea4");a("d3b7"),a("ac1f"),a("1276"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(a("5530")),o=i(a("4a5e")),r={name:"uqrcode",data:function(){return{options:o.default.defaults,modules:[],result:{}}},computed:{colSize:function(){return(this.options.size-2*this.options.margin)/this.modules.length}},methods:{make:function(t){var e=this;if(t=(0,n.default)((0,n.default)({},this.options),t),t.mode||(t.mode="view"),t.canvasId||(t.canvasId=this.uuid()),this.options=t,"view"===t.mode)this.modules=o.default.getModules(t);else if("canvas"===t.mode)return new Promise((function(a,i){o.default.make(t,e).then((function(t){e.result=t,a((0,n.default)({},t))})).catch((function(t){i(t)}))}))},save:function(){"view"===this.options.mode?uni.showToast({icon:"none",title:"view模式不支持保存,请提示用户使用截屏保存"}):"canvas"===this.options.mode&&uni.showToast({icon:"none",title:"canvas H5不支持保存,请将二维码放置在image组件,再提示用户长按image保存"})},uuid:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32,e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),n=[];if(a=a||i.length,t)for(var o=0;o