Просмотр исходного кода

Merge branch 'dev' of http://git.ycjcjy.com/shigongli/miniapp-v2 into dev

吃个甘蔗嚼一年 3 лет назад
Родитель
Сommit
97d6a16317

+ 2
- 2
src/components/CollectList/MyCollect/index.jsx Просмотреть файл

44
                   <View className='cpn-card-text'>
44
                   <View className='cpn-card-text'>
45
                     {(item.title).toString().length > 25 ? (item.title).substring(0, 25) + '...' : (item.title)}
45
                     {(item.title).toString().length > 25 ? (item.title).substring(0, 25) + '...' : (item.title)}
46
                   </View>
46
                   </View>
47
-                  <View className='cpn-card-text' style={{ marginTop: '10rpx' }}>
47
+                  <View className='cpn-card-text' style={{ lineHeight:'10px' }}>
48
                     <Text className='cpn-card-text_mn'>¥{`${(item.actualPrice / 100)?.toFixed(2)}元`}</Text>
48
                     <Text className='cpn-card-text_mn'>¥{`${(item.actualPrice / 100)?.toFixed(2)}元`}</Text>
49
                     <Text className='cpn-card-text_rm'>{`门市价${(item.standardPrice / 100)?.toFixed(2)}元`}</Text>
49
                     <Text className='cpn-card-text_rm'>{`门市价${(item.standardPrice / 100)?.toFixed(2)}元`}</Text>
50
                   </View>
50
                   </View>
70
                   <View className='cpn-card-text'>
70
                   <View className='cpn-card-text'>
71
                     {(item.title).toString().length > 25 ? (item.title).substring(0, 25) + '...' : (item.title)}
71
                     {(item.title).toString().length > 25 ? (item.title).substring(0, 25) + '...' : (item.title)}
72
                   </View>
72
                   </View>
73
-                  <View className='cpn-card-text' style={{ marginTop: '10rpx' }}>
73
+                  <View className='cpn-card-text' style={{ lineHeight:'10px' }}>
74
                     <Text className='cpn-card-text_mn'>¥{`${formatPrice(item.averagePrice)}元`}</Text>
74
                     <Text className='cpn-card-text_mn'>¥{`${formatPrice(item.averagePrice)}元`}</Text>
75
                   </View>
75
                   </View>
76
                   <View className='cpn-md-act'>
76
                   <View className='cpn-md-act'>

+ 1
- 0
src/components/CollectList/MyCollect/style.less Просмотреть файл

30
   .cpn-md-act {
30
   .cpn-md-act {
31
     display: flex;
31
     display: flex;
32
     margin-top: 10px;
32
     margin-top: 10px;
33
+    line-height: 20px;
33
     position: relative;
34
     position: relative;
34
     .wdscbaozan {
35
     .wdscbaozan {
35
       position: relative;
36
       position: relative;

+ 1
- 1
src/components/CouponCard/Media/Body.jsx Просмотреть файл

14
         star == 'ss' ? <Star score={5} style={{ marginTop: '26rpx', opacity: '0' }} /> :
14
         star == 'ss' ? <Star score={5} style={{ marginTop: '26rpx', opacity: '0' }} /> :
15
           enableStar ? <Star score={(star).toFixed(1)} style={{ marginTop: '26rpx' }} /> : null
15
           enableStar ? <Star score={(star).toFixed(1)} style={{ marginTop: '26rpx' }} /> : null
16
       }
16
       }
17
-      <View className='coupun-media_body_ctt'>
17
+      <View className='coupun-media_body_ctt' style={{marginTop:enableStar?'':'20px'}}>
18
         {props.children}
18
         {props.children}
19
       </View>
19
       </View>
20
     </View>
20
     </View>

+ 1
- 1
src/components/CouponCard/Media/Header.jsx Просмотреть файл

19
   return (
19
   return (
20
     <View className='coupun-media_header'>
20
     <View className='coupun-media_header'>
21
       {enableCashback && <Cashback money={cashback} style={{ marginTop: '-10px' }} />}
21
       {enableCashback && <Cashback money={cashback} style={{ marginTop: '-10px' }} />}
22
-      <View className='coupun-media_thumb'>
22
+      <View className='coupun-media_thumb' style={{marginTop:enableCashback?'':'20px'}}>
23
         <BadgeTag type={badge} />
23
         <BadgeTag type={badge} />
24
         <View className='image' style={backStyle}></View>
24
         <View className='image' style={backStyle}></View>
25
       </View>
25
       </View>

+ 4
- 0
src/components/CouponCard/Media/style.less Просмотреть файл

35
 
35
 
36
     &_ctt {
36
     &_ctt {
37
       margin-top: 20px;
37
       margin-top: 20px;
38
+      display: flex;
39
+      flex-direction: column;
40
+      justify-content: space-around;
41
+      height: 144px;
38
     }
42
     }
39
   }
43
   }
40
 }
44
 }