Browse Source

政策法规

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

15
pages/owner.vue

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

Loading…
Cancel
Save