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>
<!-- 提示窗示例 --> <!-- 提示窗示例 -->
<uni-popup ref="alertDialog" type="dialog"> <uni-popup ref="alertDialog" type="dialog">
<uni-popup-dialog type="warn" cancelText="关闭" confirmText="我知道了" title="温馨提示" content="随手转发上传通告,每条轻松赚10积分" <uni-popup-dialog type="warn" cancelText="关闭" confirmText="我知道了" title="温馨提示"
@confirm="dialogConfirm"></uni-popup-dialog> :content="'随手转发上传通告,每条轻松赚'+point+'积分'" @confirm="dialogConfirm"></uni-popup-dialog>
</uni-popup> </uni-popup>
</view> </view>
</template> </template>
@ -187,6 +187,10 @@
import tabBarVue from '@/components/tabbar/tabBar.vue' import tabBarVue from '@/components/tabbar/tabBar.vue'
import storage from '@/utils/storage' import storage from '@/utils/storage'
import constant from '@/utils/constant'; import constant from '@/utils/constant';
import {
getCatgByCode,
getByCodeInfo
} from '@/api/system/config.js'
import { import {
changeUserType changeUserType
} from '@/utils/common.js' } from '@/utils/common.js'
@ -232,9 +236,12 @@
popupImgUrl: "", popupImgUrl: "",
// //
memberEndDate: "", memberEndDate: "",
//
point: 10,
} }
}, },
mounted() { mounted() {
this.getByCodeInfo()
if (null != getJSONData(constant.userInfo)) { if (null != getJSONData(constant.userInfo)) {
this.userInfo = getJSONData(constant.userInfo) this.userInfo = getJSONData(constant.userInfo)
this.getDetail() this.getDetail()
@ -255,6 +262,24 @@
} }
}, },
methods: { 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() { dialogToggle() {
this.$refs.alertDialog.open() this.$refs.alertDialog.open()
}, },