diff --git a/common/util.js b/common/util.js
new file mode 100644
index 0000000..ec2a8f1
--- /dev/null
+++ b/common/util.js
@@ -0,0 +1,29 @@
+var util = {}
+util.data = {}
+util.data.base_url = 'http://39.101.133.168:8828/'
+// util.data.base_url = 'https://dbqb.nfdxy.net/prodApi'
+
+// AJAX 请求方法
+util.request = (url, callback, data = {}, failCallback) => {
+ url = util.data.base_url + url
+ // if (uni.getStorageSync('token') && !data.token && data.token !='') data.token = uni.getStorageSync('token')
+ // data.app_from = uni.getStorageSync('ajax_app_from')
+ console.log('请求该接口->', url,'请求参数为->',data);
+ uni.request({
+ url: url, //仅为示例,并非真实接口地址。
+ data,
+ method: 'post',
+ header: {
+ 'content-type': 'application/x-www-form-urlencoded', //自定义请求头信息
+ // 'version': uni.getSystemInfoSync().appVersion,
+ // 'platform': 2,
+ // 'client': uni.getSystemInfoSync().platform == 'ios' ? 'ios' : 'android',
+ // 'app_from': uni.getStorageSync('ajax_app_from')
+ },
+ sslVerify: false,
+ success: callback,
+ fail: failCallback
+ });
+}
+
+export default util
\ No newline at end of file
diff --git a/pages.json b/pages.json
index bb7702d..4558c9f 100644
--- a/pages.json
+++ b/pages.json
@@ -51,6 +51,24 @@
{
"navigationBarTitleText" : ""
}
+ },
+ {
+ "path": "pages/home/globalIndex",
+ "style": {
+ "navigationStyle": "custom",
+ "disableSwipeBack": true,
+ "titleNView": false,
+ "bounce": false
+ }
+ },
+ {
+ "path": "pages/home/marketDetail",
+ "style": {
+ "navigationStyle": "custom",
+ "disableSwipeBack": true,
+ "titleNView": false,
+ "bounce": false
+ }
}
],
"globalStyle": {
diff --git a/pages/home/globalIndex.vue b/pages/home/globalIndex.vue
new file mode 100644
index 0000000..065fc1d
--- /dev/null
+++ b/pages/home/globalIndex.vue
@@ -0,0 +1,574 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/home/marketDetail.vue b/pages/home/marketDetail.vue
new file mode 100644
index 0000000..a23162a
--- /dev/null
+++ b/pages/home/marketDetail.vue
@@ -0,0 +1,484 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ 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/home/marketSituation.vue b/pages/home/marketSituation.vue
index 170a481..0fe28ee 100644
--- a/pages/home/marketSituation.vue
+++ b/pages/home/marketSituation.vue
@@ -1,13 +1,11 @@
-
-
-
-
+
@@ -48,26 +46,26 @@
{{ $t('marketSituation.globalIndex') }}
-
+
{{ $t('marketSituation.globalIndexMore') }}
-
+
-
+
+
+
+
+
+
+ {{ $t('marketSituation.warn') }}
-
@@ -100,6 +98,7 @@