增加xx积分已到账的吐丝提醒

This commit is contained in:
xg-29 2024-06-24 17:55:07 +08:00
parent 54329baa8d
commit 8330bd0a8b
12 changed files with 94 additions and 25 deletions

View File

@ -870,7 +870,11 @@
})
hideLoading()
if (reg.code == 200) {
if (this.diseases == '95') {
if(reg.data.integral && reg.data.integral > 0){
toast(reg.data.integral + "积分已到账")
}
setTimeout(()=>{
if (this.diseases == '95') {
let b = {
userParameters: JSON.stringify(this.userParameters), //
name: this.userName,
@ -894,6 +898,7 @@
.stringify(b)
})
}
},1000)
} else {
toast(reg.msg ? reg.msg : '生成报告异常')
}
@ -938,6 +943,11 @@
subType: '0', //1 0
}
})
if(ret.code == 200){
if(ret.data.integral && ret.data.integral > 0){
toast(ret.data.integral + "积分已到账")
}
}
},
//
async continueChange() {

View File

@ -660,6 +660,9 @@
mbti: that.jieguo, //15
}
}).then((res) => {
if(res.data && res.data > 0){
toast(res.data + "积分已到账")
}
hideLoading()
let a = {
userParameters: JSON.stringify(this.userParameters),
@ -668,9 +671,11 @@
id: this.id,
dicCode: this.dictNo,
}
uni.redirectTo({
url: '/pages/psychological-assessment/result/result?params=' + JSON.stringify(a)
})
setTimeout(() => {
uni.redirectTo({
url: '/pages/psychological-assessment/result/result?params=' + JSON.stringify(a)
})
}, 1000)
})
},
scroll(e) {

View File

@ -34,11 +34,15 @@
content: this.content
}
}).then(res => {
toast('保存成功')
if (res.code == 200) {
if(res.data && res.data > 0 ){
toast(res.data + "积分已到账")
}else{
toast('保存成功')
}
setTimeout(() => {
uni.navigateBack()
}, 500)
}, 1000)
}
})
},

View File

@ -156,10 +156,16 @@
this.$SMOKE.userSmokingAdd({
data,
}).then(res => {
toast('保存成功')
setTimeout(() => {
uni.navigateBack()
}, 500)
if(res.code == 200){
if(res.data && res.data > 0){
toast(res.data + '积分已到账')
}else{
toast('保存成功')
}
setTimeout(() => {
uni.navigateBack()
}, 500)
}
})
},
//

View File

@ -724,9 +724,14 @@
})
hideLoading()
if (reg.code == 200) {
uni.redirectTo({
url: '/pages/scanCodeEvaluation/health-risks/basicReport/basicReport?age=' + this.age + '&name=' + this.userName
})
if(reg.data.integral && reg.data.integral > 0){
toast(reg.data.integral + "积分已到账")
}
setTimeout(() => {
uni.redirectTo({
url: '/pages/scanCodeEvaluation/health-risks/basicReport/basicReport?age=' + this.age + '&name=' + this.userName
})
}, 1000)
} else {
toast(reg.msg ? reg.msg : '生成报告异常')
}
@ -770,6 +775,11 @@
subType: '0', //1 0
}
})
if(ret.code == 200){
if(ret.data.integral && ret.data.integral > 0){
toast(ret.data.integral + "积分已到账")
}
}
},
//
async continueChange() {

View File

@ -299,7 +299,11 @@
}).then(res => {
if (res.code == 200) {
hideLoading()
toast('保存成功')
if(res.data && res.data > 0){
toast(res.data + "积分已到账")
}else{
toast('保存成功')
}
//
setTimeout(() => {
uni.reLaunch({

View File

@ -30,8 +30,12 @@
planDiary: this.content
}
}).then(res => {
toast('保存成功')
if (res.code == 200) {
if(res.data && res.data > 0){
toast(res.data + '积分已到账')
}else{
toast('保存成功')
}
var pages = getCurrentPages();
var prevPage = pages[pages.length - 2]; //
prevPage._data.pageShow = false

View File

@ -198,6 +198,12 @@
finishStatus: 1,
id: item.id
}
}).then(res=>{
if(res.code == 200){
if(res.data && res.data > 0){
toast(res.data + "积分已到账")
}
}
})
},
//

View File

@ -107,7 +107,11 @@
}).then(res => {
if (res.code == 200) {
hideLoading()
toast('保存成功')
if(res.data && res.data > 0){
toast(res.data + "积分已到账")
}else{
toast('保存成功')
}
//
setTimeout(() => {
uni.reLaunch({

View File

@ -259,6 +259,9 @@ export default {
// action: 'message'
// }
// })
if(res.data && res.data >0){
toast(res.data + "积分已到账")
}
jWeixin.miniProgram ? jWeixin.miniProgram.navigateBack() : jWeixin.navigateBack();
if (window.Android) {
@ -297,6 +300,9 @@ export default {
// action: 'message'
// }
// })
if(res.data && res.data >0){
toast(res.data + "积分已到账")
}
jWeixin.miniProgram ? jWeixin.miniProgram.navigateBack() : jWeixin.navigateBack();
if (window.Android) {

View File

@ -199,6 +199,12 @@
finishStatus: 1,
id: item.id
}
}).then(res=>{
if(res.code == 200){
if(res.data && res.data > 0){
toast(res.data + "积分已到账")
}
}
})
},
//

View File

@ -37,7 +37,7 @@ import {
hideLoading
} from "/tool/index.js"
export default {
data () {
data() {
return {
rateValue: null, //
List: [], //
@ -49,21 +49,21 @@ export default {
cuttDate: formatTime(new Date()).split(" ")[0], //
}
},
onLoad (option) {
onLoad(option) {
this.List = JSON.parse(option.params)
this.rateValue = option.rateValue
},
methods: {
//
bindPickerChange (e) {
bindPickerChange(e) {
this.index = e.detail.value
},
//
maskClick () {
maskClick() {
console.log(this.range, 'range')
},
//
goNext () {
goNext() {
if (this.$preventClick()) return
showLoading('保存中...')
let taskType = '' //
@ -114,15 +114,19 @@ export default {
cancelText: '确定',
confirmText: '创建自主计划',
confirmColor: '#3AAFB8',
success (ret) {
success(ret) {
if (ret.confirm) {
uni.redirectTo({
url: '/pages/selfRegistration2/aplanning/aplanning?params='+
JSON.stringify(that.List)
url: '/pages/selfRegistration2/aplanning/aplanning?params=' +
JSON.stringify(that.List)
})
console.log('创建自主计划');
} else if (ret.cancel) {
toast('保存成功')
if (res.data && res.data > 0) {
toast(res.data + "积分已到账")
} else {
toast('保存成功')
}
//
setTimeout(() => {
uni.reLaunch({