zhoulisen 5 vuotta sitten
vanhempi
commit
81f4ea0443
2 muutettua tiedostoa jossa 10 lisäystä ja 9 poistoa
  1. 5
    5
      config/dev.js
  2. 5
    4
      src/pages/project/newsbanner/index.js

+ 5
- 5
config/dev.js Näytä tiedosto

3
     NODE_ENV: '"development"'
3
     NODE_ENV: '"development"'
4
   },
4
   },
5
   defineConstants: {
5
   defineConstants: {
6
-    HOST: '"https://dev.fangdeal.cn"',//测试
7
-    WSS_HOST: '"wss://dev.fangdeal.cn"',
8
-    // HOST: '"http://192.168.2.42:8080"',
9
-    // WSS_HOST: '"ws://192.168.2.42:8080"',
6
+    // HOST: '"https://dev.fangdeal.cn"',//测试
7
+    // WSS_HOST: '"wss://dev.fangdeal.cn"',
8
+    HOST: '"http://192.168.2.43:8080"',
9
+    WSS_HOST: '"ws://192.168.2.43:8080"',
10
     OSS_PATH: 'https://njcj.oss-cn-shanghai.aliyuncs.com/',
10
     OSS_PATH: 'https://njcj.oss-cn-shanghai.aliyuncs.com/',
11
     OSS_FAST_PATH: 'https://njcj.oss-accelerate.aliyuncs.com/',
11
     OSS_FAST_PATH: 'https://njcj.oss-accelerate.aliyuncs.com/',
12
-    Version: 'V3.5.24'
12
+    Version: 'V3.5.21'
13
   },
13
   },
14
   weapp: {},
14
   weapp: {},
15
   h5: {}
15
   h5: {}

+ 5
- 4
src/pages/project/newsbanner/index.js Näytä tiedosto

4
 import dayjs from 'dayjs'
4
 import dayjs from 'dayjs'
5
 import { connect } from '@tarojs/redux'
5
 import { connect } from '@tarojs/redux'
6
 
6
 
7
-@connect(state => ({...state.city, ...state.user }))
7
+@connect(state => ({ ...state.city, ...state.user }))
8
 export default class SwiperBanner extends Component {
8
 export default class SwiperBanner extends Component {
9
   static options = {
9
   static options = {
10
     addGlobalClass: true,
10
     addGlobalClass: true,
49
   render() {
49
   render() {
50
     if (!this.state.list.length) return null;
50
     if (!this.state.list.length) return null;
51
     const { newImg } = this.props
51
     const { newImg } = this.props
52
+    console.log(newImg,'newImg')
52
     return (
53
     return (
53
       <View className="notice-box" >
54
       <View className="notice-box" >
54
         <View style="display: flex;align-items: center;">
55
         <View style="display: flex;align-items: center;">
55
           <View className="left-text">
56
           <View className="left-text">
56
-          <Image  style="width:76rpx ; height:76rpx" src={newImg} ></Image>
57
-            {/* <View className="up"> 地产</View >
58
-            <View className="down"> 头条</View > */}
57
+            {newImg  && <Image style="width:76rpx ; height:76rpx" src={newImg} >{console.log(newImg,'newImg')}</Image>}
58
+            {!newImg  && <View><View className="up"> 地产</View >
59
+              <View className="down"> 头条</View ></View >}
59
           </View >
60
           </View >
60
           <Swiper
61
           <Swiper
61
             className='notice-swiper'
62
             className='notice-swiper'