From c6c73b7d709322052b9cd6777b3d6657e0d43d30 Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期六, 07 九月 2024 14:37:32 +0800 Subject: [PATCH] bug --- packageBookService/pages/bookServices/linkPage/index.js | 18 +++++++++++++++--- 1 files changed, 15 insertions(+), 3 deletions(-) diff --git a/packageBookService/pages/bookServices/linkPage/index.js b/packageBookService/pages/bookServices/linkPage/index.js index 7f35294..472c583 100644 --- a/packageBookService/pages/bookServices/linkPage/index.js +++ b/packageBookService/pages/bookServices/linkPage/index.js @@ -12,9 +12,21 @@ * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍔犺浇 */ onLoad(options) { - this.setData({ - path: options.path - }) + const flags = Object.keys(options).length + if (flags == 1) { + this.setData({ + path: options.path + }) + } else { + let path = options.path + '?' + for (let key in options) { + if (key != 'path') + path = path + key + '=' + options[key] + '&' + } + this.setData({ + path + }) + } }, /** -- Gitblit v1.9.1