Ver código fonte

分享按钮样式,分享图片设置左对齐

sophieChenyx 6 anos atrás
pai
commit
4dd273f970
4 arquivos alterados com 12 adições e 5 exclusões
  1. 2 1
      .idea/workspace.xml
  2. 1 1
      compontents/chat/chat.wxml
  3. 9 3
      compontents/chat/chat.wxss
  4. BIN
      pages/.DS_Store

+ 2 - 1
.idea/workspace.xml

@@ -3,7 +3,8 @@
   <component name="ChangeListManager">
     <list default="true" id="4f17d6f9-a5b0-4bb4-9071-d9334baf6515" name="Default" comment="">
       <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/pages/index/index.wxml" beforeDir="false" afterPath="$PROJECT_DIR$/pages/index/index.wxml" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/compontents/chat/chat.wxml" beforeDir="false" afterPath="$PROJECT_DIR$/compontents/chat/chat.wxml" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/compontents/chat/chat.wxss" beforeDir="false" afterPath="$PROJECT_DIR$/compontents/chat/chat.wxss" afterDir="false" />
     </list>
     <ignored path="$PROJECT_DIR$/.tmp/" />
     <ignored path="$PROJECT_DIR$/temp/" />

+ 1 - 1
compontents/chat/chat.wxml

@@ -21,7 +21,7 @@
                 </view>
                 <view class="picture" wx:if="{{type == 2}}">
                     <block wx:for="{{item.imagesList}}" wx:for-item="items" wx:key="{{items.id}}">
-                        <image src="{{items.path}}" catchtap="listenerButtonPreviewImage" data-img="{{items.path}}"></image>
+                        <image mode="aspectFill" src="{{items.path}}" catchtap="listenerButtonPreviewImage" data-img="{{items.path}}"></image>
                     </block>
                 </view>
                 <view class="icon" wx:if="{{type == 2}}">

+ 9 - 3
compontents/chat/chat.wxss

@@ -39,6 +39,13 @@
     right: 0;
     top: 10rpx;
     font-size: 24rpx;
+    color: #fff;
+    background-color: #95D4E6;
+    line-height: 40rpx;
+    border-radius: 40rpx;
+    display: block;
+    height: 40rpx;
+    padding: 0rpx 20rpx;
 }
 
 .share-con,
@@ -86,8 +93,7 @@
 }
 
 .picture {
-    display: flex;
-    justify-content: center; 
+    display: flex; 
     height:176rpx;   
     margin: 24rpx 112rpx 17rpx 103rpx;
 }
@@ -95,7 +101,7 @@
 .picture image {
      width: 236rpx;
      height: 176rpx;
-     border-radius: 15rpx;
+     border-radius: 5rpx;
  }
 
 .picture image:nth-child(2) {

BIN
pages/.DS_Store