预留活跃接口 增加活跃用户查看页面
This commit is contained in:
parent
7a2fc972a5
commit
78e4ee5442
|
@ -162,6 +162,14 @@ class UserController
|
||||||
$user->password = password_hash($new_password, PASSWORD_DEFAULT);
|
$user->password = password_hash($new_password, PASSWORD_DEFAULT);
|
||||||
//保存到数据库
|
//保存到数据库
|
||||||
$user->save();
|
$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([],'');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 };
|
Loading…
Reference in New Issue