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: { data: {
IMG_NAME: app.IMG_NAME, IMG_NAME: app.IMG_NAME,
back: '2',
id: null, id: null,
form: { form: {
"evalService": 0, "evalService": 0,
@ -134,7 +135,7 @@ Page({
// //
if (res.code == 0) { if (res.code == 0) {
app.vantNotifySuccess(Notify, res.msg) app.vantNotifySuccess(Notify, res.msg)
app.selfBackPage(2) app.selfBackPage(parseInt(_this.data.back))
} else { } else {
app.vantNotifyErr(Notify, res.msg) 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">分享 <view class="btn">分享
<button catch class="shareBtn" open-type="share" data-obj="{{item}}">转发</button> <button catch class="shareBtn" open-type="share" data-obj="{{item}}">转发</button>
</view> </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> </view>
</view> </view>