This commit is contained in:
Vinjor 2025-05-06 16:57:22 +08:00
parent def9d17e54
commit 3128362b84

View File

@ -177,8 +177,8 @@
</uni-popup>
<!-- 提示窗示例 -->
<uni-popup ref="alertDialog" type="dialog">
<uni-popup-dialog type="warn" cancelText="关闭" confirmText="我知道了" title="温馨提示" content="随手转发上传通告,每条轻松赚10积分"
@confirm="dialogConfirm"></uni-popup-dialog>
<uni-popup-dialog type="warn" cancelText="关闭" confirmText="我知道了" title="温馨提示"
:content="'随手转发上传通告,每条轻松赚'+point+'积分'" @confirm="dialogConfirm"></uni-popup-dialog>
</uni-popup>
</view>
</template>
@ -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()
},