1
This commit is contained in:
parent
def9d17e54
commit
3128362b84
@ -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()
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user