|
@ -21,6 +21,7 @@ Page({ |
|
|
dialogVisible: false, //提示框
|
|
|
dialogVisible: false, //提示框
|
|
|
dialogTitle: '', //提示内容
|
|
|
dialogTitle: '', //提示内容
|
|
|
lock: false, |
|
|
lock: false, |
|
|
|
|
|
configPoint: 0, |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
@ -33,6 +34,7 @@ Page({ |
|
|
detailType: options.type || '', |
|
|
detailType: options.type || '', |
|
|
details: {} |
|
|
details: {} |
|
|
}) |
|
|
}) |
|
|
|
|
|
this.getResidentConfig() |
|
|
this.getNoticeDetail() |
|
|
this.getNoticeDetail() |
|
|
this.getEvaluationList() |
|
|
this.getEvaluationList() |
|
|
}, |
|
|
}, |
|
@ -227,7 +229,7 @@ Page({ |
|
|
let _this = this |
|
|
let _this = this |
|
|
let tip = '是否要取消报名?' |
|
|
let tip = '是否要取消报名?' |
|
|
if (status == 0) { |
|
|
if (status == 0) { |
|
|
tip = '是否要报名?' |
|
|
tip = `若您报名后,未购买当前商品,系统将会扣除您${this.data.configPoint}积分` |
|
|
} else { |
|
|
} else { |
|
|
tip = '是否要取消报名?' |
|
|
tip = '是否要取消报名?' |
|
|
} |
|
|
} |
|
@ -294,5 +296,22 @@ Page({ |
|
|
} else { |
|
|
} else { |
|
|
return false |
|
|
return false |
|
|
} |
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
// 获取默认配置, 提示扣除积分
|
|
|
|
|
|
getResidentConfig (){ |
|
|
|
|
|
let that = this |
|
|
|
|
|
api.getResidentConfig().then(res => { |
|
|
|
|
|
if (res.code === 0 && res.msg === "success") { |
|
|
|
|
|
res.data.forEach(item => { |
|
|
|
|
|
if (item.residentType === "poins_config" && item.residentCode === "points_ptg_dishonest") { |
|
|
|
|
|
that.setData({ |
|
|
|
|
|
configPoint: parseInt(item.residentValue) |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
}).catch(err => { |
|
|
|
|
|
console.log(err) |
|
|
|
|
|
}) |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |