index.js 2.8 KB

12345678910
  1. require('../../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/goods/components/lottery/index"],{2324:function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("9523")),a=r(n("c641"));function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}var u={data:function(){return{current_index:-1,lotteryBtn:!0}},props:{prizeData:{type:Array,default:function(){return[]}},lotteryNum:{type:Number|String,default:0}},onLoad:function(){},methods:{luck_draw:function(t){if(Number(this.lotteryNum)<=0)return this.$util.Tips({title:this.$t("剩余抽奖次数为0")});if(this.lotteryBtn){this.lotteryBtn=!1;var e=t.currentTarget.dataset.index,n=this;8==e&&this.$emit("get_winingIndex",(function(t){var e=t;new a.default(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){(0,i.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({domData:n.prizeData},e),(function(t,r){n.current_index=t,e.winingIndex==t&&e.totalCount==r&&(n.lotteryBtn=!0,n.$emit("luck_draw_finish",n.prizeData[t]))}))}))}}}};e.default=u},2985:function(t,e,n){},"7aba":function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var r=function(){var t=this,e=t.$createElement,n=(t._self._c,t.__map(t.prizeData,(function(e,n){var r=t.__get_orig(e),i=8!=n&&8==n?t.$t("抽奖"):null;return{$orig:r,m0:i}})));t.$mp.data=Object.assign({},{$root:{l0:n}})},i=[]},"824b":function(t,e,n){"use strict";var r=n("2985"),i=n.n(r);i.a},e078:function(t,e,n){"use strict";n.r(e);var r=n("2324"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);e["default"]=i.a},f8f9:function(t,e,n){"use strict";n.r(e);var r=n("7aba"),i=n("e078");for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);n("824b");var o=n("f0c5"),u=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"a44e757a",null,!1,r["a"],void 0);e["default"]=u.exports}}]);
  2. ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
  3. 'pages/goods/components/lottery/index-create-component',
  4. {
  5. 'pages/goods/components/lottery/index-create-component':(function(module, exports, __webpack_require__){
  6. __webpack_require__('543d')['createComponent'](__webpack_require__("f8f9"))
  7. })
  8. },
  9. [['pages/goods/components/lottery/index-create-component']]
  10. ]);