预约体检接口参数变更

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

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

@ -8,7 +8,8 @@ module.exports = defineConfig({
proxy: { proxy: {
"/api": { "/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', // target: 'https://saber.bladex.vip/api',
ws: true, ws: true,

Loading…
Cancel
Save