log.js 3.1 KB

1
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["plugins/step/log/log"],{"0f97":function(t,e,n){"use strict";var o,r=function(){var t=this,e=t.$createElement;t._self._c},i=[];n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return o}))},"6c5a":function(t,e,n){},"7cb8":function(t,e,n){"use strict";var o=n("6c5a"),r=n.n(o);r.a},8794:function(t,e,n){"use strict";n.r(e);var o=n("f654"),r=n.n(o);for(var i in o)"default"!==i&&function(t){n.d(e,t,(function(){return o[t]}))}(i);e["default"]=r.a},"891c":function(t,e,n){"use strict";n.r(e);var o=n("0f97"),r=n("8794");for(var i in r)"default"!==i&&function(t){n.d(e,t,(function(){return r[t]}))}(i);n("7cb8");var c,a=n("f0c5"),u=Object(a["a"])(r["default"],o["b"],o["c"],!1,null,"edfeef38",null,!1,o["a"],c);e["default"]=u.exports},d6b6:function(t,e,n){"use strict";(function(t){n("8748");o(n("66fd"));var e=o(n("891c"));function o(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])},f654:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n("2f62");function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var a=function(){Promise.all([n.e("common/vendor"),n.e("components/basic-component/app-layout/app-layout")]).then(function(){return resolve(n("3dd6"))}.bind(null,n)).catch(n.oe)},u=function(){Promise.all([n.e("common/vendor"),n.e("components/basic-component/app-form-id/app-form-id")]).then(function(){return resolve(n("e583"))}.bind(null,n)).catch(n.oe)},f={data:function(){return{page:2,list:[],info:[],time:null}},components:{"app-layout":a,"app-form-id":u},computed:i({},(0,o.mapState)({theme:function(t){return t.mallConfig.theme},stepImg:function(t){return t.mallConfig.plugin.step},userInfo:function(t){return t.user.info}})),methods:{getList:function(){var e=this;e.$request({url:e.$api.step.activity_log}).then((function(n){if(e.$hideLoading(),0==n.code){e.list=n.data.list,e.info=n.data.info;for(var o=0;o<list.length;o++){list[o].start=!0;var r=list[o].activity.begin_at.replace("-","").replace("-","");r<e.data.time&&(list[o].start=!1)}e.list.forEach((function(t,n){t.start=!0,new Date(t.begin_at).getTime()<e.time&&(t.start=!1)}))}else t.showToast({title:n.msg,icon:"none",duration:1e3})})).catch((function(t){e.$hideLoading()}))}},onLoad:function(t){var e=this;e.time=(new Date).getTime(),e.getList()}};e.default=f}).call(this,n("543d")["default"])}},[["d6b6","common/runtime","common/vendor"]]]);