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.
- package/package.json +15 -47
- package/src/jscommon/umychart.resource/js/codemirror/javascript.js +1 -1
- 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 -25293
- 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 -90542
- 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 -625
- 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 -2942
- 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 -12055
- 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,240 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
用户日志,积分等信息提交后台
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
/*
|
|
7
|
-
积分:
|
|
8
|
-
https://opensource.zealink.com/api/userpoint
|
|
9
|
-
Post:
|
|
10
|
-
{
|
|
11
|
-
"appname":"测试",
|
|
12
|
-
"userid":"testuser",
|
|
13
|
-
"operator":"创建账户",
|
|
14
|
-
"refereeid":"testuser2",
|
|
15
|
-
"module":{"name":"注册","id":"12345"}
|
|
16
|
-
}
|
|
17
|
-
*/
|
|
18
|
-
var Cache = new Set(); //历史的日志, 数据提交前检查下是否已经提交过, 1页面的操作只能获取1次积分, 多次提交无效
|
|
19
|
-
|
|
20
|
-
function ZUserResource() {
|
|
21
|
-
this.Domain = "https://opensource.zealink.com"; //API域名
|
|
22
|
-
this.CacheDomain = "https://opensourcecache.zealink.com"; //缓存域名
|
|
23
|
-
this.WeiChart = "https://apitest.zealink.com"; //测试API域名
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
var g_ZUserResource = new ZUserResource();
|
|
27
|
-
|
|
28
|
-
function UserPoint() {
|
|
29
|
-
this.UserID; //用户id
|
|
30
|
-
this.currentAppName = "A股探雷器"; //小程序名字
|
|
31
|
-
this.Session = ""; //用户的Session,后期需要验证session,防止盗刷
|
|
32
|
-
this.pageName = ""; //当前页面name
|
|
33
|
-
this.pageID = ""; //当前页面id
|
|
34
|
-
this.ConsumeAction = "";// 行为 查询(10 不会扣除积分) 消费(20 会扣除积分)
|
|
35
|
-
//'https://opensource.zealink.com/api/SP_UserPointOp_V2';
|
|
36
|
-
this.ApiUrl = g_ZUserResource.Domain + "/api/SP_UserPointOp_V2";
|
|
37
|
-
this.ConsumeApiUrl = g_ZUserResource.Domain + "/api/SP_UserPointConsume";
|
|
38
|
-
|
|
39
|
-
//注册积分 10 注册的积分直接写在了登录注册接口中,页面不需要调取
|
|
40
|
-
this.Registered = function(refereeID)
|
|
41
|
-
{
|
|
42
|
-
// var data={RefereeId:refereeID, Operator:'注册', Module:{Name:"注册", ID:"Registered"}};
|
|
43
|
-
var data = {
|
|
44
|
-
"AppName": this.currentAppName,
|
|
45
|
-
"UserId": this.UserID,
|
|
46
|
-
"Session": this.Session,
|
|
47
|
-
"Operator": 10,
|
|
48
|
-
"RefereeId": refereeID,
|
|
49
|
-
"Module": {
|
|
50
|
-
"Name": this.pageName,
|
|
51
|
-
"Id": this.pageID
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
this.Request(data);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
this.SignIn = function(refereeID) //签到 20
|
|
58
|
-
{
|
|
59
|
-
// var data = { RefereeId: refereeID, Operator:'签到', Module:{Name:'签到', ID:"SignIn"}};
|
|
60
|
-
var data = {
|
|
61
|
-
"AppName": this.currentAppName,
|
|
62
|
-
"UserId": this.UserID,
|
|
63
|
-
"Session": this.Session,
|
|
64
|
-
"Operator": 20,
|
|
65
|
-
"RefereeId": refereeID, //推荐人
|
|
66
|
-
"Module": {
|
|
67
|
-
"Name": this.pageName,
|
|
68
|
-
"Id": this.pageID
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
// this.Request(data); //如果积分没有做完,需要屏蔽这个
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
/*
|
|
75
|
-
*页面访问 30
|
|
76
|
-
*不是每个页面访问都会算积分的。在文档里面有id字段的才会算
|
|
77
|
-
*页面访问时,当前用户不增加积分,只是给当前用户的注册推荐者加积分,接口会判断当前用户永无注册推荐者,自己计算积分
|
|
78
|
-
*/
|
|
79
|
-
this.OpenPage = function(refereeID)
|
|
80
|
-
{
|
|
81
|
-
// var data={RefereeId:refereeID, Operator:'访问页面', Module:{Name:pageName, ID:PageID}};
|
|
82
|
-
var data = {
|
|
83
|
-
"AppName": this.currentAppName,
|
|
84
|
-
"UserId": this.UserID,
|
|
85
|
-
"RefereeId": refereeID,
|
|
86
|
-
"Module": {
|
|
87
|
-
"Name": this.pageName,
|
|
88
|
-
"Id": this.pageID
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
this.Request(data);//如果积分没有做完,需要屏蔽这个
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
//分享页面 30 和上一个页面访问一样,废弃不用
|
|
96
|
-
this.SharePage = function(refereeID)
|
|
97
|
-
{
|
|
98
|
-
// var data={Operator:'分享页面', Module:{Name:pageName, ID:pageID}};
|
|
99
|
-
var data = {
|
|
100
|
-
"AppName": this.AppName,
|
|
101
|
-
"UserId": this.UserID,
|
|
102
|
-
"Session": this.Session,
|
|
103
|
-
"Operator": 30,
|
|
104
|
-
"RefereeId": refereeID,
|
|
105
|
-
"Module": {
|
|
106
|
-
"Name": this.pageName,
|
|
107
|
-
"Id": this.pageID
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
// this.Request(data);
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
//data.RefereeId 邀请人id data.Module.Name 页面名字 data.Module.ID 页面id data.Operator 操作
|
|
115
|
-
this.Request = function(data) {
|
|
116
|
-
console.log('[UserPoint::Request]', data, this.UserID);
|
|
117
|
-
if (!this.UserID) return;
|
|
118
|
-
|
|
119
|
-
var date = new Date();
|
|
120
|
-
var nDate = date.getFullYear() * 10000 + date.getMonth() * 100 + date.getDay();
|
|
121
|
-
|
|
122
|
-
//key 用户ID-日期—页面ID-类型-推荐人id
|
|
123
|
-
var key = this.UserID + '|' + nDate.toString() + '|' + data.Module.Id + "|" + data.Operator + "|" + data.RefereeId;
|
|
124
|
-
console.log('[UserPoint::Request] Key=' + key + ' cache=' + Cache.has(key) + ' cache size=' + Cache.size);
|
|
125
|
-
if (Cache.has(key)) {
|
|
126
|
-
return; //已提交过了, 重复无效
|
|
127
|
-
} else {
|
|
128
|
-
Cache.add(key);
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
var self = this;
|
|
132
|
-
this.Data = {};
|
|
133
|
-
|
|
134
|
-
//把data数据发给后台
|
|
135
|
-
wx.request({
|
|
136
|
-
url: this.ApiUrl,
|
|
137
|
-
data: data,
|
|
138
|
-
method: "POST",
|
|
139
|
-
dataType: "json",
|
|
140
|
-
success: function(res) {
|
|
141
|
-
self.RecvData(res);
|
|
142
|
-
},
|
|
143
|
-
error: function(request) {
|
|
144
|
-
self.RecvError(request);
|
|
145
|
-
}
|
|
146
|
-
})
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
this.RecvData = function(recvdata) {
|
|
150
|
-
// console.log(recvdata,"积分recvdata")
|
|
151
|
-
var data = recvdata.data;
|
|
152
|
-
|
|
153
|
-
if (data.code != 0) return this.InvokeCallback();
|
|
154
|
-
|
|
155
|
-
this.Data.Addpoint = data.addpoint; //本次增加积分
|
|
156
|
-
this.Data.Totalpoint = data.totalpoint; //总积分
|
|
157
|
-
// this.Data.Message = data.message; //提示信息
|
|
158
|
-
// this.Data.Operator = data.operator; //本次操作
|
|
159
|
-
// if (data.event) this.Data.Event = data.event;
|
|
160
|
-
|
|
161
|
-
if (data.code == 0 && data.addpoint > 0) {
|
|
162
|
-
wx.showToast({
|
|
163
|
-
title: '签到成功+' + data.addpoint,
|
|
164
|
-
icon: 'success',
|
|
165
|
-
duration: 1500
|
|
166
|
-
})
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
this.InvokeCallback();
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
this.RecvError = function(request) {
|
|
173
|
-
console.log(request);
|
|
174
|
-
};
|
|
175
|
-
|
|
176
|
-
//积分消费
|
|
177
|
-
this.Consume = function ()
|
|
178
|
-
{
|
|
179
|
-
//先查询当前用户是否有积分可以使用,在扣除积分
|
|
180
|
-
var data = {
|
|
181
|
-
"AppName": this.currentAppName,//this.AppName,
|
|
182
|
-
"UserId": this.UserID,
|
|
183
|
-
"Module": {
|
|
184
|
-
"Name": this.pageName,
|
|
185
|
-
"Id": this.pageID
|
|
186
|
-
},
|
|
187
|
-
"Action": this.ConsumeAction,
|
|
188
|
-
"ConsumeType":10//消费类型 服务(10)
|
|
189
|
-
};
|
|
190
|
-
// this.ConsumeRequest(data);//如果积分没有做完,需要屏蔽这个
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
this.ConsumeRequest = function(data){
|
|
194
|
-
if (!this.UserID) return;
|
|
195
|
-
|
|
196
|
-
var date = new Date();
|
|
197
|
-
var nDate = date.getFullYear() * 10000 + date.getMonth() * 100 + date.getDay();
|
|
198
|
-
|
|
199
|
-
var self = this;
|
|
200
|
-
this.Data = {};
|
|
201
|
-
|
|
202
|
-
//把data数据发给后台
|
|
203
|
-
wx.request({
|
|
204
|
-
url: this.ConsumeApiUrl,
|
|
205
|
-
data: data,
|
|
206
|
-
method: "POST",
|
|
207
|
-
dataType: "json",
|
|
208
|
-
success: function (res) {
|
|
209
|
-
self.ConsumeRecvData(res);
|
|
210
|
-
},
|
|
211
|
-
error: function (request) {
|
|
212
|
-
self.RecvError(request);
|
|
213
|
-
}
|
|
214
|
-
})
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
this.ConsumeRecvData = function (recvdata){
|
|
218
|
-
console.log("消费", recvdata);
|
|
219
|
-
var data = recvdata.data;
|
|
220
|
-
this.Data = data;
|
|
221
|
-
|
|
222
|
-
if (data.code != 0) return this.InvokeCallback();
|
|
223
|
-
|
|
224
|
-
//对消费结果进行处理
|
|
225
|
-
this.InvokeCallback();
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
this.InvokeCallback = function() {
|
|
229
|
-
if (typeof(this.UpdateUICallback) != 'function') return;
|
|
230
|
-
|
|
231
|
-
if (this.UpdateUICallback) this.UpdateUICallback(this);
|
|
232
|
-
};
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
module.exports = {
|
|
237
|
-
JSUserLog: {
|
|
238
|
-
UserPoint: UserPoint,
|
|
239
|
-
}
|
|
240
|
-
};
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
var g_VTradeResource =
|
|
2
|
-
{
|
|
3
|
-
Domain: "https://opensource.zealink.com/" //API域名
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
//获取视频
|
|
7
|
-
function GetVedioList() {
|
|
8
|
-
this.ApiUrl = g_VTradeResource.Domain + 'api/VideoList';
|
|
9
|
-
this.PageIndex = 1;
|
|
10
|
-
this.SearchKey = "";
|
|
11
|
-
this.GetFirstPage = function () {
|
|
12
|
-
//清空数据
|
|
13
|
-
this.Data = [];
|
|
14
|
-
this.Count = 0;
|
|
15
|
-
this.CacheCount = 0;
|
|
16
|
-
|
|
17
|
-
var self = this;
|
|
18
|
-
wx.request({
|
|
19
|
-
url: this.ApiUrl,
|
|
20
|
-
data: {
|
|
21
|
-
"PageInfo": {
|
|
22
|
-
"PageIndex": this.PageIndex,
|
|
23
|
-
"PageSize": 10
|
|
24
|
-
},
|
|
25
|
-
"Filter": {
|
|
26
|
-
"SearchKey": this.SearchKey
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
method: "POST",
|
|
30
|
-
dataType: "json",
|
|
31
|
-
success: function (data) {
|
|
32
|
-
self.RecvData(data);
|
|
33
|
-
},
|
|
34
|
-
error: function (request) {
|
|
35
|
-
self.RecvError(request);
|
|
36
|
-
}
|
|
37
|
-
})
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
this.RecvData = function (recvData) {
|
|
41
|
-
// console.log(recvData.data,"获取视频");
|
|
42
|
-
var data = recvData.data;
|
|
43
|
-
if (this.Count <= 0) this.Count = data.count; //一共的视频个数
|
|
44
|
-
if (data.list.length == 0) return;
|
|
45
|
-
|
|
46
|
-
for (var i in data.list){
|
|
47
|
-
var info = {};
|
|
48
|
-
info.Addtime = data.list[i].addtime;
|
|
49
|
-
info.Guid = data.list[i].guid;
|
|
50
|
-
info.Imgurl = data.list[i].imgurl;
|
|
51
|
-
info.Title = data.list[i].title;
|
|
52
|
-
info.Videourl = data.list[i].videourl;
|
|
53
|
-
|
|
54
|
-
this.Data.push(info);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
if (this.Callback) this.Callback(this);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
this.RecvError = function (request) {
|
|
61
|
-
console.log("[StockReport::RecvError] ", request)
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
this.GetNextPage = function () {
|
|
65
|
-
this.PageIndex++;
|
|
66
|
-
var self = this;
|
|
67
|
-
|
|
68
|
-
var pages = this.Count / this.PageSize,
|
|
69
|
-
totalPages = (this.Count % this.PageSize) > 0 ? Math.floor(pages) + 1 : Math.floor(pages);
|
|
70
|
-
if (this.PageIndex <= totalPages) {
|
|
71
|
-
wx.request({
|
|
72
|
-
url: this.ApiUrl,
|
|
73
|
-
data: {
|
|
74
|
-
"PageInfo": {
|
|
75
|
-
"PageIndex": this.PageIndex,
|
|
76
|
-
"PageSize": 10
|
|
77
|
-
},
|
|
78
|
-
"Filter": {
|
|
79
|
-
"SearchKey": this.SearchKey
|
|
80
|
-
}
|
|
81
|
-
},
|
|
82
|
-
method: "POST",
|
|
83
|
-
dataType: "json",
|
|
84
|
-
success: function (data) {
|
|
85
|
-
self.RecvData(data);
|
|
86
|
-
},
|
|
87
|
-
error: function (request) {
|
|
88
|
-
self.RecvError(request);
|
|
89
|
-
}
|
|
90
|
-
})
|
|
91
|
-
} else {
|
|
92
|
-
wx.showToast({
|
|
93
|
-
title: "数据已全部加载",
|
|
94
|
-
icon: 'success',
|
|
95
|
-
duration: 1000
|
|
96
|
-
})
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
GetVedioList.SetDomain = function (domain, cacheDomain) {
|
|
102
|
-
if (domain) g_VTradeResource.Domain = domain;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
//导出统一使用JSCommon命名空间名
|
|
106
|
-
module.exports =
|
|
107
|
-
{
|
|
108
|
-
JSCommonVedio:
|
|
109
|
-
{
|
|
110
|
-
GetVedioList: GetVedioList
|
|
111
|
-
}
|
|
112
|
-
};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/********************************************************************************
|
|
2
|
-
* 版本信息输出
|
|
3
|
-
*
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
var HQCHART_VERSION="1.1.12681";
|
|
9
|
-
|
|
10
|
-
function PrintHQChartVersion()
|
|
11
|
-
{
|
|
12
|
-
var log=
|
|
13
|
-
`*************************************************************************************************************
|
|
14
|
-
*
|
|
15
|
-
* HQChart Ver: ${HQCHART_VERSION}
|
|
16
|
-
*
|
|
17
|
-
* License: Apache License 2.0
|
|
18
|
-
* Source: https://github.com/jones2000/HQChart
|
|
19
|
-
*
|
|
20
|
-
*************************************************************************************************************
|
|
21
|
-
`
|
|
22
|
-
|
|
23
|
-
console.log(log);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
PrintHQChartVersion();
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
export
|
|
31
|
-
{
|
|
32
|
-
HQCHART_VERSION
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|