hqchart 1.1.13771 → 1.1.13776
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/umychart.NetworkFilterTest.vue.js +3 -2
- package/lib/umychart.vue.js +18 -42
- package/package.json +1 -1
- package/src/jscommon/umychart.NetworkFilterTest.js +33 -1
- package/src/jscommon/umychart.js +147 -260
- package/src/jscommon/umychart.testdata.js +33 -1
- package/src/jscommon/umychart.uniapp.h5/umychart.uniapp.h5.js +148 -261
- package/src/jscommon/umychart.version.js +1 -1
- package/src/jscommon/umychart.vue/umychart.NetworkFilterTest.vue.js +33 -1
- package/src/jscommon/umychart.vue/umychart.vue.js +148 -261
|
@@ -6749,6 +6749,8 @@ var JSCHART_MENU_ID=
|
|
|
6749
6749
|
CMD_SHOW_CORSS_LINE_ID:39, //显示十字光标线
|
|
6750
6750
|
CMD_ENABLE_POP_MINUTE_CHART_ID:40, //双击弹分时图
|
|
6751
6751
|
|
|
6752
|
+
CMD_CHANGE_INFO_POSITION_ID:41, //修改信息地雷位置
|
|
6753
|
+
|
|
6752
6754
|
|
|
6753
6755
|
CMD_REPORT_CHANGE_BLOCK_ID:60, //报价列表 切换板块ID
|
|
6754
6756
|
CMD_REPORT_COLUMN_SORT_ID:61, //报价列表 表头排序 Arg[列序号, 排序方向]
|
|
@@ -13576,6 +13578,13 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
13576
13578
|
}
|
|
13577
13579
|
}
|
|
13578
13580
|
break;
|
|
13581
|
+
case JSCHART_MENU_ID.CMD_CHANGE_INFO_POSITION_ID:
|
|
13582
|
+
if (param==null) return false;
|
|
13583
|
+
var klineChart=this.ChartPaint[0];
|
|
13584
|
+
if (!klineChart) return false;
|
|
13585
|
+
klineChart.InfoPosition=param;
|
|
13586
|
+
this.Draw();
|
|
13587
|
+
break;
|
|
13579
13588
|
}
|
|
13580
13589
|
}
|
|
13581
13590
|
|
|
@@ -13986,6 +13995,9 @@ function CoordinateInfo()
|
|
|
13986
13995
|
//百分比 { PriceColor:, PercentageColor:, SplitColor:, Font: }
|
|
13987
13996
|
//自定义刻度 { Custom:{ Position: 1=强制内部 }}
|
|
13988
13997
|
this.AreaData; //区域: { Start:, End:, BGColor:, Position:[0=左, 1=右] }
|
|
13998
|
+
|
|
13999
|
+
//不在当前屏范围
|
|
14000
|
+
//this.OutRange={ BGColor:"", TextColor:, BorderColor: TopYOffset:, BottomYOffset: }
|
|
13989
14001
|
}
|
|
13990
14002
|
|
|
13991
14003
|
|
|
@@ -16170,11 +16182,117 @@ function AverageWidthFrame()
|
|
|
16170
16182
|
return { MaxWidth:width, Text:aryText };
|
|
16171
16183
|
}
|
|
16172
16184
|
|
|
16185
|
+
this.DrawOutRangeCustomItem=function(item, mapTextRect)
|
|
16186
|
+
{
|
|
16187
|
+
if (this.IsHScreen===true) return;
|
|
16188
|
+
if (!this.IsShow && !this.IsYDrawMainFrame) return;
|
|
16189
|
+
if (!item.Message[1] && !item.Message[0]) return;
|
|
16190
|
+
if (!item.OutRange) return;
|
|
16191
|
+
var position=0; //1=top 2=bottom
|
|
16192
|
+
if (item.Value>this.HorizontalMax) position=1;
|
|
16193
|
+
else if (item.Value<this.HorizontalMin) position=2;
|
|
16194
|
+
else return;
|
|
16195
|
+
|
|
16196
|
+
this.Canvas.save();
|
|
16197
|
+
var outRange=item.OutRange;
|
|
16198
|
+
var border=this.GetBorder();
|
|
16199
|
+
var left=border.Left;
|
|
16200
|
+
var right=border.Right;
|
|
16201
|
+
var bottom=border.Bottom;
|
|
16202
|
+
var top=border.Top;
|
|
16203
|
+
var borderRight = this.ChartBorder.Right;
|
|
16204
|
+
var borderLeft = this.ChartBorder.Left;
|
|
16205
|
+
var titleHeight = this.ChartBorder.TitleHeight;
|
|
16206
|
+
|
|
16207
|
+
if (this.IsHScreen)
|
|
16208
|
+
{
|
|
16209
|
+
borderLeft=this.ChartBorder.Top;
|
|
16210
|
+
borderRight=this.ChartBorder.Bottom;
|
|
16211
|
+
top=border.Top;
|
|
16212
|
+
bottom=border.Bottom;
|
|
16213
|
+
}
|
|
16214
|
+
|
|
16215
|
+
var pixelTatio = GetDevicePixelRatio();
|
|
16216
|
+
var defaultTextHeight=18*pixelTatio;
|
|
16217
|
+
var textHeight=defaultTextHeight;
|
|
16218
|
+
|
|
16219
|
+
if (item.Message[0] && borderLeft>=10)
|
|
16220
|
+
{
|
|
16221
|
+
|
|
16222
|
+
}
|
|
16223
|
+
else if (item.Message[1] && borderRight>=10)
|
|
16224
|
+
{
|
|
16225
|
+
if (item.Font != null) this.Canvas.font = item.Font;
|
|
16226
|
+
var textInfo=this.GetCustomItemTextInfo(item,false,pixelTatio);
|
|
16227
|
+
var textWidth=textInfo.MaxWidth;
|
|
16228
|
+
var itemRight=right+textWidth;
|
|
16229
|
+
var fontHeight=this.GetFontHeight();
|
|
16230
|
+
var textHeight=fontHeight>defaultTextHeight? fontHeight:defaultTextHeight;
|
|
16231
|
+
this.Canvas.textAlign = "left";
|
|
16232
|
+
this.Canvas.textBaseline = "middle";
|
|
16233
|
+
|
|
16234
|
+
var yText=null;
|
|
16235
|
+
if (position==1)
|
|
16236
|
+
{
|
|
16237
|
+
yText=border.TopEx;
|
|
16238
|
+
if (IFrameSplitOperator.IsNumber(outRange.TopYOffset)) yText+=outRange.TopYOffset;
|
|
16239
|
+
}
|
|
16240
|
+
else if (position==2)
|
|
16241
|
+
{
|
|
16242
|
+
yText=border.BottomEx+textHeight;
|
|
16243
|
+
if (IFrameSplitOperator.IsNumber(outRange.BottomYOffset)) yText+=outRange.BottomYOffset;
|
|
16244
|
+
}
|
|
16245
|
+
|
|
16246
|
+
for(var i=0;i<textInfo.Text.length;++i)
|
|
16247
|
+
{
|
|
16248
|
+
var itemText=textInfo.Text[i];
|
|
16249
|
+
var rtBG={ Right:itemRight, Width:itemText.Width, Bottom:yText, Height:textHeight };
|
|
16250
|
+
rtBG.Top=rtBG.Bottom-rtBG.Height;
|
|
16251
|
+
rtBG.Left=rtBG.Right-rtBG.Width;
|
|
16252
|
+
|
|
16253
|
+
if (item.ExtendLine && item.ExtendLine[1]) //右侧延长线
|
|
16254
|
+
{
|
|
16255
|
+
var exLine=item.ExtendLine[1];
|
|
16256
|
+
if (IFrameSplitOperator.IsNumber(exLine.Width))
|
|
16257
|
+
{
|
|
16258
|
+
var yLine=rtBG.Bottom;
|
|
16259
|
+
if (position==2) yLine=rtBG.Top;
|
|
16260
|
+
var lineType=item.LineType;
|
|
16261
|
+
if (IFrameSplitOperator.IsNumber(outRange.ExtendLine.Type)) lineType=outRange.ExtendLine.Type;
|
|
16262
|
+
if (i==0) this.DrawLine(right,right+exLine.Width,yLine,item.LineColor,lineType,item);
|
|
16263
|
+
|
|
16264
|
+
rtBG.Left+=exLine.Width;
|
|
16265
|
+
rtBG.Right+=exLine.Width;
|
|
16266
|
+
}
|
|
16267
|
+
}
|
|
16268
|
+
|
|
16269
|
+
this.Canvas.fillStyle=outRange.BGColor;
|
|
16270
|
+
this.Canvas.fillRect(rtBG.Left,rtBG.Top,rtBG.Width,rtBG.Height);
|
|
16271
|
+
if (outRange.Border && outRange.Border.Color)
|
|
16272
|
+
{
|
|
16273
|
+
if (IFrameSplitOperator.IsNonEmptyArray(outRange.Border.LineDash))
|
|
16274
|
+
this.Canvas.setLineDash(outRange.Border.LineDash); //虚线
|
|
16275
|
+
|
|
16276
|
+
this.Canvas.strokeStyle = outRange.Border.Color;
|
|
16277
|
+
this.Canvas.strokeRect(ToFixedPoint(rtBG.Left), ToFixedPoint(rtBG.Top), ToFixedRect(rtBG.Width), ToFixedRect(rtBG.Height));
|
|
16278
|
+
}
|
|
16279
|
+
|
|
16280
|
+
this.Canvas.fillStyle = outRange.TextColor;
|
|
16281
|
+
this.Canvas.fillText(itemText.Text, rtBG.Left + 1*pixelTatio, rtBG.Top+rtBG.Height/2+1*pixelTatio);
|
|
16282
|
+
|
|
16283
|
+
yText+=textHeight+1;
|
|
16284
|
+
}
|
|
16285
|
+
}
|
|
16286
|
+
|
|
16287
|
+
this.Canvas.restore();
|
|
16288
|
+
}
|
|
16289
|
+
|
|
16173
16290
|
this.DrawCustomItem=function(item, mapTextRect) //显示自定义Y刻度
|
|
16174
16291
|
{
|
|
16175
16292
|
if (!item.Message[1] && !item.Message[0]) return;
|
|
16176
16293
|
if (item.Value>this.HorizontalMax || item.Value<this.HorizontalMin)
|
|
16177
16294
|
{
|
|
16295
|
+
this.DrawOutRangeCustomItem(item, mapTextRect);
|
|
16178
16296
|
this.SendDrawCountDownEvent( { IsShow:false } );
|
|
16179
16297
|
return;
|
|
16180
16298
|
}
|
|
@@ -21027,6 +21145,7 @@ function OverlayKLineFrame()
|
|
|
21027
21145
|
if (!item.Message[1] && !item.Message[0]) return;
|
|
21028
21146
|
if (item.Value>this.HorizontalMax || item.Value<this.HorizontalMin)
|
|
21029
21147
|
{
|
|
21148
|
+
//this.DrawOutRangeCustomItem(item, mapTextRect);
|
|
21030
21149
|
this.SendDrawCountDownEvent( { IsShow:false } );
|
|
21031
21150
|
return;
|
|
21032
21151
|
}
|
|
@@ -80585,6 +80704,7 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
|
|
|
80585
80704
|
var klineType=klineChart.DrawType;
|
|
80586
80705
|
var bThinAKBar=klineChart.IsThinAKBar;
|
|
80587
80706
|
var priceGap=klineChart.PriceGap; //缺口配置信息
|
|
80707
|
+
var infoPosition=klineChart.InfoPosition;
|
|
80588
80708
|
var coordinateType=null, yCoordinateType=null; //坐标类型
|
|
80589
80709
|
var mainFrame=null;
|
|
80590
80710
|
if (this.Frame.SubFrame[0] && this.Frame.SubFrame[0].Frame) mainFrame=this.Frame.SubFrame[0].Frame;
|
|
@@ -80694,6 +80814,16 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
|
|
|
80694
80814
|
{ Name:"大宗交易", Data:{ ID: JSCHART_MENU_ID.CMD_CHANGE_KLINE_INFO_ID, Args:["大宗交易", !aryKLineInfo.includes("BlockTrading")]}, Checked:aryKLineInfo.includes("BlockTrading") },
|
|
80695
80815
|
{ Name:"龙虎榜", Data:{ ID: JSCHART_MENU_ID.CMD_CHANGE_KLINE_INFO_ID, Args:["龙虎榜", !aryKLineInfo.includes("TradeDetail")]}, Checked:aryKLineInfo.includes("TradeDetail") },
|
|
80696
80816
|
{ Name:"互动易", Data:{ ID: JSCHART_MENU_ID.CMD_CHANGE_KLINE_INFO_ID, Args:["互动易", !aryKLineInfo.includes("InvestorInfo")]}, Checked:aryKLineInfo.includes("InvestorInfo") },
|
|
80817
|
+
{ Name:JSPopMenu.SEPARATOR_LINE_NAME },
|
|
80818
|
+
{
|
|
80819
|
+
Name:"显示位置",
|
|
80820
|
+
SubMenu:
|
|
80821
|
+
[
|
|
80822
|
+
{ Name:"底部", Data:{ ID: JSCHART_MENU_ID.CMD_CHANGE_INFO_POSITION_ID, Args:[1]}, Checked:infoPosition===1 },
|
|
80823
|
+
{ Name:"K线上", Data:{ ID: JSCHART_MENU_ID.CMD_CHANGE_INFO_POSITION_ID, Args:[0]}, Checked:infoPosition===0 },
|
|
80824
|
+
]
|
|
80825
|
+
},
|
|
80826
|
+
|
|
80697
80827
|
]
|
|
80698
80828
|
},
|
|
80699
80829
|
{
|
|
@@ -92341,56 +92471,29 @@ function PforecastInfo()
|
|
|
92341
92471
|
|
|
92342
92472
|
if (this.NetworkFilter(hqChart, obj)) return; //已被上层替换,不调用默认的网络请求
|
|
92343
92473
|
|
|
92344
|
-
|
|
92345
|
-
JSNetwork.HttpRequest({
|
|
92346
|
-
url: url,
|
|
92347
|
-
data:
|
|
92348
|
-
{
|
|
92349
|
-
"field": ["pforecast.type","pforecast.reportdate","fweek"],
|
|
92350
|
-
"condition":
|
|
92351
|
-
[
|
|
92352
|
-
{"item":["pforecast.reportdate","int32","gte",this.StartDate]}
|
|
92353
|
-
],
|
|
92354
|
-
"symbol": [param.HQChart.Symbol],
|
|
92355
|
-
"start":0,
|
|
92356
|
-
"end":this.MaxRequestDataCount,
|
|
92357
|
-
},
|
|
92358
|
-
type:"post",
|
|
92359
|
-
dataType: "json",
|
|
92360
|
-
async:true,
|
|
92361
|
-
success: function (recvData)
|
|
92362
|
-
{
|
|
92363
|
-
self.RecvData(recvData,param);
|
|
92364
|
-
}
|
|
92365
|
-
});
|
|
92366
|
-
|
|
92474
|
+
console.warn("[PforecastInfo::RequestData] NetworkFilter error.");
|
|
92367
92475
|
return true;
|
|
92368
92476
|
}
|
|
92369
92477
|
|
|
92370
92478
|
this.RecvData=function(recvData,param)
|
|
92371
92479
|
{
|
|
92372
|
-
if (recvData.
|
|
92373
|
-
if (recvData.stock[0].stockday.length<=0) return;
|
|
92480
|
+
if (!IFrameSplitOperator.IsNonEmptyArray(recvData.report)) return;
|
|
92374
92481
|
|
|
92375
|
-
for(var i
|
|
92482
|
+
for(var i=0; i<recvData.report.length; ++i)
|
|
92376
92483
|
{
|
|
92377
|
-
var item=recvData.
|
|
92378
|
-
|
|
92484
|
+
var item=recvData.report[i];
|
|
92485
|
+
var infoData=new KLineInfoData();
|
|
92486
|
+
infoData.Date= item.date;
|
|
92487
|
+
infoData.Title=item.title;
|
|
92488
|
+
infoData.InfoType=KLINE_INFO_TYPE.PFORECAST;
|
|
92489
|
+
infoData.ExtendData={ Type:item.title, ReportDate:item.reportdate}
|
|
92490
|
+
if(item.fweek) //未来周涨幅
|
|
92379
92491
|
{
|
|
92380
|
-
|
|
92381
|
-
|
|
92382
|
-
infoData.
|
|
92383
|
-
infoData.Title=dataItem.type;
|
|
92384
|
-
infoData.InfoType=KLINE_INFO_TYPE.PFORECAST;
|
|
92385
|
-
infoData.ExtendData={ Type:dataItem.type, ReportDate:dataItem.reportdate}
|
|
92386
|
-
if(item.fweek) //未来周涨幅
|
|
92387
|
-
{
|
|
92388
|
-
infoData.ExtendData.FWeek={};
|
|
92389
|
-
if (item.fweek.week1!=null) infoData.ExtendData.FWeek.Week1=item.fweek.week1;
|
|
92390
|
-
if (item.fweek.week4!=null) infoData.ExtendData.FWeek.Week4=item.fweek.week4;
|
|
92391
|
-
}
|
|
92392
|
-
this.Data.push(infoData);
|
|
92492
|
+
infoData.ExtendData.FWeek={};
|
|
92493
|
+
if (item.fweek.week1!=null) infoData.ExtendData.FWeek.Week1=item.fweek.week1;
|
|
92494
|
+
if (item.fweek.week4!=null) infoData.ExtendData.FWeek.Week4=item.fweek.week4;
|
|
92393
92495
|
}
|
|
92496
|
+
this.Data.push(infoData);
|
|
92394
92497
|
}
|
|
92395
92498
|
|
|
92396
92499
|
param.HQChart.UpdataChartInfo();
|
|
@@ -92422,34 +92525,15 @@ function ResearchInfo()
|
|
|
92422
92525
|
|
|
92423
92526
|
if (this.NetworkFilter(hqChart, obj)) return; //已被上层替换,不调用默认的网络请求
|
|
92424
92527
|
|
|
92425
|
-
|
|
92426
|
-
JSNetwork.HttpRequest({
|
|
92427
|
-
url: url,
|
|
92428
|
-
data:
|
|
92429
|
-
{
|
|
92430
|
-
"filed": ["releasedate","researchdate","level","symbol","id",'type'],
|
|
92431
|
-
"querydate":{"StartDate":this.StartDate,"EndDate":this.GetToday()},
|
|
92432
|
-
"symbol": [param.HQChart.Symbol],
|
|
92433
|
-
"start":0,
|
|
92434
|
-
"end":this.MaxRequestDataCount,
|
|
92435
|
-
},
|
|
92436
|
-
type:"post",
|
|
92437
|
-
dataType: "json",
|
|
92438
|
-
async:true,
|
|
92439
|
-
success: function (recvData)
|
|
92440
|
-
{
|
|
92441
|
-
self.RecvData(recvData,param);
|
|
92442
|
-
}
|
|
92443
|
-
});
|
|
92444
|
-
|
|
92528
|
+
console.warn("[ResearchInfo::RequestData] NetworkFilter error.");
|
|
92445
92529
|
return true;
|
|
92446
92530
|
}
|
|
92447
92531
|
|
|
92448
92532
|
this.RecvData=function(recvData,param)
|
|
92449
92533
|
{
|
|
92450
|
-
if (recvData.list
|
|
92534
|
+
if (!IFrameSplitOperator.IsNonEmptyArray(recvData.list)) return;
|
|
92451
92535
|
|
|
92452
|
-
for(var i
|
|
92536
|
+
for(var i=0;i<recvData.list.length; ++i)
|
|
92453
92537
|
{
|
|
92454
92538
|
var item=recvData.list[i];
|
|
92455
92539
|
var infoData=new KLineInfoData();
|
|
@@ -93343,203 +93427,6 @@ function ChangeIndexDialog(divElement)
|
|
|
93343
93427
|
}
|
|
93344
93428
|
}
|
|
93345
93429
|
|
|
93346
|
-
//信息地理tooltip
|
|
93347
|
-
function KLineInfoTooltip(divElement)
|
|
93348
|
-
{
|
|
93349
|
-
this.newMethod=IDivDialog; //派生
|
|
93350
|
-
this.newMethod(divElement);
|
|
93351
|
-
delete this.newMethod;
|
|
93352
|
-
|
|
93353
|
-
this.UpColor=g_JSChartResource.UpTextColor;
|
|
93354
|
-
this.DownColor=g_JSChartResource.DownTextColor;
|
|
93355
|
-
this.UnchagneColor=g_JSChartResource.UnchagneTextColor;
|
|
93356
|
-
|
|
93357
|
-
this.Create=function()
|
|
93358
|
-
{
|
|
93359
|
-
this.ID=Guid();
|
|
93360
|
-
|
|
93361
|
-
var div=document.createElement('div');
|
|
93362
|
-
div.className='jchart-klineinfo-tooltip';
|
|
93363
|
-
div.id=this.ID;
|
|
93364
|
-
div.innerHTML="<div class='title-length'></div>";
|
|
93365
|
-
this.DivElement.appendChild(div);
|
|
93366
|
-
}
|
|
93367
|
-
|
|
93368
|
-
|
|
93369
|
-
this.BindInfoList=function(infoType,infoList)
|
|
93370
|
-
{
|
|
93371
|
-
var strBox="<div class='total-list'>共"+infoList.length+"条</div>";
|
|
93372
|
-
var strText=[];
|
|
93373
|
-
for(var i in infoList)
|
|
93374
|
-
{
|
|
93375
|
-
var item=infoList[i];
|
|
93376
|
-
var strOld=item.Date;
|
|
93377
|
-
if(infoType==KLINE_INFO_TYPE.PFORECAST)
|
|
93378
|
-
{
|
|
93379
|
-
var reportDate=item.ExtendData.ReportDate;
|
|
93380
|
-
var year=parseInt(reportDate/10000); //年份
|
|
93381
|
-
var day=reportDate%10000; //比较 这个去掉年份的日期
|
|
93382
|
-
var reportType;
|
|
93383
|
-
if(day == 1231){
|
|
93384
|
-
reportType = "年报"
|
|
93385
|
-
}else if(day == 331){
|
|
93386
|
-
reportType = "一季度报"
|
|
93387
|
-
}else if(day == 630){
|
|
93388
|
-
reportType = "半年度报"
|
|
93389
|
-
}else if(day == 930){
|
|
93390
|
-
reportType = "三季度报"
|
|
93391
|
-
}
|
|
93392
|
-
|
|
93393
|
-
var weekData="";
|
|
93394
|
-
if (item.ExtendData.FWeek)
|
|
93395
|
-
{
|
|
93396
|
-
if (item.ExtendData.FWeek.Week1!=null) weekData+="一周后涨幅:<i class='increase' style='color:"+this.GetColor(item.ExtendData.FWeek.Week1.toFixed(2))+"'>"+ item.ExtendData.FWeek.Week1.toFixed(2)+"%</i>";
|
|
93397
|
-
if (item.ExtendData.FWeek.Week4!=null) weekData+=" 四周后涨幅:<i class='increase' style='color:"+this.GetColor(item.ExtendData.FWeek.Week4.toFixed(2))+"'>"+ item.ExtendData.FWeek.Week4.toFixed(2)+"%</i>";
|
|
93398
|
-
if (weekData.length>0) weekData="<br/> <i class='prorecast-week'>"+weekData+"</i>";
|
|
93399
|
-
}
|
|
93400
|
-
var strDate=item.Date.toString();
|
|
93401
|
-
var strNew=strDate.substring(0,4)+"-"+strDate.substring(4,6)+"-"+strDate.substring(6,8); //转换时间格式
|
|
93402
|
-
strText+="<span>"+strNew+" "+year+reportType+item.Title+" "+weekData+"</span>";
|
|
93403
|
-
|
|
93404
|
-
}
|
|
93405
|
-
else if (infoType==KLINE_INFO_TYPE.RESEARCH) //调研单独处理
|
|
93406
|
-
{
|
|
93407
|
-
var levels=item.ExtendData.Level;
|
|
93408
|
-
var recPerson=[];
|
|
93409
|
-
if(levels.length==0){
|
|
93410
|
-
recPerson = "<i>无</i>"
|
|
93411
|
-
}else{
|
|
93412
|
-
for(var j in levels)
|
|
93413
|
-
{
|
|
93414
|
-
if(levels[j]==0){
|
|
93415
|
-
recPerson+="<i style='color:#00a0e9'>证券代表 </i>";
|
|
93416
|
-
}else if(levels[j]==1){
|
|
93417
|
-
recPerson+="<i>董秘 </i>";
|
|
93418
|
-
}else if(levels[j]==2){
|
|
93419
|
-
recPerson+="<i style='color:#00a0e9'>总经理 </i>";
|
|
93420
|
-
}else if(levels[j]==3){
|
|
93421
|
-
recPerson+="<i style='color:#00a0e9'>董事长 </i>";
|
|
93422
|
-
}
|
|
93423
|
-
}
|
|
93424
|
-
}
|
|
93425
|
-
var strDate=item.Date.toString();
|
|
93426
|
-
var strNew=strDate.substring(0,4)+"-"+strDate.substring(4,6)+"-"+strDate.substring(6,8); //转换时间格式
|
|
93427
|
-
strText+="<span>"+strNew+" 接待: "+recPerson+"</span>";
|
|
93428
|
-
}else if(infoType==KLINE_INFO_TYPE.BLOCKTRADING)
|
|
93429
|
-
{
|
|
93430
|
-
var showPriceInfo = item.ExtendData;
|
|
93431
|
-
var strDate=item.Date.toString();
|
|
93432
|
-
var strNew=strDate.substring(0,4)+"-"+strDate.substring(4,6)+"-"+strDate.substring(6,8); //转换时间格式
|
|
93433
|
-
strText+="<span><i class='date-tipbox'>"+strNew+"</i> <i class='tipBoxTitle'>成交价: "+showPriceInfo.Price.toFixed(2)+"</i><i class='tipBoxTitle'>收盘价: "+showPriceInfo.ClosePrice.toFixed(2)+
|
|
93434
|
-
"</i><br/><i class='rate-discount tipBoxTitle'>溢折价率: <strong style='color:"+ this.GetColor(showPriceInfo.Premium.toFixed(2))+"'>"+
|
|
93435
|
-
showPriceInfo.Premium.toFixed(2)+"%</strong></i><i class='tipBoxTitle'>成交量(万股): "+showPriceInfo.Vol.toFixed(2)+"</i></span>";
|
|
93436
|
-
}
|
|
93437
|
-
else if (infoType==KLINE_INFO_TYPE.TRADEDETAIL) //龙虎榜
|
|
93438
|
-
{
|
|
93439
|
-
/*var detail=[
|
|
93440
|
-
"日价格涨幅偏离值达到9.89%",
|
|
93441
|
-
"日价格涨幅偏离值达格涨幅偏离值达格涨幅偏离值达到9.89%"
|
|
93442
|
-
]*/
|
|
93443
|
-
var detail=item.ExtendData.Detail;
|
|
93444
|
-
//格式:日期 上榜原因: detail[0].TypeExplain
|
|
93445
|
-
// detail[1].TypeExplain
|
|
93446
|
-
// 一周后涨幅: xx 四周后涨幅: xx
|
|
93447
|
-
var str=strOld.toString();
|
|
93448
|
-
var strNew=str.substring(0,4)+"-"+str.substring(4,6)+"-"+str.substring(6,8); //转换时间格式
|
|
93449
|
-
var reasons = [];
|
|
93450
|
-
for(var i in detail){
|
|
93451
|
-
reasons += "<i>"+detail[i].TypeExplain+"</i><br/>"
|
|
93452
|
-
// reasons += detail[i] + "<br/>"
|
|
93453
|
-
}
|
|
93454
|
-
|
|
93455
|
-
strText = "<span><i class='trade-time'>"+strNew+" 上榜原因: </i><i class='reason-list'>"+reasons+"</i><br/><i class='trade-detall'>一周后涨幅: <strong style='color:"+
|
|
93456
|
-
this.GetColor(item.ExtendData.FWeek.Week1.toFixed(2))+"'>"+ item.ExtendData.FWeek.Week1.toFixed(2)+
|
|
93457
|
-
"%</strong> 四周后涨幅: <strong style='color:"+this.GetColor(item.ExtendData.FWeek.Week4.toFixed(2))+";'>"+
|
|
93458
|
-
item.ExtendData.FWeek.Week4.toFixed(2)+"%</strong></i></span>";
|
|
93459
|
-
}
|
|
93460
|
-
else
|
|
93461
|
-
{
|
|
93462
|
-
var str=strOld.toString();
|
|
93463
|
-
var strNew=str.substring(0,4)+"-"+str.substring(4,6)+"-"+str.substring(6,8); //转换时间格式
|
|
93464
|
-
strText+="<span>"+strNew+" "+item.Title+"</span>";
|
|
93465
|
-
}
|
|
93466
|
-
}
|
|
93467
|
-
var titleInnerBox = $(".title-length").html(strText);
|
|
93468
|
-
|
|
93469
|
-
$("#"+this.ID).html(titleInnerBox);
|
|
93470
|
-
|
|
93471
|
-
//当信息超过8条时,添加“共XX条”统计总数
|
|
93472
|
-
if(infoList.length > 8){
|
|
93473
|
-
$("#"+this.ID).append(strBox);
|
|
93474
|
-
}
|
|
93475
|
-
}
|
|
93476
|
-
|
|
93477
|
-
|
|
93478
|
-
this.GetColor=function(price)
|
|
93479
|
-
{
|
|
93480
|
-
if(price>0) return this.UpColor;
|
|
93481
|
-
else if (price<0) return this.DownColor;
|
|
93482
|
-
else return this.UnchagneColor;
|
|
93483
|
-
}
|
|
93484
|
-
|
|
93485
|
-
//显示窗口,改函数仅为KLineInfoTooltip使用
|
|
93486
|
-
this.Show=function(left,top,width,height,tooltip,times)
|
|
93487
|
-
{
|
|
93488
|
-
//显示位置
|
|
93489
|
-
$("#"+this.ID).css({'display':'block','top':top+'px', "left":left+'px', "width":width+'px', "height":height+'px' });
|
|
93490
|
-
|
|
93491
|
-
function toolHide() {
|
|
93492
|
-
tooltip.Hide();
|
|
93493
|
-
}
|
|
93494
|
-
|
|
93495
|
-
if (this.TimeOut!=null)
|
|
93496
|
-
clearTimeout(this.TimeOut); //清空上一次的定时器,防止定时器不停的被调用
|
|
93497
|
-
|
|
93498
|
-
//设置窗口定时隐藏
|
|
93499
|
-
this.TimeOut=setTimeout(toolHide,times);
|
|
93500
|
-
|
|
93501
|
-
}
|
|
93502
|
-
|
|
93503
|
-
|
|
93504
|
-
this.DoModal=function(event)
|
|
93505
|
-
{
|
|
93506
|
-
var chart=event.data.Chart;
|
|
93507
|
-
var infoType=event.data.InfoType; //信息地雷类型
|
|
93508
|
-
var infoList=event.data.InfoList; //信息数据列表
|
|
93509
|
-
var tooltip=chart.KLineInfoTooltip;
|
|
93510
|
-
|
|
93511
|
-
if(!tooltip) return;
|
|
93512
|
-
if (tooltip.ID==null) tooltip.Create(); //第1次 需要创建div
|
|
93513
|
-
|
|
93514
|
-
tooltip.BindInfoList(infoType,infoList);
|
|
93515
|
-
|
|
93516
|
-
var left=event.pageX;
|
|
93517
|
-
var top=event.pageY+10;
|
|
93518
|
-
var widthTool=380;
|
|
93519
|
-
var heightTool=$("#"+tooltip.ID).height();
|
|
93520
|
-
|
|
93521
|
-
if((left + widthTool) > chart.UIElement.getBoundingClientRect().width){
|
|
93522
|
-
left = left - widthTool;
|
|
93523
|
-
}
|
|
93524
|
-
/*if(top+heightTool>chart.UIElement.getBoundingClientRect().height){
|
|
93525
|
-
top=top-heightTool-45;
|
|
93526
|
-
}*/
|
|
93527
|
-
|
|
93528
|
-
tooltip.Show(left,top,widthTool,"auto",tooltip,8000);
|
|
93529
|
-
}
|
|
93530
|
-
|
|
93531
|
-
//鼠标离开
|
|
93532
|
-
this.Leave=function(event)
|
|
93533
|
-
{
|
|
93534
|
-
var chart=event.data.Chart;
|
|
93535
|
-
var tooltip=chart.KLineInfoTooltip;
|
|
93536
|
-
|
|
93537
|
-
if(!tooltip || tooltip.ID==null) return;
|
|
93538
|
-
|
|
93539
|
-
tooltip.Hide();
|
|
93540
|
-
}
|
|
93541
|
-
}
|
|
93542
|
-
|
|
93543
93430
|
function MinuteSelectRectDialog(divElement)
|
|
93544
93431
|
{
|
|
93545
93432
|
this.newMethod=IDivDialog; //派生
|
|
@@ -143277,7 +143164,7 @@ function HQChartScriptWorker()
|
|
|
143277
143164
|
|
|
143278
143165
|
|
|
143279
143166
|
|
|
143280
|
-
var HQCHART_VERSION="1.1.
|
|
143167
|
+
var HQCHART_VERSION="1.1.13775";
|
|
143281
143168
|
|
|
143282
143169
|
function PrintHQChartVersion()
|
|
143283
143170
|
{
|