张延森 před 3 roky
rodič
revize
d4d5753218

+ 2
- 2
config/dev.js Zobrazit soubor

@@ -3,8 +3,8 @@ module.exports = {
3 3
     NODE_ENV: '"development"'
4 4
   },
5 5
   defineConstants: {
6
-    HOST: '"http://81.69.196.8:8567"', //正式
7
-    WSS_HOST: '"http://81.69.196.8:8567"',
6
+    HOST: '"https://xlk.njyz.tech"', //正式
7
+    WSS_HOST: '"wss://xlk.njyz.tech"',
8 8
     OSS_PATH: '"https://zhiyun-image.oss-accelerate.aliyuncs.com/"',
9 9
     OSS_FAST_PATH: '"https://zhiyun-image.oss-accelerate.aliyuncs.com/"',
10 10
     Version: '"V3.5.29-20201112"'

+ 2
- 2
config/prod.js Zobrazit soubor

@@ -3,8 +3,8 @@ module.exports = {
3 3
     NODE_ENV: '"production"'
4 4
   },
5 5
   defineConstants: {
6
-    HOST: '"https://zcloud.njyunzhi.com"', //正式
7
-    WSS_HOST: '"wss://zcloud.njyunzhi.com"',
6
+    HOST: '"https://xlk.njyz.tech"', //正式
7
+    WSS_HOST: '"wss://xlk.njyz.tech"',
8 8
     OSS_PATH: '"https://zhiyun-image.oss-accelerate.aliyuncs.com/"',
9 9
     OSS_FAST_PATH: '"https://zhiyun-image.oss-accelerate.aliyuncs.com/"',
10 10
     Version: '"V3.5.29-20201112"'

+ 2
- 1
src/pages/index/components/LiveSale/index.jsx Zobrazit soubor

@@ -6,6 +6,7 @@ import Taro from '@tarojs/taro'
6 6
 import emptyImg from '@/assets/empty.png'
7 7
 import { useSelector } from 'react-redux'
8 8
 import { fetch } from '@/utils/request'
9
+import { getImgURL } from '@/utils/image'
9 10
 import { API_LIVE_DEATIL } from '@/constants/api'
10 11
 
11 12
 export default function LiveSale (props) {
@@ -48,7 +49,7 @@ export default function LiveSale (props) {
48 49
             {
49 50
               PageList.map((item, index) => (
50 51
                 <view className='ListItem' key={`List-${index}`} style={{display: CurrentId === 1 || (CurrentId === 2 && item.kind === 'notice') || (CurrentId === 3 && item.kind === 'live')  || (CurrentId === 4 && item.kind !== 'notice') ? 'inline-block' : 'none'}}>
51
-                  <Image mode='aspectFill' className='centerLabel' src={`http://81.69.196.8:8567${item.images}`} />
52
+                  <Image mode='aspectFill' className='centerLabel' src={`${getImgURL(item.images)}`} />
52 53
                 </view>
53 54
               ))
54 55
             }