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.
10 lines
2.8 KiB
10 lines
2.8 KiB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/ShopLiveCard"],{"2f15":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;i("8c38");var n=!1;n=!0;var a={name:"shopLiveCard",components:{},data:function(){return{liveStatus:{101:{img:"https://wx.yixiang.co/static/images/live.png",title:"直播中"},102:{img:"https://wx.yixiang.co/static/images/prevue.png",title:"未开始"},103:{img:"https://wx.yixiang.co/static/images/playback.png",title:"已结束"},104:{img:"https://wx.yixiang.co/static/images/104.png",title:"禁播"},105:{img:"https://wx.yixiang.co/static/images/105.png",title:"暂停中"},106:{img:"https://wx.yixiang.co/static/images/106.png",title:"异常"},107:{img:"https://wx.yixiang.co/static/images/past.png",title:"已过期"}}}},props:{detail:{type:Object,default:null},wh:{type:Number,default:345}},computed:{},created:function(){this.getLiveStatus()},mounted:function(){var t=this;setInterval((function(){t.getLiveStatus()}),6e4)},beforeDestroy:function(){null},methods:{goRoom:function(){var t=this;wx.navigateTo({url:"plugin-private://wx2b03c6e691cd7370/pages/live-player-plugin?room_id=".concat(t.detail.roomId)})},dateFormat:function(t,e){var i,n={"Y+":e.getFullYear().toString(),"m+":(e.getMonth()+1).toString(),"d+":e.getDate().toString(),"H+":e.getHours().toString(),"M+":e.getMinutes().toString(),"S+":e.getSeconds().toString()};for(var a in n)i=new RegExp("("+a+")").exec(t),i&&(t=t.replace(i[1],1==i[1].length?n[a]:n[a].padStart(i[1].length,"0")));return t},getLiveStatus:function(){if(n){var t=this,e="";102==t.detail.liveStatus&&(e=this.dateFormat("mm-dd HH:MM",new Date(1e3*t.detail.startTime)).replace("-","/"),t.liveStatus["102"].title="预告 "+e)}}}};e.default=a},"8b42":function(t,e,i){"use strict";i.r(e);var n=i("2f15"),a=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},a0d8:function(t,e,i){"use strict";var n=i("a203"),a=i.n(n);a.a},a203:function(t,e,i){},c6c8:function(t,e,i){"use strict";var n;i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return n}));var a=function(){var t=this,e=t.$createElement;t._self._c},o=[]},f61d:function(t,e,i){"use strict";i.r(e);var n=i("c6c8"),a=i("8b42");for(var o in a)"default"!==o&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("a0d8");var r,c=i("f0c5"),u=Object(c["a"])(a["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],r);e["default"]=u.exports}}]); |
|
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([ |
|
'components/ShopLiveCard-create-component', |
|
{ |
|
'components/ShopLiveCard-create-component':(function(module, exports, __webpack_require__){ |
|
__webpack_require__('543d')['createComponent'](__webpack_require__("f61d")) |
|
}) |
|
}, |
|
[['components/ShopLiveCard-create-component']] |
|
]);
|
|
|