提交 46535068 authored 作者: matian's avatar matian

fix:代码更新

上级 947fff7d
...@@ -36,21 +36,19 @@ export default { ...@@ -36,21 +36,19 @@ export default {
type: Object, type: Object,
default: ()=>{ default: ()=>{
}, },
}, },
remark:{
type:String,
default:''
}
}, },
data() { data() {
return { return {
defaultImg1: "https://webapp-pub.ezijing.com/marketing/img_success.png", defaultImg1: "https://webapp-pub.ezijing.com/marketing/img_success.png",
defaultImg2: "https://webapp-pub.ezijing.com/marketing/img_fail.png", defaultImg2: "https://webapp-pub.ezijing.com/marketing/img_fail.png",
remark:''
}; };
}, },
mounted(){
if(this.signInfo.student.remark.includes(';')){
this.remark=this.signInfo.student.remark.replace(/;/g,"<br/>");
}
console.log(this.remark);
},
methods: { methods: {
handleClose() { handleClose() {
this.$emit("update:visible", false); this.$emit("update:visible", false);
......
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
:visible.sync="popupVisible" :visible.sync="popupVisible"
:signInfo="signInfo" :signInfo="signInfo"
:status="status" :status="status"
:remark="remark"
></app-popup> ></app-popup>
</div> </div>
</div> </div>
...@@ -42,9 +43,13 @@ export default { ...@@ -42,9 +43,13 @@ export default {
isShowError: false, isShowError: false,
defaultImg3: defaultImg3:
"https://webapp-pub.ezijing.com/marketing/%E7%94%BB%E6%9D%BF%201.png", "https://webapp-pub.ezijing.com/marketing/%E7%94%BB%E6%9D%BF%201.png",
remark:'火速回复数据恢复技术封锁就会发生纠纷后'
}; };
}, },
mounted() { mounted() {
if(this.remark.includes(';')){
this.remark =this.remark.replace(/;/g,"<br/>");
}
this.id = this.$route.query.id; //从链接上获取活动id this.id = this.$route.query.id; //从链接上获取活动id
if (this.id == "" || this.id == undefined) { if (this.id == "" || this.id == undefined) {
this.isShowError = true; this.isShowError = true;
...@@ -63,6 +68,10 @@ export default { ...@@ -63,6 +68,10 @@ export default {
console.log(res); console.log(res);
if (res.code == 0) { if (res.code == 0) {
this.signInfo = res.data; //获取签到详情数据 this.signInfo = res.data; //获取签到详情数据
this.remark = this.signInfo.student.remark;
if(this.remark.includes(';')){
this.remark =this.remark.replace(/;/g,"<br/>");
}
if(this.signInfo.student.sign_in_status == 1){ if(this.signInfo.student.sign_in_status == 1){
this.status = true; this.status = true;
return return
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论