This commit is contained in:
SelfRidicule 2024-08-20 09:42:15 +08:00
parent 090b6b2c34
commit 7b759dd619
3 changed files with 11 additions and 2 deletions

View File

@ -17,6 +17,7 @@ Page({
*/
data: {
IMG_NAME: app.IMG_NAME,
back: '2',
id: null,
form: {
"evalService": 0,
@ -134,7 +135,7 @@ Page({
//
if (res.code == 0) {
app.vantNotifySuccess(Notify, res.msg)
app.selfBackPage(2)
app.selfBackPage(parseInt(_this.data.back))
} else {
app.vantNotifyErr(Notify, res.msg)
}

View File

@ -271,6 +271,14 @@ Page({
})
},
jumpEvaluate(e) {
console.log('jumpEvaluate', e);
let obj = e.currentTarget.dataset.obj
wx.navigateTo({
url: `/pages/reportRepair/assign/evaluate/evaluate?id=${obj.id}&back=1`,
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/

View File

@ -69,7 +69,7 @@
<view class="btn">分享
<button catch class="shareBtn" open-type="share" data-obj="{{item}}">转发</button>
</view>
<view class="btn evaluate" data-obj="{{item}}" bind:tap="jumpDetail">评价</view>
<view class="btn evaluate" data-obj="{{item}}" bind:tap="jumpEvaluate">评价</view>
</view>
</view>
</view>