| | |
| | | import { |
| | | fetchHome |
| | | } from '../../services/home/home'; |
| | | import moment from 'moment' |
| | | import { |
| | | loginInfo |
| | | } from '../../assets/js/login'; |
| | |
| | | path: 'jsek_banner\\jsek_homeBannerApplet', |
| | | fields: { |
| | | jsek_link: [] |
| | | }, |
| | | coverSize: { |
| | | width: 400 |
| | | }, |
| | | paging: { |
| | | start: 0, |
| | |
| | | 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, |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | }) |