fix: 修复测算结果页面数据不显示的问题
- 修复后端API返回数据格式问题 - 所有测算页面保存结果时使用 result.data || result - 确保结果页面能正确获取测算数据
This commit is contained in:
1 parent
e56af6feb5
commit
dfb1fdd73c
8 files changed
+8
-8
No files matched your search
@@ -202,7 +202,7 @@ export default {
|
||||
dateType: this.dateType
|
||||
})
|
||||
|
||||
getApp().globalData.baziResult = result
|
||||
getApp().globalData.baziResult = result.data || result
|
||||
|
||||
uni.hideLoading()
|
||||
|
||||
|
||||
@@ -230,7 +230,7 @@ export default {
|
||||
guiRenType: this.guiRenType
|
||||
})
|
||||
|
||||
getApp().globalData.daliurenResult = result
|
||||
getApp().globalData.daliurenResult = result.data || result
|
||||
|
||||
uni.hideLoading()
|
||||
|
||||
|
||||
@@ -227,7 +227,7 @@ export default {
|
||||
liuYaoYaoXiang: this.liuYaoYaoXiang
|
||||
})
|
||||
|
||||
getApp().globalData.liuyaoResult = result
|
||||
getApp().globalData.liuyaoResult = result.data || result
|
||||
|
||||
uni.hideLoading()
|
||||
|
||||
|
||||
@@ -248,7 +248,7 @@ export default {
|
||||
shuangShuTwo: this.shuangShuTwo
|
||||
})
|
||||
|
||||
getApp().globalData.meihuaResult = result
|
||||
getApp().globalData.meihuaResult = result.data || result
|
||||
|
||||
uni.hideLoading()
|
||||
|
||||
|
||||
@@ -263,7 +263,7 @@ export default {
|
||||
zhiShiType: this.zhiShiTypes[this.zhiShiTypeIndex].value
|
||||
})
|
||||
|
||||
getApp().globalData.qimenResult = result
|
||||
getApp().globalData.qimenResult = result.data || result
|
||||
|
||||
uni.hideLoading()
|
||||
|
||||
|
||||
@@ -100,7 +100,7 @@ export default {
|
||||
spreadType: this.spreadType
|
||||
})
|
||||
|
||||
getApp().globalData.taLuoResult = result
|
||||
getApp().globalData.taLuoResult = result.data || result
|
||||
|
||||
uni.hideLoading()
|
||||
|
||||
|
||||
@@ -180,7 +180,7 @@ export default {
|
||||
birthPlace: this.birthPlace || '北京'
|
||||
})
|
||||
|
||||
getApp().globalData.zhanxingResult = result
|
||||
getApp().globalData.zhanxingResult = result.data || result
|
||||
|
||||
uni.hideLoading()
|
||||
|
||||
|
||||
@@ -193,7 +193,7 @@ export default {
|
||||
dateType: this.dateType
|
||||
})
|
||||
|
||||
getApp().globalData.ziweiResult = result
|
||||
getApp().globalData.ziweiResult = result.data || result
|
||||
|
||||
uni.hideLoading()
|
||||
|
||||
|
||||
Reference in new issue
Block a user