hqchart 1.1.12693 → 1.1.12706

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.
Files changed (225) hide show
  1. package/package.json +15 -47
  2. package/src/jscommon/umychart.resource/js/codemirror/javascript.js +1 -1
  3. package/.babelrc +0 -6
  4. package/.vscode/settings.json +0 -4
  5. package/Makefile +0 -9
  6. package/README.md +0 -452
  7. package/index.js +0 -17
  8. package/postcss.config.js +0 -5
  9. package/src/index.html +0 -18
  10. package/src/jscommon/backup/announcement.png +0 -0
  11. package/src/jscommon/backup/announcement2.png +0 -0
  12. package/src/jscommon/backup/blocktrading.png +0 -0
  13. package/src/jscommon/backup/investor.png +0 -0
  14. package/src/jscommon/backup/pforecast.png +0 -0
  15. package/src/jscommon/backup/research.png +0 -0
  16. package/src/jscommon/backup/tradedetail.png +0 -0
  17. package/src/jscommon/backup/umychart - backup.js +0 -17631
  18. package/src/jscommon/backup/umychart.macro.js +0 -4
  19. package/src/jscommon/backup/umychart.macro.vue.js +0 -3
  20. package/src/jscommon/commonindextree.json +0 -92
  21. package/src/jscommon/index.html +0 -13
  22. package/src/jscommon/jschinamapdata.js +0 -3
  23. package/src/jscommon/umychart.NetworkFilterTest.js +0 -48803
  24. package/src/jscommon/umychart.aliYunnetwork.js +0 -47
  25. package/src/jscommon/umychart.cninfo.components/readme.txt +0 -1
  26. package/src/jscommon/umychart.complier.js +0 -25293
  27. package/src/jscommon/umychart.complier.node/umychart.complier.controller.js +0 -559
  28. package/src/jscommon/umychart.complier.node/umychart.complier.node.js +0 -7043
  29. package/src/jscommon/umychart.complier.node/umychart.data.node.js +0 -816
  30. package/src/jscommon/umychart.console.js +0 -12
  31. package/src/jscommon/umychart.deal.js +0 -1452
  32. package/src/jscommon/umychart.dragdiv.js +0 -48
  33. package/src/jscommon/umychart.index.data.js +0 -4132
  34. package/src/jscommon/umychart.js +0 -90542
  35. package/src/jscommon/umychart.keyboard.js +0 -1659
  36. package/src/jscommon/umychart.listctrl.js +0 -690
  37. package/src/jscommon/umychart.mind.js +0 -2203
  38. package/src/jscommon/umychart.network.js +0 -44
  39. package/src/jscommon/umychart.news.js +0 -823
  40. package/src/jscommon/umychart.node.build/buildall.bat +0 -1
  41. package/src/jscommon/umychart.node.build/umychart.node.bat +0 -1
  42. package/src/jscommon/umychart.node.build/umychart.node.export.js +0 -40
  43. package/src/jscommon/umychart.regressiontest.js +0 -400
  44. package/src/jscommon/umychart.report.js +0 -5803
  45. package/src/jscommon/umychart.scrollbar.js +0 -1345
  46. package/src/jscommon/umychart.stock.js +0 -4218
  47. package/src/jscommon/umychart.style.js +0 -625
  48. package/src/jscommon/umychart.testdata.js +0 -150
  49. package/src/jscommon/umychart.uniapp.build/buildall.bat +0 -1
  50. package/src/jscommon/umychart.uniapp.build/umychart.bat +0 -1
  51. package/src/jscommon/umychart.uniapp.build/umychart.export.js +0 -70
  52. package/src/jscommon/umychart.user.js +0 -137
  53. package/src/jscommon/umychart.version.js +0 -30
  54. package/src/jscommon/umychart.vue/umychart.aliYunnetwork.vue.js +0 -56
  55. package/src/jscommon/umychart.vue.build/buildall.bat +0 -4
  56. package/src/jscommon/umychart.vue.build/copy_codemirror.bat +0 -2
  57. package/src/jscommon/umychart.vue.build/umychart.aliYunnetwork.vue.export.js +0 -9
  58. package/src/jscommon/umychart.vue.build/umychart.dragdiv.bat +0 -1
  59. package/src/jscommon/umychart.vue.build/umychart.dragdiv.export.js +0 -6
  60. package/src/jscommon/umychart.vue.build/umychart.index.data.bat +0 -1
  61. package/src/jscommon/umychart.vue.build/umychart.index.data.export.js +0 -4
  62. package/src/jscommon/umychart.vue.build/umychart.listctrl.vue.export.js +0 -15
  63. package/src/jscommon/umychart.vue.build/umychart.regressiontest.vue.export.js +0 -7
  64. package/src/jscommon/umychart.vue.build/umychart.regressiontest.wechat.export.js +0 -12
  65. package/src/jscommon/umychart.vue.build/umychart.stock.bat +0 -1
  66. package/src/jscommon/umychart.vue.build/umychart.stock.vue.export.js +0 -16
  67. package/src/jscommon/umychart.vue.build/umychart.testdata.bat +0 -3
  68. package/src/jscommon/umychart.vue.build/umychart.testdata.vue.export.js +0 -7
  69. package/src/jscommon/umychart.vue.build/umychart.vue.bat +0 -8
  70. package/src/jscommon/umychart.vue.build/umychart.vue.export.js +0 -112
  71. package/src/jscommon/umychart.vue.components/empyt.vue +0 -51
  72. package/src/jscommon/umychart.vue.components/historydayline.vue +0 -240
  73. package/src/jscommon/umychart.vue.components/jsloader.adddialog.vue +0 -315
  74. package/src/jscommon/umychart.vue.components/jsloader.vue +0 -93
  75. package/src/jscommon/umychart.vue.components/jsvuecontainer.vue +0 -160
  76. package/src/jscommon/umychart.vue.components/jsvuecontainer2.0.vue +0 -391
  77. package/src/jscommon/umychart.vue.components/login.vue +0 -178
  78. package/src/jscommon/umychart.vue.components/queryContent.vue +0 -750
  79. package/src/jscommon/umychart.vue.components/readme.txt +0 -8
  80. package/src/jscommon/umychart.vue.components/searchsymbol.vue +0 -299
  81. package/src/jscommon/umychart.vue.components/simulatetrade.vue +0 -1471
  82. package/src/jscommon/umychart.vue.components/stockchart.vue +0 -343
  83. package/src/jscommon/umychart.vue.components/stockchartV2.vue +0 -195
  84. package/src/jscommon/umychart.vue.components/stockdeal.vue +0 -358
  85. package/src/jscommon/umychart.vue.components/stockdealcount.vue +0 -262
  86. package/src/jscommon/umychart.vue.components/stockdeallastest.vue +0 -316
  87. package/src/jscommon/umychart.vue.components/stockdrawtool.vue +0 -343
  88. package/src/jscommon/umychart.vue.components/stockfull.vue +0 -355
  89. package/src/jscommon/umychart.vue.components/stockinfo.demo.vue +0 -153
  90. package/src/jscommon/umychart.vue.components/stockinfo.vue +0 -685
  91. package/src/jscommon/umychart.vue.components/stockkline.demo.vue +0 -1904
  92. package/src/jscommon/umychart.vue.components/stockmultiorder.vue +0 -174
  93. package/src/jscommon/umychart.vue.components/stockmultiperiod.vue +0 -222
  94. package/src/jscommon/umychart.vue.components/stockorder.vue +0 -320
  95. package/src/jscommon/umychart.vue.components/stocktradeinfo.demo.vue +0 -250
  96. package/src/jscommon/umychart.vue.components/stocktradeinfo.vue +0 -1907
  97. package/src/jscommon/umychart.vue.components/test.vue +0 -0
  98. package/src/jscommon/umychart.wechat/getDate.wechat.js +0 -91
  99. package/src/jscommon/umychart.wechat/lighter.news.wechat.js +0 -262
  100. package/src/jscommon/umychart.wechat/readme.txt +0 -3
  101. package/src/jscommon/umychart.wechat/umychart.analyze.wechat.js +0 -551
  102. package/src/jscommon/umychart.wechat/umychart.apidraw.wechat.js +0 -126
  103. package/src/jscommon/umychart.wechat/umychart.bigV.wechat.js +0 -2510
  104. package/src/jscommon/umychart.wechat/umychart.chartframe.wechat.js +0 -2942
  105. package/src/jscommon/umychart.wechat/umychart.chartpaint.wechat.js +0 -9752
  106. package/src/jscommon/umychart.wechat/umychart.charttitle.wechat.js +0 -2023
  107. package/src/jscommon/umychart.wechat/umychart.complier.wechat.js +0 -14726
  108. package/src/jscommon/umychart.wechat/umychart.console.wechat.js +0 -8
  109. package/src/jscommon/umychart.wechat/umychart.coordinatedata.wechat.js +0 -3654
  110. package/src/jscommon/umychart.wechat/umychart.data.wechat.js +0 -2243
  111. package/src/jscommon/umychart.wechat/umychart.element.wechart.js +0 -132
  112. package/src/jscommon/umychart.wechat/umychart.explainer.wechat.js +0 -1077
  113. package/src/jscommon/umychart.wechat/umychart.extendchart.wechat.js +0 -1140
  114. package/src/jscommon/umychart.wechat/umychart.framesplit.wechat.js +0 -2247
  115. package/src/jscommon/umychart.wechat/umychart.hqIndexformula.wechat.js +0 -941
  116. package/src/jscommon/umychart.wechat/umychart.index.data.wechat.js +0 -3628
  117. package/src/jscommon/umychart.wechat/umychart.index.wechat.js +0 -4074
  118. package/src/jscommon/umychart.wechat/umychart.klineinfo.wechat.js +0 -836
  119. package/src/jscommon/umychart.wechat/umychart.markethot.js +0 -50
  120. package/src/jscommon/umychart.wechat/umychart.network.wechart.js +0 -62
  121. package/src/jscommon/umychart.wechat/umychart.news.wechat.js +0 -3568
  122. package/src/jscommon/umychart.wechat/umychart.regressiontest.wechat.js +0 -412
  123. package/src/jscommon/umychart.wechat/umychart.report.wechat.js +0 -3983
  124. package/src/jscommon/umychart.wechat/umychart.resource.wechat.js +0 -919
  125. package/src/jscommon/umychart.wechat/umychart.shareimage.wechat.js +0 -681
  126. package/src/jscommon/umychart.wechat/umychart.simulatetrade.wechat.js +0 -238
  127. package/src/jscommon/umychart.wechat/umychart.stock.wechat.js +0 -4035
  128. package/src/jscommon/umychart.wechat/umychart.style.wechat.js +0 -419
  129. package/src/jscommon/umychart.wechat/umychart.uniapp.canvas.helper.js +0 -99
  130. package/src/jscommon/umychart.wechat/umychart.user.wechat.js +0 -588
  131. package/src/jscommon/umychart.wechat/umychart.userlog.wechat.js +0 -240
  132. package/src/jscommon/umychart.wechat/umychart.vedio.wechat.js +0 -112
  133. package/src/jscommon/umychart.wechat/umychart.version.wechat.js +0 -36
  134. package/src/jscommon/umychart.wechat/umychart.wechat.3.0.js +0 -12055
  135. package/src/jscommon/umychart.wechat/umychart.wechat.js +0 -15460
  136. package/src/jscommon/umychart.worker.js +0 -114
  137. package/src/jscommon/umychart.ws.stock.js +0 -110
  138. package/src/jscommon/umychart_python/.vscode/launch.json +0 -15
  139. package/src/jscommon/umychart_python/__init__.py +0 -4
  140. package/src/jscommon/umychart_python/build.cmd +0 -2
  141. package/src/jscommon/umychart_python/setup.py +0 -25
  142. package/src/jscommon/umychart_python/umychart_cache_testcase.py +0 -165
  143. package/src/jscommon/umychart_python/umychart_complier_data.py +0 -781
  144. package/src/jscommon/umychart_python/umychart_complier_help.py +0 -175
  145. package/src/jscommon/umychart_python/umychart_complier_job.py +0 -193
  146. package/src/jscommon/umychart_python/umychart_complier_jsalgorithm.py +0 -4144
  147. package/src/jscommon/umychart_python/umychart_complier_jscomplier.py +0 -177
  148. package/src/jscommon/umychart_python/umychart_complier_jsexecute.py +0 -517
  149. package/src/jscommon/umychart_python/umychart_complier_jsparser.py +0 -864
  150. package/src/jscommon/umychart_python/umychart_complier_jssymboldata.py +0 -1238
  151. package/src/jscommon/umychart_python/umychart_complier_jssymboldata_cache.py +0 -146
  152. package/src/jscommon/umychart_python/umychart_complier_jssymboldata_json.py +0 -106
  153. package/src/jscommon/umychart_python/umychart_complier_pandas_help.py +0 -80
  154. package/src/jscommon/umychart_python/umychart_complier_scanner.py +0 -554
  155. package/src/jscommon/umychart_python/umychart_complier_testcase.py +0 -362
  156. package/src/jscommon/umychart_python/umychart_complier_util.py +0 -30
  157. package/src/jscommon/umychart_python/umychart_webtemplate.py +0 -131
  158. package/src/jscommon/umychart_python/updatehqchartweb.bat +0 -5
  159. package/src/jscommon/vendor.js +0 -2
  160. package/src/pages/block.list.demo.page/App.vue +0 -117
  161. package/src/pages/block.list.demo.page/index.js +0 -12
  162. package/src/pages/brushTool.demo.page/App.vue +0 -19
  163. package/src/pages/brushTool.demo.page/index.js +0 -12
  164. package/src/pages/container.demo.page/App.vue +0 -118
  165. package/src/pages/container.demo.page/index.js +0 -18
  166. package/src/pages/dataZoom.demo.page/App.vue +0 -265
  167. package/src/pages/dataZoom.demo.page/components/dataZoom.vue +0 -303
  168. package/src/pages/dataZoom.demo.page/index.js +0 -12
  169. package/src/pages/historydayline.demo.page/App.vue +0 -57
  170. package/src/pages/historydayline.demo.page/index.js +0 -12
  171. package/src/pages/hq.demo.page/App.vue +0 -163
  172. package/src/pages/hq.demo.page/index.js +0 -12
  173. package/src/pages/hqchart.black/App.vue +0 -90
  174. package/src/pages/hqchart.black/components/searchsymbol.vue +0 -299
  175. package/src/pages/hqchart.black/components/stockdrawtool.vue +0 -300
  176. package/src/pages/hqchart.black/components/stockfull.vue +0 -313
  177. package/src/pages/hqchart.black/components/stockinfo.vue +0 -428
  178. package/src/pages/hqchart.black/components/stockkline.demo.vue +0 -1652
  179. package/src/pages/hqchart.black/components/stocktradeinfo.vue +0 -1337
  180. package/src/pages/hqchart.black/index.js +0 -30
  181. package/src/pages/hqchart.black/router/candlestickChart.vue +0 -108
  182. package/src/pages/hqchart.black/router/pricePointsTable.vue +0 -294
  183. package/src/pages/hqchart.black/router/stockDeallas.vue +0 -417
  184. package/src/pages/hqchart.black/router/timeShareChart.vue +0 -108
  185. package/src/pages/hqchart.page/App.vue +0 -101
  186. package/src/pages/hqchart.page/index.js +0 -18
  187. package/src/pages/index/App.vue +0 -1408
  188. package/src/pages/index/index.js +0 -7
  189. package/src/pages/indexHq/App.vue +0 -110
  190. package/src/pages/indexHq/index.js +0 -18
  191. package/src/pages/login.demo.page/App.vue +0 -22
  192. package/src/pages/login.demo.page/index.js +0 -12
  193. package/src/pages/queryContent.demo.page/App.vue +0 -29
  194. package/src/pages/queryContent.demo.page/index.js +0 -18
  195. package/src/pages/ranking.black/App.vue +0 -199
  196. package/src/pages/ranking.black/index.js +0 -18
  197. package/src/pages/search.demo.page/App.vue +0 -28
  198. package/src/pages/search.demo.page/index.js +0 -12
  199. package/src/pages/simulatetrade.demo.page/app.vue +0 -121
  200. package/src/pages/simulatetrade.demo.page/index.js +0 -17
  201. package/src/pages/stockdeal.demo.page/App.vue +0 -63
  202. package/src/pages/stockdeal.demo.page/index.js +0 -19
  203. package/src/pages/stockdealcount.demo.page/App.vue +0 -37
  204. package/src/pages/stockdealcount.demo.page/index.js +0 -12
  205. package/src/pages/stockdeallastest.demo.page/App.vue +0 -74
  206. package/src/pages/stockdeallastest.demo.page/index.js +0 -18
  207. package/src/pages/stockinfo.demo.page/App.vue +0 -92
  208. package/src/pages/stockinfo.demo.page/index.html +0 -13
  209. package/src/pages/stockinfo.demo.page/index.js +0 -19
  210. package/src/pages/stockkline.demo.page/App.vue +0 -55
  211. package/src/pages/stockkline.demo.page/index.js +0 -18
  212. package/src/pages/stockmultiorder.demo.page/App.vue +0 -149
  213. package/src/pages/stockmultiorder.demo.page/index.js +0 -18
  214. package/src/pages/stockmultiperiod.demo.page/App.vue +0 -87
  215. package/src/pages/stockmultiperiod.demo.page/index.js +0 -18
  216. package/src/pages/stockorder.demo.page/App.vue +0 -69
  217. package/src/pages/stockorder.demo.page/index.js +0 -18
  218. package/src/pages/test/App.vue +0 -22
  219. package/src/pages/test/index.js +0 -7
  220. package/src/pages/tradeinfopage/app.vue +0 -40
  221. package/src/pages/tradeinfopage/index.js +0 -7
  222. package/src/pages/tradeinfopage/tradeinfo.html +0 -12
  223. package/src/utils/urlObj.js +0 -81
  224. package/src/vendor.js +0 -2
  225. package/webpack.config.js +0 -104
@@ -1,12 +0,0 @@
1
- import Vue from 'vue'
2
- import ElementUI from 'element-ui'
3
- import locale from 'element-ui/lib/locale/lang/en'
4
- import 'element-ui/lib/theme-default/index.css';
5
- import App from './app.vue'
6
-
7
- Vue.use(ElementUI, { locale })
8
-
9
- new Vue({
10
- el: '#app',
11
- render: h => h(App)
12
- })
@@ -1,57 +0,0 @@
1
- <template>
2
- <div class='historydaywrap' style='width:100%;height:700px;'>
3
- <HistoryDayLine ref='historydayline' :DefaultSymbol='DefaultSymbol'></HistoryDayLine>
4
- </div>
5
-
6
- </template>
7
-
8
-
9
-
10
-
11
-
12
- <script>
13
- // import JSCommonStock from "../../jscommon/umychart.vue/umychart.stock.vue.js";
14
- import HistoryDayLine from '../../jscommon/umychart.vue.components/historydayline.vue'
15
-
16
-
17
- export default {
18
- name: 'HistoryDayLineDemo',
19
- data() {
20
- return {
21
- DefaultSymbol:'000001.sh',
22
- JSStock:null
23
- }
24
- },
25
-
26
- props: [],
27
- components:{
28
- HistoryDayLine
29
- },
30
-
31
- //创建
32
- created: function () {
33
- // this.JSStock = HistoryDayLine.JSCommonStock.JSStock;
34
-
35
- },
36
-
37
- mounted: function () {
38
- this.OnSize();
39
- var _this = this;
40
- window.onresize = function() {
41
- _this.OnSize();
42
- }
43
- },
44
-
45
- methods: {
46
- OnSize(){
47
- var historydayline = this.$refs.historydayline;
48
- historydayline.OnSize();
49
- }
50
- }
51
- }
52
- </script>
53
-
54
- <style>
55
-
56
-
57
- </style>
@@ -1,12 +0,0 @@
1
- import Vue from 'vue'
2
- import ElementUI from 'element-ui'
3
- import locale from 'element-ui/lib/locale/lang/en'
4
- import 'element-ui/lib/theme-default/index.css';
5
- import App from './app.vue'
6
-
7
- Vue.use(ElementUI, { locale })
8
-
9
- new Vue({
10
- el: '#app',
11
- render: h => h(App)
12
- })
@@ -1,163 +0,0 @@
1
- <template>
2
- <div id="app2" >
3
- <div class="demoPageTop">
4
- <span>HQChart测试用例 版本号:1.1.12314</span>
5
- <a href="https://github.com/jones2000/HQChart" target="_blank">代码地址: https://github.com/jones2000/HQChart</a>
6
- <div class="changeColorBtns">
7
- <button type="button" @click="OnChangeStyle('black')">黑色风格</button>
8
- <button type="button" @click="OnChangeStyle('white')">白色风格</button>
9
- </div>
10
-
11
- </div>
12
-
13
- <!--
14
- <a v-on:click="OnChangeSymbol('002230.sz')">科大讯飞</a>
15
- <a v-on:click="OnChangeSymbol('600016.sh')">民生银行</a>
16
- <a v-on:click="OnChangeSymbol('000001.sh')">上证指数</a>
17
- !-->
18
- <div class='divstockfull'>
19
- <StockFull ref='stockfull' DefaultPeriod='分时' :DefaultSymbol=this.Symbol
20
- :KLineOption=this.KLineOption :MinuteOption=this.MinuteOption />
21
- </div>
22
- </div>
23
- </template>
24
-
25
- <script>
26
- import StockFull from '../../jscommon/umychart.vue.components/stockfull.vue'
27
- import HQChart from '../../jscommon/umychart.vue/umychart.vue'
28
-
29
- //定制K线设置
30
- const CUSTOM_KLINE_OPTION=
31
- {
32
- Windows: //窗口指标
33
- [
34
- {Index:"MA", Overlay:true, Export:true, OverlayIndexType:{ Position:1, LineSpace:3 }},
35
- {Index:"MACD", Overlay:true, OverlayIndexType:{ Position:1, LineSpace:3 }},
36
- ],
37
-
38
- //TradeIndex: {Index:'交易系统-BIAS'}, //交易系统
39
- //ColorIndex:{ Index:'五彩K线-十字星'}, //五彩K线
40
-
41
- KLine:
42
- {
43
- //Info:["公告","互动易","调研"], //信息地雷
44
- Right:0, //复权 0 不复权 1 前复权 2 后复权
45
- }
46
- }
47
-
48
- const CUSTOM_MINUTE_OPTION=
49
- {
50
- Windows: //窗口指标
51
- [
52
- {Index:"RSI", Export:true },
53
- ]
54
- }
55
-
56
-
57
-
58
-
59
- export default
60
- {
61
- data ()
62
- {
63
- return {
64
- KLineOption:CUSTOM_KLINE_OPTION,
65
- MinuteOption:CUSTOM_MINUTE_OPTION,
66
- Symbol:'000001.sz'
67
- }
68
- },
69
-
70
- components: { StockFull},
71
-
72
- created:function()
73
- {
74
- var symbol = this.GetURLParams('symbol');
75
- if (symbol != null) this.Symbol = symbol;
76
- var isLog=this.GetURLParams('log');
77
- if (isLog=='false')
78
- {
79
- HQChart.JSConsole.Chart.Log=()=>{}
80
- HQChart.JSConsole.Complier.Log=()=>{}
81
- }
82
- },
83
-
84
- mounted:function()
85
- {
86
- var stockfull=this.$refs.stockfull;
87
-
88
- var self=this;
89
- window.onresize = function() { self.OnSize() }
90
-
91
- this.OnSize();
92
- },
93
-
94
-
95
- methods:
96
- {
97
- OnChangeSymbol:function(symbol)
98
- {
99
- this.$refs.stockfull.SetSymbol(symbol);
100
- },
101
-
102
- OnSize:function()
103
- {
104
- var height= $(window).height();
105
- var width = $(window).width();
106
-
107
- $('.divstockfull').height(height-70);
108
-
109
- this.$refs.stockfull.OnSize();
110
- },
111
-
112
- GetURLParams:function(name)
113
- {
114
- var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
115
- var r = window.location.search.substr(1).match(reg);
116
- if (r != null) return decodeURI(r[2]);
117
- return null;
118
- },
119
-
120
- OnChangeStyle(styleName)
121
- {
122
- this.$refs.stockfull.OnChangeStyle(styleName);
123
- }
124
- }
125
- }
126
-
127
- </script>
128
-
129
- <style lang="less">
130
- *
131
- {
132
- font: 14px/normal "Microsoft Yahei";
133
- color: #666;
134
- padding: 0;
135
- margin: 0;
136
- }
137
-
138
- .demoPageTop{
139
- position: relative;
140
- height: 40px;
141
- line-height: 40px;
142
- text-align: center;
143
-
144
- .changeColorBtns{
145
- position: absolute;
146
- top: 0;
147
- right: 15px;
148
- height: 100%;
149
- width: 140px;
150
- display: flex;
151
- justify-content: space-between;
152
- align-items: center;
153
- }
154
- }
155
-
156
- .divstockfull
157
- {
158
- height:800px;
159
- margin: 5px;
160
- border:4px solid #FFA500;
161
- }
162
-
163
- </style>
@@ -1,12 +0,0 @@
1
- import Vue from 'vue'
2
- import ElementUI from 'element-ui'
3
- import locale from 'element-ui/lib/locale/lang/en'
4
- import 'element-ui/lib/theme-default/index.css';
5
- import App from './app.vue'
6
-
7
- Vue.use(ElementUI, { locale })
8
-
9
- new Vue({
10
- el: '#app',
11
- render: h => h(App)
12
- })
@@ -1,90 +0,0 @@
1
- <template>
2
- <div id="app2" >
3
- <div class="nav">
4
- <router-link to="/" exact-active-class="current">分时图</router-link>
5
- <router-link to="/candlestickChart" exact-active-class="current">分时图</router-link>
6
- <router-link to="/stockDeallas" exact-active-class="current">分时成交</router-link>
7
- <router-link to="/pricePointsTable" exact-active-class="current">分价表</router-link>
8
- </div>
9
- <div class="content">
10
- <router-view :Symbol="Symbol"></router-view>
11
- </div>
12
- </div>
13
- </template>
14
-
15
- <script>
16
-
17
- export default
18
- {
19
- data() {
20
- return {
21
- Symbol: '000001.sz'
22
- }
23
- },
24
- created() {
25
- var symbol = this.GetURLParams('symbol');
26
- if (symbol != null) this.Symbol = symbol;
27
- },
28
- methods: {
29
- GetURLParams:function(name)
30
- {
31
- var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
32
- var r = window.location.search.substr(1).match(reg);
33
- if (r != null) return decodeURI(r[2]);
34
- return null;
35
- }
36
- }
37
- }
38
-
39
- </script>
40
-
41
- <style lang="less">
42
- html,body{
43
- height: 100%;
44
- }
45
- body
46
- {
47
- font: 14px Arial,Microsoft YaHei;
48
- color: #666;
49
- padding: 0;
50
- margin: 0;
51
- }
52
- ol,
53
- ul {
54
- list-style: none;
55
- }
56
- a
57
- {
58
- text-decoration: none;
59
- }
60
-
61
- #app2{
62
- display: flex;
63
- height: 100%;
64
- font: 14px Arial,Microsoft YaHei;
65
- }
66
- .nav{
67
- display: flex;
68
- flex-direction: column;
69
- height: 100%;
70
- background-color: #1a1e20;
71
- border-left: 1px solid #2c3032;
72
- border-right: 1px solid #2c3032;
73
- color: #919aa3;
74
- text-align: center;
75
- > a{
76
- width: 24px;
77
- text-align: center;
78
- text-decoration: none;
79
- color: #919aa3;
80
- margin-top: 10px;
81
- &:hover,&.current {
82
- color: #ff9900;
83
- }
84
- }
85
- }
86
- .content{
87
- flex: 1;
88
- background: #141718;
89
- }
90
- </style>
@@ -1,299 +0,0 @@
1
- <!--
2
- 股票代码搜索控件
3
- -->
4
-
5
- <template>
6
- <div class="symbolWrap">
7
- <div class="inputBox" v-on:keyup.38="KeyUp" v-on:keyup.40="KeyDown" v-on:keyup.enter="KeyEnter">
8
- <input
9
- class="myInput"
10
- v-model="Symbol"
11
- autofocus="autofocus"
12
- placeholder="请输入股票代码或简称"
13
- @keyup="SpellSock()"
14
- ref="inputSymbol"
15
- >
16
- <span class="iconBox" v-show="Symbol != '' ">
17
- <i class="el-icon-close myIcon" @click="DeletSymbel()"></i>
18
- </span>
19
- <span v-show="SearchKeywords" class="SearchKeywords">
20
-
21
- <span class="keyWords">
22
- "
23
- <span class="widthSure">{{Symbol}}</span>"
24
- </span>
25
- 相关股票
26
- </span>
27
- <div class="stockList" v-show="SpellListEle">
28
- <p
29
- class="item"
30
- v-for="(item,index) in SpellStockData"
31
- @click="HideSpellList(item)"
32
- @mousemove="MouseMove(index)"
33
- :key="index"
34
- :class="SetSelect(index)"
35
- >
36
- <span class="symbol">{{item.Symbol}}</span>
37
- <span class="name">{{item.Name}}</span>
38
- </p>
39
- </div>
40
- </div>
41
- </div>
42
- </template>
43
-
44
- <script>
45
- import JSCommonStock from "../../../jscommon/umychart.vue/umychart.stock.vue.js";
46
-
47
- import Vue from "vue";
48
- import ElementUI from "element-ui";
49
- import "element-ui/lib/theme-default/index.css";
50
- import locale from "element-ui/lib/locale/lang/en";
51
-
52
- Vue.use(ElementUI, { locale });
53
-
54
- export default {
55
- name: "SearchSymbol",
56
- data() {
57
- return {
58
- Symbol: "",
59
- SearchStock: null,
60
- SpellStockData: [],
61
- SpellListEle: false,
62
- SearchKeywords: false, // 控制搜索关键字行显示隐藏
63
- Select: 0, // 搜索内容行
64
- OldSymbol: "",
65
- IsQuery: true //是否查询
66
- };
67
- },
68
-
69
- methods: {
70
- // 键盘上键事件
71
- KeyUp() {
72
- if (this.SpellStockData.length > 0) {
73
- this.Select = this.Select - 1;
74
- if (this.Select < 0) {
75
- this.Select = 0;
76
- }
77
- this.SetScrollTo();
78
- }
79
- },
80
- // 键盘下键事件
81
- KeyDown() {
82
- if (this.SpellStockData.length > 0) {
83
- this.Select = this.Select + 1;
84
- if (this.Select >= this.SpellStockData.length) {
85
- this.Select = this.SpellStockData.length - 1;
86
- }
87
- this.SetScrollTo();
88
- }
89
- },
90
- KeyEnter() {
91
- if (this.Select > -1) {
92
- this.Symbol = this.SpellStockData[this.Select].Symbol;
93
- this.SearchKeywords = false;
94
- this.SpellListEle = false;
95
- this.IsQuery = false;
96
- this.$emit("inputValue", this.Symbol);
97
- }
98
- },
99
- MouseMove(index) {
100
- this.Select = index;
101
- },
102
- SetScrollTo() {
103
- if (this.Select >= 4) {
104
- let itemHeight = $(".item").height() + 4;
105
- $(".stockList").scrollTop(itemHeight * (this.Select - 4));
106
- } else {
107
- $(".stockList").scrollTop(0);
108
- }
109
- },
110
- SetSelect(index) {
111
- if (this.Select === index) {
112
- return "Select";
113
- }
114
- },
115
-
116
- SpellSock() {
117
- if (this.Symbol) {
118
- this.SearchKeywords = true;
119
- this.SpellListEle = true;
120
- } else {
121
- this.SearchKeywords = false;
122
- this.SpellListEle = false;
123
- return;
124
- }
125
-
126
- if (this.OldSymbol !== this.Symbol) {
127
- this.Select = 0;
128
- this.OldSymbol = this.Symbol;
129
-
130
- if (this.IsQuery) {
131
- this.SearchStock = JSCommonStock.JSStock.GetSearchStock(
132
- this.SpellCallback
133
- );
134
- let symbol = this.Symbol;
135
- this.SearchStock.Search(symbol, 2 | 4); //支持股票+指数
136
- }
137
- this.IsQuery = true;
138
- }
139
- },
140
-
141
- SpellCallback(data) {
142
- var stocks = data.Data;
143
- this.SpellStockData = stocks;
144
- this.SpellListEle = true;
145
- },
146
-
147
- HideSpellList(stock) {
148
- var symbol = stock.Symbol;
149
- this.SpellListEle = false;
150
- this.SearchKeywords = false;
151
- this.Symbol = symbol;
152
- this.$emit("inputValue", this.Symbol);
153
- // this.$emit("inputStock", stock);
154
- this.IsQuery = false;
155
- },
156
-
157
- DeletSymbel() {
158
- this.Symbol = "";
159
- this.SpellListEle = false;
160
- this.SearchKeywords = false;
161
- this.$nextTick(function() {
162
- //DOM 更新了
163
- this.$refs.inputSymbol.focus();
164
- });
165
- }
166
- }
167
- };
168
- </script>
169
-
170
-
171
- <style lang="less">
172
- .symbolWrap {
173
- position: relative;
174
- .Select {
175
- background-color: #fff3d8;
176
- }
177
-
178
- .myInput {
179
- width: 137px;
180
- height: 21px;
181
- line-height: 21px;
182
- color: #999;
183
- font-family: Microsoft YaHei;
184
- border: 1px solid #999;
185
- }
186
-
187
- .iconBox {
188
- display: inline-block;
189
- position: absolute;
190
- left: 122px;
191
- top: 0;
192
-
193
- .myIcon {
194
- color: #999;
195
- background: white;
196
- height: 19px;
197
- width: 14px;
198
- }
199
- }
200
-
201
- .SearchKeywords {
202
- display: block;
203
- border: 1px solid #999;
204
- border-top: none;
205
- background: #f0f0f0;
206
- position: absolute;
207
- width: 192px;
208
- font-size: 14px;
209
- height: 22px;
210
- line-height: 22px;
211
- padding-left: 5px;
212
- z-index: 9999;
213
- top: 23px;
214
-
215
- .keyWords {
216
- color: red;
217
- display: inline-block;
218
-
219
- .widthSure {
220
- display: inline-block;
221
- max-width: 95px;
222
- overflow: hidden;
223
- text-overflow: ellipsis;
224
- white-space: nowrap;
225
- vertical-align: top;
226
- }
227
- }
228
- }
229
-
230
- .SearchKeywords:hover {
231
- background: #999;
232
- }
233
-
234
- .stockList {
235
- position: absolute;
236
- width: 197px;
237
- top: 45px;
238
- left: 0;
239
- max-height: 120px;
240
- overflow-y: auto;
241
- overflow-x: hidden;
242
- border: 1px solid #999;
243
- border-top: 1px solid #ccc;
244
- font-size: 14px;
245
- font-family: Microsoft YaHei;
246
- background-color: #fff;
247
- padding-right: -17px;
248
- z-index: 9999;
249
-
250
- .item {
251
- padding: 2px 0;
252
- width: 100%;
253
- }
254
-
255
- .symbol {
256
- padding-left: 15px;
257
- padding-right: 25px;
258
- }
259
-
260
- .name {
261
- padding-right: 10px;
262
- }
263
- }
264
- }
265
-
266
- .el-icon-close:before {
267
- font-size: 1px;
268
- }
269
-
270
- ::-webkit-scrollbar {
271
- /* 滚动条整体部分 */
272
- width: 0px;
273
- margin-right: 2px;
274
- }
275
-
276
- ::-webkit-scrollbar-thumb {
277
- /* 滑块 */
278
- border-radius: 5px;
279
- background-color: #999;
280
- }
281
-
282
- input::-webkit-input-placeholder {
283
- /*WebKit browsers*/
284
- font-size: 12px;
285
- font-family: Microsoft YaHei;
286
- }
287
-
288
- input::-moz-input-placeholder {
289
- /*Mozilla Firefox*/
290
- font-size: 12px;
291
- font-family: Microsoft YaHei;
292
- }
293
-
294
- input::-ms-input-placeholder {
295
- /*Internet Explorer*/
296
- font-family: Microsoft YaHei;
297
- font-size: 12px;
298
- }
299
- </style>