diff --git a/root/detail/apply.vue b/root/detail/apply.vue index 7e1f89a..007aee9 100644 --- a/root/detail/apply.vue +++ b/root/detail/apply.vue @@ -474,9 +474,21 @@ export default { }; }, onLoad(options) { - this.oid = options.id; - this.relationId = options.relationId; - this.type = options.type; + console.log('工单详情页:',options) + + if (options.scene) { + let _str = decodeURIComponent(options.scene); + console.log('邀请 codeRes 1',_str) + let codeRes = _str.split("="); + console.log('邀请 codeRes 2',codeRes) + this.oid = codeRes[1].split('_')[1]; + this.relationId = codeRes[1].split('_')[0]; + this.type = 1; + } else { + this.oid = options.id; + this.relationId = options.relationId; + this.type = options.type; + } }, onShow() { let that = this;