|
@@ -86,7 +86,15 @@ export default {
|
|
}).then(res => {
|
|
}).then(res => {
|
|
if (res.data.code == 200) {
|
|
if (res.data.code == 200) {
|
|
setTimeout(function(){
|
|
setTimeout(function(){
|
|
- uni.navigateBack();
|
|
|
|
|
|
+ let pages = getCurrentPages(); // 当前页面
|
|
|
|
+ console.log(pages)
|
|
|
|
+ let beforePage = pages[pages.length - 2]; // 前一个页面
|
|
|
|
+ uni.navigateBack({
|
|
|
|
+ delta: 1,
|
|
|
|
+ success: function() {
|
|
|
|
+ beforePage.$vm.shuaxin()
|
|
|
|
+ }
|
|
|
|
+ });
|
|
},2000)
|
|
},2000)
|
|
that.$refs.toast.show({model:'success',label:res.data.msg})
|
|
that.$refs.toast.show({model:'success',label:res.data.msg})
|
|
}else{
|
|
}else{
|
|
@@ -101,7 +109,15 @@ export default {
|
|
}).then(res => {
|
|
}).then(res => {
|
|
if (res.data.code == 200) {
|
|
if (res.data.code == 200) {
|
|
setTimeout(function(){
|
|
setTimeout(function(){
|
|
- uni.navigateBack();
|
|
|
|
|
|
+ let pages = getCurrentPages(); // 当前页面
|
|
|
|
+ console.log(pages)
|
|
|
|
+ let beforePage = pages[pages.length - 2]; // 前一个页面
|
|
|
|
+ uni.navigateBack({
|
|
|
|
+ delta: 1,
|
|
|
|
+ success: function() {
|
|
|
|
+ beforePage.$vm.shuaxin()
|
|
|
|
+ }
|
|
|
|
+ });
|
|
},2000)
|
|
},2000)
|
|
that.$refs.toast.show({model:'success',label:res.data.msg})
|
|
that.$refs.toast.show({model:'success',label:res.data.msg})
|
|
}else{
|
|
}else{
|