소스 검색

添加异常代码~

hotfix/210830_二组需求分支
王饶冀 4 년 전
부모
커밋
d8503efb31
1개의 변경된 파일12개의 추가작업 그리고 1개의 파일을 삭제
  1. 12
    1
      pages/index/components/listDetails/Details.js

+ 12
- 1
pages/index/components/listDetails/Details.js 파일 보기

this.setData({ this.setData({
currentData: listDetail, currentData: listDetail,
type: listDetail.type, type: listDetail.type,
pageLoading: false,
isCollect: res.data.booleanIsCollect == 0 ? false : true, isCollect: res.data.booleanIsCollect == 0 ? false : true,
}) })
if (this.data.currentData.customerId != this.data.userCustomerId) { if (this.data.currentData.customerId != this.data.userCustomerId) {
}) })
this.getListData(); this.getListData();
} }
}else{
wx.showToast({
title: "数据异常~",
icon: 'success',
duration: 2000
})
} }
this.setData({
pageLoading: false,
})
}).catch(err => { }).catch(err => {
this.setData({
pageLoading: false,
})
console.log(err, 'error appletLogin') console.log(err, 'error appletLogin')
}) })
}, },

Loading…
취소
저장