app-index-miaosha.js 4.0 KB

12345678910
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/page-component/app-index-miaosha/app-index-miaosha"],{20732:function(e,t,n){"use strict";n.r(t);var a=n("cbc5"),r=n.n(a);for(var i in a)"default"!==i&&function(e){n.d(t,e,(function(){return a[e]}))}(i);t["default"]=r.a},"2f1d":function(e,t,n){"use strict";n.r(t);var a=n("43f3"),r=n("20732");for(var i in r)"default"!==i&&function(e){n.d(t,e,(function(){return r[e]}))}(i);n("82a2");var o,u=n("f0c5"),c=Object(u["a"])(r["default"],a["b"],a["c"],!1,null,"84b97950",null,!1,a["a"],o);t["default"]=c.exports},"43f3":function(e,t,n){"use strict";var a,r=function(){var e=this,t=e.$createElement;e._self._c},i=[];n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return a}))},"82a2":function(e,t,n){"use strict";var a=n("9ff5"),r=n.n(a);r.a},"9ff5":function(e,t,n){},cbc5:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n("2f62"),r=i(n("bcc6"));function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=function(){n.e("components/page-component/app-member-mark/app-member-price").then(function(){return resolve(n("5f38"))}.bind(null,n)).catch(n.oe)},l=function(){n.e("components/page-component/app-sup-vip/app-sup-vip").then(function(){return resolve(n("a387"))}.bind(null,n)).catch(n.oe)},s={name:"app-index-miaosha",components:{"app-member-price":p,"app-sup-vip":l},props:{value:{type:Object,default:function(){return{open_date:null,list:[]}}},pageHide:Boolean},data:function(){return{newData:this.value,timer:null,time:null,is_vip:!0}},computed:u({},(0,a.mapState)({mall:function(e){return e.mallConfig.mall},appSetting:function(e){return e.mallConfig.mall.setting},appImg:function(e){return e.mallConfig.__wxapp_img.mall},theme:function(e){return e.mallConfig.theme}}),{},(0,a.mapGetters)("mallConfig",{getVideo:"getVideo"})),beforeDestroy:function(){clearInterval(this.time)},watch:{pageHide:{handler:function(e){var t=this;if(e)clearInterval(this.time);else{var n=new Date;if(new Date(this.newData.open_date).getDate()!=n.getDate())this.newData.str="预告 "+this.newData.open_date+" "+this.newData.open_time+"点场";else if(this.newData.open_time!=n.getHours())this.newData.str="预告 "+this.newData.open_time+"点场";else{var a=1e3*this.newData.date_time-n.getTime();this.time=setInterval((function(){if(a-=1e3,t.newData.str=t.newData.open_time+"点场",a<=0)clearInterval(t.time);else{var e=parseInt(a/1e3/60/60),n=parseInt(a/1e3/60%60),r=parseInt(a/1e3%60);t.timer={hour:e<10?"0"+e:e,min:n<10?"0"+n:n,sec:r<10?"0"+r:r}}}),1e3)}}},immediate:!0}},methods:{jump:function(e){(0,r.default)({open_type:"navigate",page_url:e,params:[]})},router_jump:function(t){t.video_url&&1==this.getVideo?e.navigateTo({url:"/pages/goods/video?goods_id=".concat(t.id,"&sign=miaosha")}):e.navigateTo({url:t.page_url})}}};t.default=s}).call(this,n("543d")["default"])}}]);
  2. ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
  3. 'components/page-component/app-index-miaosha/app-index-miaosha-create-component',
  4. {
  5. 'components/page-component/app-index-miaosha/app-index-miaosha-create-component':(function(module, exports, __webpack_require__){
  6. __webpack_require__('543d')['createComponent'](__webpack_require__("2f1d"))
  7. })
  8. },
  9. [['components/page-component/app-index-miaosha/app-index-miaosha-create-component']]
  10. ]);