张延森 3 年之前
父節點
當前提交
9dc1d0d98b

+ 1
- 1
src/components/BossCard/index.jsx 查看文件

@@ -29,7 +29,7 @@ export default (props) => {
29 29
   const PayAction = <Action.Icon icon={Pay} text='支付' onClick={handlePayClick} />
30 30
 
31 31
   return (
32
-    <CouponCard action={PayAction}>
32
+    <CouponCard action={PayAction} style={{ marginTop: '40rpx', marginBottom: '60rpx' }}>
33 33
       <CouponMedia onClick={goFood}>
34 34
         <CouponMedia.Header
35 35
           cashback={item.cashback}

+ 2
- 2
src/components/CouponCard/Card/index.jsx 查看文件

@@ -5,10 +5,10 @@ import { View } from '@tarojs/components'
5 5
 import './style.less'
6 6
 
7 7
 export default (props) => {
8
-  const { action = null, onClick } = props
8
+  const { action = null, onClick, style, className } = props
9 9
 
10 10
   return (
11
-    <View className='coupon-card'>
11
+    <View className={`${className} coupon-card`} style={style}>
12 12
       <View className='coupon-card_body' onClick={onClick}>
13 13
         {props.children}
14 14
       </View>

+ 1
- 1
src/components/CouponCard/Card/style.less 查看文件

@@ -39,7 +39,7 @@
39 39
     background-repeat: no-repeat;
40 40
     
41 41
     // 避开孔位置, 方便子元素居中
42
-    padding-left: @radius-size * 2;
42
+    // padding-left: @radius-size * 2;
43 43
 
44 44
     &::before {
45 45
       position: absolute;