Browse Source

feat: 修改点击进入场景和按钮北京

huangzhichao 1 year ago
parent
commit
71b47fc1f6
2 changed files with 7 additions and 8 deletions
  1. 5 6
      src/plugin/components/custom/index.less
  2. 2 2
      src/plugin/components/custom/index.tsx

+ 5 - 6
src/plugin/components/custom/index.less

@@ -74,21 +74,20 @@
 
         .title {
           flex: 1;
-          padding: 0 12rpx;
+          padding: 0 12px;
           overflow: hidden;
           white-space: nowrap;
           text-overflow:ellipsis;
         }
 
         .button {
-          padding: 0 10rpx;
-          height: 66rpx;
-          background: #00C25D;
-          border-radius: 12rpx;
+          padding: 0 20px;
+          height: 66px;
+          border-radius: 12px;
           font-weight: 500;
           color: #FFFFFF;
           text-align: center;
-          line-height: 66rpx;
+          line-height: 66px;
           overflow: hidden;
           white-space: nowrap;
           text-overflow:ellipsis;

+ 2 - 2
src/plugin/components/custom/index.tsx

@@ -273,10 +273,10 @@ function Custom({
         onClick={onClick}
         onLoadedMetaData={onLoadedMetaData}
       />
-      <View className='custom-bottom' style={{width: `${width}px`}}>
+      <View className='custom-bottom' style={{width: `${width}px`}} onClick={onClick}>
         <Image src={adData.creativeLogoAddress} className='logo' />
         <View className='title'>{adData.creativeTitle}</View>
-        <View className='button'>{adData.clickButtonText}</View>
+        <View className='button' style={{background: `${adData.clickButtonColor}`}}>{adData.clickButtonText}</View>
       </View>
     </View>
   )