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.
crmeb_php/public/static/js/pages-activity-assist_detai...

1 line
40 KiB

1 year ago
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-activity-assist_detail-index"],{"04a5":function(t,e,a){"use strict";a("7a82");var i=a("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("d3b7"),a("99af"),a("a9e3");var n=i(a("c7eb")),o=i(a("1da1")),r=i(a("5530")),s=a("3b3e"),u=a("8342"),c=a("111c"),d=i(a("c9e4")),l=(i(a("81d7")),i(a("5fa0"))),f=a("26cb"),g=a("4f1b"),p=i(a("f272")),v=i(a("d1f8")),b=i(a("a394")),h=i(a("357f")),m=a("c6c3"),w=i(a("d6af")),_=i(a("b272")),y=getApp(),x={components:{countDown:v.default,copyPassword:d.default,authorize:p.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,isAuto:!1,isShowAuth:!1,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,g.configMap)({site_name:"",share_pic:""},(0,f.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(),this.downloadFilePromotionCode()):(this.isAuto=!0,this.isShowAuth=!0),(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 l.default(".copy-data");e.on("success",(function(){t.$util.Tips({title:"链接已复制成功,请粘贴分享"})}))}))},methods:{authColse:function(t){this.isShowAuth=t},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;return new Promise((function(a,i){var n=e;uni.downloadFile({url:t,