Commit 8c64d674 by chenwq

fix(validReferralCount): 调整列表项间距并修复提交后提示逻辑

- 减少编辑项组件中信息行之间的底部边距,优化视觉间距
- 修复提交推荐计数后提示逻辑,根据接口返回状态码显示相应消息
1 parent e8fd7a11
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
.info-row { .info-row {
display: flex; display: flex;
align-items: center; align-items: center;
margin-bottom: 12rpx; margin-bottom: 4rpx;
font-size: 28rpx; font-size: 28rpx;
// padding: 0 32rpx; // padding: 0 32rpx;
} }
......
...@@ -97,7 +97,8 @@ Page({ ...@@ -97,7 +97,8 @@ Page({
loading: true loading: true
}) })
api.referralSubmit(params).then(res => { api.referralSubmit(params).then(res => {
wx.$util.showToast(`${tipsObj[typeStatus]}`); let { code, data, message } = res
wx.$util.showToast(code == '0' ? `${tipsObj[typeStatus]}` : message);
this.getDetail() this.getDetail()
}).finally(() => { }).finally(() => {
wx.hideLoading(); wx.hideLoading();
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!