From 0f9f58798cb5df9e99e60fed882b73224313915d Mon Sep 17 00:00:00 2001 From: litian <C21AF165> Date: 星期三, 08 一月 2025 16:24:38 +0800 Subject: [PATCH] shiti --- pages/home/home.js | 19 ++++++++++++++----- 1 files changed, 14 insertions(+), 5 deletions(-) diff --git a/pages/home/home.js b/pages/home/home.js index b48cb9a..a70fd1b 100644 --- a/pages/home/home.js +++ b/pages/home/home.js @@ -1,7 +1,6 @@ import { fetchHome } from '../../services/home/home'; -import moment from 'moment' import { loginInfo } from '../../assets/js/login'; @@ -77,6 +76,7 @@ } }) } + }, onReachBottom() {}, onPullDownRefresh() { @@ -114,6 +114,9 @@ path: 'jsek_banner\\jsek_homeBannerApplet', fields: { jsek_link: [] + }, + coverSize: { + width: 400 }, paging: { start: 0, @@ -645,10 +648,16 @@ success(res) { console.log(res); if (res.errMsg == "scanCode:ok" && res.path || res.result) { - let path = res.path || res.result - wx.redirectTo({ - url: '/' + path, - }) + if (res.path) { + let path = res.path || res.result + wx.redirectTo({ + url: '/' + path, + }) + } else { + wx.redirectTo({ + url: '/pages/scanResult/index?result=' + res.result, + }) + } } } }) -- Gitblit v1.9.1