|
|
@ -76,7 +76,7 @@ Page({ |
|
|
// 检查是否是从首页登录返回的
|
|
|
// 检查是否是从首页登录返回的
|
|
|
const pendingReturnPath = wx.getStorageSync('pendingReturnPath'); |
|
|
const pendingReturnPath = wx.getStorageSync('pendingReturnPath'); |
|
|
if (pendingReturnPath === 'settlement') { |
|
|
if (pendingReturnPath === 'settlement') { |
|
|
console.log('检测到从首页登录返回,清除标记并自动提交申请'); |
|
|
console.log('检测到从首页登录返回,清除标记'); |
|
|
// 清除返回路径标记
|
|
|
// 清除返回路径标记
|
|
|
wx.removeStorageSync('pendingReturnPath'); |
|
|
wx.removeStorageSync('pendingReturnPath'); |
|
|
|
|
|
|
|
|
@ -85,11 +85,11 @@ Page({ |
|
|
// 检查是否有保存的表单数据
|
|
|
// 检查是否有保存的表单数据
|
|
|
const savedProgress = wx.getStorageSync('settlementProgress'); |
|
|
const savedProgress = wx.getStorageSync('settlementProgress'); |
|
|
if (savedProgress && savedProgress.formData) { |
|
|
if (savedProgress && savedProgress.formData) { |
|
|
console.log('发现保存的表单数据,自动提交申请'); |
|
|
console.log('发现保存的表单数据,不自动提交申请'); |
|
|
// 恢复表单数据
|
|
|
// 恢复表单数据
|
|
|
this.setData(savedProgress.formData); |
|
|
this.setData(savedProgress.formData); |
|
|
// 自动提交申请
|
|
|
// 自动提交申请已关闭
|
|
|
this.submitApplication(); |
|
|
// this.submitApplication();
|
|
|
} |
|
|
} |
|
|
}, 500); |
|
|
}, 500); |
|
|
} |
|
|
} |
|
|
@ -1183,9 +1183,7 @@ Page({ |
|
|
// 更新页面状态
|
|
|
// 更新页面状态
|
|
|
this.setData({ |
|
|
this.setData({ |
|
|
partnerstatus: userData.partnerstatus || '', // 使用数据库字段名,不设置默认值
|
|
|
partnerstatus: userData.partnerstatus || '', // 使用数据库字段名,不设置默认值
|
|
|
auditFailedReason: userData.reasonforfailure || '暂无详细的审核失败原因,请联系客服了解详情。', |
|
|
auditFailedReason: userData.reasonforfailure || '暂无详细的审核失败原因,请联系客服了解详情。' |
|
|
// 添加审核失败相关的URL
|
|
|
|
|
|
reviewGuideUrl: 'https://youniao.icu/guide/settlement-review' |
|
|
|
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
console.log('已同步服务器入驻状态:', userData.partnerstatus); |
|
|
console.log('已同步服务器入驻状态:', userData.partnerstatus); |
|
|
@ -1201,42 +1199,5 @@ Page({ |
|
|
} catch (error) { |
|
|
} catch (error) { |
|
|
console.error('同步入驻状态失败:', error); |
|
|
console.error('同步入驻状态失败:', error); |
|
|
} |
|
|
} |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// 打开审核指南
|
|
|
|
|
|
openReviewGuide() { |
|
|
|
|
|
const { reviewGuideUrl } = this.data; |
|
|
|
|
|
if (reviewGuideUrl) { |
|
|
|
|
|
wx.openUrl({ |
|
|
|
|
|
url: reviewGuideUrl, |
|
|
|
|
|
success: () => { |
|
|
|
|
|
console.log('已在系统浏览器打开审核指南'); |
|
|
|
|
|
}, |
|
|
|
|
|
fail: (err) => { |
|
|
|
|
|
console.error('打开审核指南失败:', err); |
|
|
|
|
|
// 如果openUrl失败,尝试使用旧版本API
|
|
|
|
|
|
if (wx.openLink) { |
|
|
|
|
|
wx.openLink({ |
|
|
|
|
|
url: reviewGuideUrl, |
|
|
|
|
|
success: () => { |
|
|
|
|
|
console.log('已使用openLink打开审核指南'); |
|
|
|
|
|
}, |
|
|
|
|
|
fail: (linkErr) => { |
|
|
|
|
|
console.error('使用openLink打开审核指南失败:', linkErr); |
|
|
|
|
|
wx.showToast({ |
|
|
|
|
|
title: '打开审核指南失败', |
|
|
|
|
|
icon: 'none' |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
} else { |
|
|
|
|
|
wx.showToast({ |
|
|
|
|
|
title: '打开审核指南失败', |
|
|
|
|
|
icon: 'none' |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |