Browse Source

静态页面

xcx 4 years ago
parent
commit
b335ec2124
2 changed files with 2 additions and 1 deletions
  1. 1
    1
      src/pages/index/index.js
  2. 1
    0
      src/utils/tools.js

+ 1
- 1
src/pages/index/index.js View File

458
           <View className='ActivityRecommed'>
458
           <View className='ActivityRecommed'>
459
             <Text className='Title'>热门活动推荐</Text>
459
             <Text className='Title'>热门活动推荐</Text>
460
             <View>
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
             </View>
462
             </View>
463
           </View>
463
           </View>
464
         }
464
         }

+ 1
- 0
src/utils/tools.js View File

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