提交 8f8c224b 编写于 作者: tao.wu's avatar tao.wu

提测前优化路径

上级 242b6462
<template>
<div class="pop-bg">
<div class="pop-box">
<div class="pop-txt">{{popAllObj.popTxt}}</div>
<div class="pop-btn" v-if="popAllObj.isAloneBtn" @click="popFun(popAllObj.index)">
{{popAllObj.aloneBtnTxt}}
</div>
<div class="pop-btn" v-else>
<span class="pop-btn-span cancel-btn" @click="popFun(popAllObj.cancelIndex?popAllObj.cancelIndex:'1')">{{popAllObj.cancelTxt || '退出'}}<i></i></span>
<span class="pop-btn-span sure-btn" @click="popFun(popAllObj.index)">{{popAllObj.sureTxt || '继续填写'}}</span>
</div>
</div>
</div>
</template>
<script>
export default {
data() {
return {}
},
props: {
title: {
default: '问卷调查',
type: String
},
popAllObj: {
default: ()=>{},
type: Object,
},
},
mounted() {
//console.log(this.popAllObj)
},
computed: {},
methods: {
getIt() {
},
popFun(str) {
this.$emit('setPopFun', str)
}
},
}
</script>
<style>
</style>
<style lang="scss" scoped>
// @import '../assets/style/mixin';
.pop-bg {
background: rgba(0, 0, 0, 0.5);
position: fixed;
z-index: 1000;
width: 100%;
height: 100%;
min-height: 100vh;
left: 0;
top: 0;
}
.pop-box {
background: #fff;
border-radius: 3px;
width: 300px;
//height: px2rem(138px);
position: fixed;
left: 50%;
top: 50%;
margin: -55px 0 0 -150px;
z-index: 1001;
}
.pop-txt {
padding: 30px;
//height: px2rem(70px);
line-height: 21px;
border-bottom: 1PX solid #F0F1F2;
font-size: 14px;
color: #676869;
// text-align: center;
// margin-top:px2rem(18px);
}
.pop-btn {
text-align: center;
height: 50px;
font-size: 17px;
color: #449284;
line-height: 50px;
overflow: hidden;
}
.pop-btn .pop-btn-span {
width: 50%;
float: left;
}
.cancel-btn{
position:relative;
color: #979899;
i{
display: inline-block;
height: 100%;
width: 1PX;
background: #F0F1F2;
position: absolute;
right: 0;
top:0;
}
}
.sure-btn{
color: #449284;
}
.top-title {
height: 45px;
line-height: 25px;
font-size: 18px;
text-align: center;
color: #333;
padding: 10px 0;
border-bottom: 1PX solid #E7E7E7
}
</style>
......@@ -64,7 +64,6 @@
import { Toast } from 'vant';
import { remind, getRemindStatus, checkHospitalStatus, getCnt } from '@/service';
import h5header from '@/components/h5header';
// const userToken = '9D5B30A3E4E34269BE3E4405C467F4F8';
export default {
head() {
......@@ -91,8 +90,6 @@ export default {
if (res.code == '000000') {
this.doctorIdCnt = res.data.doctorIdCnt;
this.hospitalIdCnt = res.data.hospitalIdCnt;
} else {
this.$toast(res.message)
}
});
},
......@@ -157,8 +154,8 @@ export default {
checkHospitalStatus(userToken).then(res => {
const status = res.data.status;
if (status == 1) { // 机构状态正常
remind({ token: userToken }).then(res => {
if (res.code == '000000') {
remind({ token: userToken }).then(resD => {
if (resD.code == '000000') {
this.$dialog.alert({
title: '设置提醒成功',
message: '云鹊奖活动正式时间:12月16日 10:00开始,我们将会以APP消息提醒和短信形式提醒道您,请记得及时参与活动',
......@@ -167,7 +164,7 @@ export default {
});
this.remindStatus = true;
} else {
this.$toast(res.message)
this.$toast(resD.message)
}
})
} else if (status == 15) { // 15创建机构审核中
......
// import qs from 'qs';
import request from './api';
// import { async } from 'q';
// export const check = async (params) => {
// return request({
// url: `/campaign/questionnaire/check`,
// params,
// // 需要在headers设置token
// // withCredentials: true,
// headers: {
// token: params.token
// }
// })
// }
// export const checkLogin = async (params) => {
// return request({
// url: 'campaign/questionnaire/loginAuth',
// params,
// // 需要在headers设置token
// // withCredentials: true,
// // headers: {
// // token: params.token
// // }
// })
// }
// 获取机构和个人参与人数
export const getCnt = () => {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册