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/globalIndex.vue b/pages/home/globalIndex.vue
deleted file mode 100644
index f624da9..0000000
--- a/pages/home/globalIndex.vue
+++ /dev/null
@@ -1,579 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/pages/home/marketDetail.vue b/pages/home/marketDetail.vue
deleted file mode 100644
index d3acf86..0000000
--- a/pages/home/marketDetail.vue
+++ /dev/null
@@ -1,488 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ stock.stockName }}
- {{ stock.stockCode }}
-
-
-
- {{ typeof stock.price === "number" ? stock.price.toFixed(2) : stock.price }}
-
-
-
-
- {{ stock.change || stock.changePercent }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/pages/home/marketSituation.vue b/pages/home/marketSituation.vue
deleted file mode 100644
index 14f8b75..0000000
--- a/pages/home/marketSituation.vue
+++ /dev/null
@@ -1,920 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ $t("marketSituation.globalIndex") }}
-
-
- {{ $t("marketSituation.globalIndexMore") }}
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ $t("marketSituation.warn") }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ country }}
-
-
-
-
-
-
-
-
-
-
diff --git a/pages/marketSituation/chartExample.vue b/pages/marketSituation/chartExample.vue
new file mode 100644
index 0000000..47ab2a3
--- /dev/null
+++ b/pages/marketSituation/chartExample.vue
@@ -0,0 +1,655 @@
+
+
+
+
+
+
diff --git a/pages/marketSituation/countryMarket.vue b/pages/marketSituation/countryMarket.vue
new file mode 100644
index 0000000..9bb0a30
--- /dev/null
+++ b/pages/marketSituation/countryMarket.vue
@@ -0,0 +1,493 @@
+
+
+
+
+
+ {{ tab }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 今日市场情绪温度
+
+
+
+
+
+ {{ m.value }}°C
+ {{ m.label }}
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ sec.price }}
+
+
+
+
+
+
+
+
+
+
+
+ {{ stk.name }}
+ {{ stk.code }}
+
+
+ {{ stk.price }}
+
+
+
+ {{ stk.change }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/marketSituation/forexMetals.vue b/pages/marketSituation/forexMetals.vue
new file mode 100644
index 0000000..c002ed7
--- /dev/null
+++ b/pages/marketSituation/forexMetals.vue
@@ -0,0 +1,301 @@
+
+
+
+
+ 💱
+ 外汇市场
+
+
+
+
+ {{ item.base }}
+ /
+ {{ item.quote }}
+
+
+ {{ item.price }}
+
+ {{ item.change }}
+
+
+
+
+
+
+
+
+ 🥇
+ 贵金属
+
+
+
+
+ {{ item.icon }}
+ {{ item.name }}
+
+
+ {{ item.price }}
+ {{ item.unit }}
+
+ {{ item.change }}
+
+
+
+
+
+
+
+
+
+ 📰
+ 市场动态
+
+
+
+
+ {{ news.title }}
+ {{ news.time }}
+
+
+ {{ news.impactText }}
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/marketSituation/globalIndex.vue b/pages/marketSituation/globalIndex.vue
new file mode 100644
index 0000000..22169a0
--- /dev/null
+++ b/pages/marketSituation/globalIndex.vue
@@ -0,0 +1,574 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/home/marketCondition.vue b/pages/marketSituation/marketCondition.vue
similarity index 100%
rename from pages/home/marketCondition.vue
rename to pages/marketSituation/marketCondition.vue
diff --git a/pages/marketSituation/marketDetail.vue b/pages/marketSituation/marketDetail.vue
new file mode 100644
index 0000000..f349d6f
--- /dev/null
+++ b/pages/marketSituation/marketDetail.vue
@@ -0,0 +1,485 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ stock.name }}
+ {{ stock.code }}
+
+
+
+ {{ typeof stock.price === 'number' ? stock.price.toFixed(2) : stock.price }}
+
+
+
+
+ {{ stock.change || stock.changePercent }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/marketSituation/marketOverview.vue b/pages/marketSituation/marketOverview.vue
new file mode 100644
index 0000000..db1ad11
--- /dev/null
+++ b/pages/marketSituation/marketOverview.vue
@@ -0,0 +1,733 @@
+
+
+
+
+
+
+
+
+
+
+
+ {{ $t('marketSituation.globalIndex') }}
+
+
+ {{ $t('marketSituation.globalIndexMore') }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ $t('marketSituation.warn') }}
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/marketSituation/marketSituation.vue b/pages/marketSituation/marketSituation.vue
new file mode 100644
index 0000000..bab6dc5
--- /dev/null
+++ b/pages/marketSituation/marketSituation.vue
@@ -0,0 +1,593 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ country }}
+
+
+
+
+
+
+
+
+
+
+
\ 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