1 line
3.9 KiB
JavaScript
1 line
3.9 KiB
JavaScript
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["mine/pages/notice"],{"0387":function(t,a,e){"use strict";(function(t){var i=e("4ea4");Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var n=i(e("2eee")),o=i(e("c973")),r=e("26cb"),s={components:{},data:function(){return{options:{},today:"",cur_time:"",activeIndex:0,tabList:[{id:0,title:"系统公告",number:0},{id:2,title:"服务通知",number:0}],param:{page:1},list:{data:[]},loading:!0,popupInfo:{},lockTap:!1}},computed:(0,r.mapState)({primaryColor:function(t){return t.config.configInfo.primaryColor},subColor:function(t){return t.config.configInfo.subColor},userInfo:function(t){return t.user.userInfo}}),onLoad:function(t){this.$util.showLoading(),this.options=t,this.initIndex()},onPullDownRefresh:function(){t.showNavigationBarLoading(),this.initRefresh(),t.stopPullDownRefresh()},onReachBottom:function(){this.list.current_page>=this.list.last_page||this.loading||(this.param.page=this.param.page+1,this.loading=!0,this.getList())},methods:{initIndex:function(){var t=new Date(Math.ceil((new Date).getTime()));this.today=this.$util.formatTime(t,"YY-M-D"),this.cur_time=this.$util.DateToUnix(this.today),this.getList()},initRefresh:function(){this.param.page=1,this.initIndex()},handerTabChange:function(t){this.activeIndex=t,this.$util.showLoading(),this.param.page=1,this.list.data=[],this.getList()},getList:function(){var t=this;return(0,o.default)(n.default.mark((function a(){var e,i,o,r,s,c,u;return n.default.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return e=t.list,t.tabList,i=t.activeIndex,t.today,t.cur_time,o=t.$util.deepCopy(t.param),r=0==i?"systemInfoList":"operateInfoList",a.next=5,t.$api.mine[r](o);case 5:s=a.sent,1==t.param.page||(s.data=e.data.concat(s.data)),t.list=s,t.loading=!1,c=s.no_read_count,u=s.operate_no_read_count,t.tabList[0].number=c,t.tabList[1].number=u,t.$util.hideAll();case 12:case"end":return a.stop()}}),a)})))()},goDetail:function(t){var a=this.list.data[t],e=a.id,i=a.type,n=void 0===i?0:i,o=a.obj_id,r=void 0===o?0:o,s=this.activeIndex,c="";if(0==s)switch(n){case 3:case 4:c="/shop/pages/order/detail?id=".concat(r);break;case 5:case 9:c="/land/pages/order/detail?id=".concat(r);break;case 6:c="/shop/pages/refund/detail?id=".concat(r);break;case 7:c="/claim/pages/order/detail?id=".concat(r,"&tab=1");break;case 8:c="/claim/pages/order/detail?id=".concat(r);break;case 15:c="/shop/pages/detail?id=".concat(r);break}else c="/home/pages/article?id=".concat(e,"&type=3");c&&this.$util.goUrl({url:c})}}};a.default=s}).call(this,e("543d")["default"])},1924:function(t,a,e){"use strict";e.r(a);var i=e("1a82"),n=e("55f9");for(var o in n)["default"].indexOf(o)<0&&function(t){e.d(a,t,(function(){return n[t]}))}(o);e("3398");var r=e("f0c5"),s=Object(r["a"])(n["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);a["default"]=s.exports},"1a82":function(t,a,e){"use strict";e.d(a,"b",(function(){return i})),e.d(a,"c",(function(){return n})),e.d(a,"a",(function(){}));var i=function(){var t=this,a=t.$createElement,e=(t._self._c,t.tabList.length),i=t.__map(t.list.data,(function(a,e){var i=t.__get_orig(a),n=0==e||e>0&&a.day!=t.list.data[e-1].day?a.day.includes("-"):null;return{$orig:i,g1:n}})),n=t.loading?t.list.current_page>=t.list.last_page&&t.list.data.length>0:null,o=!t.loading&&t.list.data.length<=0&&1==t.list.current_page;t.$mp.data=Object.assign({},{$root:{g0:e,l0:i,g2:n,g3:o}})},n=[]},3398:function(t,a,e){"use strict";var i=e("f765"),n=e.n(i);n.a},"55f9":function(t,a,e){"use strict";e.r(a);var i=e("0387"),n=e.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){e.d(a,t,(function(){return i[t]}))}(o);a["default"]=n.a},8524:function(t,a,e){"use strict";(function(t,a){var i=e("4ea4");e("b03e");i(e("66fd"));var n=i(e("1924"));t.__webpack_require_UNI_MP_PLUGIN__=e,a(n.default)}).call(this,e("bc2e")["default"],e("543d")["createPage"])},f765:function(t,a,e){}},[["8524","common/runtime","common/vendor"]]]); |