From 78e4ee54428cc66e144fbe380d972aa4eceb8329 Mon Sep 17 00:00:00 2001 From: lingling <1077478963@qq.com> Date: Wed, 19 Feb 2025 17:29:20 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=84=E7=95=99=E6=B4=BB=E8=B7=83=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=20=E5=A2=9E=E5=8A=A0=E6=B4=BB=E8=B7=83=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E6=9F=A5=E7=9C=8B=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/api/UserController.php | 10 +++- public/js/index-8b712531.js | 86 +++++++++++++++++++++++++++ 2 files changed, 95 insertions(+), 1 deletion(-) create mode 100644 public/js/index-8b712531.js diff --git a/app/controller/api/UserController.php b/app/controller/api/UserController.php index 2647e4c..d3de9d7 100644 --- a/app/controller/api/UserController.php +++ b/app/controller/api/UserController.php @@ -162,6 +162,14 @@ class UserController $user->password = password_hash($new_password, PASSWORD_DEFAULT); //保存到数据库 $user->save(); - return ApiResponseApp::success('修改成功'); + return ApiResponseApp::success([],'修改成功'); + } + /** + * @Apidoc\Title("1.0 获取活跃用户列表") + * @Apidoc\Url("api/user/active_user") + * @Apidoc\Method("POST") + */ + public function active_user(){ + return ApiResponseApp::success([],''); } } diff --git a/public/js/index-8b712531.js b/public/js/index-8b712531.js new file mode 100644 index 0000000..7e9f0e3 --- /dev/null +++ b/public/js/index-8b712531.js @@ -0,0 +1,86 @@ +import { + j as t, + aC as e, + m as a, + p as s, + o as l, + f as n, + t as o, + h as c, + e as f, + F as r, + r as i, +} from "./index-476be0bb.js"; +import { s as d } from "./api.mine-40f950d7.js"; +const x = { class: "p-10 bg-#f6f6f6" }, + h = { class: "flex h-40 rounded-10 bg-#fff" }, + v = { class: "w-50% text-center lh-40" }, + p = { class: "w-50% text-center lh-40" }, + m = { key: 0 }, + u = { class: "flex h-40" }, + g = { class: "w-50% text-center lh-40" }, + b = { class: "w-50% text-center lh-40" }, + w = { key: 1, class: "text-center pt-50 text-#666" }, + y = { + __name: "index", + setup(y) { + const $ = t([]); + return ( + d({}).then((t) => { + t.data.length > 0 && ($.value = t.data); + }), + (t, d) => { + const y = e("normal-layout"); + return ( + l(), + a( + y, + { + flex: "", + "bg-color": "#f6f6f6", + "nav-bg-color": "#fff", + "text-color": "#000", + title: t.$t("活跃人数"), + backType: 0, + }, + { + default: s(() => [ + n("div", x, [ + n("div", h, [ + n("div", v, o(t.$t("手机号")), 1), + n("div", p, o(t.$t("积分")), 1), + ]), + c($).length > 0 + ? (l(), + f("div", m, [ + (l(!0), + f( + r, + null, + i( + c($), + (t) => ( + l(), + f("div", u, [ + n("div", g, o(t.phone), 1), + n("div", b, o(Math.floor(t.income)), 1), + ]) + ) + ), + 256 + )), + ])) + : (l(), f("div", w, o(t.$t("没有更多了")), 1)), + ]), + ]), + _: 1, + }, + 8, + ["title"] + ) + ); + } + ); + }, + }; +export { y as default };