修复修改密码问题以及其他样式
This commit is contained in:
parent
c846c494e5
commit
f50939f970
|
@ -247,8 +247,11 @@ export const createOrder = async (type = "alipay_h5") => {
|
|||
};
|
||||
|
||||
//点击获取验证码
|
||||
export const handleVerification = async (mobilePhone = "", regionCode) => {
|
||||
// console.log("mobilePhone",mobilePhone.toString())
|
||||
export const handleVerification = async (
|
||||
mobilePhone = "",
|
||||
regionCode,
|
||||
callback
|
||||
) => {
|
||||
//手机号校验
|
||||
if (!mobilePhone.toString().match(/^1[3456789]\d{9}$/)) {
|
||||
Toast.show({
|
||||
|
@ -260,16 +263,25 @@ export const handleVerification = async (mobilePhone = "", regionCode) => {
|
|||
}
|
||||
//对手机号进行RSA加密
|
||||
const encrypt = new JSEncrypt();
|
||||
encrypt.setPublicKey(process.env.EXPO_PUBLIC_RSA_KEY);
|
||||
encrypt.setPublicKey(process.env.NEXT_PUBLIC_RSA_KEY);
|
||||
const mobile_phone = encrypt.encrypt(mobilePhone);
|
||||
//发送短信验证码
|
||||
try {
|
||||
await requireAPI("POST", `/api/veri_code/send`, {
|
||||
const data = await requireAPI("POST", `/api/veri_code/send`, {
|
||||
body: {
|
||||
mobile_phone: mobile_phone,
|
||||
region_code: regionCode,
|
||||
},
|
||||
});
|
||||
if (data.ret === -1) {
|
||||
Toast.show({
|
||||
icon: "fail",
|
||||
content: data.msg,
|
||||
position: "top",
|
||||
});
|
||||
return;
|
||||
}
|
||||
callback && callback();
|
||||
} catch (error) {
|
||||
// console.error(error);
|
||||
}
|
||||
|
|
|
@ -377,7 +377,7 @@ export default function MessageDetail({}) {
|
|||
};
|
||||
return (
|
||||
<div className="bg-[#13121F] h-screen overflow-y-auto" ref={scrollBox}>
|
||||
<div className="p-4 fixed top-0 z-10 w-full bg-black">
|
||||
<div className="p-4 fixed top-0 z-10 w-full bg-deepBg">
|
||||
<div className="flex items-center justify-center absolute">
|
||||
<FontAwesomeIcon
|
||||
icon={faAngleLeft}
|
||||
|
|
|
@ -9,7 +9,7 @@ export default function AddToHome() {
|
|||
const router = useRouter();
|
||||
return (
|
||||
<div>
|
||||
<div className="p-4 fixed top-0 z-10 w-full bg-black">
|
||||
<div className="p-4 fixed top-0 z-10 w-full bg-deepBg">
|
||||
<div className="w-9 h-9 flex items-center justify-center bg-[#FFFFFF1A] rounded-full float-left absolute">
|
||||
<FontAwesomeIcon
|
||||
icon={faAngleLeft}
|
||||
|
|
|
@ -151,6 +151,8 @@ export default function EditPassword() {
|
|||
});
|
||||
if (searchParams.get("is_enabled") == "0") {
|
||||
router.push("/");
|
||||
} else {
|
||||
router.back();
|
||||
}
|
||||
} catch (error) {
|
||||
// console.error(error);
|
||||
|
|
|
@ -51,7 +51,7 @@ export default function UnlockedWechat() {
|
|||
}
|
||||
return (
|
||||
<div>
|
||||
<div className="p-4 fixed top-0 z-10 w-full bg-black">
|
||||
<div className="p-4 fixed top-0 z-10 w-full bg-deepBg">
|
||||
<div className="w-9 h-9 flex items-center justify-center bg-[#FFFFFF1A] rounded-full absolute">
|
||||
<FontAwesomeIcon
|
||||
icon={faAngleLeft}
|
||||
|
|
|
@ -121,6 +121,7 @@ export default function Search() {
|
|||
step: 1,
|
||||
type: "select",
|
||||
items: [
|
||||
"不限",
|
||||
"北京市",
|
||||
"天津市",
|
||||
"河北省",
|
||||
|
@ -167,6 +168,7 @@ export default function Search() {
|
|||
type: "select",
|
||||
key: "constellation",
|
||||
items: [
|
||||
"不限",
|
||||
"白羊座",
|
||||
"金牛座",
|
||||
"双子座",
|
||||
|
@ -205,7 +207,7 @@ export default function Search() {
|
|||
},
|
||||
{
|
||||
name: "微信价格",
|
||||
desc: "10金币=¥1",
|
||||
desc: "10金币=1元",
|
||||
upper_bound: 30000,
|
||||
lower_bound: 0,
|
||||
default: 24,
|
||||
|
@ -366,6 +368,7 @@ export default function Search() {
|
|||
delete currentFilterValue.comprehensiveUsed;
|
||||
delete currentFilterValue.priceUsed;
|
||||
querryParams = currentFilterValue;
|
||||
console.log("querryParams", querryParams);
|
||||
try {
|
||||
const data = await requireAPI("POST", "/api/streamer/filter", {
|
||||
body: { ...querryParams },
|
||||
|
@ -387,7 +390,7 @@ export default function Search() {
|
|||
};
|
||||
return (
|
||||
<div className="">
|
||||
<div className="flex items-center p-4 sticky top-0 bg-black z-10">
|
||||
<div className="flex items-center p-4 sticky top-0 bg-deepBg z-10">
|
||||
<FontAwesomeIcon
|
||||
icon={faAngleLeft}
|
||||
style={{ maxWidth: "12px" }}
|
||||
|
@ -544,11 +547,13 @@ export default function Search() {
|
|||
}}
|
||||
>
|
||||
<Popup
|
||||
// containerStyle={{ marginTop: 80 }}
|
||||
closeOnMaskClick={true}
|
||||
maskStyle={{ backgroundColor: "#0000004d" }}
|
||||
visible={isFilterVisible.comprehensive}
|
||||
bodyStyle={{ height: "calc(100vh - 110px)" }}
|
||||
bodyStyle={{
|
||||
height: "calc(100vh - 110px)",
|
||||
backgroundColor: "black",
|
||||
}}
|
||||
onMaskClick={() =>
|
||||
setIsFilterVisible({
|
||||
zone_admission_price: false,
|
||||
|
@ -786,7 +791,10 @@ export default function Search() {
|
|||
<Popup
|
||||
closeOnMaskClick={true}
|
||||
maskStyle={{ backgroundColor: "#0000004d" }}
|
||||
bodyStyle={{ height: "calc(100vh - 110px)" }}
|
||||
bodyStyle={{
|
||||
height: "calc(100vh - 110px)",
|
||||
backgroundColor: "black",
|
||||
}}
|
||||
onMaskClick={() =>
|
||||
setIsFilterVisible({
|
||||
zone_admission_price: false,
|
||||
|
@ -878,6 +886,9 @@ export default function Search() {
|
|||
/>
|
||||
</div>
|
||||
))}
|
||||
<p className="text-sm font-medium mt-1 px-4 text-[#ffffff80]">
|
||||
*{priceFilters[1]?.desc}
|
||||
</p>
|
||||
<div className="flex flex-row justify-around items-center mb-4 p-4 absolute bottom-0 w-full">
|
||||
<div
|
||||
className="p-2 rounded-xl flex justify-center items-center mr-2"
|
||||
|
|
|
@ -272,9 +272,10 @@ export default function MySlider({
|
|||
color: "#ff75c8",
|
||||
}}
|
||||
>
|
||||
-
|
||||
~
|
||||
</span>
|
||||
<span
|
||||
className={hasInfinity ? "text-xl" : ""}
|
||||
style={{
|
||||
color: "#ff75c8",
|
||||
}}
|
||||
|
|
Loading…
Reference in New Issue