|
@@ -86,7 +86,15 @@ export default {
|
|
|
}).then(res => {
|
|
|
if (res.data.code == 200) {
|
|
|
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)
|
|
|
that.$refs.toast.show({model:'success',label:res.data.msg})
|
|
|
}else{
|
|
@@ -101,7 +109,15 @@ export default {
|
|
|
}).then(res => {
|
|
|
if (res.data.code == 200) {
|
|
|
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)
|
|
|
that.$refs.toast.show({model:'success',label:res.data.msg})
|
|
|
}else{
|