Explorar el Código

添加异常代码~

hotfix/210830_二组需求分支
王饶冀 hace 3 años
padre
commit
d8503efb31
Se han modificado 1 ficheros con 12 adiciones y 1 borrados
  1. 12
    1
      pages/index/components/listDetails/Details.js

+ 12
- 1
pages/index/components/listDetails/Details.js Ver fichero

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')
}) })
}, },

Cargando…
Cancelar
Guardar