|
|
@@ -36,7 +36,7 @@ export default {
|
|
|
}
|
|
|
return tianpanDashboard({ familyId: familyId, year: state.currentYear, daysAhead: state.daysAhead })
|
|
|
.then(function(res) {
|
|
|
- if (res && res.code === 0) {
|
|
|
+ if (res && res.code === 200) {
|
|
|
commit('SET_DASHBOARD', res.data)
|
|
|
}
|
|
|
})
|
|
|
@@ -54,7 +54,7 @@ export default {
|
|
|
loadMemberDetail({ commit }, payload) {
|
|
|
return tianpanMemberDetail(payload.memberId, { memberType: payload.memberType || 'family_member' })
|
|
|
.then(function(res) {
|
|
|
- if (res && res.code === 0) {
|
|
|
+ if (res && res.code === 200) {
|
|
|
commit('SET_MEMBER_DETAIL', res.data)
|
|
|
return res.data
|
|
|
}
|
|
|
@@ -63,7 +63,7 @@ export default {
|
|
|
},
|
|
|
loadCompatibility({ commit }, payload) {
|
|
|
return tianpanCompatibility(payload).then(function(res) {
|
|
|
- if (res && res.code === 0) {
|
|
|
+ if (res && res.code === 200) {
|
|
|
commit('SET_COMPATIBILITY', res.data)
|
|
|
return res.data
|
|
|
}
|
|
|
@@ -72,7 +72,7 @@ export default {
|
|
|
},
|
|
|
loadAnnualEnergy({ commit }, payload) {
|
|
|
return tianpanAnnualEnergy(payload).then(function(res) {
|
|
|
- if (res && res.code === 0) {
|
|
|
+ if (res && res.code === 200) {
|
|
|
commit('SET_ANNUAL_ENERGY', res.data)
|
|
|
return res.data
|
|
|
}
|
|
|
@@ -81,7 +81,7 @@ export default {
|
|
|
},
|
|
|
loadDailyFortune({ commit }, payload) {
|
|
|
return tianpanDailyFortune(payload).then(function(res) {
|
|
|
- if (res && res.code === 0) {
|
|
|
+ if (res && res.code === 200) {
|
|
|
commit('SET_DAILY_FORTUNE', res.data)
|
|
|
return res.data
|
|
|
}
|
|
|
@@ -90,7 +90,7 @@ export default {
|
|
|
},
|
|
|
loadRelatedItems({ commit }, payload) {
|
|
|
return tianpanRelatedItems(payload).then(function(res) {
|
|
|
- if (res && res.code === 0) {
|
|
|
+ if (res && res.code === 200) {
|
|
|
commit('SET_RELATED_ITEMS', res.data)
|
|
|
return res.data
|
|
|
}
|