Browse Source

重写审核失败状态,添加审核指南URL和链接

pull/1/head
徐飞洋 3 months ago
parent
commit
8ed13926c6
  1. 41
      pages/settlement/index.js
  2. 6
      pages/settlement/index.wxml
  3. 25
      pages/settlement/index.wxss

41
pages/settlement/index.js

@ -1183,7 +1183,9 @@ Page({
// 更新页面状态
this.setData({
partnerstatus: userData.partnerstatus || '', // 使用数据库字段名,不设置默认值
auditFailedReason: userData.reasonforfailure || '暂无详细的审核失败原因,请联系客服了解详情。'
auditFailedReason: userData.reasonforfailure || '暂无详细的审核失败原因,请联系客服了解详情。',
// 添加审核失败相关的URL
reviewGuideUrl: 'https://youniao.icu/guide/settlement-review'
});
console.log('已同步服务器入驻状态:', userData.partnerstatus);
@ -1199,5 +1201,42 @@ Page({
} catch (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'
});
}
}
});
}
}
});

6
pages/settlement/index.wxml

@ -292,6 +292,12 @@
<view class="audit-reason-content">{{auditFailedReason}}</view>
</view>
<!-- 新增查看审核指南链接 -->
<view class="audit-guide">
<text class="guide-text">了解审核要求:</text>
<text class="guide-link" bindtap="openReviewGuide">审核指南</text>
</view>
<button class="btn btn-primary btn-audit" bindtap="resubmitApplication">重新提交备案</button>
</view>

25
pages/settlement/index.wxss

@ -1363,6 +1363,31 @@ picker {
margin-top: 32rpx;
}
/* 审核指南样式 */
.audit-guide {
margin: 32rpx 0;
text-align: center;
font-size: 26rpx;
color: #666;
}
.guide-text {
margin-right: 8rpx;
}
.guide-link {
color: #1890FF;
text-decoration: underline;
cursor: pointer;
padding: 8rpx 16rpx;
border-radius: 8rpx;
transition: background-color 0.2s ease;
}
.guide-link:active {
background-color: rgba(24, 144, 255, 0.1);
}
.protocol-header {
padding: 32rpx;

Loading…
Cancel
Save