From 63e49f648d64e62a5c0668a48072c73ed6217290 Mon Sep 17 00:00:00 2001 From: litian <C21AF165> Date: 星期三, 04 十二月 2024 09:45:26 +0800 Subject: [PATCH] saoma --- 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..4cee2d9 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/index/scanResult/index?result=' + res.result, + }) + } } } }) -- Gitblit v1.9.1