laoding效果补充

main
xuechunyuan 3 years ago
parent 4d0955aaff
commit ed4a0c7a9a
  1. 2
      src/api/hospital.js
  2. 12
      src/views/Guidance.vue
  3. 26
      src/views/HomeView.vue
  4. 19
      src/views/myExam.vue

@ -44,7 +44,7 @@ export const myRecord = (createDept, cupCardNo, current,size) => {
export const recordCancel = (id) => { export const recordCancel = (id) => {
return request({ return request({
url: '/api/blade-business/apm-record/cancel', url: '/api/blade-business/apm-record/cancel',
method: 'get', method: 'post',
params: { params: {
id, id,
} }

@ -29,12 +29,23 @@ export default {
methods: { methods: {
// //
queryAticle(id) { queryAticle(id) {
this.$toast.loading({
message: '加载中',
duration: 0,
})
try {
queryArticleDetail(id).then(res => { queryArticleDetail(id).then(res => {
this.$toast.clear();
if (JSON.stringify(res.data) != '{}') { if (JSON.stringify(res.data) != '{}') {
res.data.content = decodeURIComponent(res.data.content); res.data.content = decodeURIComponent(res.data.content);
this.article = res.data; this.article = res.data;
} }
}, err => {
this.$toast.clear();
}) })
} catch (error) {
this.$toast.clear();
}
}, },
// //
doCancel() { doCancel() {
@ -110,6 +121,7 @@ export default {
overflow-y: auto; overflow-y: auto;
margin: 0.93rem 0.4rem 0 0; margin: 0.93rem 0.4rem 0 0;
padding: 0 0.4rem; padding: 0 0.4rem;
img { img {
max-width: 100% !important; max-width: 100% !important;
} }

@ -72,9 +72,20 @@ export default {
methods: { methods: {
// //
queryHosiptal() { queryHosiptal() {
this.$toast.loading({
message:'加载中',
duration: 0,
})
try {
queryHosiptal().then(res => { queryHosiptal().then(res => {
this.$toast.clear();
this.hospitalList = res.data; this.hospitalList = res.data;
},err => {
this.$toast.clear();
}) })
} catch (error) {
this.$toast.clear();
}
}, },
// //
goMyBook() { goMyBook() {
@ -85,19 +96,6 @@ export default {
this.getUserInfo(); this.getUserInfo();
} }
}, },
testAlert() {
lightAppJssdk.notification.alert({
message: "这是一个弹窗",
title: "提示",//
buttonName: "收到",
success: function (data) {
//onSuccessbutton
/*回调*/
},
fail: function (data) { //
}
});
},
// //
doCancelGuide() { doCancelGuide() {
this.guideShow = false; this.guideShow = false;
@ -105,7 +103,7 @@ export default {
// //
doGuidance(id) { doGuidance(id) {
// this.guideShow = true; // this.guideShow = true;
console.log(this.userInfo) // console.log(this.userInfo.papersnumber)
if(this.userInfo){ if(this.userInfo){
checkBacklist(this.userInfo.papersnumber).then(res => { checkBacklist(this.userInfo.papersnumber).then(res => {
if(res.data){ if(res.data){

@ -63,9 +63,20 @@ export default {
methods: { methods: {
// //
queryMyRecord() { queryMyRecord() {
this.$toast.loading({
message: '加载中',
duration: 0,
})
try {
myRecord("", this.userInfo.papersnumber, this.current, this.size).then(res => { myRecord("", this.userInfo.papersnumber, this.current, this.size).then(res => {
this.$toast.clear();
this.examArr = res.data.records; this.examArr = res.data.records;
}, err => {
this.$toast.clear();
}) })
} catch (error) {
this.$toast.clear();
}
}, },
// //
doDateFormatter(date) { doDateFormatter(date) {
@ -76,10 +87,10 @@ export default {
if (row.apmStatus !== 0) { if (row.apmStatus !== 0) {
return; return;
} }
lightAppJssdk.notification.alert({ lightAppJssdk.notification.confirm({
message: "是否取消该体检项目", message: "是否取消该体检项目",
title: "提示",// title: "提示",//
buttonName: "确认", buttonLabels: ['确定', '取消'],
success: function (data) { success: function (data) {
//onSuccessbutton //onSuccessbutton
/*回调*/ /*回调*/
@ -106,19 +117,23 @@ export default {
height: 100%; height: 100%;
background: #f9f9f9; background: #f9f9f9;
position: absolute; position: absolute;
.exam_noresult { .exam_noresult {
text-align: center; text-align: center;
padding-top: 2rem; padding-top: 2rem;
img { img {
width: 2.56rem; width: 2.56rem;
height: 2.56rem; height: 2.56rem;
} }
.no_title { .no_title {
color: #666; color: #666;
font-size: 0.44rem; font-size: 0.44rem;
font-weight: bold; font-weight: bold;
margin-bottom: 0.1rem; margin-bottom: 0.1rem;
} }
.no_txt { .no_txt {
color: #999; color: #999;
font-size: 0.24rem; font-size: 0.24rem;

Loading…
Cancel
Save