From dee827ecb7a916135c9ca74d7caaead04c6c7eee Mon Sep 17 00:00:00 2001 From: zhaowenkang Date: Fri, 24 Oct 2025 16:44:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=81=E8=A3=85=E8=AF=B7=E6=B1=82=EF=BC=8C?= =?UTF-8?q?=E8=A1=8C=E6=83=85=E9=A1=B5=E9=9D=A2=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/util.js | 29 ++ pages.json | 18 ++ pages/home/globalIndex.vue | 574 ++++++++++++++++++++++++++++++++++ pages/home/marketDetail.vue | 484 ++++++++++++++++++++++++++++ pages/home/marketSituation.vue | 180 +++++++++-- static/language/en.js | 1 + static/language/ms.js | 1 + static/language/th.js | 1 + static/language/vi.js | 1 + static/language/zh_CN.js | 7 + static/language/zh_HK.js | 1 + static/marketSituation-image/back.png | Bin 0 -> 576 bytes 12 files changed, 1266 insertions(+), 31 deletions(-) create mode 100644 common/util.js create mode 100644 pages/home/globalIndex.vue create mode 100644 pages/home/marketDetail.vue create mode 100644 static/marketSituation-image/back.png 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 @@ + + + + + \ 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 @@