提交 32e52591 编写于 作者: 张敬贤's avatar 张敬贤

Merge branch 'feature/zjx' into 'develop'

add

See merge request !114
<template> <template>
<van-popup <van-popup
v-if="show"
v-model="show" v-model="show"
:close-on-click-overlay="false" :close-on-click-overlay="false"
style="background-color: transparent" style="background-color: transparent"
......
...@@ -118,11 +118,11 @@ export default { ...@@ -118,11 +118,11 @@ export default {
}, },
selectItem() { selectItem() {
if (this.selectTimes === '') { if (this.selectTimes === '') {
this.$toast('请选择日期'); // this.$toast('请选择日期');
return; return;
} }
if (this.selectTimeBucket === '') { if (this.selectTimeBucket === '') {
this.$toast('请选择时间段'); // this.$toast('请选择时间段');
return; return;
} }
this.$emit('change', this.selectTimes + ' ' + this.selectTimeBucket); this.$emit('change', this.selectTimes + ' ' + this.selectTimeBucket);
......
...@@ -24,7 +24,8 @@ $http.addBeforeHook(config => console.log('我是新增的前置钩子', config) ...@@ -24,7 +24,8 @@ $http.addBeforeHook(config => console.log('我是新增的前置钩子', config)
$http.addAfterHook(response => { $http.addAfterHook(response => {
vueApp.$loading.hide(); vueApp.$loading.hide();
if (response.data.code !== '000000') { if (response.data.code !== '000000') {
vueApp.$toast(response.data.message); console.log('我是新增的后置钩子111', response);
vueApp.$toast(response.data.message );
} }
console.log('我是新增的后置钩子', response); console.log('我是新增的后置钩子', response);
}, 0); }, 0);
...@@ -490,14 +490,16 @@ export default { ...@@ -490,14 +490,16 @@ export default {
}; };
appointment(data).then(res => { appointment(data).then(res => {
if (res.code === '000000') { if (res.code === '000000') {
this.$router.push({ this.$router.push({
path: '/appoint-details', path: '/appoint-details',
query: { query: {
yunOrderNo: this.yunOrderNo, yunOrderNo: this.yunOrderNo,
projectEquityNo:this.projectEquityNo projectEquityNo:this.projectEquityNo
} }
}); });
} } else {
res.message && this.$toast(res.message);
}
}); });
}).catch(err => { }).catch(err => {
...@@ -508,12 +510,14 @@ export default { ...@@ -508,12 +510,14 @@ export default {
getButtonStatus(yunOrderNo) { getButtonStatus(yunOrderNo) {
getButtonStatus(yunOrderNo).then(res => { getButtonStatus(yunOrderNo).then(res => {
console.log(res); console.log(res);
this.$loading.hide();
this.buttonStatus = res.data.buttonStatus; this.buttonStatus = res.data.buttonStatus;
this.buttonText = res.data.statusDesc; this.buttonText = res.data.statusDesc;
if (!this.buttonStatus) { !this.buttonStatus && this.$dialog.alert({
this.$toast(this.buttonText); message: this.buttonText,
} confirmButtonColor:'#00bda5'
this.$loading.hide(); });
}); });
}, },
getDetailByUnionId() { }, getDetailByUnionId() { },
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册