|
@@ -437,14 +437,23 @@
|
|
|
uni.hideLoading();
|
|
|
// var list = res.data.Items
|
|
|
this.isShowTui=false;
|
|
|
- uni.showToast({
|
|
|
- title: '取消成功',
|
|
|
- icon: 'none',
|
|
|
- duration: 2000
|
|
|
- });
|
|
|
- setTimeout(function() {
|
|
|
- that.getData();
|
|
|
- }, 1000);
|
|
|
+ if(res.code==0){
|
|
|
+ uni.showToast({
|
|
|
+ title: '取消成功',
|
|
|
+ icon: 'none',
|
|
|
+ duration: 2000
|
|
|
+ });
|
|
|
+ setTimeout(function() {
|
|
|
+ that.getData();
|
|
|
+ }, 1000);
|
|
|
+ }else{
|
|
|
+ uni.showToast({
|
|
|
+ title: res.msg,
|
|
|
+ icon: 'none',
|
|
|
+ duration: 3000
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
})
|
|
|
},
|
|
|
isShowTuiHide(){
|
|
@@ -574,15 +583,23 @@
|
|
|
uni.hideLoading();
|
|
|
// var list = res.data.Items
|
|
|
var list = res.data
|
|
|
- console.log("result+=", res.data);
|
|
|
- uni.showToast({
|
|
|
- title: '延期成功',
|
|
|
- icon: 'none',
|
|
|
- duration: 2000
|
|
|
- });
|
|
|
- setTimeout(function() {
|
|
|
- that.getData();
|
|
|
- }, 1000);
|
|
|
+ if(res.code==0){
|
|
|
+ uni.showToast({
|
|
|
+ title: '延期成功',
|
|
|
+ icon: 'none',
|
|
|
+ duration: 2000
|
|
|
+ });
|
|
|
+ setTimeout(function() {
|
|
|
+ that.getData();
|
|
|
+ }, 1000);
|
|
|
+ }else{
|
|
|
+ uni.showToast({
|
|
|
+ title: res.msg,
|
|
|
+ icon: 'none',
|
|
|
+ duration: 3000
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
|
|
|
})
|
|
@@ -607,16 +624,24 @@
|
|
|
|
|
|
}, 'POST').then(res => {
|
|
|
uni.hideLoading();
|
|
|
- // var list = res.data.Items
|
|
|
+ if(res.code==0){
|
|
|
+ uni.showToast({
|
|
|
+ title: '取消成功',
|
|
|
+ icon: 'none',
|
|
|
+ duration: 2000
|
|
|
+ });
|
|
|
+ setTimeout(function() {
|
|
|
+ that.getData();
|
|
|
+ }, 1000);
|
|
|
+ }else{
|
|
|
+ uni.showToast({
|
|
|
+ title: res.msg,
|
|
|
+ icon: 'none',
|
|
|
+ duration: 3000
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
- uni.showToast({
|
|
|
- title: '取消成功',
|
|
|
- icon: 'none',
|
|
|
- duration: 2000
|
|
|
- });
|
|
|
- setTimeout(function() {
|
|
|
- that.getData();
|
|
|
- }, 1000);
|
|
|
})
|
|
|
|
|
|
|
|
@@ -1251,7 +1276,7 @@
|
|
|
|
|
|
.tuikuan {
|
|
|
width: 638rpx;
|
|
|
- height: 664rpx;
|
|
|
+ height: 720rpx;
|
|
|
background: #ffffff;
|
|
|
margin: 0 36rpx;
|
|
|
margin-top: 50%;
|