张延森 3 jaren geleden
bovenliggende
commit
137c48716a
3 gewijzigde bestanden met toevoegingen van 3 en 5 verwijderingen
  1. 2
    4
      config/prod.js
  2. 0
    1
      src/pages/index/index.jsx
  3. 1
    0
      src/utils/request.js

+ 2
- 4
config/prod.js Bestand weergeven

3
     NODE_ENV: '"production"'
3
     NODE_ENV: '"production"'
4
   },
4
   },
5
   defineConstants: {
5
   defineConstants: {
6
-    HOST: '"https://gyhcapi.gnxdyrmyy.com"',
7
-    OSS: '""',
6
+    HOST: '"https://gyhcapi.gnxdyrmyy.com"'
7
+    // OSS: '""'
8
     // VERSION: '"2.0.33"',
8
     // VERSION: '"2.0.33"',
9
   },
9
   },
10
-  defineConstants: {
11
-  },
12
   mini: {},
10
   mini: {},
13
   h5: {
11
   h5: {
14
     /**
12
     /**

+ 0
- 1
src/pages/index/index.jsx Bestand weergeven

15
   const [barCode, setBarCode] = useState()
15
   const [barCode, setBarCode] = useState()
16
   const today = useMemo(() => dayjs().format('YYYY-MM-DD'))
16
   const today = useMemo(() => dayjs().format('YYYY-MM-DD'))
17
   const goUserInfo = () => {
17
   const goUserInfo = () => {
18
-    console.log('--------goUserInfo------>')
19
     Taro.redirectTo({
18
     Taro.redirectTo({
20
       url: '/pages/setUserInfo/index'
19
       url: '/pages/setUserInfo/index'
21
     })
20
     })

+ 1
- 0
src/utils/request.js Bestand weergeven

13
   }
13
   }
14
 
14
 
15
   const urlWithParams = queryStr ? `${url}?${queryStr}` : url;
15
   const urlWithParams = queryStr ? `${url}?${queryStr}` : url;
16
+  // eslint-disable-next-line no-undef
16
   const nwUrl = `${HOST}/api/wx/${appid}${urlWithParams}`
17
   const nwUrl = `${HOST}/api/wx/${appid}${urlWithParams}`
17
 
18
 
18
   const authToken = Taro.getStorageSync('token')
19
   const authToken = Taro.getStorageSync('token')