Ver código fonte

折线图优化

zjh 5 anos atrás
pai
commit
a0de69e612
2 arquivos alterados com 5 adições e 5 exclusões
  1. 4 4
      pages/item/item.js
  2. 1 1
      pages/item/item.wxml

+ 4 - 4
pages/item/item.js

@@ -557,9 +557,9 @@ Page({
           },
       
           grid: {//网格
-      
-            // left: 30,
-            // top:100,
+           top:"8%",
+            left: "0%",
+            right:"0%",
             containLabel: true,//grid 区域是否包含坐标轴的刻度标签
           },
       
@@ -626,7 +626,7 @@ Page({
           },
           {
             type: 'inside',
-            realtime: true,
+            realtime: true
         }
       
         ],

+ 1 - 1
pages/item/item.wxml

@@ -22,7 +22,7 @@
        <text class="map-line-blue"></text>
         <text class="map-line-bluename">预测</text>
   </view>    -->
-  <swiper current="{{currentTab}}" class="swiper-box" duration="300"  style="height:500rpx" bindchange="bindChange">
+  <swiper current="{{currentTab}}" class="swiper-box" duration="300"  style="height:700rpx" bindchange="bindChange">
 
     <swiper-item catchtouchmove='catchTouchMove'>
      <view style="width:100%;height:100%">