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