浏览代码

更改滑动问题

Limengbo 6 年之前
父节点
当前提交
dda9ffbc52
共有 7 个文件被更改,包括 13 次插入8 次删除
  1. 2 0
      app.wxss
  2. 6 1
      compontents/chat/chat.wxml
  3. 1 3
      compontents/chat/chat.wxss
  4. 2 2
      pages/art/art.wxss
  5. 二进制
      pages/image/zhiding1.png
  6. 二进制
      pages/image/zhiding2.png
  7. 2 2
      pages/science/science.wxss

+ 2 - 0
app.wxss

@@ -12,7 +12,9 @@ page {
 }
 
 .content {
+  width: 100%;
   height:100%;
+  overflow: hidden;
 }
 
 .content scroll-view{

+ 6 - 1
compontents/chat/chat.wxml

@@ -19,7 +19,12 @@
                         <text>{{timeList[index]}}</text>
                     </view>
                     <view wx:if="{{type == 1 && (item.currentReplyCount > 0)}}" class="message"></view>
-                    <view wx:if="{{item.isTop > 0}}" class="Stick">置顶</view>
+                    <view wx:if="{{item.isTop > 0}}" class="Stick">
+                        <image style="width: 56rpx; height: 56rpx;" src="../../pages/image/zhiding1.png"></image>
+                    </view>
+                    <view wx:else class="Stick">
+                        <image style="width: 56rpx; height: 56rpx;" src="../../pages/image/zhiding2.png"></image>
+                    </view>
                 </view>
                 <view class="operation" wx:if="{{teacher == 1}}">
                     <image src="../../pages/image/del.png" catchtap="setMessage" data-id="{{item.id}}" data-type="status" data-ind="{{index}}"></image>

+ 1 - 3
compontents/chat/chat.wxss

@@ -139,9 +139,7 @@
 .Stick {
     position: absolute;
     right:136px;
-    top:32rpx;
-    font-size: 32rpx;
-    color: skyblue;
+    top:20rpx;
 } 
 
 .icon {

+ 2 - 2
pages/art/art.wxss

@@ -310,8 +310,8 @@
 /*canvas样式*/
 .canvas-box {
     position: absolute;
-    left: 9999px;
-    top: 0;
+    left: -9999px;
+    top: -9999px;
     width: 100%;
     z-index: -2;
 }

二进制
pages/image/zhiding1.png


二进制
pages/image/zhiding2.png


+ 2 - 2
pages/science/science.wxss

@@ -310,8 +310,8 @@
 
 .canvas-box {
     position: absolute;
-    left: 9999px;
-    top: 0;
+    left: -9999px;
+    top: -9999px;
     width: 100%;
     z-index: -2;
 }