积分公示
This commit is contained in:
		@@ -98,13 +98,16 @@ export default {
 | 
			
		||||
    ...mapState(['user']),
 | 
			
		||||
  },
 | 
			
		||||
  onLoad() {
 | 
			
		||||
    this.getToatl()
 | 
			
		||||
    this.getTotal()
 | 
			
		||||
    this.$dict.load(['integralSGType']).then(() => {
 | 
			
		||||
      this.getList()
 | 
			
		||||
    })
 | 
			
		||||
  },
 | 
			
		||||
  onShow() {
 | 
			
		||||
    this.getTotal()
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
    getToatl() {
 | 
			
		||||
    getTotal() {
 | 
			
		||||
      this.$instance.post(`/app/appintegraluser/integralUserInfoFD`).then(res => {
 | 
			
		||||
        if (res?.data) {
 | 
			
		||||
          this.total = res.data.integral || 0
 | 
			
		||||
 
 | 
			
		||||
@@ -42,7 +42,7 @@
 | 
			
		||||
</template>
 | 
			
		||||
 | 
			
		||||
<script>
 | 
			
		||||
import {mapState} from "vuex";
 | 
			
		||||
import {mapActions, mapState} from "vuex";
 | 
			
		||||
 | 
			
		||||
export default {
 | 
			
		||||
  name: 'pointsPublicity',
 | 
			
		||||
@@ -57,17 +57,24 @@ export default {
 | 
			
		||||
  computed: {
 | 
			
		||||
    ...mapState(['user']),
 | 
			
		||||
  },
 | 
			
		||||
  onLoad(option) {
 | 
			
		||||
    this.getList()
 | 
			
		||||
  onLoad() {
 | 
			
		||||
    this.getAuth()
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
    ...mapActions(['getUserInfo']),
 | 
			
		||||
    getList() {
 | 
			
		||||
      this.$instance.post(`/app/appintegralpublicityinfo/list?current=${this.current}&girdId=`).then(res => {
 | 
			
		||||
      this.$instance.post(`/app/appintegralpublicityinfo/list?current=${this.current}&girdId=${this.user.girdId}`).then(res => {
 | 
			
		||||
        if (res.code === 0) {
 | 
			
		||||
          this.list = this.current == 1 ? res.data.records : [...this.list, ...res.data.records]
 | 
			
		||||
        }
 | 
			
		||||
      })
 | 
			
		||||
    }
 | 
			
		||||
    },
 | 
			
		||||
    getAuth() {
 | 
			
		||||
      this.$nextTick(() => {
 | 
			
		||||
        this.getUserInfo('qujing')
 | 
			
		||||
        this.getList()
 | 
			
		||||
      })
 | 
			
		||||
    },
 | 
			
		||||
  },
 | 
			
		||||
  onReachBottom() {
 | 
			
		||||
    this.current++
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user