hqchart 1.1.12687 → 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.
- package/lib/umychart.vue.js +94 -50
- package/package.json +15 -47
- package/src/jscommon/umychart.resource/js/codemirror/javascript.js +1 -1
- package/src/jscommon/umychart.uniapp.h5/umychart.uniapp.h5.js +409 -115
- package/src/jscommon/umychart.vue/umychart.vue.js +409 -115
- package/.babelrc +0 -6
- package/.vscode/settings.json +0 -4
- package/Makefile +0 -9
- package/README.md +0 -452
- package/index.js +0 -17
- package/postcss.config.js +0 -5
- package/src/index.html +0 -18
- package/src/jscommon/backup/announcement.png +0 -0
- package/src/jscommon/backup/announcement2.png +0 -0
- package/src/jscommon/backup/blocktrading.png +0 -0
- package/src/jscommon/backup/investor.png +0 -0
- package/src/jscommon/backup/pforecast.png +0 -0
- package/src/jscommon/backup/research.png +0 -0
- package/src/jscommon/backup/tradedetail.png +0 -0
- package/src/jscommon/backup/umychart - backup.js +0 -17631
- package/src/jscommon/backup/umychart.macro.js +0 -4
- package/src/jscommon/backup/umychart.macro.vue.js +0 -3
- package/src/jscommon/commonindextree.json +0 -92
- package/src/jscommon/index.html +0 -13
- package/src/jscommon/jschinamapdata.js +0 -3
- package/src/jscommon/umychart.NetworkFilterTest.js +0 -48803
- package/src/jscommon/umychart.aliYunnetwork.js +0 -47
- package/src/jscommon/umychart.cninfo.components/readme.txt +0 -1
- package/src/jscommon/umychart.complier.js +0 -25291
- package/src/jscommon/umychart.complier.node/umychart.complier.controller.js +0 -559
- package/src/jscommon/umychart.complier.node/umychart.complier.node.js +0 -7043
- package/src/jscommon/umychart.complier.node/umychart.data.node.js +0 -816
- package/src/jscommon/umychart.console.js +0 -12
- package/src/jscommon/umychart.deal.js +0 -1452
- package/src/jscommon/umychart.dragdiv.js +0 -48
- package/src/jscommon/umychart.index.data.js +0 -4132
- package/src/jscommon/umychart.js +0 -90257
- package/src/jscommon/umychart.keyboard.js +0 -1659
- package/src/jscommon/umychart.listctrl.js +0 -690
- package/src/jscommon/umychart.mind.js +0 -2203
- package/src/jscommon/umychart.network.js +0 -44
- package/src/jscommon/umychart.news.js +0 -823
- package/src/jscommon/umychart.node.build/buildall.bat +0 -1
- package/src/jscommon/umychart.node.build/umychart.node.bat +0 -1
- package/src/jscommon/umychart.node.build/umychart.node.export.js +0 -40
- package/src/jscommon/umychart.regressiontest.js +0 -400
- package/src/jscommon/umychart.report.js +0 -5803
- package/src/jscommon/umychart.scrollbar.js +0 -1345
- package/src/jscommon/umychart.stock.js +0 -4218
- package/src/jscommon/umychart.style.js +0 -618
- package/src/jscommon/umychart.testdata.js +0 -150
- package/src/jscommon/umychart.uniapp.build/buildall.bat +0 -1
- package/src/jscommon/umychart.uniapp.build/umychart.bat +0 -1
- package/src/jscommon/umychart.uniapp.build/umychart.export.js +0 -70
- package/src/jscommon/umychart.user.js +0 -137
- package/src/jscommon/umychart.version.js +0 -30
- package/src/jscommon/umychart.vue/umychart.aliYunnetwork.vue.js +0 -56
- package/src/jscommon/umychart.vue.build/buildall.bat +0 -4
- package/src/jscommon/umychart.vue.build/copy_codemirror.bat +0 -2
- package/src/jscommon/umychart.vue.build/umychart.aliYunnetwork.vue.export.js +0 -9
- package/src/jscommon/umychart.vue.build/umychart.dragdiv.bat +0 -1
- package/src/jscommon/umychart.vue.build/umychart.dragdiv.export.js +0 -6
- package/src/jscommon/umychart.vue.build/umychart.index.data.bat +0 -1
- package/src/jscommon/umychart.vue.build/umychart.index.data.export.js +0 -4
- package/src/jscommon/umychart.vue.build/umychart.listctrl.vue.export.js +0 -15
- package/src/jscommon/umychart.vue.build/umychart.regressiontest.vue.export.js +0 -7
- package/src/jscommon/umychart.vue.build/umychart.regressiontest.wechat.export.js +0 -12
- package/src/jscommon/umychart.vue.build/umychart.stock.bat +0 -1
- package/src/jscommon/umychart.vue.build/umychart.stock.vue.export.js +0 -16
- package/src/jscommon/umychart.vue.build/umychart.testdata.bat +0 -3
- package/src/jscommon/umychart.vue.build/umychart.testdata.vue.export.js +0 -7
- package/src/jscommon/umychart.vue.build/umychart.vue.bat +0 -8
- package/src/jscommon/umychart.vue.build/umychart.vue.export.js +0 -112
- package/src/jscommon/umychart.vue.components/empyt.vue +0 -51
- package/src/jscommon/umychart.vue.components/historydayline.vue +0 -240
- package/src/jscommon/umychart.vue.components/jsloader.adddialog.vue +0 -315
- package/src/jscommon/umychart.vue.components/jsloader.vue +0 -93
- package/src/jscommon/umychart.vue.components/jsvuecontainer.vue +0 -160
- package/src/jscommon/umychart.vue.components/jsvuecontainer2.0.vue +0 -391
- package/src/jscommon/umychart.vue.components/login.vue +0 -178
- package/src/jscommon/umychart.vue.components/queryContent.vue +0 -750
- package/src/jscommon/umychart.vue.components/readme.txt +0 -8
- package/src/jscommon/umychart.vue.components/searchsymbol.vue +0 -299
- package/src/jscommon/umychart.vue.components/simulatetrade.vue +0 -1471
- package/src/jscommon/umychart.vue.components/stockchart.vue +0 -343
- package/src/jscommon/umychart.vue.components/stockchartV2.vue +0 -195
- package/src/jscommon/umychart.vue.components/stockdeal.vue +0 -358
- package/src/jscommon/umychart.vue.components/stockdealcount.vue +0 -262
- package/src/jscommon/umychart.vue.components/stockdeallastest.vue +0 -316
- package/src/jscommon/umychart.vue.components/stockdrawtool.vue +0 -343
- package/src/jscommon/umychart.vue.components/stockfull.vue +0 -355
- package/src/jscommon/umychart.vue.components/stockinfo.demo.vue +0 -153
- package/src/jscommon/umychart.vue.components/stockinfo.vue +0 -685
- package/src/jscommon/umychart.vue.components/stockkline.demo.vue +0 -1904
- package/src/jscommon/umychart.vue.components/stockmultiorder.vue +0 -174
- package/src/jscommon/umychart.vue.components/stockmultiperiod.vue +0 -222
- package/src/jscommon/umychart.vue.components/stockorder.vue +0 -320
- package/src/jscommon/umychart.vue.components/stocktradeinfo.demo.vue +0 -250
- package/src/jscommon/umychart.vue.components/stocktradeinfo.vue +0 -1907
- package/src/jscommon/umychart.vue.components/test.vue +0 -0
- package/src/jscommon/umychart.wechat/getDate.wechat.js +0 -91
- package/src/jscommon/umychart.wechat/lighter.news.wechat.js +0 -262
- package/src/jscommon/umychart.wechat/readme.txt +0 -3
- package/src/jscommon/umychart.wechat/umychart.analyze.wechat.js +0 -551
- package/src/jscommon/umychart.wechat/umychart.apidraw.wechat.js +0 -126
- package/src/jscommon/umychart.wechat/umychart.bigV.wechat.js +0 -2510
- package/src/jscommon/umychart.wechat/umychart.chartframe.wechat.js +0 -2931
- package/src/jscommon/umychart.wechat/umychart.chartpaint.wechat.js +0 -9752
- package/src/jscommon/umychart.wechat/umychart.charttitle.wechat.js +0 -2023
- package/src/jscommon/umychart.wechat/umychart.complier.wechat.js +0 -14726
- package/src/jscommon/umychart.wechat/umychart.console.wechat.js +0 -8
- package/src/jscommon/umychart.wechat/umychart.coordinatedata.wechat.js +0 -3654
- package/src/jscommon/umychart.wechat/umychart.data.wechat.js +0 -2243
- package/src/jscommon/umychart.wechat/umychart.element.wechart.js +0 -132
- package/src/jscommon/umychart.wechat/umychart.explainer.wechat.js +0 -1077
- package/src/jscommon/umychart.wechat/umychart.extendchart.wechat.js +0 -1140
- package/src/jscommon/umychart.wechat/umychart.framesplit.wechat.js +0 -2247
- package/src/jscommon/umychart.wechat/umychart.hqIndexformula.wechat.js +0 -941
- package/src/jscommon/umychart.wechat/umychart.index.data.wechat.js +0 -3628
- package/src/jscommon/umychart.wechat/umychart.index.wechat.js +0 -4074
- package/src/jscommon/umychart.wechat/umychart.klineinfo.wechat.js +0 -836
- package/src/jscommon/umychart.wechat/umychart.markethot.js +0 -50
- package/src/jscommon/umychart.wechat/umychart.network.wechart.js +0 -62
- package/src/jscommon/umychart.wechat/umychart.news.wechat.js +0 -3568
- package/src/jscommon/umychart.wechat/umychart.regressiontest.wechat.js +0 -412
- package/src/jscommon/umychart.wechat/umychart.report.wechat.js +0 -3983
- package/src/jscommon/umychart.wechat/umychart.resource.wechat.js +0 -919
- package/src/jscommon/umychart.wechat/umychart.shareimage.wechat.js +0 -681
- package/src/jscommon/umychart.wechat/umychart.simulatetrade.wechat.js +0 -238
- package/src/jscommon/umychart.wechat/umychart.stock.wechat.js +0 -4035
- package/src/jscommon/umychart.wechat/umychart.style.wechat.js +0 -419
- package/src/jscommon/umychart.wechat/umychart.uniapp.canvas.helper.js +0 -99
- package/src/jscommon/umychart.wechat/umychart.user.wechat.js +0 -588
- package/src/jscommon/umychart.wechat/umychart.userlog.wechat.js +0 -240
- package/src/jscommon/umychart.wechat/umychart.vedio.wechat.js +0 -112
- package/src/jscommon/umychart.wechat/umychart.version.wechat.js +0 -36
- package/src/jscommon/umychart.wechat/umychart.wechat.3.0.js +0 -12051
- package/src/jscommon/umychart.wechat/umychart.wechat.js +0 -15460
- package/src/jscommon/umychart.worker.js +0 -114
- package/src/jscommon/umychart.ws.stock.js +0 -110
- package/src/jscommon/umychart_python/.vscode/launch.json +0 -15
- package/src/jscommon/umychart_python/__init__.py +0 -4
- package/src/jscommon/umychart_python/build.cmd +0 -2
- package/src/jscommon/umychart_python/setup.py +0 -25
- package/src/jscommon/umychart_python/umychart_cache_testcase.py +0 -165
- package/src/jscommon/umychart_python/umychart_complier_data.py +0 -781
- package/src/jscommon/umychart_python/umychart_complier_help.py +0 -175
- package/src/jscommon/umychart_python/umychart_complier_job.py +0 -193
- package/src/jscommon/umychart_python/umychart_complier_jsalgorithm.py +0 -4144
- package/src/jscommon/umychart_python/umychart_complier_jscomplier.py +0 -177
- package/src/jscommon/umychart_python/umychart_complier_jsexecute.py +0 -517
- package/src/jscommon/umychart_python/umychart_complier_jsparser.py +0 -864
- package/src/jscommon/umychart_python/umychart_complier_jssymboldata.py +0 -1238
- package/src/jscommon/umychart_python/umychart_complier_jssymboldata_cache.py +0 -146
- package/src/jscommon/umychart_python/umychart_complier_jssymboldata_json.py +0 -106
- package/src/jscommon/umychart_python/umychart_complier_pandas_help.py +0 -80
- package/src/jscommon/umychart_python/umychart_complier_scanner.py +0 -554
- package/src/jscommon/umychart_python/umychart_complier_testcase.py +0 -362
- package/src/jscommon/umychart_python/umychart_complier_util.py +0 -30
- package/src/jscommon/umychart_python/umychart_webtemplate.py +0 -131
- package/src/jscommon/umychart_python/updatehqchartweb.bat +0 -5
- package/src/jscommon/vendor.js +0 -2
- package/src/pages/block.list.demo.page/App.vue +0 -117
- package/src/pages/block.list.demo.page/index.js +0 -12
- package/src/pages/brushTool.demo.page/App.vue +0 -19
- package/src/pages/brushTool.demo.page/index.js +0 -12
- package/src/pages/container.demo.page/App.vue +0 -118
- package/src/pages/container.demo.page/index.js +0 -18
- package/src/pages/dataZoom.demo.page/App.vue +0 -265
- package/src/pages/dataZoom.demo.page/components/dataZoom.vue +0 -303
- package/src/pages/dataZoom.demo.page/index.js +0 -12
- package/src/pages/historydayline.demo.page/App.vue +0 -57
- package/src/pages/historydayline.demo.page/index.js +0 -12
- package/src/pages/hq.demo.page/App.vue +0 -163
- package/src/pages/hq.demo.page/index.js +0 -12
- package/src/pages/hqchart.black/App.vue +0 -90
- package/src/pages/hqchart.black/components/searchsymbol.vue +0 -299
- package/src/pages/hqchart.black/components/stockdrawtool.vue +0 -300
- package/src/pages/hqchart.black/components/stockfull.vue +0 -313
- package/src/pages/hqchart.black/components/stockinfo.vue +0 -428
- package/src/pages/hqchart.black/components/stockkline.demo.vue +0 -1652
- package/src/pages/hqchart.black/components/stocktradeinfo.vue +0 -1337
- package/src/pages/hqchart.black/index.js +0 -30
- package/src/pages/hqchart.black/router/candlestickChart.vue +0 -108
- package/src/pages/hqchart.black/router/pricePointsTable.vue +0 -294
- package/src/pages/hqchart.black/router/stockDeallas.vue +0 -417
- package/src/pages/hqchart.black/router/timeShareChart.vue +0 -108
- package/src/pages/hqchart.page/App.vue +0 -101
- package/src/pages/hqchart.page/index.js +0 -18
- package/src/pages/index/App.vue +0 -1408
- package/src/pages/index/index.js +0 -7
- package/src/pages/indexHq/App.vue +0 -110
- package/src/pages/indexHq/index.js +0 -18
- package/src/pages/login.demo.page/App.vue +0 -22
- package/src/pages/login.demo.page/index.js +0 -12
- package/src/pages/queryContent.demo.page/App.vue +0 -29
- package/src/pages/queryContent.demo.page/index.js +0 -18
- package/src/pages/ranking.black/App.vue +0 -199
- package/src/pages/ranking.black/index.js +0 -18
- package/src/pages/search.demo.page/App.vue +0 -28
- package/src/pages/search.demo.page/index.js +0 -12
- package/src/pages/simulatetrade.demo.page/app.vue +0 -121
- package/src/pages/simulatetrade.demo.page/index.js +0 -17
- package/src/pages/stockdeal.demo.page/App.vue +0 -63
- package/src/pages/stockdeal.demo.page/index.js +0 -19
- package/src/pages/stockdealcount.demo.page/App.vue +0 -37
- package/src/pages/stockdealcount.demo.page/index.js +0 -12
- package/src/pages/stockdeallastest.demo.page/App.vue +0 -74
- package/src/pages/stockdeallastest.demo.page/index.js +0 -18
- package/src/pages/stockinfo.demo.page/App.vue +0 -92
- package/src/pages/stockinfo.demo.page/index.html +0 -13
- package/src/pages/stockinfo.demo.page/index.js +0 -19
- package/src/pages/stockkline.demo.page/App.vue +0 -55
- package/src/pages/stockkline.demo.page/index.js +0 -18
- package/src/pages/stockmultiorder.demo.page/App.vue +0 -149
- package/src/pages/stockmultiorder.demo.page/index.js +0 -18
- package/src/pages/stockmultiperiod.demo.page/App.vue +0 -87
- package/src/pages/stockmultiperiod.demo.page/index.js +0 -18
- package/src/pages/stockorder.demo.page/App.vue +0 -69
- package/src/pages/stockorder.demo.page/index.js +0 -18
- package/src/pages/test/App.vue +0 -22
- package/src/pages/test/index.js +0 -7
- package/src/pages/tradeinfopage/app.vue +0 -40
- package/src/pages/tradeinfopage/index.js +0 -7
- package/src/pages/tradeinfopage/tradeinfo.html +0 -12
- package/src/utils/urlObj.js +0 -81
- package/src/vendor.js +0 -2
- package/webpack.config.js +0 -104
|
@@ -1,238 +0,0 @@
|
|
|
1
|
-
///////////////////////////////////////////////////////////////////////////////////
|
|
2
|
-
// 仿真交易接口模块
|
|
3
|
-
//
|
|
4
|
-
///////////////////////////////////////////////////////////////////////////////////
|
|
5
|
-
var g_VTradeResource=
|
|
6
|
-
{
|
|
7
|
-
Domain:"https://opensource.zealink.com" //API域名
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
function SimulateTrade(userid)
|
|
11
|
-
{
|
|
12
|
-
this.UserID=userid; //账户id
|
|
13
|
-
|
|
14
|
-
//创建仿真账户 data={...,Callback:回调}
|
|
15
|
-
this.Register=function(data)
|
|
16
|
-
{
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
//委托买 buyData={Symbol:股票代码, Name:名称, Price:买价格, Vol:量, Callback:回调}
|
|
21
|
-
this.Buy=function(buyData)
|
|
22
|
-
{
|
|
23
|
-
var Url = g_VTradeResource.Domain + "/API/VTradeBuy";
|
|
24
|
-
wx.request({
|
|
25
|
-
url: Url,
|
|
26
|
-
data:
|
|
27
|
-
{
|
|
28
|
-
"userid": this.UserID,
|
|
29
|
-
"symbol": buyData.Symbol,
|
|
30
|
-
"name": buyData.Name,
|
|
31
|
-
"price": buyData.Price,
|
|
32
|
-
"vol": buyData.Vol
|
|
33
|
-
},
|
|
34
|
-
method: "POST",
|
|
35
|
-
dataType: "json",
|
|
36
|
-
success: function (data) {
|
|
37
|
-
if (data.data.code != 0) {
|
|
38
|
-
wx.showModal({
|
|
39
|
-
title: '提示',
|
|
40
|
-
content: data.data.message,
|
|
41
|
-
})
|
|
42
|
-
return;
|
|
43
|
-
}
|
|
44
|
-
buyData.Callback(data);
|
|
45
|
-
},
|
|
46
|
-
error: function (request) {
|
|
47
|
-
console.log("error:",request)
|
|
48
|
-
}
|
|
49
|
-
})
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
//股票联想
|
|
53
|
-
this.Spell = function (spellData) {
|
|
54
|
-
var Url = g_VTradeResource.Domain + "/API/StockSpell";
|
|
55
|
-
wx.request({
|
|
56
|
-
url: Url,
|
|
57
|
-
data:
|
|
58
|
-
{
|
|
59
|
-
"input": spellData.Input,
|
|
60
|
-
"start": spellData.Start,
|
|
61
|
-
"end": spellData.End
|
|
62
|
-
},
|
|
63
|
-
method: "POST",
|
|
64
|
-
dataType: "json",
|
|
65
|
-
success: function (data) {
|
|
66
|
-
if (data.data.code != 0) {
|
|
67
|
-
wx.showModal({
|
|
68
|
-
title: '提示',
|
|
69
|
-
content: data.data.message,
|
|
70
|
-
})
|
|
71
|
-
return;
|
|
72
|
-
}
|
|
73
|
-
spellData.Callback(data);
|
|
74
|
-
},
|
|
75
|
-
error: function (request) {
|
|
76
|
-
console.log("error:", request)
|
|
77
|
-
}
|
|
78
|
-
})
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
//委托卖 buyData={Symbol:股票代码, Name:名称, Price:卖价格, Vol:量, Callback:回调}
|
|
82
|
-
this.Sell=function(sellData)
|
|
83
|
-
{
|
|
84
|
-
var Url = g_VTradeResource.Domain + "/API/VTradeSell";
|
|
85
|
-
wx.request({
|
|
86
|
-
url: Url,
|
|
87
|
-
data:
|
|
88
|
-
{
|
|
89
|
-
"userid": this.UserID,
|
|
90
|
-
"symbol": sellData.Symbol,
|
|
91
|
-
"price": sellData.Price,
|
|
92
|
-
"vol": sellData.Vol
|
|
93
|
-
},
|
|
94
|
-
method: "POST",
|
|
95
|
-
dataType: "json",
|
|
96
|
-
success: function (data) {
|
|
97
|
-
if (data.data.code != 0) {
|
|
98
|
-
wx.showModal({
|
|
99
|
-
title: '提示',
|
|
100
|
-
content: data.data.message,
|
|
101
|
-
})
|
|
102
|
-
return;
|
|
103
|
-
}
|
|
104
|
-
sellData.Callback(data);
|
|
105
|
-
},
|
|
106
|
-
error: function (request) {
|
|
107
|
-
console.log("error:", request)
|
|
108
|
-
}
|
|
109
|
-
})
|
|
110
|
-
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
//委托撤单 cancelData={BookID:, Callback:回调}
|
|
114
|
-
this.Cancel=function(cancelData)
|
|
115
|
-
{
|
|
116
|
-
var Url = g_VTradeResource.Domain + "/API/VTradeCanel";
|
|
117
|
-
wx.request({
|
|
118
|
-
url: Url,
|
|
119
|
-
data:
|
|
120
|
-
{
|
|
121
|
-
"userid": this.UserID,
|
|
122
|
-
"bookid": cancelData.BookID
|
|
123
|
-
},
|
|
124
|
-
method: "POST",
|
|
125
|
-
dataType: "json",
|
|
126
|
-
success: function (data) {
|
|
127
|
-
if (data.data.code != 0) {
|
|
128
|
-
wx.showModal({
|
|
129
|
-
title: '提示',
|
|
130
|
-
content: data.data.message,
|
|
131
|
-
})
|
|
132
|
-
return;
|
|
133
|
-
}
|
|
134
|
-
cancelData.Callback(data);
|
|
135
|
-
},
|
|
136
|
-
error: function (request) {
|
|
137
|
-
console.log("error:", request)
|
|
138
|
-
}
|
|
139
|
-
})
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
//委托查询 queryData={queryType:day0/day1/his0/his1,Type:, Start:起始日期, End:结束日期 Callback:回调}
|
|
143
|
-
this.Query=function(queryData)
|
|
144
|
-
{
|
|
145
|
-
var Url = g_VTradeResource.Domain + "/API/VTradeQuery";
|
|
146
|
-
|
|
147
|
-
if (queryData.queryType == "day0"){
|
|
148
|
-
var data =
|
|
149
|
-
{
|
|
150
|
-
"userid": this.UserID,
|
|
151
|
-
"type": 0
|
|
152
|
-
}
|
|
153
|
-
} else if (queryData.queryType == "day1"){
|
|
154
|
-
var data =
|
|
155
|
-
{
|
|
156
|
-
"userid": this.UserID,
|
|
157
|
-
"type": 1
|
|
158
|
-
}
|
|
159
|
-
} else if (queryData.queryType == "his1") {
|
|
160
|
-
var data =
|
|
161
|
-
{
|
|
162
|
-
"userid": this.UserID,
|
|
163
|
-
"querydate": { "StartDate": queryData.Start, "EndDate": queryData.End },
|
|
164
|
-
"type": 1
|
|
165
|
-
}
|
|
166
|
-
} else if (queryData.queryType == "his0"){
|
|
167
|
-
var data =
|
|
168
|
-
{
|
|
169
|
-
"userid": this.UserID,
|
|
170
|
-
"querydate": { "StartDate": queryData.Start, "EndDate": queryData.End },
|
|
171
|
-
"type": 0
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
wx.request({
|
|
176
|
-
url: Url,
|
|
177
|
-
data:data,
|
|
178
|
-
method: "POST",
|
|
179
|
-
dataType: "json",
|
|
180
|
-
success: function (data) {
|
|
181
|
-
if (data.data.code != 0) {
|
|
182
|
-
wx.showModal({
|
|
183
|
-
title: '提示',
|
|
184
|
-
content: data.data.message,
|
|
185
|
-
})
|
|
186
|
-
return;
|
|
187
|
-
}
|
|
188
|
-
queryData.Callback(data);
|
|
189
|
-
},
|
|
190
|
-
error: function (request) {
|
|
191
|
-
console.log("error:", request)
|
|
192
|
-
}
|
|
193
|
-
})
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
//账户信息 queryData={Stock:true/false, Callback:回调}
|
|
197
|
-
this.UserInfo=function(userData)
|
|
198
|
-
{
|
|
199
|
-
var Url = g_VTradeResource.Domain + "/API/VTradeUser";
|
|
200
|
-
wx.request({
|
|
201
|
-
url: Url,
|
|
202
|
-
data:
|
|
203
|
-
{
|
|
204
|
-
"userid": this.UserID,
|
|
205
|
-
"stock": userData.Stock
|
|
206
|
-
},
|
|
207
|
-
method: "POST",
|
|
208
|
-
dataType: "json",
|
|
209
|
-
success: function (data) {
|
|
210
|
-
if (data.data.code != 0) {
|
|
211
|
-
wx.showModal({
|
|
212
|
-
title: '提示',
|
|
213
|
-
content: data.data.message,
|
|
214
|
-
})
|
|
215
|
-
return;
|
|
216
|
-
}
|
|
217
|
-
userData.Callback(data);
|
|
218
|
-
},
|
|
219
|
-
error: function (request) {
|
|
220
|
-
console.log("error:", request)
|
|
221
|
-
}
|
|
222
|
-
})
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
SimulateTrade.SetDomain = function (domain, cacheDomain)
|
|
227
|
-
{
|
|
228
|
-
if (domain) g_VTradeResource.Domain = domain;
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
//导出统一使用JSCommon命名空间名
|
|
232
|
-
module.exports =
|
|
233
|
-
{
|
|
234
|
-
JSCommonVTrade:
|
|
235
|
-
{
|
|
236
|
-
SimulateTrade: SimulateTrade
|
|
237
|
-
}
|
|
238
|
-
};
|