From d233a76195bb9218b3b90292cf613e8673c25e1e Mon Sep 17 00:00:00 2001
From: j1ack <1209452658@qq.com>
Date: Wed, 31 Aug 2022 17:20:29 +0800
Subject: [PATCH] =?UTF-8?q?=E5=90=88=E5=B9=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
App.vue | 153 ++++++++------
components/navigation/navigation.vue | 33 ++-
components/tabBar/tabBar.vue | 20 +-
main.js | 7 +
manifest.json | 90 ++++----
package-lock.json | 253 ++++-------------------
package.json | 1 +
pages/charity/details.vue | 7 +-
pages/home/index.vue | 207 ++++++++++++++-----
pages/markets/index.vue | 21 +-
pages/me/index.vue | 6 +-
pages/me/inviteFriends.vue | 297 +++++++++++++++++----------
pages/me/myTeam.vue | 89 +++++++-
pages/me/transfer.vue | 8 +-
pages/mine/mine.vue | 1 +
pages/mine/mineDetails.vue | 6 +-
pages/subscription/details.vue | 5 +-
pages/withdrawal/withdrawal.vue | 11 +-
utils/api.js | 3 +-
utils/axios.js | 13 +-
utils/language/en_US.js | 16 +-
21 files changed, 733 insertions(+), 514 deletions(-)
diff --git a/App.vue b/App.vue
index eb0090b..ece8b9c 100644
--- a/App.vue
+++ b/App.vue
@@ -1,85 +1,120 @@
diff --git a/components/navigation/navigation.vue b/components/navigation/navigation.vue
index fcbc483..b3ab5bf 100644
--- a/components/navigation/navigation.vue
+++ b/components/navigation/navigation.vue
@@ -1,5 +1,10 @@
-
+
+
+
+
+
+
@@ -65,7 +70,31 @@ export default {
width: 234rpx;
line-height: 60rpx;
}
-
+.nav-head-H5{
+ overflow: hidden;
+ position: fixed;
+ top: 0rpx;
+ height: 112rpx;
+ // background-color: #fafafa;
+ // background-color: #fff;
+ text-align: center;
+ font-weight: 700;
+ font-size: 36rpx;
+ color: #fff;
+ // padding: 40rpx 16rpx;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ width: 100%;
+ background-color: #15141F;
+ z-index: 8;
+ border-bottom: 4rpx solid #323045;
+
+ &.tp {
+ background-color: transparent;
+ border: none;
+ }
+}
.nav-head {
overflow: hidden;
position: fixed;
diff --git a/components/tabBar/tabBar.vue b/components/tabBar/tabBar.vue
index b401f4d..749ac29 100644
--- a/components/tabBar/tabBar.vue
+++ b/components/tabBar/tabBar.vue
@@ -113,16 +113,16 @@ export default {
default:
break;
}
- if (this.isTarde) { // 如果是在交易页面,则返回上一级即可
- // #ifdef H5
- history.back()
- // #endif
-
- // #ifdef APP-PLUS
- uni.navigateBack()
- // #endif
- return;
- }
+ // if (this.isTarde) { // 如果是在交易页面,则返回上一级即可
+ // // #ifdef H5
+ // history.back()
+ // // #endif
+
+ // // #ifdef APP-PLUS
+ // uni.navigateBack()
+ // // #endif
+ // return;
+ // }
uni.reLaunch({
url,
})
diff --git a/main.js b/main.js
index f5bd8d8..74b5a98 100644
--- a/main.js
+++ b/main.js
@@ -14,6 +14,13 @@ import VI from './utils/language/vi_VN.js'
import api from './utils/api.js'
import constant from './utils/constant.js'
import websocket from './utils/websocket.js'
+
+// // #ifdef H5
+// // 提交前需要注释 本地调试使用
+// const vconsole = require('vconsole')
+// Vue.prototype.$vconsole = new vconsole() // 使用vconsole
+// // #endif
+
Vue.prototype.$api = api
Vue.prototype.$constant = constant
Vue.prototype.$websocket = websocket
diff --git a/manifest.json b/manifest.json
index 8c1bdf2..7bd7c09 100644
--- a/manifest.json
+++ b/manifest.json
@@ -1,9 +1,9 @@
{
"name" : "samehome",
- "appid" : "__UNI__2B017B1",
+ "appid" : "__UNI__C4028F6",
"description" : "",
"versionName" : "1.0.0",
- "versionCode" : "100",
+ "versionCode" : "101",
"transformPx" : false,
/* 5+App特有相关 */
"app-plus" : {
@@ -17,7 +17,9 @@
"delay" : 0
},
/* 模块配置 */
- "modules" : {},
+ "modules" : {
+ "VideoPlayer" : {}
+ },
/* 应用发布信息 */
"distribute" : {
/* android打包配置 */
@@ -38,44 +40,62 @@
"",
"",
""
- ]
+ ],
+ "abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ]
},
/* ios打包配置 */
"ios" : {},
/* SDK配置 */
- "sdkConfigs" : {}
+ "sdkConfigs" : {
+ "ad" : {}
+ }
+ },
+ "nativePlugins" : {
+ "HF-Step" : {
+ "__plugin_info__" : {
+ "name" : "原生计步器(Android和IOS) - [试用版,仅用于自定义调试基座]",
+ "description" : "计步器,原生计步器插件,安卓,IOS",
+ "platforms" : "Android,iOS",
+ "url" : "https://ext.dcloud.net.cn/plugin?id=6632",
+ "android_package_name" : "",
+ "ios_bundle_id" : "",
+ "isCloud" : true,
+ "bought" : 0,
+ "pid" : "6632",
+ "parameters" : {}
+ }
+ }
+ }
+ },
+ "h5" : {
+ "publicPath" : "/",
+ "devServer" : {
+ // "port" : 8083,
+ "disableHostCheck" : true,
+ "https" : false,
+ "proxy" : {
+ "/api" : {
+ "ws" : false,
+ "target" : "https://sapi.payairs.com",
+ "changeOrigin" : true,
+ "secure" : false,
+ "pathRewrite" : {
+ "^/api" : ""
+ }
+ },
+ "/market" : {
+ "ws" : false,
+ "target" : "https://market.acefinex.com",
+ "changeOrigin" : true,
+ "secure" : false,
+ "pathRewrite" : {
+ "^/market" : ""
+ }
+ }
+ },
+ "port" : ""
}
},
- "h5" : {
- "publicPath" : "/",
- "devServer" : {
- // "port" : 8083,
- "disableHostCheck" : true,
- "https" : false,
- "proxy" : {
- "/api" : {
- "ws" : false,
- "target" : "https://sapi.payairs.com",
- "changeOrigin" : true,
- "secure" : false,
- "pathRewrite" : {
- "^/api" : ""
- }
- },
- "/market" : {
- "ws" : false,
- "target" : "https://market.acefinex.com",
- "changeOrigin" : true,
- "secure" : false,
- "pathRewrite" : {
- "^/market" : ""
- }
- }
- },
- "port" : ""
- }
-
- },
/* 快应用特有相关 */
"quickapp" : {},
/* 小程序特有相关 */
diff --git a/package-lock.json b/package-lock.json
index 1eb86c7..b729541 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,223 +1,17 @@
{
"name": "samehome",
"version": "1.0.0",
- "lockfileVersion": 2,
+ "lockfileVersion": 1,
"requires": true,
- "packages": {
- "": {
- "name": "samehome",
- "version": "1.0.0",
- "license": "ISC",
- "dependencies": {
- "axios": "^0.27.2",
- "echarts": "^5.3.3",
- "js-md5": "^0.7.3",
- "uview-ui": "^2.0.33",
- "vue-i18n": "^9.2.2"
- }
- },
- "node_modules/@intlify/core-base": {
- "version": "9.2.2",
- "resolved": "https://registry.npmmirror.com/@intlify/core-base/-/core-base-9.2.2.tgz",
- "integrity": "sha512-JjUpQtNfn+joMbrXvpR4hTF8iJQ2sEFzzK3KIESOx+f+uwIjgw20igOyaIdhfsVVBCds8ZM64MoeNSx+PHQMkA==",
- "dependencies": {
- "@intlify/devtools-if": "9.2.2",
- "@intlify/message-compiler": "9.2.2",
- "@intlify/shared": "9.2.2",
- "@intlify/vue-devtools": "9.2.2"
- },
- "engines": {
- "node": ">= 14"
- }
- },
- "node_modules/@intlify/devtools-if": {
- "version": "9.2.2",
- "resolved": "https://registry.npmmirror.com/@intlify/devtools-if/-/devtools-if-9.2.2.tgz",
- "integrity": "sha512-4ttr/FNO29w+kBbU7HZ/U0Lzuh2cRDhP8UlWOtV9ERcjHzuyXVZmjyleESK6eVP60tGC9QtQW9yZE+JeRhDHkg==",
- "dependencies": {
- "@intlify/shared": "9.2.2"
- },
- "engines": {
- "node": ">= 14"
- }
- },
- "node_modules/@intlify/message-compiler": {
- "version": "9.2.2",
- "resolved": "https://registry.npmmirror.com/@intlify/message-compiler/-/message-compiler-9.2.2.tgz",
- "integrity": "sha512-IUrQW7byAKN2fMBe8z6sK6riG1pue95e5jfokn8hA5Q3Bqy4MBJ5lJAofUsawQJYHeoPJ7svMDyBaVJ4d0GTtA==",
- "dependencies": {
- "@intlify/shared": "9.2.2",
- "source-map": "0.6.1"
- },
- "engines": {
- "node": ">= 14"
- }
- },
- "node_modules/@intlify/shared": {
- "version": "9.2.2",
- "resolved": "https://registry.npmmirror.com/@intlify/shared/-/shared-9.2.2.tgz",
- "integrity": "sha512-wRwTpsslgZS5HNyM7uDQYZtxnbI12aGiBZURX3BTR9RFIKKRWpllTsgzHWvj3HKm3Y2Sh5LPC1r0PDCKEhVn9Q==",
- "engines": {
- "node": ">= 14"
- }
- },
- "node_modules/@intlify/vue-devtools": {
- "version": "9.2.2",
- "resolved": "https://registry.npmmirror.com/@intlify/vue-devtools/-/vue-devtools-9.2.2.tgz",
- "integrity": "sha512-+dUyqyCHWHb/UcvY1MlIpO87munedm3Gn6E9WWYdWrMuYLcoIoOEVDWSS8xSwtlPU+kA+MEQTP6Q1iI/ocusJg==",
- "dependencies": {
- "@intlify/core-base": "9.2.2",
- "@intlify/shared": "9.2.2"
- },
- "engines": {
- "node": ">= 14"
- }
- },
- "node_modules/@vue/devtools-api": {
- "version": "6.2.1",
- "resolved": "https://registry.npmmirror.com/@vue/devtools-api/-/devtools-api-6.2.1.tgz",
- "integrity": "sha512-OEgAMeQXvCoJ+1x8WyQuVZzFo0wcyCmUR3baRVLmKBo1LmYZWMlRiXlux5jd0fqVJu6PfDbOrZItVqUEzLobeQ=="
- },
- "node_modules/asynckit": {
- "version": "0.4.0",
- "resolved": "https://registry.npmmirror.com/asynckit/-/asynckit-0.4.0.tgz",
- "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q=="
- },
- "node_modules/axios": {
- "version": "0.27.2",
- "resolved": "https://registry.npmmirror.com/axios/-/axios-0.27.2.tgz",
- "integrity": "sha512-t+yRIyySRTp/wua5xEr+z1q60QmLq8ABsS5O9Me1AsE5dfKqgnCFzwiCZZ/cGNd1lq4/7akDWMxdhVlucjmnOQ==",
- "dependencies": {
- "follow-redirects": "^1.14.9",
- "form-data": "^4.0.0"
- }
- },
- "node_modules/combined-stream": {
- "version": "1.0.8",
- "resolved": "https://registry.npmmirror.com/combined-stream/-/combined-stream-1.0.8.tgz",
- "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",
- "dependencies": {
- "delayed-stream": "~1.0.0"
- },
- "engines": {
- "node": ">= 0.8"
- }
- },
- "node_modules/delayed-stream": {
- "version": "1.0.0",
- "resolved": "https://registry.npmmirror.com/delayed-stream/-/delayed-stream-1.0.0.tgz",
- "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==",
- "engines": {
- "node": ">=0.4.0"
- }
- },
- "node_modules/echarts": {
- "version": "5.3.3",
- "resolved": "https://registry.npmmirror.com/echarts/-/echarts-5.3.3.tgz",
- "integrity": "sha512-BRw2serInRwO5SIwRviZ6Xgm5Lb7irgz+sLiFMmy/HOaf4SQ+7oYqxKzRHAKp4xHQ05AuHw1xvoQWJjDQq/FGw==",
- "dependencies": {
- "tslib": "2.3.0",
- "zrender": "5.3.2"
- }
- },
- "node_modules/follow-redirects": {
- "version": "1.15.1",
- "resolved": "https://registry.npmmirror.com/follow-redirects/-/follow-redirects-1.15.1.tgz",
- "integrity": "sha512-yLAMQs+k0b2m7cVxpS1VKJVvoz7SS9Td1zss3XRwXj+ZDH00RJgnuLx7E44wx02kQLrdM3aOOy+FpzS7+8OizA==",
- "engines": {
- "node": ">=4.0"
- },
- "peerDependenciesMeta": {
- "debug": {
- "optional": true
- }
- }
- },
- "node_modules/form-data": {
- "version": "4.0.0",
- "resolved": "https://registry.npmmirror.com/form-data/-/form-data-4.0.0.tgz",
- "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==",
- "dependencies": {
- "asynckit": "^0.4.0",
- "combined-stream": "^1.0.8",
- "mime-types": "^2.1.12"
- },
- "engines": {
- "node": ">= 6"
- }
- },
- "node_modules/js-md5": {
- "version": "0.7.3",
- "resolved": "https://registry.npmmirror.com/js-md5/-/js-md5-0.7.3.tgz",
- "integrity": "sha512-ZC41vPSTLKGwIRjqDh8DfXoCrdQIyBgspJVPXHBGu4nZlAEvG3nf+jO9avM9RmLiGakg7vz974ms99nEV0tmTQ=="
- },
- "node_modules/mime-db": {
- "version": "1.52.0",
- "resolved": "https://registry.npmmirror.com/mime-db/-/mime-db-1.52.0.tgz",
- "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
- "engines": {
- "node": ">= 0.6"
- }
- },
- "node_modules/mime-types": {
- "version": "2.1.35",
- "resolved": "https://registry.npmmirror.com/mime-types/-/mime-types-2.1.35.tgz",
- "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
- "dependencies": {
- "mime-db": "1.52.0"
- },
- "engines": {
- "node": ">= 0.6"
- }
- },
- "node_modules/source-map": {
- "version": "0.6.1",
- "resolved": "https://registry.npmmirror.com/source-map/-/source-map-0.6.1.tgz",
- "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
- "engines": {
- "node": ">=0.10.0"
- }
- },
- "node_modules/tslib": {
- "version": "2.3.0",
- "resolved": "https://registry.npmmirror.com/tslib/-/tslib-2.3.0.tgz",
- "integrity": "sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg=="
- },
- "node_modules/uview-ui": {
- "version": "2.0.33",
- "resolved": "https://registry.npmmirror.com/uview-ui/-/uview-ui-2.0.33.tgz",
- "integrity": "sha512-M3NsLFAY0z95NGMnTCDUR/TvJb6a/UYZzi1km5Gi6TkBCaoHdbmtQymkc1C4eszeoQOrpEIhit/2V47UglzHRw==",
- "engines": {
- "HBuilderX": "^3.1.0"
- }
- },
- "node_modules/vue-i18n": {
- "version": "9.2.2",
- "resolved": "https://registry.npmmirror.com/vue-i18n/-/vue-i18n-9.2.2.tgz",
- "integrity": "sha512-yswpwtj89rTBhegUAv9Mu37LNznyu3NpyLQmozF3i1hYOhwpG8RjcjIFIIfnu+2MDZJGSZPXaKWvnQA71Yv9TQ==",
- "dependencies": {
- "@intlify/core-base": "9.2.2",
- "@intlify/shared": "9.2.2",
- "@intlify/vue-devtools": "9.2.2",
- "@vue/devtools-api": "^6.2.1"
- },
- "engines": {
- "node": ">= 14"
- },
- "peerDependencies": {
- "vue": "^3.0.0"
+ "dependencies": {
+ "@babel/runtime": {
+ "version": "7.18.9",
+ "resolved": "https://registry.npmmirror.com/@babel/runtime/-/runtime-7.18.9.tgz",
+ "integrity": "sha512-lkqXDcvlFT5rvEjiu6+QYO+1GXrEHRo2LOtS7E4GtX5ESIZOgepqsZBVIj6Pv+a6zqsya9VCgiK1KAK4BvJDAw==",
+ "requires": {
+ "regenerator-runtime": "^0.13.4"
}
},
- "node_modules/zrender": {
- "version": "5.3.2",
- "resolved": "https://registry.npmmirror.com/zrender/-/zrender-5.3.2.tgz",
- "integrity": "sha512-8IiYdfwHj2rx0UeIGZGGU4WEVSDEdeVCaIg/fomejg1Xu6OifAL1GVzIPHg2D+MyUkbNgPWji90t0a8IDk+39w==",
- "dependencies": {
- "tslib": "2.3.0"
- }
- }
- },
- "dependencies": {
"@intlify/core-base": {
"version": "9.2.2",
"resolved": "https://registry.npmmirror.com/@intlify/core-base/-/core-base-9.2.2.tgz",
@@ -287,6 +81,16 @@
"delayed-stream": "~1.0.0"
}
},
+ "copy-text-to-clipboard": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmmirror.com/copy-text-to-clipboard/-/copy-text-to-clipboard-3.0.1.tgz",
+ "integrity": "sha512-rvVsHrpFcL4F2P8ihsoLdFHmd404+CMg71S756oRSeQgqk51U3kicGdnvfkrxva0xXH92SjGS62B0XIJsbh+9Q=="
+ },
+ "core-js": {
+ "version": "3.25.0",
+ "resolved": "https://registry.npmmirror.com/core-js/-/core-js-3.25.0.tgz",
+ "integrity": "sha512-CVU1xvJEfJGhyCpBrzzzU1kjCfgsGUxhEvwUV2e/cOedYWHdmluamx+knDnmhqALddMG16fZvIqvs9aijsHHaA=="
+ },
"delayed-stream": {
"version": "1.0.0",
"resolved": "https://registry.npmmirror.com/delayed-stream/-/delayed-stream-1.0.0.tgz",
@@ -334,6 +138,16 @@
"mime-db": "1.52.0"
}
},
+ "mutation-observer": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmmirror.com/mutation-observer/-/mutation-observer-1.0.3.tgz",
+ "integrity": "sha512-M/O/4rF2h776hV7qGMZUH3utZLO/jK7p8rnNgGkjKUw8zCGjRQPxB8z6+5l8+VjRUQ3dNYu4vjqXYLr+U8ZVNA=="
+ },
+ "regenerator-runtime": {
+ "version": "0.13.9",
+ "resolved": "https://registry.npmmirror.com/regenerator-runtime/-/regenerator-runtime-0.13.9.tgz",
+ "integrity": "sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA=="
+ },
"source-map": {
"version": "0.6.1",
"resolved": "https://registry.npmmirror.com/source-map/-/source-map-0.6.1.tgz",
@@ -349,6 +163,17 @@
"resolved": "https://registry.npmmirror.com/uview-ui/-/uview-ui-2.0.33.tgz",
"integrity": "sha512-M3NsLFAY0z95NGMnTCDUR/TvJb6a/UYZzi1km5Gi6TkBCaoHdbmtQymkc1C4eszeoQOrpEIhit/2V47UglzHRw=="
},
+ "vconsole": {
+ "version": "3.14.6",
+ "resolved": "https://registry.npmmirror.com/vconsole/-/vconsole-3.14.6.tgz",
+ "integrity": "sha512-8Ffk2SfNe6EzKqZ0aNnNjpAVBVT7zgJo81lYEJdKySYLVYBeSawdSkWi9fSjDg3WsQhgS1vNPmRqJDTuwdVbnQ==",
+ "requires": {
+ "@babel/runtime": "^7.17.2",
+ "copy-text-to-clipboard": "^3.0.1",
+ "core-js": "^3.11.0",
+ "mutation-observer": "^1.0.3"
+ }
+ },
"vue-i18n": {
"version": "9.2.2",
"resolved": "https://registry.npmmirror.com/vue-i18n/-/vue-i18n-9.2.2.tgz",
diff --git a/package.json b/package.json
index f062dfe..243c31f 100644
--- a/package.json
+++ b/package.json
@@ -14,6 +14,7 @@
"echarts": "^5.3.3",
"js-md5": "^0.7.3",
"uview-ui": "^2.0.33",
+ "vconsole": "^3.14.6",
"vue-i18n": "^9.2.2"
}
}
diff --git a/pages/charity/details.vue b/pages/charity/details.vue
index f97d179..8d91f4f 100644
--- a/pages/charity/details.vue
+++ b/pages/charity/details.vue
@@ -130,7 +130,10 @@
},
radioValue: '',
- detail:{},
+ detail:{
+ charityDetails:{},
+ coins:[{}],
+ },
};
},
computed: {
@@ -147,7 +150,7 @@
},
onLoad(res) {
this.baseURL = constant.BASE_URL
- this.id=res.id
+ this.id=res.id
this.getDetail(this.id)
// console.log(this.$t('login.emailInputMessage'));
},
diff --git a/pages/home/index.vue b/pages/home/index.vue
index 1ceb324..a33780e 100644
--- a/pages/home/index.vue
+++ b/pages/home/index.vue
@@ -1,7 +1,12 @@
+
+
+
+
+
{{ i18n.customerService }}
{{ langTrue }}
@@ -45,37 +50,44 @@
{{ i18n.TodaySteps }}
-
{{ i18n.ReceiveEarnings }}
-
-
+
- {{ item.title }}
+ {{ item.adTitle }}
-
+
+
+ 开始记步
+
+
+ 步数:{{stepCount}}是否开启步数:{{stepResult}}
+
@@ -91,6 +103,7 @@
// let videoPlayerObj = {};
let videoPlayer;
let myChart;
+ let StepCounter = uni.requireNativePlugin('HF-Step-module');
export default {
name: 'home',
components: {
@@ -98,10 +111,12 @@
},
data() {
return {
+ stepCount:'',
+ stepResult:'',
// 展示的公告数据未读的
- contentFirst:'',
+ contentFirst: '',
// 记录还剩多少未读的 是否显示弹框
- noticeId:null,
+ noticeId: null,
// 公告
notice: [],
// 公告详情
@@ -117,27 +132,7 @@
],
videoShow: false,
videoUrl: '',
- videoList: [{
- url: 'https://cdn.uviewui.com/uview/resources/video.mp4',
- title: 'Video name 1',
- poster: 'https://cdn.uviewui.com/uview/swiper/swiper1.png'
- },
- {
- url: 'https://media.w3.org/2010/05/sintel/trailer.mp4',
- title: 'Video name 2',
- poster: 'https://cdn.uviewui.com/uview/swiper/swiper2.png'
- },
- {
- url: 'http://vjs.zencdn.net/v/oceans.mp4',
- title: 'Video name 3',
- poster: 'https://cdn.uviewui.com/uview/swiper/swiper3.png'
- },
- {
- url: 'http://mirror.aarnet.edu.au/pub/TED-talks/911Mothers_2010W-480p.mp4',
- title: 'Video name 4',
- poster: 'https://cdn.uviewui.com/uview/swiper/swiper2.png'
- },
- ],
+ videoList: [],
option: null,
stepsNum: 5000, // 当前步数
stepTarget: 10000, // 目标步数
@@ -150,6 +145,7 @@
this.noticeList();
},
onShow() {
+ this.getSept()
// 生成播放器队列对象
// this.videoList.forEach((item, index) => {
// const VideoPlayer = uni.createVideoContext(`video-${index}`, this)
@@ -175,50 +171,99 @@
}
},
methods: {
+ // 开启计步服务
+ getSept() {
+ //整个应用设置一次即可,停止计步后需重新调用,所有接口调用必须先开启计步服务
+ StepCounter.startStep((res) => {
+ console.log(123123)
+ console.log(res,'步数res');
+ this.stepCount=res.stepCount
+ //res.stepCount 当天累计步数
+ }, (res) => {
+ console.log(res)
+ let callback = res.callback
+ if (callback == "stepStatus") {
+ let status = res.status;
+ if (1 == status) {
+ //安卓gps定位服务未开
+ console.log('安卓gps定位服务未开')
+ } else if (2 == status || 5 == status) {
+ //权限被禁止
+ //this.gotoSettings()
+ console.log('权限被禁止')
+ } else if (3 == status) {
+ //允许运动权限(处理安卓权限问题)
+ //this.startStep()
+ console.log('允许运动权限(处理安卓权限问题)')
+ }
+ }
+
+ });
+ },
+ startStep(){
+ //获取本次记录的步数,重启应用后需要重新开始记录
+ StepCounter.getRecordStep((res) => {
+ //res.result == true 获取记录成功,否则错误
+ //res.stepCount 记录的步数
+ console.log(res.result)
+ this.stepResult=res.result
+ console.log(res.stepCount)
+ this.stepResult=res.stepCount
+ });
+ },
+ resStartStep(){
+ //如需重新记录,再次调用此接口即可
+ StepCounter.startRecordStep((res) => {
+ //res.result == true 开始记录成功,否则错误
+ console.log(res.result)
+ });
+ },
+
+
// 获取客服联系方式
- getContact(){
+ getContact() {
api.customerService({}).then(res => {
- if(res.errCode=='SYS.0012'){
+ if (res.errCode == 'SYS.0012') {
uni.$u.toast(res.errMsg);
- }else{
+ } else {
// #ifdef APP-PLUS
plus.runtime.openURL(res.url);
// #endif
// #ifdef H5
- window.location.href=res.url
+ window.location.href = res.url
// #endif
}
})
},
-
+
// 获取未读的公告
- getNoReadNotice(){
+ getNoReadNotice() {
for (var i = 0; i < this.notice.length; i++) {
- if(this.notice[i].isRead=='no'){
- this.contentFirst=this.notice[i].content
- this.noticeId=this.notice[i].id
+ if (this.notice[i].isRead == 'no') {
+ this.contentFirst = this.notice[i].content
+ this.noticeId = this.notice[i].id
}
}
- if(!this.noticeId){
- this.popupShow=false
+ if (!this.noticeId) {
+ this.popupShow = false
}
},
- go(url){
- uni.navigateTo({
- url:url
- })
+ go(url) {
+ uni.navigateTo({
+ url: url
+ })
},
toRead() {
api.noticeRead({
noticeId: this.noticeId
}).then(res => {
- this.noticeId=null;
+ this.noticeId = null;
this.popupShow = false
this.getNoReadNotice()
- console.log(res,'已经读了吗')
+ console.log(res, '已经读了吗')
})
},
-
+
// 公告
noticeList() {
api.noticeList({}).then(res => {
@@ -235,6 +280,7 @@
api.indexBanner({
'mark': 'APP_INDEX'
}).then(res => {
+ this.videoList = res
for (var i = 0; i < res.length; i++) {
this.swiperList.push(this.baseURL + res[i].adImgPath)
}
@@ -521,6 +567,73 @@
.main {
padding-bottom: 198rpx; // 避免底部TabBar盖住内容
+
+.nav-head-H5{
+ position: fixed;
+ top: 0rpx;
+ height: 112rpx;
+ font-size: 36rpx;
+ color: #fff;
+ width: 100%;
+ background-color: #15141F;
+ z-index: 8;
+ border-bottom: 4rpx solid #323045;
+
+ .serviceButton {
+ display: inline-block;
+ width: 286rpx;
+ height: 70rpx;
+ line-height: 70rpx;
+ border-radius: 90rpx;
+ font-size: 28rpx;
+ color: #F2FE8D !important;
+ padding: 0;
+ margin: 20rpx 180rpx 0 48rpx;
+ vertical-align: top;
+ }
+
+ .languageBtn {
+ display: inline-block;
+ box-sizing: border-box;
+ width: 180rpx;
+ position: relative;
+ margin: 38rpx 48rpx 0 0;
+ font-size: 24rpx;
+ height: 36rpx;
+ line-height: 36rpx;
+ text-align: center;
+ padding-left: 12rpx;
+
+ &::before {
+ display: block;
+ position: absolute;
+ content: '';
+ background-image: url(../../static/home/map.png);
+ background-repeat: no-repeat;
+ background-size: 36rpx;
+ width: 36rpx;
+ height: 36rpx;
+ top: 0rpx;
+ left: 0rpx;
+ }
+
+ &::after {
+ display: block;
+ position: absolute;
+ content: '';
+ background-image: url(../../static/home/pull-down.png);
+ background-repeat: no-repeat;
+ background-size: 24rpx;
+ width: 24rpx;
+ height: 24rpx;
+ top: 12rpx;
+ right: 0rpx;
+ }
+
+ }
+
+}
+
.nav-head {
position: fixed;
top: 0rpx;
diff --git a/pages/markets/index.vue b/pages/markets/index.vue
index e064526..e6321b1 100644
--- a/pages/markets/index.vue
+++ b/pages/markets/index.vue
@@ -1,7 +1,12 @@
+
+
+
+
+
{{ i18n.TrandingPair }}
{{ i18n.LatestPrice }}
{{ i18n.RiseAndfall }}
@@ -105,7 +110,21 @@
diff --git a/pages/me/myTeam.vue b/pages/me/myTeam.vue
index 1b204a5..e751638 100644
--- a/pages/me/myTeam.vue
+++ b/pages/me/myTeam.vue
@@ -6,26 +6,26 @@
- 394
+ {{inviteData.totalPeople}}
- Number of clionts
+ {{i18n.Numberofclionts}}
- 0
+ {{inviteData.yestodayRevenue}}
- Earnlings yesterday
+ {{i18n.Earnlingsyesterday}}
- 9343492
+ {{inviteData.totalRevenue}}
- Total income
+ {{i18n.Totalincome}}
@@ -35,9 +35,9 @@
- User |
- Financial funds |
- Time |
+ {{i18n.User}} |
+ {{i18n.Financialfunds}} |
+ {{i18n.Time}} |
@@ -64,11 +64,25 @@