李志伟 3 年 前
コミット
6536b3ebf4

+ 2
- 2
src/components/CollectList/MyCollect/index.jsx ファイルの表示

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

+ 1
- 0
src/components/CollectList/MyCollect/style.less ファイルの表示

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

+ 1
- 1
src/components/CouponCard/Media/Body.jsx ファイルの表示

@@ -14,7 +14,7 @@ export default (props) => {
14 14
         star == 'ss' ? <Star score={5} style={{ marginTop: '26rpx', opacity: '0' }} /> :
15 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 18
         {props.children}
19 19
       </View>
20 20
     </View>

+ 1
- 1
src/components/CouponCard/Media/Header.jsx ファイルの表示

@@ -19,7 +19,7 @@ export default (props) => {
19 19
   return (
20 20
     <View className='coupun-media_header'>
21 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 23
         <BadgeTag type={badge} />
24 24
         <View className='image' style={backStyle}></View>
25 25
       </View>

+ 4
- 0
src/components/CouponCard/Media/style.less ファイルの表示

@@ -35,6 +35,10 @@
35 35
 
36 36
     &_ctt {
37 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
 }