活动按钮状态流转

This commit is contained in:
2026-03-25 15:53:37 +08:00
commit 37346e790f
2762 changed files with 240282 additions and 0 deletions

View File

@@ -0,0 +1 @@
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/mine/notice/details"],{2273:function(n,t,e){},"30f3":function(n,t,e){"use strict";e.r(t);var o=e("7a8a"),i=e.n(o);for(var a in o)["default"].indexOf(a)<0&&function(n){e.d(t,n,(function(){return o[n]}))}(a);t["default"]=i.a},"38f7":function(n,t,e){"use strict";e.d(t,"b",(function(){return i})),e.d(t,"c",(function(){return a})),e.d(t,"a",(function(){return o}));var o={mpHtml:function(){return Promise.all([e.e("common/vendor"),e.e("uni_modules/mp-html/components/mp-html/mp-html")]).then(e.bind(null,"7717"))}},i=function(){var n=this.$createElement;this._self._c},a=[]},5490:function(n,t,e){"use strict";var o=e("2273"),i=e.n(o);i.a},"7a8a":function(n,t,e){"use strict";(function(n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var e={data:function(){return{loadEnd:!1,noticeId:null,noticeInfo:{}}},onLoad:function(t){var e=this;n.showLoading({title:"加载中"}),this.noticeId=t.id,this.getNoticeInfo((function(){e.loadEnd=!0,n.hideLoading()}))},methods:{getNoticeInfo:function(t){var e=this;this.$util.request("mine.notice.details",{id:this.noticeId}).then((function(o){t&&t(),1==o.code?e.noticeInfo=o.data:n.showToast({title:o.msg,icon:"none"})})).catch((function(n){t&&t(),console.error("获取通知详情 ",n)}))}}};t.default=e}).call(this,e("df3c")["default"])},a1d5:function(n,t,e){"use strict";(function(n,t){var o=e("47a9");e("aa6c");o(e("3240"));var i=o(e("d138"));n.__webpack_require_UNI_MP_PLUGIN__=e,t(i.default)}).call(this,e("3223")["default"],e("df3c")["createPage"])},d138:function(n,t,e){"use strict";e.r(t);var o=e("38f7"),i=e("30f3");for(var a in i)["default"].indexOf(a)<0&&function(n){e.d(t,n,(function(){return i[n]}))}(a);e("5490");var c=e("828b"),u=Object(c["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);t["default"]=u.exports}},[["a1d5","common/runtime","common/vendor"]]]);

View File

@@ -0,0 +1,6 @@
{
"navigationBarTitleText": "通知详情",
"usingComponents": {
"mp-html": "/uni_modules/mp-html/components/mp-html/mp-html"
}
}

View File

@@ -0,0 +1 @@
<view class="container"><title-bar vue-id="0b784be8-1" title="通知详情" bind:__l="__l"></title-bar><block wx:if="{{loadEnd}}"><view class="container-main"><view class="main-box"><view class="box-info"><view class="info-title">{{noticeInfo.title}}</view><view class="info-date">{{noticeInfo.createtime}}</view></view><view class="box-content"><mp-html vue-id="0b784be8-2" content="{{noticeInfo.content}}" bind:__l="__l"></mp-html></view></view></view></block><tab-bar vue-id="0b784be8-3" bind:__l="__l"></tab-bar></view>

View File

@@ -0,0 +1 @@
.container .container-main{padding:32rpx}.container .container-main .main-box{padding:32rpx;border-radius:10rpx;background:#fff}.container .container-main .main-box .box-info{padding-bottom:32rpx;border-bottom:1rpx solid rgba(0,0,0,.1)}.container .container-main .main-box .box-info .info-title{color:#5a5b6e;font-size:32rpx;font-weight:600;line-height:40rpx}.container .container-main .main-box .box-info .info-date{margin-top:8rpx;color:#979797;font-size:24rpx;line-height:34rpx}.container .container-main .main-box .box-content{margin-top:32rpx;color:#5a5b6e;font-size:28rpx;line-height:48rpx}

View File

@@ -0,0 +1 @@
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/mine/notice/index"],{"219f":function(t,i,n){},"259d":function(t,i,n){"use strict";(function(t){var e=n("47a9");Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var o=e(n("af34")),a={data:function(){return{loadEnd:!1,page:1,limit:20,hasMore:!1,noticeList:[]}},onLoad:function(){var i=this;t.showLoading({title:"加载中"}),this.getNoticeList((function(){t.hideLoading(),i.loadEnd=!0}))},onShow:function(){this.loadEnd&&(t.pageScrollTo({scrollTop:0,duration:0}),this.page=1,this.getNoticeList())},onPullDownRefresh:function(){this.page=1,this.getNoticeList((function(){t.stopPullDownRefresh()}))},onReachBottom:function(){this.hasMore&&(this.page++,this.getNoticeList())},methods:{getNoticeList:function(i){var n=this;i&&i(),this.$util.request("mine.notice.list",{page:this.page,limit:this.limit}).then((function(e){if(i&&i(),1==e.code){var a=e.data.data;n.hasMore=n.page<e.data.total/n.limit,n.noticeList=1==n.page?a:[].concat((0,o.default)(n.noticeList),(0,o.default)(a))}else t.showToast({title:e.msg,icon:"none"})})).catch((function(t){console.error("获取帮助列表 ",t)}))},toDetails:function(t){this.$util.toPage({mode:1,path:"/pages/mine/notice/details?id="+t})}}};i.default=a}).call(this,n("df3c")["default"])},"6ad9":function(t,i,n){"use strict";var e=n("219f"),o=n.n(e);o.a},7900:function(t,i,n){"use strict";(function(t,i){var e=n("47a9");n("aa6c");e(n("3240"));var o=e(n("bbb3"));t.__webpack_require_UNI_MP_PLUGIN__=n,i(o.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},"88ac":function(t,i,n){"use strict";n.d(i,"b",(function(){return e})),n.d(i,"c",(function(){return o})),n.d(i,"a",(function(){}));var e=function(){var t=this.$createElement,i=(this._self._c,this.loadEnd?this.noticeList.length:null);this.$mp.data=Object.assign({},{$root:{g0:i}})},o=[]},"9c41":function(t,i,n){"use strict";n.r(i);var e=n("259d"),o=n.n(e);for(var a in e)["default"].indexOf(a)<0&&function(t){n.d(i,t,(function(){return e[t]}))}(a);i["default"]=o.a},bbb3:function(t,i,n){"use strict";n.r(i);var e=n("88ac"),o=n("9c41");for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(i,t,(function(){return o[t]}))}(a);n("6ad9");var c=n("828b"),s=Object(c["a"])(o["default"],e["b"],e["c"],!1,null,null,null,!1,e["a"],void 0);i["default"]=s.exports}},[["7900","common/runtime","common/vendor"]]]);

View File

@@ -0,0 +1,5 @@
{
"navigationBarTitleText": "消息通知",
"enablePullDownRefresh": true,
"usingComponents": {}
}

View File

@@ -0,0 +1 @@
<view class="container"><title-bar vue-id="13645e58-1" title="消息通知" bind:__l="__l"></title-bar><block wx:if="{{loadEnd}}"><view class="container-main"><block wx:if="{{$root.g0}}"><view class="main-list"><block wx:for="{{noticeList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['toDetails',['$0'],[[['noticeList','',index,'id']]]]]]]}}" class="list-item" bindtap="__e"><view class="item-title">{{item.title}}</view><view class="item-date">{{item.createtime}}</view><block wx:if="{{item.is_read!=1}}"><view class="item-point"></view></block></view></block></view></block><block wx:else><empty vue-id="13645e58-2" top="30%" title="暂无相关内容~" bind:__l="__l"></empty></block></view></block><tab-bar vue-id="13645e58-3" bind:__l="__l"></tab-bar></view>

View File

@@ -0,0 +1 @@
.container .container-main{padding:32rpx}.container .container-main .main-list .list-item{position:relative;border-radius:16rpx;background:#fff;padding:32rpx;margin-top:32rpx}.container .container-main .main-list .list-item:first-child{margin-top:0}.container .container-main .main-list .list-item .item-title{color:#5a5b6e;font-size:28rpx;font-weight:600;line-height:40rpx}.container .container-main .main-list .list-item .item-date{margin-top:8rpx;color:#979797;font-size:24rpx;line-height:34rpx}.container .container-main .main-list .list-item .item-point{position:absolute;top:16rpx;right:16rpx;width:16rpx;height:16rpx;background:#ff4646;border-radius:50%}