预约体检接口参数变更

main
xuechunyuan 3 years ago
parent 1475ce4e60
commit 94478a4ef3
  1. 2
      src/views/HomeView.vue
  2. 33
      src/views/examProject.vue
  3. 3
      vue.config.js

@ -81,7 +81,7 @@ export default {
vaildInterfacefn("cgstjyyjzpzp", "qdsgajjtjczdhqyylb", JSON.stringify({}), "2", "https://" + this.GlobalConfig.urlCreatesign, "https://" + this.GlobalConfig.urlGateway).then((value) => {
this.$toast.clear();
let retData = JSON.parse(value);
if (retData.code == 200) {
if (retData.success && retData.code == 200) {
this.hospitalList = retData.data;
}
}, err => {

@ -110,8 +110,23 @@ export default {
},
confirm() {
console.log(this.proArr)
postExam(JSON.stringify(this.proArr)).then(res =>{
let param = this.proArr;
if (this.GlobalConfig.appMode) {
console.log(JSON.stringify(param))
vaildInterfacefn("cgstjyyjzpzp", "qdsgajjtjczdtjyytj", JSON.stringify({data:param}), "2", "https://" + this.GlobalConfig.urlCreatesign, "https://" + this.GlobalConfig.urlGateway).then((value) => {
let retData = JSON.parse(value);
if (retData.success && retData.code == 200 && retData.data.code == 200) {
this.isShow = true;
this.isSuccess = true
} else {
this.failTips = retData.data != undefined ? retData.data.msg : '';
this.isShow = true;
this.isSuccess = false
}
})
}
else {
postExam({data:param}).then(res => {
console.log(res)
if (res.code == 200) {
this.isShow = true;
@ -122,6 +137,7 @@ export default {
this.isSuccess = false
}
})
}
// if(this.proArr.length != 0){
//
// }
@ -167,15 +183,18 @@ export default {
display: flex;
padding-bottom: 0.26rem;
border-bottom: 1px solid #EEEEEE;
.img_box {
display: flex;
align-items: center;
margin-right: 0.24rem;
img {
width: 0.5rem;
height: 0.5rem;
}
}
.time_box {
.time_text {
width: 1.46rem;
@ -187,6 +206,7 @@ export default {
font-size: 0.24rem;
color: #999999;
}
.date_txt {
font-size: 0.3rem;
font-weight: bold;
@ -210,12 +230,14 @@ export default {
height: 100%;
display: flex;
align-items: center;
img {
width: 0.5rem;
height: 0.5rem;
}
}
.pro_name {
height: 100%;
display: flex;
@ -225,6 +247,7 @@ export default {
font-weight: bold;
margin-left: 0.24rem;
}
.pro_pos {
height: 100%;
display: flex;
@ -234,6 +257,7 @@ export default {
margin-left: 0.24rem;
}
}
.pro_right {
height: 100%;
display: flex;
@ -262,6 +286,7 @@ export default {
bottom: 0;
padding: 0.24rem;
background: #fff;
.act_btn {
color: #FFFFFF;
font-size: 0.3rem;
@ -285,12 +310,14 @@ export default {
.img_box {
display: flex;
justify-content: center;
img {
width: 1rem;
height: 1rem;
margin-top: 1.2rem;
}
}
.tips {
display: flex;
justify-content: center;
@ -311,6 +338,7 @@ export default {
color: #666;
font-family: PingFang SC-Regular, PingFang SC;
}
.btn {
width: 3rem;
height: 0.8rem;
@ -331,6 +359,7 @@ export default {
display: flex;
justify-content: center;
margin-top: 0.6rem;
img {
width: 0.5rem;
height: 0.5rem;

@ -8,7 +8,8 @@ module.exports = defineConfig({
proxy: {
"/api": {
//本地服务接口地址
target: "http://192.168.1.3:8088",
// target: "http://192.168.1.3:8088",
target: "http://192.168.1.106",
//远程演示服务地址,可用于直接启动项目
// target: 'https://saber.bladex.vip/api',
ws: true,

Loading…
Cancel
Save