徐总多门店
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 line
6.1 KiB

3 months ago
require('../../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/goods/lottery/grids/index"],{"0bf9":function(t,e,o){"use strict";o.d(e,"b",(function(){return n})),o.d(e,"c",(function(){return a})),o.d(e,"a",(function(){}));var n=function(){var t=this.$createElement;this._self._c},a=[]},"141b":function(t,e,o){"use strict";var n=o("2482"),a=o.n(n);a.a},2482:function(t,e,o){},"5d74":function(t,e,o){"use strict";(function(t){var n=o("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=o("bf77"),i=(o("77d7"),n(o("cef6"))),r=o("7ba4"),c=o("ce7e"),d=o("8f59"),l=o("bad7"),s=(getApp(),{components:{template1:function(){o.e("pages/goods/lottery/template/template1").then(function(){return resolve(o("c222"))}.bind(null,o)).catch(o.oe)},template2:function(){o.e("pages/goods/lottery/template/template2").then(function(){return resolve(o("376a"))}.bind(null,o)).catch(o.oe)},gridsLottery:function(){Promise.all([o.e("pages/goods/common/vendor"),o.e("pages/goods/components/lottery/index")]).then(function(){return resolve(o("afe7"))}.bind(null,o)).catch(o.oe)},showBox:function(){o.e("pages/goods/lottery/components/showbox").then(function(){return resolve(o("a195"))}.bind(null,o)).catch(o.oe)},noticeBar:function(){o.e("pages/goods/lottery/components/noticeBar").then(function(){return resolve(o("2fed"))}.bind(null,o)).catch(o.oe)},lotteryAleart:function(){o.e("pages/goods/components/lotteryAleart/index").then(function(){return resolve(o("a3df"))}.bind(null,o)).catch(o.oe)},zbCode:function(){Promise.all([o.e("common/vendor"),o.e("components/zb-code/zb-code")]).then(function(){return resolve(o("dddb"))}.bind(null,o)).catch(o.oe)},emptyPage:function(){o.e("components/emptyPage").then(function(){return resolve(o("bc18"))}.bind(null,o)).catch(o.oe)},home:function(){Promise.all([o.e("common/vendor"),o.e("components/home/index")]).then(function(){return resolve(o("b7a2"))}.bind(null,o)).catch(o.oe)},NavBar:function(){o.e("components/NavBar").then(function(){return resolve(o("5962"))}.bind(null,o)).catch(o.oe)}},mixins:[i.default],data:function(){return{lotteryShow:!0,loading:!1,H5ShareBox:!1,addressModel:!1,lottery_num:0,aleartType:0,aleartStatus:!1,lottery_draw_param:{startIndex:3,totalCount:3,winingIndex:1,speed:100},userList:{type:"user",data:[]},myList:{type:"me",data:[]},htmlData:{type:"html",data:""},prizeData:{type:"prize",data:[]},prize:[],factor_num:0,id:0,alData:{},type:"",followCode:!1,codeShow:!1,cid:"1",ifShow:!0,val:"",lv:3,onval:!0,loadMake:!0,src:"",codeSrc:"",image:"",is_content:0,is_all_record:0,is_personal_record:0,factor:0,imgHost:l.HTTP_REQUEST_URL,isShowAuth:!1,rulesShow:!1,isRotating:!1,lotteryType:0,iconColor:"#FFFFFF",isScrolling:!1}},computed:(0,d.mapGetters)(["isLogin"]),watch:{isLogin:{handler:function(t,e){},deep:!0}},onLoad:function(t){this.type=t.type,this.isLogin&&this.getLotteryData(this.type)},onShow:function(){t.removeStorageSync("form_type_cart"),this.isLogin||(0,r.toLogin)()},onPageScroll:function(t){t.scrollTop>50?(this.iconColor="#333333",this.isScrolling=!0):(this.iconColor="#FFFFFF",this.isScrolling=!1)},methods:{H5Share:function(){this.H5ShareBox=!0},onLoadFun:function(){this.getLotteryData(this.type),this.isShowAuth=!1},authColse:function(t){this.isShowAuth=t},getLotteryData:function(e){var o=this;t.showLoading({title:"获取抽奖信息"}),(0,a.getLotteryData)(e).then((function(e){o.loading=!0,o.factor_num=e.data.lottery.factor_num,o.id=e.data.lottery.id,o.image=e.data.lottery.image,o.prize=e.data.lottery.prize,o.lottery_num=e.data.lottery_num,o.htmlData.data=e.data.lottery.content,o.is_content=e.data.lottery.is_content,o.is_personal_record=e.data.lottery.is_personal_record,o.is_all_record=e.data.lottery.is_all_record,o.factor=e.data.lottery.factor,o.userList.data=e.data.all_record,o.myList.data=e.data.user_record,o.lotteryType=e.data.lottery.type,1==o.lotteryType&&o.prize.push({}),o.prizeData.data=e.data.lottery.prize,t.hideLoading()})).catch((function(e){t.hideLoading(),o.lotteryShow=!1,o.loading=!0,o.$util.Tips({title:e})}))},closeLottery:fu