zx/public/static/js/pages-activity-assist_detai...

1 line
41 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-activity-assist_detail-index"],{"18d3":function(t,e,a){"use strict";a.r(e);var i=a("e661"),n=a.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(o);e["default"]=n.a},"1af4":function(t,e,a){var i=a("c86c");e=i(!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/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.page-container[data-v-10e8e4b4]{min-height:100vh;background-color:var(--view-theme)}.canvas[data-v-10e8e4b4]{z-index:300;width:750px;height:1190px;opacity:0}.poster-pop[data-v-10e8e4b4]{width:%?600?%;height:%?897?%;position:fixed;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);z-index:1000;top:50%;margin-top:%?-446?%}.poster-pop uni-image[data-v-10e8e4b4]{width:100%;height:100%;display:block}.poster-pop .close[data-v-10e8e4b4]{width:%?46?%;height:%?75?%;position:fixed;right:0;top:%?-73?%;display:block}.poster-pop .save-poster[data-v-10e8e4b4]{background-color:#df2d0a;font-size:22rpx;color:#fff;text-align:center;height:%?76?%;line-height:%?76?%;width:100%;border-radius:%?43?%;margin-top:%?20?%}.poster-pop .keep[data-v-10e8e4b4]{color:#fff;text-align:center;font-size:%?25?%;margin-top:%?10?%}.mask[data-v-10e8e4b4]{position:fixed;top:0;left:0;right:0;bottom:0;width:100%;height:100%;background-color:rgba(0,0,0,.6);z-index:100}.generate-posters[data-v-10e8e4b4]{width:100%;height:%?170?%;background-color:#fff;position:fixed;left:0;bottom:0;z-index:999;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);transition:all .3s cubic-bezier(.25,.5,.5,.9);border-top:1px solid #eee}.generate-posters.on[data-v-10e8e4b4]{-webkit-transform:translateZ(0);transform:translateZ(0)}.generate-posters .item[data-v-10e8e4b4]{flex:50%;text-align:center;font-size:%?30?%}.generate-posters .item .iconfont[data-v-10e8e4b4]{font-size:%?80?%;color:#5eae72}.generate-posters .item .iconfont.icon-haibao[data-v-10e8e4b4]{color:#5391f1}.generate-posters .item .iconfont.icon-fuzhikouling1[data-v-10e8e4b4]{color:#fbb324}.bargain .icon-xiangzuo[data-v-10e8e4b4]{font-size:%?40?%;color:#fff;position:fixed;top:%?30?%;left:%?30?%;z-index:99;font-size:%?36?%}.bargain .header[data-v-10e8e4b4]{background-repeat:no-repeat;background-size:100% 100%;width:%?698?%;height:%?572?%;margin:0 auto;padding-top:%?0.1?%;position:relative}.bargain .header .pictxt[data-v-10e8e4b4]{margin:%?330?% auto 0 auto;font-size:%?26?%;color:#fff}.bargain .header .pictxt .pictrue[data-v-10e8e4b4]{width:%?56?%;height:%?56?%;margin-right:%?30?%}.bargain .header .pictxt .pictrue uni-image[data-v-10e8e4b4]{width:100%;height:100%;border-radius:50%;border:%?2?% solid #fff}.bargain .header .pictxt .text uni-text[data-v-10e8e4b4]{margin-left:%?20?%}[data-v-10e8e4b4] .bargain .header .time{background-repeat:no-repeat;background-size:100% 100%;width:%?480?%;height:%?166?%;font-size:%?22?%;text-align:center;padding-top:%?11?%;box-sizing:border-box;position:absolute;top:%?340?%;left:50%;margin-left:%?-240?%;align-items:inherit}.t-color[data-v-10e8e4b4]{color:var(--view-theme)}.b-color[data-v-10e8e4b4]{background-color:var(--view-theme)}.bargain .header .people[data-v-10e8e4b4]{text-align:center;color:#fff;font-size:%?20?%;position:absolute;width:100%;top:%?36?%}.bargain .wrapper[data-v-10e8e4b4],\n.bargain .bargainGang[data-v-10e8e4b4],\n.bargain .goodsDetails[data-v-10e8e4b4]{width:%?660?%;border:%?6?% solid #fc8b42;background-color:#fff;border-radius:%?20?%;margin:%?-162?% auto 0 auto;box-sizing:border-box;padding:0 %?24?% %?47?% %?24?%;position:relative}.bargain .wrapper .pictxt[data-v-10e8e4b4]{margin:%?26?% 0 %?37?% 0}.bargain .wrapper .pictxt .pictrue[data-v-10e8e4b4]{width:%?180?%;height:%?180?%;position:relative}.bargain .wrapper .pictxt .pictrue uni-image[data-v-10e8e4b4]{width:100%;height:100%;border-radius:%?6?%}.bargain .wrapper .pictxt .text[data-v-10e8e4b4]{width:%?395?%;font-size:%?28?%;color:#282828;height:%?180?%}.bargain .wrapper .pictxt .text .money[data-v-10e8e4b4]{font-weight:700;font-size:%?24?%;color:var(--view-priceColor)}.bargain .wrapper .pictxt .text .money .num[data-v-10e8e4b4]{font-size:%?36?%}.bargain .wrapper .pictxt .text .old-price[data-v-10e8e4b4]{text-decoration:line-through;color:#999;margin-left:%?10?%;font-size:%?24?%}.bargain .wrapper .pictxt .text .successNum[data-v-10e8e4b4]{font-size:%?22?%;color:#999}.bargain .wrapper .cu-progress[data-v-10e8e4b4]{overflow:hidden;height:%?12?%;background-color:#eee;width:100%;border-radius:%?20?%}.bargain .wrapper .cu-progress .bg-red[data-v-10e8e4b4]{width:0;height:100%;transition:width .6s ease;border-radius:%?20?%;background-image:linear-gradient(90deg,var(--view-bntColor11) 0,var(--view-bntColor12))}.bargain .wrapper .money[data-v-10e8e4b4]{font-size:%?22?%;color:#999;margin-top:%?15?%}.bargain .wrapper .bargainSuccess[data-v-10e8e4b4]{font-size:%?26?%;color:#282828;text-align:center}.bargain .wrapper .bargainSuccess .iconfont[data-v-10e8e4b4]{font-size:%?45?%;color:#54c762;padding-right:%?18?%;vertical-align:%?-5?%}.bargain .wrapper .bargainBnt[data-v-10e8e4b4]{font-size:%?30?%;font-weight:700;color:#fff;width:%?600?%;height:%?80?%;border-radius:%?40?%;background-image:linear-gradient(90deg,var(--view-bntColor21) 0,var(--view-bntColor22));text-align:center;line-height:%?80?%;margin-top:%?32?%}.bargain .wrapper .bargainBnt.disabled[data-v-10e8e4b4]{background:#bfbfbf;pointer-events:none}.bargain .wrapper .bargainBnt.on[data-v-10e8e4b4]{border:%?2?% solid var(--view-theme);color:var(--view-theme);background-image:linear-gradient(90deg,#fff 0,#fff);width:%?596?%;height:%?76?%}.bargain .wrapper .bargainBnt.grey[data-v-10e8e4b4]{color:#fff;background-image:linear-gradient(90deg,#bbb 0,#bbb)}.bargain .wrapper .tip[data-v-10e8e4b4]{font-size:%?22?%;color:#999;text-align:center;margin-top:%?20?%}.bargain .wrapper .lock[data-v-10e8e4b4],\n.bargain .bargainGang .lock[data-v-10e8e4b4],\n.bargain .goodsDetails .lock[data-v-10e8e4b4]{background-repeat:no-repeat;background-size:100% 100%;width:%?548?%;height:%?66?%;position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);bottom:%?-43?%;z-index:5}.bargain .bargainGang[data-v-10e8e4b4]{margin:%?13?% auto 0 auto}.bargain .bargainGang .title[data-v-10e8e4b4],\n.bargain .goodsDetails .title[data-v-10e8e4b4]{font-size:%?32?%;font-weight:700;height:%?80?%;margin-top:%?30?%}.bargain .bargainGang .title .pictrue[data-v-10e8e4b4],\n.bargain .goodsDetails .title .pictrue[data-v-10e8e4b4]{width:%?46?%;height:%?24?%}.bargain .bargainGang .title .pictrue.on[data-v-10e8e4b4],\n.bargain .goodsDetails .title .pictrue.on[data-v-10e8e4b4]{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.bargain .bargainGang .title .pictrue uni-image[data-v-10e8e4b4],\n.bargain .goodsDetails .title .pictrue uni-image[data-v-10e8e4b4]{width:100%;height:100%;display:block}.bargain .bargainGang .title .titleCon[data-v-10e8e4b4],\n.bargain .goodsDetails .title .titleCon[data-v-10e8e4b4]{margin:0 %?20?%;color:var(--view-theme)}.bargain .bargainGang .list .item[data-v-10e8e4b4]{border-bottom:%?1?% dashed #ddd;height:%?112?%}.bargain .bargainGang .list .item .pictxt[data-v-10e8e4b4]{width:%?310?%}.bargain .bargainGang .list .item .pictxt .pictrue[data-v-10e8e4b4]{width:%?70?%;height:%?70?%}.bargain .bargainGang .list .item .pictxt .pictrue uni-image[data-v-10e8e4b4]{width:100%;height:100%;border-radius:50%}.bargain .bargainGang .list .item .pictxt .text[data-v-10e8e4b4]{width:%?225?%;font-size:%?20?%;color:#999}.bargain .bargainGang .list .item .pictxt .text .name[data-v-10e8e4b4]{font-size:%?25?%;color:#282828;margin-bottom:%?7?%}.bargain .bargainGang .list .item .money[data-v-10e8e4b4]{font-size:%?25?%}.bargain .bargainGang .list .item .money .iconfont[data-v-10e8e4b4]{font-size:%?35?%;vertical-align:middle;margin-right:%?10?%}.bargain .bargainGang .load[data-v-10e8e4b4]{font-size:%?24?%;text-align:center;line-height:%?80?%;height:%?80?%}.bargain .goodsDetails[data-v-10e8e4b4]{margin:%?13?% auto 0 auto}.bargain .goodsDetails ~ .goodsDetails[data-v-10e8e4b4]{margin-bottom:%?50?%}.bargain .goodsDetails .conter[data-v-10e8e4b4]{margin-top:%?20?%;overflow:hidden}.bargain_view[data-v-10e8e4b4]{width:%?180?%;height:%?48?%;background:rgba(0,0,0,.5);opacity:1;border-radius:0 0 %?6?% %?6?%;position:absolute;bottom:0;font-size:%?22?%;color:#fff;text-align:center;line-height:%?48?%}.iconfonts[data-v-10e8e4b4]{font-size:%?22?%!important}.bargain .mask[data-v-10e8e4b4]{z-index:100}.share-box[data-v-10e8e4b4]{z-index:1000;position:fixed;left:0;top:0;width:100%;height:100%}.share-box uni-image[data-v-10e8e4b4]{width:100%;height:100%}',""]),t.exports=e},"1b98":function(t,e,a){"use strict";a("6a54");var i=a("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("bf0f"),a("c223"),a("64aa");var n=i(a("2634")),o=i(a("2fdc")),r=i(a("9b1b")),s=a("d727"),u=a("aa10"),c=a("e44d"),d=a("7e00"),l=i(a("e24b")),g=(i(a("1240")),i(a("5f97"))),p=a("8f59"),f=a("96e0"),v=i(a("8da3")),b=i(a("defc")),h=i(a("832c")),m=a("672a"),w=i(a("73c1")),_=i(a("3e37")),y=getApp(),x={components:{countDown:v.default,copyPassword:l.default,home:b.default,"jyf-parser":h.default},mixins:[w.default],data:function(){return{countDownDay:"00",countDownHour:"00",countDownMinute:"00",countDownSecond:"00",active:!1,id:0,userInfo:{},bargainUid:0,bargainUserInfo:{},bargainUserId:0,bargainInfo:[],bargainData:{assistSku:[]},offset:0,limit:20,limitStatus:!1,bargainUserHelpList:[],bargainUserHelpInfo:[],bargainUserBargainPrice:0,status:"",bargainCount:[],old_price:0,retunTop:!0,bargainPartake:0,interval:null,userBargainStatus:0,productStock:0,quota:0,userBargainStatusHelp:!0,navH:"",statusPay:"",bargainSumCount:0,bargainPrice:0,datatime:0,offest:"",tagStyle:{img:"width:100%;display:block;",video:"width:100%;"},domain:u.HTTP_REQUEST_URL,H5ShareBox:!1,systemH:0,pages:"",protocol:"",host:"",currSpid:"",posters:!1,actionSheetHidden:!0,posterImageStatus:!1,storeImage:"",PromotionCode:"",canvasStatus:!1,posterImage:"",posterbackgd:"/static/images/posterbackgd.png",isDown:!0,isCopy:!1,copyUrl:"",load:!1}},computed:(0,r.default)({},(0,f.configMap)({site_name:"",share_pic:""},(0,p.mapGetters)(["isLogin","uid","viewColor","keyColor"]))),watch:{isLogin:{handler:function(t,e){t&&this.getBargainDetails()},deep:!0}},onLoad:function(t){t.spid&&(y.globalData.spid=t.spid,this.currSpid=t.spid);var e=getCurrentPages();e.length,t.hasOwnProperty("id")&&(this.id=t.id,this.bargainUid=t.bargain||0),this.isLogin?("undefined"==this.bargainUid&&(this.bargainUid=this.$store.state.app.uid),this.getBargainDetails()):(0,c.toLogin)(),(0,_.default)(this.currSpid,this.isLogin),uni.setNavigationBarTitle({title:"助力详情"})},onShow:function(){this.protocol=window.location.protocol,this.host=window.location.host},onReady:function(){this.$nextTick((function(){var t=this,e=new g.default(".copy-data");e.on("success",(function(){t.$util.Tips({title:"链接已复制成功,请粘贴分享"})}))}))},methods:{goBack:function(){uni.navigateBack({delta:1})},goProduct:function(){uni.navigateTo({url:"/pages/goods_details/index?id=".concat(this.bargainInfo.product.old_product_id)})},goPoster:function(){var t=this;return(0,o.default)((0,n.default)().mark((function e(){var a,i;return(0,n.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t.posterImage){e.next=4;break}return t.posterImageStatus=!0,t.posters=!1,e.abrupt("return");case 4:return a=t,a.posters=!1,a.$set(a,"canvasStatus",!0),uni.showLoading({title:"海报生成中",mask:!0}),e.t0=a.posterbackgd,e.next=11,a.imgToBase(a.storeImage);case 11:return e.t1=e.sent,e.next=14,a.imgToBase(a.codeImg);case 14:return e.t2=e.sent,e.next=17,a.imgToBase(a.share_pic);case 17:e.t3=e.sent,i=[e.t0,e.t1,e.t2,e.t3],a.$util.goodsPosterCanvas(i,a.bargainData.store_name,a.bargainPrice,a.site_name,a.old_price,(function(t){a.$set(a,"posterImage",t),a.$set(a,"posterImageStatus",!0),a.$set(a,"canvasStatus",!1),a.$set(a,"actionSheetHidden",!a.actionSheetHidden)}),(function(t){a.$set(a,"canvasStatus",!1)}));case 20:case"end":return e.stop()}}),e)})))()},imgToBase:function(t){return(0,o.default)((0,n.default)().mark((function e(){var a;return(0,n.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,(0,m.imgToBase)({image:t});case 2:return a=e.sent,e.abrupt("return",a.data.image);case 4:case"end":return e.stop()}}),e)})))()},fileStoreImage:function(t){var e=this;if(t)return new Promise((function(a,i){var n=e;uni.downloadFile({url:t,success:function(t){a(t.tempFilePath)},fail:function(t){return n.$util.Tips({title:"".concat(t)})}})}))},listenerActionSheet:function(){this.posters=!this.posters},listenerActionClose:function(){this.posters=!1},posterImageClose:function(){this.posterImageStatus=!1},downloadFilePromotionCode:function(){var t=this;(0,d.getProductCode)(t.id,{type:"wechat",product_type:3}).then(function(){var e=(0,o.default)((0,n.default)().mark((function e(a){return(0,n.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.codeImg=a.data.url,t.$set(t,"isDown",!1),t.goPoster();case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$util.Tips({title:e}),t.posters=!1,t.$set(t,"isDown",!1),t.$set(t,"PromotionCode","")}))},savePosterPath:function(){},copyPwd:function(){var t=this;(0,d.copyPasswordApi)({id:t.id,product_type:30}).then(function(){var e=(0,o.default)((0,n.default)().mark((function e(a){return(0,n.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.copyUrl=a.data.str,t.posters=!1,t.isCopy=!0;case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},closeCopy:function(){this.isCopy=!1},goPay:function(){var t=this,e={product_id:t.bargainInfo.product_assist_set_id,product_attr_unique:t.bargainInfo.product.unique,cart_num:1,product_type:3,is_new:1};(0,d.postCartAdd)(e).then((function(t){uni.navigateTo({url:"/pages/users/order_confirm/index?new=1&cartId="+t.data.cart_id})})).catch((function(e){return t.$util.Tips({title:e})}))},getBargainDetails:function(){var t=this,e=t.id;(0,s.getAssistDetail)(e,{type:2}).then((function(e){t.bargainInfo=e.data,t.bargainData=e.data.assist,t.bargainPrice=t.bargainData.assistSku[0].assist_price,t.old_price=t.bargainData.assistSku[0].sku&&t.bargainData.assistSku[0].sku.price||0,t.userInfo=e.data.user,t.bargainSumCount=e.data.yet_assist_count,t.$set(t,"storeImage",t.bargainInfo.product.image),t.datatime=e.data.stopTime,t.pages="/pages/activity/assist_detail/index?id="+t.id,t.bargainUserHelpList=[],t.getBargainUser(),t.setOpenShare()})).catch((function(e){t.$util.Tips({title:e},{tab:3})}))},currentBargainUser:function(){var t=this,e=t.bargainInfo.product_assist_id;(0,s.initiateAssistApi)(e).then((function(t){var e=t.data.product_assist_set_id;uni.hideLoading(),uni.navigateTo({url:"/pages/activity/assist_detail/index?id="+e})})).catch((function(e){uni.hideLoading(),t.$util.Tips({title:e})}))},setBargainHelp:function(){var t=this;t.load=!0,(0,s.postAssistHelp)(t.bargainInfo.product_assist_set_id).then((function(e){t.$set(t,"bargainUserHelpList",[]),t.getBargainUser(),t.$util.Tips({title:e.message}),t.getBargainDetails(),t.load=!1})).catch((function(e){t.$util.Tips({title:e}),t.$set(t,"bargainUserHelpList",[]),t.getBargainUser(),t.load=!1}))},getBargainUser:function(){var t=this,e={offset:t.offset,limit:t.limit};(0,s.assistHelpList)(t.id).then((function(a){var i=t.bargainUserHelpList,n=a.data.list.length;i.concat(a.data.list),t.$set(t,"bargainUserHelpList",a.data.list),t.$set(t,"limitStatus",e.limit>n),t.$set(t,"offest",Number(e.offset)+Number(e.limit))}))},goBargainList:function(){uni.navigateTo({url:"/pages/activity/assist/index"})},goOrderDetail:function(t){1==t.paid?uni.navigateTo({url:"/pages/order_details/index?order_id="+t.order_id}):uni.navigateTo({url:"/pages/order_details/stay?order_id="+t.group_order_id})},close:function(){this.$set(this,"active",!1)},addShareAssist:function(){(0,s.getAssistUser)(this.bargainInfo.product_assist_set_id).then((function(t){}))},setOpenShare:function(){var t={title:"您的好友"+this.userInfo.nickname+"邀请您助力"+this.bargainInfo.product.store_name,desc:this.bargainInfo.product.store_name,link:window.location.protocol+"//"+window.location.host+"/pages/activity/assist_detail/index?id="+this.id+"&spid="+this.uid,imgUrl:this.bargainInfo.product.image};this.$wechat.isWeixin()&&this.$wechat.wechatEvevt(["updateAppMessageShareData","updateTimelineShareData","onMenuShareAppMessage","onMenuShareTimeline"],t).then((function(t){})).catch((function(e){e.is_ready&&(e.wx.updateAppMessageShareData(t),e.wx.updateTimelineShareData(t),e.wx.onMenuShareAppMessage(t),e.wx.onMenuShareTimeline(t))}))}},onHide:function(){null!==this.interval&&clearInterval(this.interval)},onUnload:function(){null!==this.interval&&clearInterval(this.interval)}};e.default=x},2833:function(t,e,a){"use strict";var i=a("6e49"),n=a.n(i);n.a},"2b87":function(t,e,a){var i=a("c86c");e=i(!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/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.styleAll[data-v-556c75f6]{padding:0 %?6?%}.red[data-v-556c75f6]{margin:0 %?4?%}.themeColor .red[data-v-556c75f6]{color:var(--view-theme)}.bgTheme .styleAll[data-v-556c75f6]{background-color:var(--view-theme);color:#fff;font-size:%?22?%;display:flex;align-items:center;justify-content:center}.time[data-v-556c75f6]{display:flex;justify-content:center;font-size:%?20?%}',""]),t.exports=e},4871:function(t,e,a){"use strict";a.r(e);var i=a("1b98"),n=a.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(o);e["default"]=n.a},"4e09":function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"time",class:{themeColor:t.isView,bgTheme:t.isTheme},style:t.justifyLeft+t.viewColor+"background-color:"+t.bgColor+";color:"+t.colors+";background-image:url("+t.bgImage+");"},[t.tipText?a("v-uni-text",{staticClass:"red"},[t._v(t._s(t.tipText))]):t._e(),!0===t.isDay?a("v-uni-text",{staticClass:"styleAll"},[t._v(t._s(t.day))]):t._e(),t.dayText?a("v-uni-text",{staticClass:"timeTxt red"},[t._v(t._s(t.dayText))]):t._e(),a("v-uni-text",{staticClass:"styleAll"},[t._v(t._s(t.hour))]),t.hourText?a("v-uni-text",{staticClass:"timeTxt red"},[t._v(t._s(t.hourText))]):t._e(),a("v-uni-text",{staticClass:"styleAll"},[t._v(t._s(t.minute))]),t.minuteText?a("v-uni-text",{staticClass:"timeTxt red"},[t._v(t._s(t.minuteText))]):t._e(),a("v-uni-text",{staticClass:"styleAll"},[t._v(t._s(t.second))]),t.secondText?a("v-uni-text",{staticClass:"timeTxt red"},[t._v(t._s(t.secondText))]):t._e()],1)},n=[]},"6e49":function(t,e,a){var i=a("1af4");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("967d").default;n("40dfad1e",i,!0,{sourceMap:!1,shadowMode:!1})},"7e00":function(t,e,a){"use strict";a("6a54");var i=a("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.arrivalNoticeApi=function(t){return o.default.post("store/product/increase_take",t)},e.bagExplain=function(){return o.default.get("store/product/bag/explain")},e.bagRecommend=function(){return o.default.get("product/spu/bag/recommend")},e.collectAdd=function(t){return o.default.post("user/relation/create",t)},e.collectAll=function(t){return o.default.post("user/relation/batch/create",t)},e.collectDel=function(t){return o.default.post("user/relation/delete",t)},e.copyPasswordApi=function(t){return o.default.get("product/spu/copy",t,{noAuth:!0})},e.copyPasswordSearch=function(t){return o.default.get("command/copy",t,{noAuth:!0})},e.create=function(t){return o.default.post("intention/create",t)},e.discountsCartAdd=function(t){return o.default.post("user/cart/batchCreate",t)},e.express=function(t){return o.default.post("ordero/express/"+t,{noAuth:!0})},e.followStore=function(t){return o.default.post("user/relation/create",{type:10,type_id:t})},e.getApplicationRecordList=function(t){return o.default.get("intention/lst",t)},e.getBrandlist=function(t){return o.default.get("store/product/brand/lst",t,{noAuth:!0})},e.getBroadcastListApi=function(t){return o.default.get("broadcast/lst",t,{noAuth:!0})},e.getCaptcha=function(){return o.default.get("captcha")},e.getCategoryList=function(){return o.default.get("store/product/category/lst",{},{noAuth:!0})},e.getCollectUserList=function(t){return o.default.get("user/relation/product/lst",t)},e.getCouponProductlist=function(t){t.brand_id&&Array.isArray(t.brand_id)&&(t=(0,n.default)({},t),t.brand_id=t.brand_id.toString());return o.default.get("product/spu/coupon_product",t,{noAuth:!0})},e.getDiscountsLst=function(t){return o.default.get("discounts/lst",t,{noAuth:!0})},e.getGeocoder=function(t){return o.default.get("lbs/geocoder?location=".concat(t.lat,",").concat(t.long),{},{noAuth:!0})},e.getGoodsDetails=function(t){return o.default.get("intention/detail/"+t,{})},e.getGroomList=function(t,e){return o.default.get("product/spu/hot/"+t,e,{noAuth:!0})},e.getHotBanner=function(t){return o.default.get("common/hot_banner/"+t,{},{noAuth:!0})},e.getHotRanking=function(){return o.default.get("product/spu/hot_top",{},{noAuth:!0})},e.getLiveList=function(t){return o.default.get("broadcast/hot",t,{noAuth:!0})},e.getMerProductHot=function(t,e){return o.default.get("product/spu/recommend",{page:void 0===e.page?1:e.page,limit:void 0===e.limit?10:e.limit,mer_id:t||""},{noAuth:!0})},e.getMerchantLst=function(t){return o.default.get("user/relation/merchant/lst",t,{noAuth:!0})},e.getParmasList=function(t){return o.default.get("product/spu/params",t,{noAuth:!0})},e.getParmasValue=function(t){return o.default.get("product/spu/params_value/".concat(t),{},{noAuth:!0})},e.getPresellProductDetail=function(t){return o.default.get("store/product/presell/detail/"+t,{},{noAuth:!0})},e.getPreviewProDetail=function(t){return o.default.get("store/product/preview",t,{noAuth:!0})},e.getProductCode=function(t,e){return o.default.get("store/product/qrcode/"+t,e,{noAuth:!0})},e.getProductDetail=function(t){return o.default.get("store/product/detail/"+t,{},{noAuth:!0})},e.getProductHot=function(t,e){return o.default.get("product/spu/recommend",{page:void 0===t?1:t,limit:void 0===e?10:e},{noAuth:!0})},e.getProductParmas=function(t){return o.default.get("store/product/show/"+t,{},{noAuth:!0})},e.getProductslist=function(t){t.brand_id&&Array.isArray(t.brand_id)&&(t=(0,n.default)({},t),t.brand_id=t.brand_id.toString());return o.default.get("product/spu/lst",t,{noAuth:!0})},e.getReplyConfig=function(t){return o.default.get("reply/config/"+t)},e.getReplyList=function(t,e){return o.default.get("store/product/reply/lst/"+t,e,{noAuth:!0})},e.getSearchKeyword=function(){return o.default.get("common/hot_keyword",{},{noAuth:!0})},e.getSeckillProductDetail=function(t,e){return o.default.get("store/product/seckill/detail/"+t,e,{noAuth:!0})},e.getStoreCategory=function(t,e){return o.default.get("store/merchant/category/lst/"+t,e,{noAuth:!0})},e.getStoreCoupon=function(t){return o.default.get("coupon/store/"+t,{noAuth:!0})},e.getStoreDetail=function(t,e){return o.default.get("store/merchant/detail/"+t,e,{noAuth:!0})},e.getStoreGoods=function(t,e){return o.default.get("product/spu/merchant/"+t,e,{noAuth:!0})},e.getStoreRecommend=function(t){return o.default.get("store/product/good_list/"+t,{},{noAuth:!0})},e.getStoreTypeApi=function(t){return o.default.get("intention/type",t,{noAuth:!0})},e.getTodayHotSearch=function(){return o.default.get("product/spu/hot_lst",{},{noAuth:!0})},e.merClassifly=function(){return o.default.get("intention/cate",{},{noAuth:!0})},e.merchantProduct=function(t,e){e.brand_id&&Array.isArray(e.brand_id)&&(e=(0,n.default)({},e),e.brand_id=e.brand_id.toString());return o.default.get("product/spu/merchant/"+t,e,{noAuth:!0})},e.merchantQrcode=function(t,e){return o.default.get("store/merchant/qrcode/"+t,e,{noAuth:!0})},e.postCartAdd=function(t){return o.default.post("user/cart/create",t)},e.priceRuleApi=function(t){return o.default.get("store/product/price_rule/".concat(t),{},{noAuth:!0})},e.productBag=function(t){return o.default.get("product/spu/bag",t,{noAuth:!0})},e.storeCategory=function(t){return o.default.get("store/product/category",t,{noAuth:!0})},e.storeCertificate=function(t){return o.default.post("store/certificate/".concat(t.merId),t)},e.storeMerchantList=function(t){return o.default.get("store/merchant/lst",t,{noAuth:!0})},e.storeServiceList=function(t,e){return o.default.get("product/spu/local/".concat(t),e,{noAuth:!0})},e.unfollowStore=function(t){return o.default.post("user/relation/delete",{type:10,type_id:t})},e.updateGoodsRecord=function(t,e){return o.default.post("intention/update/"+t,e)},e.userCollectDel=function(t){return o.default.post("user/relation/batch/delete",t)},e.verify=function(t){return o.default.post("auth/verify",t)},a("c9b5"),a("bf0f"),a("ab80"),a("c223");var n=i(a("9b1b")),o=i(a("fea3"))},"8adf":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={jyfParser:a("832c").default},n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"page-container",style:t.viewColor},[i("v-uni-view",{staticClass:"bargain"},[t.$wechat.isWeixin()?t._e():i("v-uni-view",{staticClass:"iconfont icon-xiangzuo",style:"top:"+t.navH+"px",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goBack.apply(void 0,arguments)}}}),i("v-uni-view",{staticClass:"header",style:{"background-image":10==t.bargainInfo.relation?"url("+t.domain+"/static/diy/assist_detail2"+t.keyColor+".png)":"url("+t.domain+"/static/diy/assist_detail1"+t.keyColor+".png)"}},[i("v-uni-view",{staticClass:"people"},[t._v(t._s(t.bargainInfo.view_num||0)+"人查看 丨 "+t._s(t.bargainInfo.share_num||0)+"人分享 丨 "+t._s(t.bargainInfo.user_count_all||0)+"人参与")]),10==t.bargainInfo.relation?i("countDown",{attrs:{tipText:"倒计时",dayText:"天",hourText:"时",minuteText:"分",secondText:"秒",datatime:t.datatime,isView:!0,isDay:!0,bgImage:t.domain+"/static/images/assist-time.png"}}):t._e(),1==t.bargainInfo.relation?i("v-uni-view",{staticClass:"pictxt acea-row row-center-wrapper"},[i("v-uni-view",{staticClass:"pictrue"},[i("v-uni-image",{attrs:{src:t.userInfo.avatar?t.userInfo.avatar:"/static/images/f.png"}})],1),i("v-uni-view",{staticClass:"text"},[t._v(t._s(t.userInfo.nickname||"")),i("v-uni-text",[t._v("邀请您助力加油")])],1)],1):t._e()],1),i("v-uni-view",{staticClass:"wrapper"},[i("v-uni-view",{staticClass:"pictxt acea-row row-between-wrapper",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goProduct.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"pictrue"},[i("v-uni-image",{attrs:{src:t.bargainInfo.product&&t.bargainInfo.product.image?t.bargainInfo.product.image:""}}),i("v-uni-view",{staticClass:"bargain_view"},[t._v("查看商品"),i("v-uni-text",{staticClass:"iconfont icon-jiantou iconfonts"})],1)],1),i("v-uni-view",{staticClass:"text acea-row row-column-around"},[i("v-uni-view",{staticClass:"line2"},[t._v(t._s(t.bargainData.store_name))]),i("v-uni-view",[i("v-uni-text",{staticClass:"money t-color"},[t._v("助力价: ¥"),i("v-uni-text",{staticClass:"num"},[t._v(t._s(t.bargainPrice))])],1),i("v-uni-text",{staticClass:"old-price"},[t._v("¥"+t._s(t.old_price))])],1),i("v-uni-view",{staticClass:"successNum"},[t._v(t._s(t.bargainInfo.user_count_product)+"人正在参与")])],1)],1),[i("v-uni-view",{staticClass:"cu-progress acea-row row-middle round margin-top"},[i("v-uni-view",{staticClass:"acea-row row-middle bg-red",style:"width:"+(t.bargainInfo.yet_assist_count/t.bargainInfo.assist_count*100).toFixed(2)+"%;"})],1),i("v-uni-view",{staticClass:"money acea-row row-between-wrapper"},[t.bargainInfo.yet_assist_count!=t.bargainInfo.assist_count?i("v-uni-view",[t._v("还差"+t._s(t.bargainInfo.assist_count-t.bargainInfo.yet_assist_count)+"人")]):t._e()],1)],10==t.bargainInfo.relation?i("v-uni-view",[t.bargainInfo.yet_assist_count==t.bargainInfo.assist_count?i("v-uni-view",[i("v-uni-view",{staticClass:"bargainSuccess"},[i("v-uni-text",{staticClass:"iconfont icon-xiaolian"}),t._v("恭喜您助力成功,快去支付")],1),0!=t.bargainInfo.order.paid&&1!=t.bargainInfo.order.paid?i("v-uni-view",{staticClass:"bargainBnt",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goPay.apply(void 0,arguments)}}},[t._v("立即支付")]):i("v-uni-view",{staticClass:"bargainBnt",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goOrderDetail(t.bargainInfo.order)}}},[t._v("查看订单")]),i("v-uni-view",{staticClass:"bargainBnt on",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goBargainList.apply(void 0,arguments)}}},[t._v("抢更多商品")])],1):i("v-uni-view",[t.$wechat.isWeixin()?i("v-uni-button",{staticClass:"bargainBnt",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.H5ShareBox=!0}}},[t._v("邀请好友助力")]):i("v-uni-button",{staticClass:"bargainBnt copy-data",attrs:{"data-clipboard-text":t.protocol+"//"+t.host+"/pages/activity/assist_detail/index?id="+t.id+"&spid="+t.uid}},[t._v("邀请好友助力")]),i("v-uni-view",{staticClass:"tip"},[t._v("已有"),i("v-uni-text",{staticClass:"t-color"},[t._v(t._s(t.bargainInfo.yet_assist_count))]),t._v("位好友成功助力")],1)],1)],1):t._e(),1==t.bargainInfo.relation?i("v-uni-view",[i("v-uni-view",{staticClass:"bargainBnt",class:t.load?"disabled":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.setBargainHelp.apply(void 0,arguments)}}},[t._v("为好友助力")])],1):t._e(),-1==t.bargainInfo.relation||-2==t.bargainInfo.relation?i("v-uni-view",[i("v-uni-view",[-2==t.bargainInfo.relation?i("v-uni-view",{staticClass:"bargainSuccess"},[i("v-uni-text",{staticClass:"iconfont icon-xiaolian"}),t._v("已成功助力好友")],1):i("v-uni-view",{staticClass:"bargainSuccess"},[i("v-uni-text",{staticClass:"iconfont icon-xiaolian",staticStyle:{color:"#999999"}}),t._v("商品助力次数上限")],1),i("v-uni-view",{staticClass:"bargainBnt",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.currentBargainUser.apply(void 0,arguments)}}},[t._v("我也要发起助力")])],1)],1):t._e(),i("v-uni-view",{staticClass:"lock",style:{"background-image":"url("+t.domain+"/static/images/assist-lock.png)"}})],2),i("v-uni-view",{staticClass:"bargainGang"},[i("v-uni-view",{staticClass:"title font-color acea-row row-center-wrapper"},[i("v-uni-view",{staticClass:"pictrue"},[i("v-uni-image",{attrs:{src:t.domain+"/static/diy/left"+t.keyColor+".png"}})],1),i("v-uni-view",{staticClass:"titleCon"},[t._v("助力好友")]),i("v-uni-view",{staticClass:"pictrue on"},[i("v-uni-image",{attrs:{src:t.domain+"/static/diy/left"+t.keyColor+".png"}})],1)],1),i("v-uni-view",{staticClass:"list"},[t._l(t.bargainUserHelpList,(function(e,a){return[i("v-uni-view",{key:a+"_0",staticClass:"item acea-row row-between-wrapper"},[i("v-uni-view",{staticClass:"pictxt acea-row row-between-wrapper"},[i("v-uni-view",{staticClass:"pictrue"},[e.avatar_img?i("v-uni-image",{attrs:{src:e.avatar_img}}):i("v-uni-image",{attrs:{src:"/static/images/f.png"}})],1),i("v-uni-view",{staticClass:"text"},[i("v-uni-view",{staticClass:"name line1"},[t._v(t._s(e.nickname))]),i("v-uni-view",{staticClass:"line1 t-color"},[t._v(t._s(e.create_time))])],1)],1),i("v-uni-view",{staticClass:"money t-color"},[t._v("已助力")])],1)]}))],2),t.limitStatus?t._e():i("v-uni-view",{staticClass:"load font-color",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.getBargainUser.apply(void 0,arguments)}}},[t._v("点击加载更多")]),i("v-uni-view",{staticClass:"lock"})],1),i("v-uni-view",{staticClass:"goodsDetails"},[i("v-uni-view",{staticClass:"title font-color acea-row row-center-wrapper"},[i("v-uni-view",{staticClass:"pictrue"},[i("v-uni-image",{attrs:{src:t.domain+"/static/diy/left"+t.keyColor+".png"}})],1),i("v-uni-view",{staticClass:"titleCon"},[t._v("商品详情")]),i("v-uni-view",{staticClass:"pictrue on"},[i("v-uni-image",{attrs:{src:t.domain+"/static/diy/left"+t.keyColor+".png"}})],1)],1),t.bargainInfo.product&&t.bargainInfo.product.content?i("v-uni-view",{staticClass:"conter"},[i("jyf-parser",{ref:"article",attrs:{domain:t.domain,html:t.bargainInfo.product.content.content.replace(/<br\/>/gi,""),"tag-style":t.tagStyle}})],1):t._e(),i("v-uni-view",{staticClass:"lock"})],1),i("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:1==t.active,expression:"active==true"}],staticClass:"mask",attrs:{catchtouchmove:"true"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.close.apply(void 0,arguments)}}})],1),t.H5ShareBox?i("v-uni-view",{staticClass:"share-box"},[i("v-uni-image",{attrs:{src:t.domain+"/static/images/share-info.png"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.H5ShareBox=!1}}})],1):t._e(),i("home"),i("v-uni-view",{staticClass:"generate-posters acea-row row-middle",class:t.posters?"on":""},[i("v-uni-button",{staticClass:"item",attrs:{"hover-class":"none"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.downloadFilePromotionCode.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"iconfont icon-haibao"}),i("v-uni-view",{},[t._v("生成海报")])],1),i("v-uni-button",{staticClass:"item",attrs:{"hover-class":"none"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.copyPwd.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"iconfont icon-fuzhikouling1"}),i("v-uni-view",[t._v("生成口令")])],1)],1),t.posters||t.posterImageStatus?i("v-uni-view",{staticClass:"mask",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.listenerActionClose.apply(void 0,arguments)}}}):t._e(),i("copyPassword",{attrs:{isCopy:t.isCopy,copyUrl:t.copyUrl},on:{close:function(e){arguments[0]=e=t.$handleEvent(e),t.closeCopy.apply(void 0,arguments)}}}),t.posterImageStatus?i("v-uni-view",{staticClass:"poster-pop"},[i("v-uni-image",{staticClass:"close",attrs:{src:a("d286")},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.posterImageClose.apply(void 0,arguments)}}}),i("v-uni-image",{staticClass:"poster-image",attrs:{src:t.posterImage}}),i("v-uni-view",{staticClass:"keep"},[t._v("长按图片可以保存到手机")])],1):t._e(),t.canvasStatus?i("v-uni-canvas",{staticClass:"canvas",attrs:{"canvas-id":"myCanvas"}}):t._e()],1)},o=[]},"8da3":function(t,e,a){"use strict";a.r(e);var i=a("4e09"),n=a("18d3");for(var o in n)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(o);a("aa0b");var r=a("828b"),s=Object(r["a"])(n["default"],i["b"],i["c"],!1,null,"556c75f6",null,!1,i["a"],void 0);e["default"]=s.exports},aa0b:function(t,e,a){"use strict";var i=a("c4bf"),n=a.n(i);n.a},c4bf:function(t,e,a){var i=a("2b87");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("967d").default;n("51108ffc",i,!0,{sourceMap:!1,shadowMode:!1})},d0e7:function(t,e,a){"use strict";a.r(e);var i=a("8adf"),n=a("4871");for(var o in n)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(o);a("2833");var r=a("828b"),s=Object(r["a"])(n["default"],i["b"],i["c"],!1,null,"10e8e4b4",null,!1,i["a"],void 0);e["default"]=s.exports},d727:function(t,e,a){"use strict";a("6a54");var i=a("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.assistHelpList=function(t,e){return n.default.get("store/product/assist/user/"+t,e)},e.assistUserData=function(t){return n.default.get("store/product/assist/count",t,{noAuth:!0})},e.getActivitycategory=function(t){return n.default.get("product/spu/active/category/"+t,{},{noAuth:!0})},e.getAssistDetail=function(t,e){return n.default.get("store/product/assist/detail/"+t,e)},e.getAssistList=function(t){return n.default.get("store/product/assist/lst",t,{noAuth:!0})},e.getAssistUser=function(t){return n.default.get("store/product/assist/share/"+t)},e.getBargainUserCancel=function(t){return n.default.post("store/product/assist/set/delete/"+t)},e.getBargainUserList=function(t){return n.default.get("store/product/assist/set/lst",t)},e.getCombinationDetail=function(t){return n.default.get("store/product/group/detail/"+t,{},{noAuth:!0})},e.getCombinationList=function(t){return n.default.get("store/product/group/lst",t,{noAuth:!0})},e.getCombinationPink=function(t){return n.default.get("store/product/group/get/"+t)},e.getCombinationPoster=function(t){return n.default.post("combination/poster",t)},e.getCombinationUser=function(t){return n.default.get("store/product/group/count",t,{noAuth:!0})},e.getCouponLst=function(t){return n.default.get("coupon/getlst",t,{noAuth:!0})},e.getMerchantServiceLst=function(t){return n.default.get("store/merchant/local",t,{noAuth:!0})},e.getNewPeopleCouponLst=function(t){return n.default.get("coupon/new_people",t,{noAuth:!0})},e.getPresellList=function(t){return n.default.get("store/product/presell/lst",t,{noAuth:!0})},e.getSeckillDetail=function(t){return n.default.get("store/product/seckill/detail/"+t,{},{noAuth:!0})},e.getSeckillIndexTime=function(){return n.default.get("store/product/seckill/select",{},{noAuth:!0})},e.getSeckillList=function(t){return n.default.get("store/product/seckill/lst",t,{noAuth:!0})},e.getTopicDetail=function(t){return n.default.get("activity/info/".concat(t),{},{noAuth:!0})},e.getTopicList=function(t,e){return n.default.get("activity/lst/".concat(t),e,{noAuth:!0})},e.getTopicProLst=function(t){return n.default.get("product/spu/labels",t,{noAuth:!0})},e.hotRankingApi=function(t){return n.default.get("product/spu/get_hot_ranking",t,{noAuth:!0})},e.initiateAssistApi=function(t){return n.default.post("store/product/assist/create/"+t)},e.postAssistHelp=function(t){return n.default.post("store/product/assist/set/"+t)},e.postCombinationRemove=function(t){return n.default.post("store/product/group/cancel",t)},e.presellAgreement=function(){return n.default.get("store/product/presell/agree")},e.scombinationCode=function(t){return n.default.get("combination/code/"+t)},e.seckillCode=function(t,e){return n.default.get("seckill/code/"+t,e)},e.spuTop=function(t){return n.default.get("store/product/category/hotranking",{},{noAuth:!0})},e.spuTopList=function(t){return n.default.get("product/spu/get_hot_ranking",t,{noAuth:!0})};var n=i(a("fea3"))},e661:function(t,e,a){"use strict";a("6a54");var i=a("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(a("9b1b"));a("64aa");var o=a("8f59"),r={name:"countDown",props:{justifyLeft:{type:String,default:""},tipText:{type:String,default:"倒计时"},dayText:{type:String,default:"天"},hourText:{type:String,default:"时"},minuteText:{type:String,default:"分"},secondText:{type:String,default:"秒"},datatime:{type:Number,default:0},isDay:{type:Boolean,default:!0},id:{type:String|Number,default:""},bgColor:{type:String,default:""},colors:{type:String,default:""},bgImage:{type:String,default:""},isView:{type:Boolean,default:!1},isTheme:{type:Boolean,default:!1}},data:function(){return{day:"00",hour:"00",minute:"00",second:"00"}},computed:(0,n.default)({},(0,o.mapGetters)(["viewColor"])),created:function(){this.show_time()},mounted:function(){},methods:{show_time:function(){var t=this;function e(){var a=t.datatime-Date.parse(new Date)/1e3,i=0,n=0,o=0,r=0;a>0?(i=!0===t.isDay?Math.floor(a/86400):0,n=Math.floor(a/3600)-24*i,o=Math.floor(a/60)-24*i*60-60*n,r=Math.floor(a)-24*i*60*60-60*n*60-60*o,n<=9&&(n="0"+n),o<=9&&(o="0"+o),r<=9&&(r="0"+r),t.day=i,t.hour=n,t.minute=o,t.second=r):(t.day="00",t.hour="00",t.minute="00",t.second="00",t.$emit("getProduct"),uni.$emit("endTime",t.id),clearInterval(e))}e(),setInterval(e,1e3)}}};e.default=r}}]);