Browse Source

政策法规

master
赵鹏 1 month ago
parent
commit
6c0cecda17
  1. 15
      pages/owner.vue

15
pages/owner.vue

@ -86,8 +86,8 @@
</view>
<view class="wd-flex wd-flex-row wd-items-center" style="gap: 8px" @click="btnPolicy">
<u-count-to
:startVal="30"
:endVal="500"
:startVal="0"
:endVal="policyTotal"
fontSize="14px"
separator=","
></u-count-to>
@ -136,10 +136,13 @@
<script>
import { mapGetters } from 'vuex'
import { getUserProfile } from '@/api/system/user.js'
import { PolicyApi, formatPolicyContext } from '@/api/policy/index.js'
export default {
data() {
return {
user: {}
user: {},
policyTotal: 0
}
},
computed: {},
@ -156,6 +159,12 @@ export default {
getUserProfile().then(res => {
this.user = res.data
})
PolicyApi.getPolicyPage({
pageNum: 1,
pageSize: 10
}).then(res => {
this.policyTotal = res.data.total
})
},
openSubMessage() {
uni.requestSubscribeMessage({

Loading…
Cancel
Save