|
@@ -42,6 +42,7 @@
|
|
|
<script>
|
|
|
import noticeMixins from './mixins/notice_mixins.js'
|
|
|
import noticeCell from './components/notice-cell.vue'
|
|
|
+import { mapActions } from 'vuex'
|
|
|
|
|
|
export default {
|
|
|
mixins: [noticeMixins],
|
|
@@ -55,13 +56,15 @@ export default {
|
|
|
onLoad(option) {
|
|
|
this.initData(option)
|
|
|
},
|
|
|
- methods: {
|
|
|
+ methods: {
|
|
|
+ ...mapActions('user', ['updateNoticeNum']),
|
|
|
async initData(option) {
|
|
|
this.params.messageType = option.messageType
|
|
|
this.getUserAuthClubMessageList()
|
|
|
},
|
|
|
handleOrderClick(cell) {
|
|
|
- this.clearCellNew(cell.id)
|
|
|
+ this.clearCellNew(cell.id)
|
|
|
+ this.updateNoticeNum()
|
|
|
if (cell.orderMessageType === 1) {
|
|
|
if (this.isOnliyPay(cell)) {
|
|
|
uni.navigateTo({
|