You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
14 KiB
1 lines
14 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-user_spread_code-index"],{"03ff":function(e,t,a){"use strict";a.r(t);var n=a("344e"),i=a("1565");for(var o in i)["default"].indexOf(o)<0&&function(e){a.d(t,e,(function(){return i[e]}))}(o);a("15bc");var r=a("f0c5"),s=Object(r["a"])(i["default"],n["b"],n["c"],!1,null,"5c721f6d",null,!1,n["a"],void 0);t["default"]=s.exports},1565:function(e,t,a){"use strict";a.r(t);var n=a("539e"),i=a.n(n);for(var o in n)["default"].indexOf(o)<0&&function(e){a.d(t,e,(function(){return n[e]}))}(o);t["default"]=i.a},"15bc":function(e,t,a){"use strict";var n=a("c257"),i=a.n(n);i.a},"210b":function(e,t,a){"use strict";var n=a("b193"),i=a.n(n);i.a},"217f":function(e,t,a){"use strict";a.d(t,"b",(function(){return i})),a.d(t,"c",(function(){return o})),a.d(t,"a",(function(){return n}));var n={zbCode:a("2173").default},i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-uni-view",{style:e.colorStyle},[a("v-uni-view",{staticClass:"distribution-posters"},[a("v-uni-swiper",{attrs:{"indicator-dots":e.indicatorDots,autoplay:e.autoplay,circular:e.circular,interval:e.interval,duration:e.duration,"previous-margin":"40px","next-margin":"40px"},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.bindchange.apply(void 0,arguments)}}},[e._l(e.spreadData,(function(t,n){return[a("v-uni-swiper-item",{key:n+"_0",staticClass:"aaa"},[a("div",{ref:"bill",refInFor:!0,staticClass:"box",class:e.swiperIndex==n?"active":"quiet"},[a("v-uni-view",{staticClass:"user-msg"},[a("v-uni-view",{staticClass:"user-code"},[e.posterImage[n]?a("v-uni-image",{staticClass:"canvas",style:{height:e.hg+"px"},attrs:{src:e.posterImage[n]}}):a("v-uni-canvas",{staticClass:"canvas",style:{height:e.hg+"px"},attrs:{"canvas-id":"myCanvas"+n}})],1)],1)],1)])]}))],2),a("div",{staticClass:"preserve acea-row row-center-wrapper"},[a("div",{staticClass:"line"}),a("div",{staticClass:"tip"},[e._v(e._s(e.$t("长按保存图片")))]),a("div",{staticClass:"line"})])],1),a("home"),a("v-uni-view",{staticClass:"qrimg"},[a("zb-code",{ref:"qrcode",attrs:{show:e.codeShow,cid:e.cid,val:e.val,size:e.size,unit:e.unit,background:e.background,foreground:e.foreground,pdground:e.pdground,icon:e.icon,iconSize:e.iconsize,onval:e.onval,loadMake:e.loadMake},on:{result:function(t){arguments[0]=t=e.$handleEvent(t),e.qrR.apply(void 0,arguments)}}})],1)],1)},o=[]},"344e":function(e,t,a){"use strict";a.d(t,"b",(function(){return n})),a.d(t,"c",(function(){return i})),a.d(t,"a",(function(){}));var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-uni-view",{style:e.colorStyle},[a("v-uni-view",{staticStyle:{"touch-action":"none"}},[a("v-uni-view",{staticClass:"home",staticStyle:{position:"fixed"},style:{top:e.top+"px"},attrs:{id:"right-nav"},on:{touchmove:function(t){t.stopPropagation(),t.preventDefault(),arguments[0]=t=e.$handleEvent(t),e.setTouchMove.apply(void 0,arguments)}}},[e.homeActive?a("v-uni-view",{staticClass:"homeCon bg-color",class:!0===e.homeActive?"on":""},[a("v-uni-navigator",{staticClass:"iconfont icon-shouye-xianxing",attrs:{"hover-class":"none","open-type":"switchTab",url:"/pages/index/index"}}),a("v-uni-navigator",{staticClass:"iconfont icon-caigou-xianxing",attrs:{"hover-class":"none","open-type":"switchTab",url:"/pages/order_addcart/order_addcart"}}),a("v-uni-navigator",{staticClass:"iconfont icon-yonghu1",attrs:{"hover-class":"none","open-type":"switchTab",url:"/pages/user/index"}})],1):e._e(),a("v-uni-view",{staticClass:"pictrueBox",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.open.apply(void 0,arguments)}}},[a("v-uni-view",{staticClass:"pictrue"},[a("v-uni-image",{staticClass:"image",attrs:{src:!0===e.homeActive?e.imgHost+"/statics/images/close.gif":e.imgHost+"/statics/images/open.gif"}})],1)],1)],1)],1)],1)},i=[]},"539e":function(e,t,a){"use strict";a("7a82");var n=a("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a("26cb"),o=n(a("66ca")),r=a("989b"),s={name:"Home",props:{},mixins:[o.default],data:function(){return{top:"545",imgHost:r.HTTP_REQUEST_URL}},computed:(0,i.mapGetters)(["homeActive"]),methods:{setTouchMove:function(e){e.touches[0].clientY<545&&e.touches[0].clientY>66&&(this.top=e.touches[0].clientY)},open:function(){this.homeActive?this.$store.commit("CLOSE_HOME"):this.$store.commit("OPEN_HOME")}},created:function(){},beforeDestroy:function(){this.$store.commit("CLOSE_HOME")}};t.default=s},"554f":function(e,t,a){"use strict";a.r(t);var n=a("217f"),i=a("fe9a");for(var o in i)["default"].indexOf(o)<0&&function(e){a.d(t,e,(function(){return i[e]}))}(o);a("210b");var r=a("f0c5"),s=Object(r["a"])(i["default"],n["b"],n["c"],!1,null,"5e4cb42f",null,!1,n["a"],void 0);t["default"]=s.exports},"7e31":function(e,t,a){var n=a("24fb");t=n(!1),t.push([e.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/* crmeb颜色变量 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */uni-page-body[data-v-5e4cb42f]{background-color:#a3a3a3!important}body.?%PAGE?%[data-v-5e4cb42f]{background-color:#a3a3a3!important}.canvas[data-v-5e4cb42f]{width:100%}.box[data-v-5e4cb42f]{width:100%;height:100%;position:relative;border-radius:%?18?%;overflow:hidden}.box .user-msg[data-v-5e4cb42f]{position:absolute;width:100%;height:100%;display:flex;align-items:center;justify-content:center}.box .user-msg .user-code[data-v-5e4cb42f]{width:100%;display:flex;align-items:center;justify-content:center;justify-content:space-between}.box .user-msg .user-code uni-image[data-v-5e4cb42f]{width:100%}.img-list[data-v-5e4cb42f]{margin-right:40px}.distribution-posters uni-swiper[data-v-5e4cb42f]{width:100%;height:%?1000?%;position:relative;margin-top:%?40?%}.distribution-posters .slide-image[data-v-5e4cb42f]{width:100%;height:100%;margin:0 auto;border-radius:%?15?%}.distribution-posters[data-v-5e4cb42f] .active{-webkit-transform:none;transform:none;transition:all .2s ease-in 0s}.distribution-posters[data-v-5e4cb42f] .quiet{-webkit-transform:scale(.83333);transform:scale(.83333);transition:all .2s ease-in 0s}.distribution-posters .keep[data-v-5e4cb42f]{font-size:%?30?%;color:#fff;width:%?600?%;height:%?80?%;border-radius:%?50?%;text-align:center;line-height:%?80?%;margin:%?38?% auto}.distribution-posters .preserve[data-v-5e4cb42f]{color:#fff;text-align:center;margin-top:%?38?%}.distribution-posters .preserve .line[data-v-5e4cb42f]{width:%?100?%;height:1px;background-color:#fff}.distribution-posters .preserve .tip[data-v-5e4cb42f]{margin:0 %?30?%}',""]),e.exports=t},a798:function(e,t,a){var n=a("24fb");t=n(!1),t.push([e.i,".pictrueBox[data-v-5c721f6d]{width:%?130?%;height:%?120?%}\n\n/*返回主页按钮*/.home[data-v-5c721f6d]{position:fixed;color:#fff;text-align:center;z-index:999;right:%?15?%;display:flex}.home .homeCon[data-v-5c721f6d]{border-radius:%?50?%;opacity:0;height:0;color:var(--view-theme);width:0}.home .homeCon.on[data-v-5c721f6d]{opacity:1;-webkit-animation:bounceInRight .5s cubic-bezier(.215,.61,.355,1);animation:bounceInRight .5s cubic-bezier(.215,.61,.355,1);width:%?300?%;height:%?86?%;margin-bottom:%?20?%;display:flex;justify-content:center;align-items:center;background:var(--view-theme)!important;opacity:.8;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.home .homeCon .iconfont[data-v-5c721f6d]{font-size:%?48?%;color:#fff;display:inline-block;margin:0 auto}.home .pictrue[data-v-5c721f6d]{width:%?86?%;height:%?86?%;border-radius:50%;margin:0 auto;background-color:var(--view-theme)}.home .pictrue .image[data-v-5c721f6d]{width:100%;height:100%;border-radius:50%;-webkit-transform:rotate(90deg);transform:rotate(90deg);ms-transform:rotate(90deg);moz-transform:rotate(90deg);webkit-transform:rotate(90deg);o-transform:rotate(90deg)}",""]),e.exports=t},b193:function(e,t,a){var n=a("7e31");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var i=a("4f06").default;i("661fb218",n,!0,{sourceMap:!1,shadowMode:!1})},c257:function(e,t,a){var n=a("a798");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var i=a("4f06").default;i("f61d2c94",n,!0,{sourceMap:!1,shadowMode:!1})},ea61:function(e,t,a){"use strict";a("7a82");var n=a("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a("99af"),a("ac1f"),a("3ca3"),a("ddb0"),a("d3b7");var i=n(a("c7eb")),o=n(a("1da1")),r=n(a("2173")),s=a("8ba8"),c=a("666f"),u=a("26cb"),d=n(a("03ff")),f=a("989b"),l=n(a("66ca")),p={components:{home:d.default,zbCode:r.default},mixins:[l.default],data:function(){return{imgUrls:[],indicatorDots:!1,posterImageStatus:!0,circular:!1,autoplay:!1,interval:3e3,duration:500,swiperIndex:0,spreadList:[],userInfo:{},poster:"",isAuto:!1,isShowAuth:!1,spreadData:[{}],nickName:"",siteName:"",mpUrl:"",canvasImageUrl:"",posterImage:[],codeShow:!1,cid:"1",ifShow:!0,val:"",size:200,unit:"upx",background:"#FFF",foreground:"#000",pdground:"#000",icon:"",iconsize:40,lv:3,onval:!0,loadMake:!0,src:"",codeSrc:"",wd:0,hg:0,qrcode:""}},computed:(0,u.mapGetters)({isLogin:"isLogin",userData:"userInfo",uid:"uid"}),watch:{isLogin:{handler:function(e,t){e&&this.userSpreadBannerList()},deep:!0},userData:{handler:function(e,t){e&&this.$set(this,"userInfo",e)},deep:!0}},onReady:function(){var e=this;return(0,o.default)((0,i.default)().mark((function t(){return(0,i.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!e.isLogin){t.next=6;break}return e.val="".concat(f.HTTP_REQUEST_URL,"?spid=").concat(e.uid),t.next=4,e.getUser();case 4:t.next=7;break;case 6:(0,c.toLogin)();case 7:e.$nextTick((function(){var t=uni.createSelectorQuery().select(".aaa");t.fields({size:!0},(function(t){e.wd=t.width,e.hg=t.height})).exec()}));case 8:case"end":return t.stop()}}),t)})))()},onShow:function(){},onHide:function(){uni.hideLoading()},methods:{getUser:function(){var e=this;(0,s.getUserInfo)().then((function(t){e.userInfo=t.data}))},onLoadFun:function(e){this.$set(this,"userInfo",e),this.userSpreadBannerList()},qrR:function(e){this.codeSrc=e,this.spreadMsgs()},spreadMsgs:function(){var e=this;return(0,o.default)((0,i.default)().mark((function t(){var a,n,o;return(0,i.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,(0,s.spreadMsg)();case 2:a=t.sent,e.spreadData=a.data.spread,e.nickName=a.data.nickname,e.siteName=a.data.site_name,uni.showLoading({title:e.$t("海报生成中"),mask:!0}),n=(0,i.default)().mark((function t(n){var o,r,s;return(0,i.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return o=e,r=void 0,s=void 0,t.next=4,e.imgToBase(a.data.spread[n].pic,a.data.qrcode);case 4:s=t.sent,r=[s.code||e.codeSrc,s.image],o.$util.userPosterCanvas(r,a.data.nickname,a.data.site_name,n,e.wd,e.hg,(function(e){o.$set(o.posterImage,n,e)}));case 7:case"end":return t.stop()}}),t)})),o=0;case 9:if(!(o<a.data.spread.length)){t.next=14;break}return t.delegateYield(n(o),"t0",11);case 11:o++,t.next=9;break;case 14:uni.hideLoading();case 15:case"end":return t.stop()}}),t)})))()},downloadImg:function(){uni.saveImageToPhotosAlbum({filePath:this.posterImage[this.swiperIndex],success:function(){}})},routineCode:function(){var e=this;return(0,o.default)((0,i.default)().mark((function t(){var a;return(0,i.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,(0,s.routineCode)();case 2:a=t.sent,e.mpUrl=a.data.url;case 4:case"end":return t.stop()}}),t)})))()},imgToBase:function(e,t){return(0,o.default)((0,i.default)().mark((function a(){var n;return(0,i.default)().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,(0,s.imgToBase)({image:e,code:t});case 2:return n=a.sent,a.abrupt("return",n.data);case 4:case"end":return a.stop()}}),a)})))()},codeImg:function(){},authColse:function(e){this.isShowAuth=e},bindchange:function(e){this.spreadList;this.swiperIndex=e.detail.current},downloadFilestoreImage:function(e){var t=this;return new Promise((function(a,n){var i=t;uni.downloadFile({url:e,success:function(e){a(e.tempFilePath)},fail:function(){return i.$util.Tips({title:""})}})}))},setShareInfoStatus:function(){var e=this;this.$wechat.isWeixin()&&(this.isLogin?(0,s.getUserInfo)().then((function(t){var a={desc:e.$t("分销海报"),title:t.data.nickname+"-"+e.$t("分销海报"),link:"/pages/index/index?spread="+t.data.uid,imgUrl:e.spreadList[0]};e.$wechat.wechatEvevt(["updateAppMessageShareData","updateTimelineShareData"],a)})):(0,c.toLogin)())},userSpreadBannerList:function(){var e=this;uni.showLoading({title:e.$t("获取中"),mask:!0}),(0,s.spreadBanner)().then((function(t){uni.hideLoading(),e.$set(e,"spreadList",t.data),e.$set(e,"poster",t.data[0].poster),e.setShareInfoStatus()})).catch((function(e){uni.hideLoading()}))}}};t.default=p},fe9a:function(e,t,a){"use strict";a.r(t);var n=a("ea61"),i=a.n(n);for(var o in n)["default"].indexOf(o)<0&&function(e){a.d(t,e,(function(){return n[e]}))}(o);t["default"]=i.a}}]); |