xcx 4 lat temu
rodzic
commit
b335ec2124
2 zmienionych plików z 2 dodań i 1 usunięć
  1. 1
    1
      src/pages/index/index.js
  2. 1
    0
      src/utils/tools.js

+ 1
- 1
src/pages/index/index.js Wyświetl plik

@@ -458,7 +458,7 @@ export default class Index extends Component {
458 458
           <View className='ActivityRecommed'>
459 459
             <Text className='Title'>热门活动推荐</Text>
460 460
             <View>
461
-              <Image mode='widthFix' className='centerLabel' src={transferImage(helpGroupList[0] || 'https://njcj.oss-cn-shanghai.aliyuncs.com/miniapp/upload/images/1574145199853-97feda7895c65be33aa234a7b81b37f.jpg')} onClick={this.handleItemClick.bind(this, item)} />
461
+              <Image mode='widthFix' className='centerLabel' src={transferImage(helpGroupList[0].bannerListImg)} onClick={this.handleItemClick.bind(this, item)} />
462 462
             </View>
463 463
           </View>
464 464
         }

+ 1
- 0
src/utils/tools.js Wyświetl plik

@@ -132,6 +132,7 @@ export function resizeImage(img, size) {
132 132
  * @param {*} img
133 133
  */
134 134
 export function transferImage(img) {
135
+  console.log(img, `------------------------------img`)
135 136
   if (!img) return img;
136 137
 
137 138
   if (img.indexOf(ossPath) === 0 || img.indexOf(ossFastPath) === 0) {