diff --git a/pages/mine/mine-index.vue b/pages/mine/mine-index.vue index ad6b4eb..5176bc3 100644 --- a/pages/mine/mine-index.vue +++ b/pages/mine/mine-index.vue @@ -177,8 +177,8 @@ - + @@ -187,6 +187,10 @@ import tabBarVue from '@/components/tabbar/tabBar.vue' import storage from '@/utils/storage' import constant from '@/utils/constant'; + import { + getCatgByCode, + getByCodeInfo + } from '@/api/system/config.js' import { changeUserType } from '@/utils/common.js' @@ -232,9 +236,12 @@ popupImgUrl: "", //会员到期日期 memberEndDate: "", + //每条赚多少积分 + point: 10, } }, mounted() { + this.getByCodeInfo() if (null != getJSONData(constant.userInfo)) { this.userInfo = getJSONData(constant.userInfo) this.getDetail() @@ -255,6 +262,24 @@ } }, methods: { + /** + * 查询发布通告送多少积分 + */ + getByCodeInfo() { + getByCodeInfo({ + code: constant.fbgg + }).then(res => { + if (res.code == 200 && null != res.data) { + this.point = res.data.content + } + }).catch((e) => { + uni.showToast({ + icon: 'error', + duration: 2000, + title: e + }); + }) + }, dialogToggle() { this.$refs.alertDialog.open() },