diff --git a/pages/settlement/index.js b/pages/settlement/index.js index 5aba878..320117f 100644 --- a/pages/settlement/index.js +++ b/pages/settlement/index.js @@ -54,6 +54,20 @@ Page({ onLoad(options) { console.log('settlement页面加载,options:', options); + // 检查是否是分享链接,需要显示引导页 + if (options.showGuide) { + console.log('检测到showGuide参数,显示引导页'); + // 清除保存的进度,确保显示引导页 + this.clearSettlementProgress(); + // 重置页面状态到初始状态 + this.setData({ + showGuidePage: true, + currentStep: 0, + partnerstatus: '' + }); + return; // 直接返回,不执行后续逻辑 + } + // 检查是否有status参数,如果有则显示审核状态 if (options.status) { console.log('检测到status参数:', options.status); @@ -1477,8 +1491,8 @@ Page({ onShareAppMessage: function () { return { title: '合作入驻 - 又鸟蛋平台', - path: '/pages/settlement/index', - imageUrl: '' + path: '/pages/settlement/index?showGuide=1', + imageUrl: '/images/立即入驻7.jpg' }; }, @@ -1488,8 +1502,8 @@ Page({ onShareTimeline: function () { return { title: '合作入驻 - 又鸟蛋平台', - query: '', - imageUrl: '' + query: 'showGuide=1', + imageUrl: '/images/立即入驻7.jpg' }; } }); \ No newline at end of file