Commit 3671b7f8 authored by lvtz's avatar lvtz

fix

parents 13f0bda4 00bac72a
......@@ -24,7 +24,7 @@
<view class="btn-item red-item" wx:if="{{clueDetail.status != 5 && clueDetail.status != 4}}" bindtap="signInvalid">标记无效</view>
</view>
</view>
<view class="recordsList-box">
<view class="recordsList-box" wx:if="{{recordsList.length>0}}">
<view class="title">销售动态</view>
<view class="item-box" wx:for="{{recordsList}}" wx:key="{{index}}">
<view class="line-box">
......
......@@ -442,10 +442,7 @@ Page({
icon: 'success',
duration: 2000
})
wx.navigateBack({
delta:1
})
this.naviBackRefresh()
}
this.data.submitting = false
}).catch((res) =>{
......@@ -460,10 +457,7 @@ Page({
icon: 'success',
duration: 2000
})
wx.navigateBack({
delta:1
})
this.naviBackRefresh()
}
this.data.submitting = false
}).catch((res) =>{
......@@ -471,5 +465,20 @@ Page({
})
}
},
naviBackRefresh(){
let pages = getCurrentPages();
let currPage = null; //当前页面
let prevPage = null; //上一个页面
if (pages.length >= 2) {
currPage = pages[pages.length - 1]; //当前页面
prevPage = pages[pages.length - 2]; //上一个页面
}
prevPage.setData({
needRefresh: true,
});
wx.navigateBack({
delta:1
})
}
})
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment