diff --git a/src/pages/sreachReq/index.vue b/src/pages/sreachReq/index.vue index 090d365..4cbdf02 100644 --- a/src/pages/sreachReq/index.vue +++ b/src/pages/sreachReq/index.vue @@ -197,6 +197,7 @@ const handleSwiperJump = (item: any) => { userParams.value.userType + "&type=" + item.type; + console.log("🚀 ~ handleSwiperJump ~ shareUrl:", shareUrl); wx.miniProgram.navigateTo({ url: "/pages/webView/index?url=" + encodeURIComponent(shareUrl), success: (res) => { @@ -214,7 +215,7 @@ const handleChange = (val: string) => { inputValue.value = ""; } }; - +const userParams = ref({}); const keyWord = ref(); onLoad((e) => { if (e?.keyWord) { @@ -224,17 +225,16 @@ onLoad((e) => { screenList.value = []; // articleList.value.push(...searchList); handleChange(keyWord.value); -}); -const userParams = ref({}); -const onload = (option) => { - page.value++; - getData(); - - userParams.value = option; + userParams.value = e; if (userParams.value.phone) { uni.setStorageSync("token", userParams.value.phone); } +}); + +const onload = (option) => { + page.value++; + getData(); }; const getData = async () => {