From 70c5d15d4420726d01ac9a52345f2182cf819b90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=94=90=E6=98=8E=E6=98=8E?= <970899069@qq.com> Date: Tue, 9 Apr 2024 17:29:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0VIP=E4=BC=9A=E5=91=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .DS_Store | Bin 8196 -> 8196 bytes apis/interfaces/index.js | 3 +- apis/interfaces/user.js | 29 ++++- package-lock.json | 200 +++++++++++++++++++++++---------- pages.json | 39 ++++++- pages/index/index.vue | 45 +++++--- pages/index/lawyers.vue | 178 +++++++++++++++++++++++++++++ pages/login/login.vue | 1 - pages/pay/pay.vue | 4 +- pages/user/index.vue | 63 +++++++++-- pages/user/setup.vue | 8 +- pages/user/team.vue | 215 ++++++++++++++++++++++++++++++++++++ pages/user/vip.vue | 129 ++++++++++++++++++++++ router/index.js | 3 +- static/icon/user_nav_03.png | Bin 0 -> 5193 bytes yarn.lock | 74 ++++++------- 16 files changed, 852 insertions(+), 139 deletions(-) create mode 100644 pages/index/lawyers.vue create mode 100644 pages/user/team.vue create mode 100644 pages/user/vip.vue create mode 100644 static/icon/user_nav_03.png diff --git a/.DS_Store b/.DS_Store index 39f20c2aefecb840b168dbdd42088f1d60beea9f..9c9b18f450a3507331e2d4cd024bd8510b317d8d 100644 GIT binary patch delta 41 xcmZp1XmOa}&nU7nU^hRb$Yve^O~%c+f;X5Zmy2X>u9s0hCGIRh7^X>$@hen8TB@62|i|0=42=Z3KuXW nG9)u(1IcuTRL`9Jgq6QQ-yvt!)-f diff --git a/apis/interfaces/index.js b/apis/interfaces/index.js index 63508e5..f18af6a 100644 --- a/apis/interfaces/index.js +++ b/apis/interfaces/index.js @@ -273,6 +273,7 @@ const delegationCancel = id => { }) } + export { home, articleSort, @@ -307,5 +308,5 @@ export { delegation, delegationFrom, delegationOrder, - delegationCancel + delegationCancel } diff --git a/apis/interfaces/user.js b/apis/interfaces/user.js index 0d0ae0a..7fc9898 100644 --- a/apis/interfaces/user.js +++ b/apis/interfaces/user.js @@ -359,6 +359,30 @@ const userSubscribe = () => { }) } +// 会员信息 +const identity = () => { + return request({ + url: 'identity' + }) +} + +// 开通会员 +const vip = data => { + return request({ + url: 'identity/open', + method: 'POST', + data + }) +} + +// 团队列表 +const team = data => { + return request({ + url: 'user/relations/wechat', + data + }) +} + export { userIndex, realName, @@ -404,5 +428,8 @@ export { cacheBankPut, getSignLogs, getFlows, - userSubscribe + userSubscribe, + identity, + vip, + team } \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 38eb863..2978c5d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,190 +1,272 @@ { + "name": "douhuo-h5", + "lockfileVersion": 3, "requires": true, - "lockfileVersion": 1, - "dependencies": { - "@babel/parser": { + "packages": { + "": { + "dependencies": { + "html2canvas": "^1.4.1", + "jweixin-module": "^1.6.0", + "uni-read-pages": "^1.0.5", + "uni-simple-router": "2.0.7", + "uview-ui": "^2.0.31", + "vconsole": "^3.15.0", + "vue-canvas-poster": "^1.2.1", + "vuex": "^4.1.0" + } + }, + "node_modules/@babel/parser": { "version": "7.21.8", "resolved": "https://registry.npmmirror.com/@babel/parser/-/parser-7.21.8.tgz", - "integrity": "sha512-6zavDGdzG3gUqAdWvlLFfk+36RilI+Pwyuuh7HItyeScCWP3k6i8vKclAQ0bM/0y/Kz/xiwvxhMv9MgTJP5gmA==" + "integrity": "sha512-6zavDGdzG3gUqAdWvlLFfk+36RilI+Pwyuuh7HItyeScCWP3k6i8vKclAQ0bM/0y/Kz/xiwvxhMv9MgTJP5gmA==", + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } }, - "@babel/runtime": { + "node_modules/@babel/runtime": { "version": "7.20.13", "resolved": "https://registry.npmmirror.com/@babel/runtime/-/runtime-7.20.13.tgz", "integrity": "sha512-gt3PKXs0DBoL9xCvOIIZ2NEqAGZqHjAnmVbfQtB620V0uReIQutpel14KcneZuer7UioY8ALKZ7iocavvzTNFA==", - "requires": { + "dependencies": { "regenerator-runtime": "^0.13.11" + }, + "engines": { + "node": ">=6.9.0" } }, - "@vue/compiler-sfc": { + "node_modules/@vue/compiler-sfc": { "version": "2.7.14", "resolved": "https://registry.npmmirror.com/@vue/compiler-sfc/-/compiler-sfc-2.7.14.tgz", "integrity": "sha512-aNmNHyLPsw+sVvlQFQ2/8sjNuLtK54TC6cuKnVzAY93ks4ZBrvwQSnkkIh7bsbNhum5hJBS00wSDipQ937f5DA==", - "requires": { + "dependencies": { "@babel/parser": "^7.18.4", "postcss": "^8.4.14", "source-map": "^0.6.1" } }, - "@vue/devtools-api": { + "node_modules/@vue/devtools-api": { "version": "6.4.5", "resolved": "https://registry.npmjs.org/@vue/devtools-api/-/devtools-api-6.4.5.tgz", "integrity": "sha512-JD5fcdIuFxU4fQyXUu3w2KpAJHzTVdN+p4iOX2lMWSHMOoQdMAcpFLZzm9Z/2nmsoZ1a96QEhZ26e50xLBsgOQ==" }, - "base64-arraybuffer": { + "node_modules/base64-arraybuffer": { "version": "1.0.2", "resolved": "https://registry.npmmirror.com/base64-arraybuffer/-/base64-arraybuffer-1.0.2.tgz", - "integrity": "sha512-I3yl4r9QB5ZRY3XuJVEPfc2XhZO6YweFPI+UovAzn+8/hb3oJ6lnysaFcjVpkCPfVWFUDvoZ8kmVDP7WyRtYtQ==" + "integrity": "sha512-I3yl4r9QB5ZRY3XuJVEPfc2XhZO6YweFPI+UovAzn+8/hb3oJ6lnysaFcjVpkCPfVWFUDvoZ8kmVDP7WyRtYtQ==", + "engines": { + "node": ">= 0.6.0" + } }, - "copy-text-to-clipboard": { + "node_modules/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==" + "integrity": "sha512-rvVsHrpFcL4F2P8ihsoLdFHmd404+CMg71S756oRSeQgqk51U3kicGdnvfkrxva0xXH92SjGS62B0XIJsbh+9Q==", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } }, - "core-js": { + "node_modules/core-js": { "version": "3.27.2", "resolved": "https://registry.npmmirror.com/core-js/-/core-js-3.27.2.tgz", - "integrity": "sha512-9ashVQskuh5AZEZ1JdQWp1GqSoC1e1G87MzRqg2gIfVAQ7Qn9K+uFj8EcniUFA4P2NLZfV+TOlX1SzoKfo+s7w==" + "integrity": "sha512-9ashVQskuh5AZEZ1JdQWp1GqSoC1e1G87MzRqg2gIfVAQ7Qn9K+uFj8EcniUFA4P2NLZfV+TOlX1SzoKfo+s7w==", + "hasInstallScript": true, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/core-js" + } }, - "css-line-break": { + "node_modules/css-line-break": { "version": "2.1.0", "resolved": "https://registry.npmmirror.com/css-line-break/-/css-line-break-2.1.0.tgz", "integrity": "sha512-FHcKFCZcAha3LwfVBhCQbW2nCNbkZXn7KVUJcsT5/P8YmfsVja0FMPJr0B903j/E69HUphKiV9iQArX8SDYA4w==", - "requires": { + "dependencies": { "utrie": "^1.0.2" } }, - "csstype": { + "node_modules/csstype": { "version": "3.1.2", "resolved": "https://registry.npmmirror.com/csstype/-/csstype-3.1.2.tgz", "integrity": "sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ==" }, - "html2canvas": { + "node_modules/html2canvas": { "version": "1.4.1", "resolved": "https://registry.npmmirror.com/html2canvas/-/html2canvas-1.4.1.tgz", "integrity": "sha512-fPU6BHNpsyIhr8yyMpTLLxAbkaK8ArIBcmZIRiBLiDhjeqvXolaEmDGmELFuX9I4xDcaKKcJl+TKZLqruBbmWA==", - "requires": { + "dependencies": { "css-line-break": "^2.1.0", "text-segmentation": "^1.0.3" + }, + "engines": { + "node": ">=8.0.0" } }, - "jweixin-module": { + "node_modules/jweixin-module": { "version": "1.6.0", "resolved": "https://registry.npmjs.org/jweixin-module/-/jweixin-module-1.6.0.tgz", "integrity": "sha512-dGk9cf+ipipHmtzYmKZs5B2toX+p4hLyllGLF6xuC8t+B05oYxd8fYoaRz0T30U2n3RUv8a4iwvjhA+OcYz52w==" }, - "mutation-observer": { + "node_modules/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==" }, - "nanoid": { + "node_modules/nanoid": { "version": "3.3.6", "resolved": "https://registry.npmmirror.com/nanoid/-/nanoid-3.3.6.tgz", - "integrity": "sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA==" + "integrity": "sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } }, - "picocolors": { + "node_modules/picocolors": { "version": "1.0.0", "resolved": "https://registry.npmmirror.com/picocolors/-/picocolors-1.0.0.tgz", "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==" }, - "postcss": { + "node_modules/postcss": { "version": "8.4.23", "resolved": "https://registry.npmmirror.com/postcss/-/postcss-8.4.23.tgz", "integrity": "sha512-bQ3qMcpF6A/YjR55xtoTr0jGOlnPOKAIMdOWiv0EIT6HVPEaJiJB4NLljSbiHoC2RX7DN5Uvjtpbg1NPdwv1oA==", - "requires": { + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { "nanoid": "^3.3.6", "picocolors": "^1.0.0", "source-map-js": "^1.0.2" + }, + "engines": { + "node": "^10 || ^12 || >=14" } }, - "regenerator-runtime": { + "node_modules/regenerator-runtime": { "version": "0.13.11", "resolved": "https://registry.npmmirror.com/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz", "integrity": "sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==" }, - "source-map": { + "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==" + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "engines": { + "node": ">=0.10.0" + } }, - "source-map-js": { + "node_modules/source-map-js": { "version": "1.0.2", "resolved": "https://registry.npmmirror.com/source-map-js/-/source-map-js-1.0.2.tgz", - "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==" + "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==", + "engines": { + "node": ">=0.10.0" + } }, - "text-segmentation": { + "node_modules/text-segmentation": { "version": "1.0.3", "resolved": "https://registry.npmmirror.com/text-segmentation/-/text-segmentation-1.0.3.tgz", "integrity": "sha512-iOiPUo/BGnZ6+54OsWxZidGCsdU8YbE4PSpdPinp7DeMtUJNJBoJ/ouUSTJjHkh1KntHaltHl/gDs2FC4i5+Nw==", - "requires": { + "dependencies": { "utrie": "^1.0.2" } }, - "uni-read-pages": { + "node_modules/uni-read-pages": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/uni-read-pages/-/uni-read-pages-1.0.5.tgz", - "integrity": "sha512-GkrrZ0LX0vn9R5k6RKEi0Ez3Q3e2vUpjXQ8Z6/K/d28KudI9ajqgt8WEjQFlG5EPm1K6uTArN8LlqmZTEixDUA==" + "integrity": "sha512-GkrrZ0LX0vn9R5k6RKEi0Ez3Q3e2vUpjXQ8Z6/K/d28KudI9ajqgt8WEjQFlG5EPm1K6uTArN8LlqmZTEixDUA==", + "hasInstallScript": true }, - "uni-simple-router": { - "version": "2.0.8-beta.4", - "resolved": "https://registry.npmjs.org/uni-simple-router/-/uni-simple-router-2.0.8-beta.4.tgz", - "integrity": "sha512-ipTHhOaRvjV8qrt3HosX5pNMhwFYBnFOuKyV5joH0evfXubjrGI5tjdwpmwzfW5h3VBth3iAqScv+pW/QmIJXw==" + "node_modules/uni-simple-router": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/uni-simple-router/-/uni-simple-router-2.0.7.tgz", + "integrity": "sha512-8FKv5dw7Eoonm0gkO8udprrxzin0fNUI0+AvIphFkFRH5ZmP5ZWJ2pvnWzb2NiiqQSECTSU5VSB7HhvOSwD5eA==" }, - "utrie": { + "node_modules/utrie": { "version": "1.0.2", "resolved": "https://registry.npmmirror.com/utrie/-/utrie-1.0.2.tgz", "integrity": "sha512-1MLa5ouZiOmQzUbjbu9VmjLzn1QLXBhwpUa7kdLUQK+KQ5KA9I1vk5U4YHe/X2Ch7PYnJfWuWT+VbuxbGwljhw==", - "requires": { + "dependencies": { "base64-arraybuffer": "^1.0.2" } }, - "uview-ui": { + "node_modules/uview-ui": { "version": "2.0.31", "resolved": "https://registry.npmjs.org/uview-ui/-/uview-ui-2.0.31.tgz", - "integrity": "sha512-I/0fGuvtiKHH/mBb864SGYk+SJ7WaF32tsBgYgeBOsxlUp+Th+Ac2tgz2cTvsQJl6eZYWsKZ3ixiSXCAcxZ8Sw==" + "integrity": "sha512-I/0fGuvtiKHH/mBb864SGYk+SJ7WaF32tsBgYgeBOsxlUp+Th+Ac2tgz2cTvsQJl6eZYWsKZ3ixiSXCAcxZ8Sw==", + "engines": { + "HBuilderX": "^3.1.0" + } }, - "vconsole": { + "node_modules/vconsole": { "version": "3.15.0", "resolved": "https://registry.npmmirror.com/vconsole/-/vconsole-3.15.0.tgz", "integrity": "sha512-8hq7wabPcRucSWQyN7/1tthMawP9JPvM95zgtMHpPknMMMCKj+abpoK7P7oKK4B0qw58C24Mdvo9+raUdpHyVQ==", - "requires": { + "dependencies": { "@babel/runtime": "^7.17.2", "copy-text-to-clipboard": "^3.0.1", "core-js": "^3.11.0", "mutation-observer": "^1.0.3" } }, - "vue": { + "node_modules/vue": { "version": "2.7.14", "resolved": "https://registry.npmmirror.com/vue/-/vue-2.7.14.tgz", "integrity": "sha512-b2qkFyOM0kwqWFuQmgd4o+uHGU7T+2z3T+WQp8UBjADfEv2n4FEMffzBmCKNP0IGzOEEfYjvtcC62xaSKeQDrQ==", - "requires": { + "deprecated": "Vue 2 has reached EOL and is no longer actively maintained. See https://v2.vuejs.org/eol/ for more details.", + "dependencies": { "@vue/compiler-sfc": "2.7.14", "csstype": "^3.1.0" } }, - "vue-canvas-poster": { + "node_modules/vue-canvas-poster": { "version": "1.2.1", "resolved": "https://registry.npmmirror.com/vue-canvas-poster/-/vue-canvas-poster-1.2.1.tgz", "integrity": "sha512-YY5ygbeQSqhiJyj6QXYgSRZ6Ywhvi1gVsfcvBIoCx4Yq9E/gAV32uOhnZz45qsklP86uGc9ypKJAXiX6Dzrdxw==", - "requires": { + "dependencies": { "core-js": "^2.6.5", "vue": "^2.6.10" - }, - "dependencies": { - "core-js": { - "version": "2.6.12", - "resolved": "https://registry.npmmirror.com/core-js/-/core-js-2.6.12.tgz", - "integrity": "sha512-Kb2wC0fvsWfQrgk8HU5lW6U/Lcs8+9aaYcy4ZFc6DDlo4nZ7n70dEgE5rtR0oG6ufKDUnrwfWL1mXR5ljDatrQ==" - } } }, - "vuex": { + "node_modules/vue-canvas-poster/node_modules/core-js": { + "version": "2.6.12", + "resolved": "https://registry.npmmirror.com/core-js/-/core-js-2.6.12.tgz", + "integrity": "sha512-Kb2wC0fvsWfQrgk8HU5lW6U/Lcs8+9aaYcy4ZFc6DDlo4nZ7n70dEgE5rtR0oG6ufKDUnrwfWL1mXR5ljDatrQ==", + "deprecated": "core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.", + "hasInstallScript": true + }, + "node_modules/vuex": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/vuex/-/vuex-4.1.0.tgz", "integrity": "sha512-hmV6UerDrPcgbSy9ORAtNXDr9M4wlNP4pEFKye4ujJF8oqgFFuxDCdOLS3eNoRTtq5O3hoBDh9Doj1bQMYHRbQ==", - "requires": { + "dependencies": { "@vue/devtools-api": "^6.0.0-beta.11" + }, + "peerDependencies": { + "vue": "^3.2.0" } } } diff --git a/pages.json b/pages.json index 08d2be4..b4b4354 100644 --- a/pages.json +++ b/pages.json @@ -666,7 +666,8 @@ "navigationStyle": "custom" } },{ - "path" : "pages/management/account", + "path" : "pages/management/account", + "aliasPath": "/management/account", "name" : "MagAccount", "style" : { "navigationBarTitleText" : "账户咨询办理", @@ -675,7 +676,8 @@ }, { "path" : "pages/management/delegation", - "name" : "MagDelegation", + "name" : "MagDelegation", + "aliasPath": "/management/delegation", "style" : { "navigationBarTitleText" : "委托管理办理", "enablePullDownRefresh" : false @@ -683,7 +685,8 @@ }, { "path" : "pages/work/account", - "name" : "AccountWork", + "name" : "AccountWork", + "aliasPath": "/work/account", "style" : { "navigationBarTitleText" : "账户管理咨询类", "enablePullDownRefresh" : false, @@ -691,12 +694,40 @@ } },{ "path" : "pages/work/delegation", - "name" : "DelegationWork", + "name" : "DelegationWork", + "aliasPath": "/work/delegation", "style" : { "navigationBarTitleText" : "委托管理类", "enablePullDownRefresh" : false, "navigationBarBackgroundColor": "#FFFFFF" } + }, + { + "path" : "pages/user/vip", + "aliasPath": "/vip", + "name": "vip", + "style" : { + "navigationBarTitleText" : "会员中心", + "enablePullDownRefresh" : false + } + }, + { + "path" : "pages/user/team", + "aliasPath": "/team", + "name": "Tema", + "style" : { + "navigationBarTitleText" : "团队", + "enablePullDownRefresh" : false + } + }, + { + "path" : "pages/index/lawyers", + "aliasPath": "/lawyers", + "name": "Lawyers", + "style" : { + "navigationBarTitleText" : "金牌律师", + "enablePullDownRefresh" : false + } } ], "globalStyle": { diff --git a/pages/index/index.vue b/pages/index/index.vue index 7c83552..cc2f925 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -7,11 +7,15 @@