wzz 3 年之前
父节点
当前提交
2f18d3177f
共有 2 个文件被更改,包括 6 次插入2 次删除
  1. 1 1
      pages/metrics/importantPage/index.vue
  2. 5 1
      uni_modules/qiun-data-charts/js_sdk/u-charts/u-charts.js

+ 1 - 1
pages/metrics/importantPage/index.vue

@@ -13,7 +13,7 @@
 			:class="{ borderBottom: idx == projectData.length - 1 }" @click="enterProjectDeatil(item.id,dateYear,dateMonth)">
 				<view class="display-between items-center pos-class">
 					<view style="font-size: 30rpx;">{{item.name}}</view>
-					<image v-if="item.importent === '1'" src="/static/important_icon.png" mode="aspectFit" style="width:80rpx;height: 80rpx;"></image>
+					<!-- <image v-if="item.importent === '1'" src="/static/important_icon.png" mode="aspectFit" style="width:80rpx;height: 80rpx;"></image> -->
 				</view>
 				<view class="display-flex-start pos-class">
 					<view class="left-title">业主名称</view>

+ 5 - 1
uni_modules/qiun-data-charts/js_sdk/u-charts/u-charts.js

@@ -2120,7 +2120,11 @@ function drawBarPointText(points, series, config, context, opts) {
       }
       var formatVal = series.formatter ? series.formatter(value,index,opts,series) : value;
       context.setTextAlign('left');
-      context.fillText(String(formatVal), item.x - 70 * opts.pix , item.y + fontSize / 2 - 3 );
+	  if(opts.xAxis.labelCount === 2){
+	   context.fillText(String(formatVal), item.x - 30 * opts.pix , item.y + fontSize / 2 - 3 ); 
+	  }else {
+		context.fillText(String(formatVal), item.x - 70 * opts.pix , item.y + fontSize / 2 - 3 );  
+	  }
       context.closePath();
       context.stroke();
     }