public
This commit is contained in:
1
public/mp-weixin/pages/notice/notice.js
Normal file
1
public/mp-weixin/pages/notice/notice.js
Normal file
@ -0,0 +1 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/notice/notice"],{"0f01":function(t,e,n){"use strict";(function(t,e){var i=n("47a9");n("3712");i(n("3240"));var a=i(n("3f25"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(a.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},"1f59":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){}));var i=function(){var t=this.$createElement;this._self._c},a=[]},"3f25":function(t,e,n){"use strict";n.r(e);var i=n("1f59"),a=n("fe27");for(var c in a)["default"].indexOf(c)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(c);n("5b99");var u=n("828b"),s=Object(u["a"])(a["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);e["default"]=s.exports},"5b99":function(t,e,n){"use strict";var i=n("68d4"),a=n.n(i);a.a},"68d4":function(t,e,n){},a88b:function(t,e,n){"use strict";(function(t){var i=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n("c2cb"),c=i(n("8462")),u={mixins:[c.default],data:function(){return{lists:[],upOption:{empty:{icon:"/static/images/news_null.png",tip:"暂无消息通知~"}}}},onLoad:function(){switch(this.type=this.$Route.query.type,this.type){case"system":t.setNavigationBarTitle({title:"系统通知"});break;case"earning":t.setNavigationBarTitle({title:"收益通知"});break}},methods:{upCallback:function(t){var e=this;(0,a.getNoticeLists)({page_size:t.size,page_no:t.num,type:this.type}).then((function(n){var i=n.data;1==t.num&&(e.lists=[]);var a=i.list,c=a.length,u=!!i.more;e.lists=e.lists.concat(a),e.mescroll.endSuccess(c,u)})).catch((function(){e.mescroll.endErr()}))}}};e.default=u}).call(this,n("df3c")["default"])},fe27:function(t,e,n){"use strict";n.r(e);var i=n("a88b"),a=n.n(i);for(var c in i)["default"].indexOf(c)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(c);e["default"]=a.a}},[["0f01","common/runtime","common/vendor"]]]);
|
||||
4
public/mp-weixin/pages/notice/notice.json
Normal file
4
public/mp-weixin/pages/notice/notice.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"navigationBarTitleText": "",
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
public/mp-weixin/pages/notice/notice.wxml
Normal file
1
public/mp-weixin/pages/notice/notice.wxml
Normal file
@ -0,0 +1 @@
|
||||
<view class="notice"><mescroll-body class="vue-ref" vue-id="6199cf00-1" up="{{upOption}}" data-ref="mescrollRef" data-event-opts="{{[['^init',[['mescrollInit']]],['^down',[['downCallback']]],['^up',[['upCallback']]]]}}" bind:init="__e" bind:down="__e" bind:up="__e" bind:__l="__l" vue-slots="{{['default']}}"><block wx:for="{{lists}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="notice-item bg-white"><view class="flex row-between item-header"><view class="header-title md bold">{{item.title}}</view><view class="header-time muted xs">{{item.create_time}}</view></view><view class="item-main m-t-24"><view class="content sm lighter">{{item.content}}</view></view></view></block></mescroll-body></view>
|
||||
1
public/mp-weixin/pages/notice/notice.wxss
Normal file
1
public/mp-weixin/pages/notice/notice.wxss
Normal file
@ -0,0 +1 @@
|
||||
.notice{overflow:hidden}.notice .notice-item{padding:0 20rpx 30rpx;border-radius:10rpx;margin:20rpx 20rpx 0}.notice .notice-item .item-header{padding:19rpx 0;border-bottom:1px solid #e5e5e5}
|
||||
Reference in New Issue
Block a user