diff --git a/common/util.js b/common/util.js index 0058c56..3fbc198 100644 --- a/common/util.js +++ b/common/util.js @@ -1,6 +1,6 @@ var util = {} util.data = {} -util.data.base_url = 'https://dbqb.nfdxy.net/devApi' +util.data.base_url = 'https://hwjb.homilychart.com/testApi' // util.data.base_url = 'https://dbqb.nfdxy.net/prodApi' // AJAX 请求方法 @@ -15,7 +15,8 @@ util.request = (url, callback, data = {}, failCallback) => { 'content-type': 'application/json', 'version': uni.getSystemInfoSync().appVersion, 'client': uni.getSystemInfoSync().platform == 'ios' ? 'ios' : 'android', - 'token': uni.getStorageSync('token') + 'token': uni.getStorageSync('token'), + 'deviceId': uni.getSystemInfoSync().deviceId }, sslVerify: false, success: callback, diff --git a/pages.json b/pages.json index b341734..2b116d9 100644 --- a/pages.json +++ b/pages.json @@ -98,7 +98,33 @@ } }, { - "path": "pages/home/marketSituation", + "path": "pages/marketSituation/marketSituation", + "style": { + "navigationStyle": "custom", + "disableSwipeBack": true, + "titleNView": false, + "bounce": false + } + }, + { + "path": "pages/marketSituation/chartExample", + "style": { + "navigationBarTitleText": "图表示例", + "navigationBarBackgroundColor": "#ffffff", + "navigationBarTextStyle": "black" + } + }, + { + "path": "pages/marketSituation/globalIndex", + "style": { + "navigationStyle": "custom", + "disableSwipeBack": true, + "titleNView": false, + "bounce": false + } + }, + { + "path": "pages/marketSituation/marketDetail", "style": { "navigationStyle": "custom", "disableSwipeBack": true, diff --git a/pages/home/chartExample.vue b/pages/home/chartExample.vue new file mode 100644 index 0000000..47ab2a3 --- /dev/null +++ b/pages/home/chartExample.vue @@ -0,0 +1,655 @@ + + diff --git a/pages/home/countryMarket.vue b/pages/home/countryMarket.vue new file mode 100644 index 0000000..9bb0a30 --- /dev/null +++ b/pages/home/countryMarket.vue @@ -0,0 +1,493 @@ + + + + + \ No newline at end of file diff --git a/pages/home/forexMetals.vue b/pages/home/forexMetals.vue new file mode 100644 index 0000000..c002ed7 --- /dev/null +++ b/pages/home/forexMetals.vue @@ -0,0 +1,301 @@ + + + + + \ No newline at end of file diff --git a/pages/home/globalIndex.vue b/pages/home/globalIndex.vue index f624da9..22169a0 100644 --- a/pages/home/globalIndex.vue +++ b/pages/home/globalIndex.vue @@ -1,579 +1,574 @@ - - + \ No newline at end of file diff --git a/pages/home/marketDetail.vue b/pages/home/marketDetail.vue index d3acf86..f349d6f 100644 --- a/pages/home/marketDetail.vue +++ b/pages/home/marketDetail.vue @@ -1,475 +1,472 @@ - - + \ No newline at end of file diff --git a/pages/home/marketOverview.vue b/pages/home/marketOverview.vue new file mode 100644 index 0000000..db1ad11 --- /dev/null +++ b/pages/home/marketOverview.vue @@ -0,0 +1,733 @@ + + + + + \ No newline at end of file diff --git a/pages/home/marketSituation.vue b/pages/home/marketSituation.vue index 14f8b75..bab6dc5 100644 --- a/pages/home/marketSituation.vue +++ b/pages/home/marketSituation.vue @@ -1,920 +1,593 @@ - - + \ No newline at end of file diff --git a/static/marketSituation-image/cool.png b/static/marketSituation-image/cool.png new file mode 100644 index 0000000..16ba272 Binary files /dev/null and b/static/marketSituation-image/cool.png differ diff --git a/static/marketSituation-image/hot.png b/static/marketSituation-image/hot.png new file mode 100644 index 0000000..e8f7360 Binary files /dev/null and b/static/marketSituation-image/hot.png differ diff --git a/static/marketSituation-image/warm.png b/static/marketSituation-image/warm.png new file mode 100644 index 0000000..1338a2a Binary files /dev/null and b/static/marketSituation-image/warm.png differ