hqchart 1.1.13541 → 1.1.13550
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 +24 -5
- package/lib/umychart.vue.js +27 -21
- package/package.json +1 -1
- package/src/jscommon/umychart.NetworkFilterTest.js +20 -0
- package/src/jscommon/umychart.js +13 -3
- package/src/jscommon/umychart.popMenu.js +13 -0
- package/src/jscommon/umychart.report.js +94 -26
- package/src/jscommon/umychart.resource/font/iconfont.css +11 -3
- package/src/jscommon/umychart.resource/font/iconfont.ttf +0 -0
- package/src/jscommon/umychart.resource/font/iconfont.woff +0 -0
- package/src/jscommon/umychart.resource/font/iconfont.woff2 +0 -0
- package/src/jscommon/umychart.style.js +1 -1
- package/src/jscommon/umychart.testdata.js +20 -0
- package/src/jscommon/umychart.uniapp.h5/umychart.uniapp.h5.js +109 -31
- package/src/jscommon/umychart.version.js +1 -1
- package/src/jscommon/umychart.vue/umychart.NetworkFilterTest.vue.js +20 -0
- package/src/jscommon/umychart.vue/umychart.vue.js +122 -31
package/src/jscommon/umychart.js
CHANGED
|
@@ -2598,6 +2598,8 @@ var JSCHART_EVENT_ID=
|
|
|
2598
2598
|
ON_TREPORT_LOCAL_SORT:126, //T型报价列表本地排序
|
|
2599
2599
|
ON_CLICK_TREPORT_ROW:127, //左键点击点击T型报价列表
|
|
2600
2600
|
|
|
2601
|
+
ON_DRAW_REPORT_ROW_BG:140, //报价列表整行背景
|
|
2602
|
+
|
|
2601
2603
|
|
|
2602
2604
|
ON_CHANGE_INDEX:150, //切换指标
|
|
2603
2605
|
ON_MENU_COMMAND:151, //菜单事件回调
|
|
@@ -67124,8 +67126,17 @@ function JSChartResource()
|
|
|
67124
67126
|
{
|
|
67125
67127
|
Color:"rgb(60,60,60)", //表头文字颜色
|
|
67126
67128
|
SortColor:"rgb(255,0,0)", //排序箭头颜色
|
|
67127
|
-
Mergin:{ Left:5, Right:5, Top:4, Bottom:
|
|
67128
|
-
Font:{ Size:12, Name:"微软雅黑" } //表头字体
|
|
67129
|
+
Mergin:{ Left:5, Right:5, Top:4, Bottom:4 }, //表头四周间距
|
|
67130
|
+
Font:{ Size:12, Name:"微软雅黑" }, //表头字体
|
|
67131
|
+
},
|
|
67132
|
+
|
|
67133
|
+
//排序图标
|
|
67134
|
+
SortIcon:
|
|
67135
|
+
{
|
|
67136
|
+
Size:12, Family:"iconfont",
|
|
67137
|
+
Arrow:[null, "\ue6b2", "\ue6b1"],
|
|
67138
|
+
Color:[null, "rgb(255,0,0)", "rgb(255,0,0)"],
|
|
67139
|
+
Margin:{ Left:0, Bottom:6 }
|
|
67129
67140
|
},
|
|
67130
67141
|
|
|
67131
67142
|
Item:
|
|
@@ -68070,7 +68081,6 @@ function JSChartResource()
|
|
|
68070
68081
|
{
|
|
68071
68082
|
var header=item.Header;
|
|
68072
68083
|
if (header.Color) this.Report.Header.Color=header.Color;
|
|
68073
|
-
if (header.SortColor) this.Report.Header.SortColor=header.SortColor;
|
|
68074
68084
|
if (header.Mergin)
|
|
68075
68085
|
{
|
|
68076
68086
|
var mergin=header.Mergin;
|
|
@@ -56,6 +56,7 @@ function JSPopMenu()
|
|
|
56
56
|
|
|
57
57
|
|
|
58
58
|
var rootData={ Root:root, TBody:tbody, Table:table };
|
|
59
|
+
root.JSMenuData=rootData;
|
|
59
60
|
for(var i=0;i<data.Menu.length;++i)
|
|
60
61
|
{
|
|
61
62
|
var item=data.Menu[i];
|
|
@@ -158,6 +159,7 @@ function JSPopMenu()
|
|
|
158
159
|
subTable.appendChild(subTbody);
|
|
159
160
|
|
|
160
161
|
var subRootData={ Root:subRoot, TBody:subTbody, Table:subTable };
|
|
162
|
+
subRoot.JSMenuData=subRootData;
|
|
161
163
|
var preTrDom=null;
|
|
162
164
|
for(var i=0;i<item.SubMenu.length;++i)
|
|
163
165
|
{
|
|
@@ -293,6 +295,17 @@ function JSPopMenu()
|
|
|
293
295
|
parentItem.PopMenu.style.visibility="hidden";
|
|
294
296
|
if (parentItem.PopRow) parentItem.PopRow.classList.remove(this.SelectedClassName);
|
|
295
297
|
|
|
298
|
+
var popMenuData=parentItem.PopMenu.JSMenuData;
|
|
299
|
+
for(var i=0;i<50;++i) //隐藏子菜单 最多50层
|
|
300
|
+
{
|
|
301
|
+
if (!popMenuData) break;
|
|
302
|
+
if (!popMenuData.PopMenu) break;
|
|
303
|
+
|
|
304
|
+
popMenuData.PopMenu.style.visibility="hidden";
|
|
305
|
+
|
|
306
|
+
popMenuData=popMenuData.PopMenu;
|
|
307
|
+
}
|
|
308
|
+
|
|
296
309
|
parentItem.PopMenu=null;
|
|
297
310
|
parentItem.PopRow=null;
|
|
298
311
|
}
|
|
@@ -3659,7 +3659,7 @@ function ChartReport()
|
|
|
3659
3659
|
//表头配置
|
|
3660
3660
|
this.HeaderFontConfig={ Size:g_JSChartResource.Report.Header.Font.Size, Name:g_JSChartResource.Report.Header.Font.Name };
|
|
3661
3661
|
this.HeaderColor=g_JSChartResource.Report.Header.Color;
|
|
3662
|
-
|
|
3662
|
+
|
|
3663
3663
|
this.HeaderMergin=
|
|
3664
3664
|
{
|
|
3665
3665
|
Left:g_JSChartResource.Report.Header.Mergin.Left,
|
|
@@ -3668,6 +3668,20 @@ function ChartReport()
|
|
|
3668
3668
|
Bottom:g_JSChartResource.Report.Header.Mergin.Bottom
|
|
3669
3669
|
};
|
|
3670
3670
|
|
|
3671
|
+
//排序图标
|
|
3672
|
+
this.SortConfig=
|
|
3673
|
+
{
|
|
3674
|
+
Size:g_JSChartResource.Report.SortIcon.Size,
|
|
3675
|
+
Family:g_JSChartResource.Report.SortIcon.Family,
|
|
3676
|
+
Arrow:g_JSChartResource.Report.SortIcon.Arrow.slice(),
|
|
3677
|
+
Color:g_JSChartResource.Report.SortIcon.Color.slice(),
|
|
3678
|
+
Margin:
|
|
3679
|
+
{
|
|
3680
|
+
Left:g_JSChartResource.Report.SortIcon.Margin.Left,
|
|
3681
|
+
Bottom:g_JSChartResource.Report.SortIcon.Margin.Bottom
|
|
3682
|
+
}
|
|
3683
|
+
}
|
|
3684
|
+
|
|
3671
3685
|
//表格内容配置
|
|
3672
3686
|
this.ItemFontConfig={ Size:g_JSChartResource.Report.Item.Font.Size, Name:g_JSChartResource.Report.Item.Font.Name };
|
|
3673
3687
|
this.ItemFixedFontConfg={ Size:g_JSChartResource.Report.FixedItem.Font.Size, Name:g_JSChartResource.Report.FixedItem.Font.Name }; //固定行
|
|
@@ -3730,6 +3744,7 @@ function ChartReport()
|
|
|
3730
3744
|
|
|
3731
3745
|
//缓存
|
|
3732
3746
|
this.HeaderFont=12*GetDevicePixelRatio() +"px 微软雅黑";
|
|
3747
|
+
this.SortFont=null,
|
|
3733
3748
|
this.ItemFont=15*GetDevicePixelRatio() +"px 微软雅黑";
|
|
3734
3749
|
this.ItemFixedFont=15*GetDevicePixelRatio() +"px 微软雅黑";
|
|
3735
3750
|
this.ItemSymbolFont=12*GetDevicePixelRatio() +"px 微软雅黑";
|
|
@@ -3773,7 +3788,7 @@ function ChartReport()
|
|
|
3773
3788
|
//表头配置
|
|
3774
3789
|
this.HeaderFontConfig={ Size:g_JSChartResource.Report.Header.Font.Size, Name:g_JSChartResource.Report.Header.Font.Name };
|
|
3775
3790
|
this.HeaderColor=g_JSChartResource.Report.Header.Color;
|
|
3776
|
-
|
|
3791
|
+
|
|
3777
3792
|
this.HeaderMergin=
|
|
3778
3793
|
{
|
|
3779
3794
|
Left:g_JSChartResource.Report.Header.Mergin.Left,
|
|
@@ -3808,6 +3823,20 @@ function ChartReport()
|
|
|
3808
3823
|
Bottom:g_JSChartResource.Report.LimitBorder.Mergin.Bottom
|
|
3809
3824
|
}
|
|
3810
3825
|
|
|
3826
|
+
//排序图标
|
|
3827
|
+
this.SortConfig=
|
|
3828
|
+
{
|
|
3829
|
+
Size:g_JSChartResource.Report.SortIcon.Size,
|
|
3830
|
+
Family:g_JSChartResource.Report.SortIcon.Family,
|
|
3831
|
+
Arrow:g_JSChartResource.Report.SortIcon.Arrow.slice(),
|
|
3832
|
+
Color:g_JSChartResource.Report.SortIcon.Color.slice(),
|
|
3833
|
+
Margin:
|
|
3834
|
+
{
|
|
3835
|
+
Left:g_JSChartResource.Report.SortIcon.Margin.Left,
|
|
3836
|
+
Bottom:g_JSChartResource.Report.SortIcon.Margin.Bottom
|
|
3837
|
+
}
|
|
3838
|
+
}
|
|
3839
|
+
|
|
3811
3840
|
for(var i=0;i<this.Column.length;++i)
|
|
3812
3841
|
{
|
|
3813
3842
|
var item=this.Column[i];
|
|
@@ -4134,6 +4163,7 @@ function ChartReport()
|
|
|
4134
4163
|
|
|
4135
4164
|
this.RowHeight=this.GetFontHeight(this.ItemFont,"擎")+ this.ItemMergin.Top+ this.ItemMergin.Bottom;
|
|
4136
4165
|
this.FixedRowHeight=this.GetFontHeight(this.ItemFixedFont,"擎")+ this.ItemMergin.Top+ this.ItemMergin.Bottom;
|
|
4166
|
+
this.SortFont=`${this.SortConfig.Size*pixelRatio}px ${ this.SortConfig.Family}`;
|
|
4137
4167
|
|
|
4138
4168
|
this.Canvas.font=this.ItemFont;
|
|
4139
4169
|
var itemWidth=0;
|
|
@@ -4186,8 +4216,8 @@ function ChartReport()
|
|
|
4186
4216
|
var item=this.Column[i];
|
|
4187
4217
|
if (!item.Title || item.Title.length<=0) continue;
|
|
4188
4218
|
var text=item.Title;
|
|
4189
|
-
if (item.Sort>0) text+="↓";
|
|
4190
4219
|
itemWidth=this.Canvas.measureText(text).width;
|
|
4220
|
+
if (item.Sort>0) itemWidth+this.SortConfig.Size*pixelRatio;
|
|
4191
4221
|
itemWidth+=(4+this.HeaderMergin.Left+this.HeaderMergin.Right);
|
|
4192
4222
|
if (item.Width<itemWidth) item.Width=itemWidth;
|
|
4193
4223
|
}
|
|
@@ -4195,7 +4225,6 @@ function ChartReport()
|
|
|
4195
4225
|
this.HeaderHeight=this.GetFontHeight(this.HeaderFont,"擎")+ this.HeaderMergin.Top+ this.HeaderMergin.Bottom;
|
|
4196
4226
|
if (!this.IsShowHeader) this.HeaderHeight=0;
|
|
4197
4227
|
if (this.FixedRowCount<=0) this.FixedRowHeight=0;
|
|
4198
|
-
|
|
4199
4228
|
|
|
4200
4229
|
this.RowCount=parseInt((this.RectClient.Bottom-this.RectClient.Top-this.HeaderHeight-(this.FixedRowHeight*this.FixedRowCount))/this.RowHeight);
|
|
4201
4230
|
|
|
@@ -4217,6 +4246,7 @@ function ChartReport()
|
|
|
4217
4246
|
var left=this.RectClient.Left;
|
|
4218
4247
|
var top=this.RectClient.Top;
|
|
4219
4248
|
var y=top+this.HeaderMergin.Top+(this.HeaderHeight-this.HeaderMergin.Top-this.HeaderMergin.Bottom)/2;
|
|
4249
|
+
var yBottom=top+this.HeaderHeight;
|
|
4220
4250
|
|
|
4221
4251
|
this.Canvas.font=this.HeaderFont;
|
|
4222
4252
|
|
|
@@ -4256,16 +4286,16 @@ function ChartReport()
|
|
|
4256
4286
|
var textSize={ }
|
|
4257
4287
|
if (this.SortInfo && this.SortInfo.Field==i && this.SortInfo.Sort>0)
|
|
4258
4288
|
{
|
|
4259
|
-
this.DrawSortHeader(item.Title,item.TextAlign,x,
|
|
4289
|
+
this.DrawSortHeader(item.Title,item.TextAlign,x,yBottom,textWidth,this.SortInfo.Sort, textSize);
|
|
4260
4290
|
}
|
|
4261
4291
|
else
|
|
4262
4292
|
{
|
|
4263
|
-
this.DrawText(item.Title,item.TextAlign,x,
|
|
4293
|
+
this.DrawText(item.Title,item.TextAlign,x,yBottom,textWidth,textSize);
|
|
4264
4294
|
}
|
|
4265
4295
|
|
|
4266
4296
|
if (iconWidth>0)
|
|
4267
4297
|
{
|
|
4268
|
-
this.DrawHeaderIcon(item.Icon, textSize.Right,
|
|
4298
|
+
this.DrawHeaderIcon(item.Icon, textSize.Right, yBottom, i, item);
|
|
4269
4299
|
this.Canvas.font=this.HeaderFont;
|
|
4270
4300
|
}
|
|
4271
4301
|
|
|
@@ -4309,16 +4339,16 @@ function ChartReport()
|
|
|
4309
4339
|
var textSize={ }
|
|
4310
4340
|
if (this.SortInfo && this.SortInfo.Field==i && this.SortInfo.Sort>0)
|
|
4311
4341
|
{
|
|
4312
|
-
this.DrawSortHeader(item.Title,item.TextAlign,x,
|
|
4342
|
+
this.DrawSortHeader(item.Title,item.TextAlign,x,yBottom,textWidth,this.SortInfo.Sort,textSize);
|
|
4313
4343
|
}
|
|
4314
4344
|
else
|
|
4315
4345
|
{
|
|
4316
|
-
this.DrawText(item.Title,item.TextAlign,x,
|
|
4346
|
+
this.DrawText(item.Title,item.TextAlign,x,yBottom,textWidth,textSize);
|
|
4317
4347
|
}
|
|
4318
4348
|
|
|
4319
4349
|
if (iconWidth>0)
|
|
4320
4350
|
{
|
|
4321
|
-
this.DrawHeaderIcon(item.Icon, textSize.Right,
|
|
4351
|
+
this.DrawHeaderIcon(item.Icon, textSize.Right, yBottom, i, item);
|
|
4322
4352
|
this.Canvas.font=this.HeaderFont;
|
|
4323
4353
|
}
|
|
4324
4354
|
|
|
@@ -4326,7 +4356,7 @@ function ChartReport()
|
|
|
4326
4356
|
}
|
|
4327
4357
|
}
|
|
4328
4358
|
|
|
4329
|
-
this.DrawText=function(text, textAlign, x,
|
|
4359
|
+
this.DrawText=function(text, textAlign, x, yBottom, cellWidth, textSize)
|
|
4330
4360
|
{
|
|
4331
4361
|
var textWidth=this.Canvas.measureText(text).width;
|
|
4332
4362
|
if (textAlign=='center')
|
|
@@ -4339,8 +4369,8 @@ function ChartReport()
|
|
|
4339
4369
|
}
|
|
4340
4370
|
|
|
4341
4371
|
this.Canvas.textAlign="left";
|
|
4342
|
-
this.Canvas.textBaseline="
|
|
4343
|
-
this.Canvas.fillText(text,x,
|
|
4372
|
+
this.Canvas.textBaseline="bottom";
|
|
4373
|
+
this.Canvas.fillText(text,x,yBottom-this.HeaderMergin.Bottom);
|
|
4344
4374
|
|
|
4345
4375
|
if (textSize)
|
|
4346
4376
|
{
|
|
@@ -4349,7 +4379,7 @@ function ChartReport()
|
|
|
4349
4379
|
}
|
|
4350
4380
|
}
|
|
4351
4381
|
|
|
4352
|
-
this.DrawHeaderIcon=function(icon, x,
|
|
4382
|
+
this.DrawHeaderIcon=function(icon, x, yBottom, index, column)
|
|
4353
4383
|
{
|
|
4354
4384
|
var iconFont=`${icon.Size}px ${icon.Family}`;
|
|
4355
4385
|
this.Canvas.font=iconFont;
|
|
@@ -4357,29 +4387,29 @@ function ChartReport()
|
|
|
4357
4387
|
if (icon.Color) this.Canvas.fillStyle=icon.Color;
|
|
4358
4388
|
|
|
4359
4389
|
var xIcon=x;
|
|
4360
|
-
var yIcon=
|
|
4390
|
+
var yIcon=yBottom;
|
|
4361
4391
|
if (icon.Margin && IFrameSplitOperator.IsNumber(icon.Margin.Left)) xIcon+=icon.Margin.Left;
|
|
4362
4392
|
if (icon.Margin && IFrameSplitOperator.IsNumber(icon.Margin.Bottom)) yIcon-=icon.Margin.Bottom;
|
|
4363
4393
|
this.Canvas.fillText(icon.Symbol, xIcon, yIcon);
|
|
4364
4394
|
|
|
4365
4395
|
if (icon.Tooltip)
|
|
4366
4396
|
{
|
|
4367
|
-
var rtIcon={ Left:xIcon,
|
|
4397
|
+
var rtIcon={ Left:xIcon, Bottom:yIcon, Width:icon.Size, Height:icon.Size };
|
|
4368
4398
|
rtIcon.Right=rtIcon.Left+rtIcon.Width;
|
|
4369
|
-
rtIcon.
|
|
4399
|
+
rtIcon.Top=rtIcon.Bottom-rtIcon.Height;
|
|
4370
4400
|
|
|
4371
4401
|
var tooltipData={ Rect:rtIcon, Type:2, Column:column, Index:index, Data:icon.Tooltip.Data };
|
|
4372
4402
|
this.TooltipRect.push(tooltipData);
|
|
4373
4403
|
}
|
|
4374
4404
|
}
|
|
4375
4405
|
|
|
4376
|
-
this.DrawSortHeader=function(text, textAlign, x,
|
|
4406
|
+
this.DrawSortHeader=function(text, textAlign, x, yBottom, width, sortType,textSize)
|
|
4377
4407
|
{
|
|
4378
|
-
var
|
|
4379
|
-
var
|
|
4380
|
-
|
|
4381
|
-
this.Canvas.
|
|
4382
|
-
this.
|
|
4408
|
+
var pixelRatio=GetDevicePixelRatio();
|
|
4409
|
+
var sortText=this.SortConfig.Arrow[sortType];
|
|
4410
|
+
this.Canvas.font=this.HeaderFont;
|
|
4411
|
+
var textWidth=this.Canvas.measureText(text).width;
|
|
4412
|
+
var sortTextWidth=this.SortConfig.Size*pixelRatio+this.SortConfig.Margin.Left;
|
|
4383
4413
|
|
|
4384
4414
|
if (textAlign=='center')
|
|
4385
4415
|
{
|
|
@@ -4390,9 +4420,20 @@ function ChartReport()
|
|
|
4390
4420
|
x=(x+width)-sortTextWidth-textWidth;
|
|
4391
4421
|
}
|
|
4392
4422
|
|
|
4393
|
-
this.Canvas.
|
|
4394
|
-
this.Canvas.
|
|
4395
|
-
|
|
4423
|
+
this.Canvas.textBaseline="bottom";
|
|
4424
|
+
this.Canvas.textAlign="left";
|
|
4425
|
+
|
|
4426
|
+
var xText=x;
|
|
4427
|
+
this.Canvas.font=this.HeaderFont;
|
|
4428
|
+
this.Canvas.fillStyle=this.HeaderColor;
|
|
4429
|
+
this.Canvas.fillText(text,xText,yBottom-this.HeaderMergin.Bottom);
|
|
4430
|
+
|
|
4431
|
+
xText+=(textWidth+this.SortConfig.Margin.Left);
|
|
4432
|
+
this.Canvas.font=this.SortFont;
|
|
4433
|
+
this.Canvas.fillStyle=this.SortConfig.Color[sortType];
|
|
4434
|
+
this.Canvas.fillText(sortText,xText,yBottom-this.SortConfig.Margin.Bottom);
|
|
4435
|
+
|
|
4436
|
+
this.Canvas.font=this.HeaderFont;
|
|
4396
4437
|
this.Canvas.fillStyle=this.HeaderColor;
|
|
4397
4438
|
|
|
4398
4439
|
if (textSize)
|
|
@@ -4498,6 +4539,9 @@ function ChartReport()
|
|
|
4498
4539
|
|
|
4499
4540
|
textTop=top+this.FixedRowHeight*this.FixedRowCount;
|
|
4500
4541
|
this.Canvas.font=this.ItemFont;
|
|
4542
|
+
|
|
4543
|
+
var eventDrawBG=this.GetEventCallback(JSCHART_EVENT_ID.ON_DRAW_REPORT_ROW_BG);
|
|
4544
|
+
var selectedSymbol=this.GetSelectedSymbol();
|
|
4501
4545
|
for(var i=this.Data.YOffset, j=0; i<this.Data.Data.length && j<this.RowCount ;++i, ++j)
|
|
4502
4546
|
{
|
|
4503
4547
|
var symbol=this.Data.Data[i];
|
|
@@ -4537,6 +4581,18 @@ function ChartReport()
|
|
|
4537
4581
|
bFillRow=false;
|
|
4538
4582
|
}
|
|
4539
4583
|
|
|
4584
|
+
if (eventDrawBG && eventDrawBG.Callback)
|
|
4585
|
+
{
|
|
4586
|
+
//Out:{ BGColor: }
|
|
4587
|
+
var sendData={ RowIndex:i, Symbol:symbol, Out:null, Selected:selectedSymbol };
|
|
4588
|
+
eventDrawBG.Callback(eventDrawBG,sendData,this);
|
|
4589
|
+
if (sendData.Out && sendData.Out.BGColor)
|
|
4590
|
+
{
|
|
4591
|
+
this.Canvas.fillStyle=sendData.Out.BGColor;
|
|
4592
|
+
this.Canvas.fillRect(left,textTop,rowWidth,this.RowHeight);
|
|
4593
|
+
}
|
|
4594
|
+
}
|
|
4595
|
+
|
|
4540
4596
|
if (bFillRow)
|
|
4541
4597
|
{
|
|
4542
4598
|
this.Canvas.fillStyle=this.SelectedColor;
|
|
@@ -4551,6 +4607,18 @@ function ChartReport()
|
|
|
4551
4607
|
}
|
|
4552
4608
|
}
|
|
4553
4609
|
|
|
4610
|
+
this.GetSelectedSymbol=function()
|
|
4611
|
+
{
|
|
4612
|
+
if (this.SelectedRow<0) return null;
|
|
4613
|
+
|
|
4614
|
+
var index=this.SelectedRow;
|
|
4615
|
+
if (this.SelectedModel==0) //当前屏选中
|
|
4616
|
+
index=this.Data.YOffset+this.SelectedRow;
|
|
4617
|
+
|
|
4618
|
+
var symbol=this.Data.Data[index];
|
|
4619
|
+
return symbol;
|
|
4620
|
+
}
|
|
4621
|
+
|
|
4554
4622
|
|
|
4555
4623
|
this.DrawFixedSymbolRow=function(top, dataIndex)
|
|
4556
4624
|
{
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
@font-face {
|
|
2
2
|
font-family: "iconfont"; /* Project id 1040563 */
|
|
3
|
-
src: url('iconfont.woff2?t=
|
|
4
|
-
url('iconfont.woff?t=
|
|
5
|
-
url('iconfont.ttf?t=
|
|
3
|
+
src: url('iconfont.woff2?t=1720702239957') format('woff2'),
|
|
4
|
+
url('iconfont.woff?t=1720702239957') format('woff'),
|
|
5
|
+
url('iconfont.ttf?t=1720702239957') format('truetype');
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
.iconfont {
|
|
@@ -13,6 +13,14 @@
|
|
|
13
13
|
-moz-osx-font-smoothing: grayscale;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
.icon-paixujiantou:before {
|
|
17
|
+
content: "\e6b1";
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.icon-up:before {
|
|
21
|
+
content: "\e6b2";
|
|
22
|
+
}
|
|
23
|
+
|
|
16
24
|
.icon-accountbox:before {
|
|
17
25
|
content: "\e6b0";
|
|
18
26
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -15,52 +15,68 @@ HQData.NetworkFilter=function(data, callback)
|
|
|
15
15
|
|
|
16
16
|
switch(data.Name)
|
|
17
17
|
{
|
|
18
|
+
//HQChart使用教程29-走势图如何对接第3方数据1
|
|
18
19
|
case 'MinuteChartContainer::RequestMinuteData': //分时图数据对接
|
|
20
|
+
//HQChart使用教程29-走势图如何对接第3方数据2-最新分时数据
|
|
19
21
|
HQData.RequestMinuteData(data, callback);
|
|
20
22
|
break;
|
|
23
|
+
|
|
21
24
|
case "MinuteChartContainer::RequestHistoryMinuteData": //多日分时图
|
|
25
|
+
//HQChart使用教程29-走势图如何对接第3方数据3-多日分时数据
|
|
22
26
|
HQData.RequestMinuteDaysData(data, callback);
|
|
23
27
|
break;
|
|
24
28
|
|
|
29
|
+
//HQChart使用教程30-K线图如何对接第3方数据1
|
|
25
30
|
case 'KLineChartContainer::RequestHistoryData': //日线全量数据下载
|
|
31
|
+
//HQChart使用教程30-K线图如何对接第3方数据2-日K数据
|
|
26
32
|
HQData.RequestHistoryData(data,callback);
|
|
27
33
|
break;
|
|
28
34
|
case 'KLineChartContainer::RequestRealtimeData': //日线实时数据更新
|
|
35
|
+
//HQChart使用教程30-K线图如何对接第3方数据14-轮询增量更新日K数据
|
|
29
36
|
HQData.RequestRealtimeData(data,callback);
|
|
30
37
|
break;
|
|
31
38
|
case 'KLineChartContainer::RequestFlowCapitalData': //流通股本
|
|
39
|
+
//HQChart使用教程30-K线图如何对接第3方数据4-流通股本数据
|
|
32
40
|
HQData.RequestFlowCapitalData(data,callback);
|
|
33
41
|
break;
|
|
34
42
|
|
|
35
43
|
case 'KLineChartContainer::ReqeustHistoryMinuteData': //分钟全量数据下载
|
|
44
|
+
//HQChart使用教程30-K线图如何对接第3方数据3-1分钟K数据
|
|
36
45
|
HQData.RequestHistoryMinuteData(data, callback);
|
|
37
46
|
break;
|
|
38
47
|
case 'KLineChartContainer::RequestMinuteRealtimeData': //分钟增量数据更新
|
|
48
|
+
//HQChart使用教程30-K线图如何对接第3方数据15-轮询增量更新1分钟K线数据
|
|
39
49
|
HQData.RequestMinuteRealtimeData(data,callback);
|
|
40
50
|
break;
|
|
41
51
|
|
|
42
52
|
case "JSSymbolData::GetVariantData": //额外的变量数据
|
|
53
|
+
//HQChart使用教程30-K线图如何对接第3方数据29-板块字符串函数数据[GNBLOCK,GNBLOCKNUM......]
|
|
43
54
|
HQData.RequestIndexVariantData(data,callback);
|
|
44
55
|
break;
|
|
45
56
|
|
|
46
57
|
case "JSSymbolData::GetOtherSymbolData":
|
|
58
|
+
//HQChart使用教程30-K线图如何对接第3方数据31-获取指定品种的K线数据
|
|
47
59
|
HQData.RequestOtherSymbolData(data, callback);
|
|
48
60
|
break;
|
|
49
61
|
|
|
50
62
|
case "AnnouncementInfo::RequestData":
|
|
63
|
+
//HQChart使用教程30-K线图如何对接第3方数据20-信息地雷公告数据
|
|
51
64
|
HQData.AnnouncementInfo_RequestData(data,callback);
|
|
52
65
|
break;
|
|
53
66
|
|
|
54
67
|
case "JSSymbolData::GetLatestData":
|
|
68
|
+
//HQChart使用教程30-K线图如何对接第3方数据30-即时行情数据DYNAINFO
|
|
55
69
|
HQData.RequestLatestData(data,callback);
|
|
56
70
|
break;
|
|
57
71
|
|
|
58
72
|
|
|
59
73
|
case "KLineChartContainer::RequestOverlayHistoryData": //叠加股票
|
|
74
|
+
//HQChart使用教程30-K线图如何对接第3方数据16-日K叠加股票
|
|
60
75
|
HQData.RequestOverlayHistoryData(data, callback);
|
|
61
76
|
break;
|
|
62
77
|
|
|
63
78
|
case "KLineChartContainer::RequestOverlayHistoryMinuteData":
|
|
79
|
+
//HQChart使用教程30-K线图如何对接第3方数据17- 分钟K叠加股票
|
|
64
80
|
HQData.RequestOverlayHistoryMinuteData(data, callback);
|
|
65
81
|
break;
|
|
66
82
|
|
|
@@ -89,16 +105,20 @@ HQData.NetworkFilter=function(data, callback)
|
|
|
89
105
|
//////////////////////////////////////////////////////
|
|
90
106
|
//报价列表数据
|
|
91
107
|
case "JSReportChartContainer::RequestStockListData":
|
|
108
|
+
//HQChart使用教程95-报价列表对接第3方数据1-码表数据
|
|
92
109
|
HQData.Report_RequestStockListData(data, callback); //码表
|
|
93
110
|
break;
|
|
94
111
|
|
|
95
112
|
case "JSReportChartContainer::RequestMemberListData": //板块成分
|
|
113
|
+
//HQChart使用教程95-报价列表对接第3方数据2-板块成分数据
|
|
96
114
|
HQData.Report_RequestMemberListDat(data, callback);
|
|
97
115
|
break;
|
|
98
116
|
case "JSDealChartContainer::RequestStockData": //股票数据更新
|
|
117
|
+
//HQChart使用教程95-报价列表对接第3方数据3-股票数据
|
|
99
118
|
HQData.Report_RequestStockData(data, callback);
|
|
100
119
|
break;
|
|
101
120
|
case "JSDealChartContainer::RequestStockSortData": //股票排序数据
|
|
121
|
+
//HQChart使用教程95-报价列表对接第3方数据4-股票排序数据
|
|
102
122
|
HQData.Report_RequestStockSortData(data, callback);
|
|
103
123
|
break;
|
|
104
124
|
}
|