修复意见反馈功能
This commit is contained in:
parent
0a64774413
commit
80f9a6e9bd
|
@ -361,13 +361,15 @@ function Login({ handleLogin }) {
|
|||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
onClick={() =>
|
||||
router.push(`/my/setting/editPassword?forgetPassword=true`)
|
||||
}
|
||||
className="w-full text-[#FF669E] text-xs mt-2 text-right"
|
||||
>
|
||||
忘记密码?
|
||||
<div className="flex justify-end">
|
||||
<span
|
||||
onClick={() =>
|
||||
router.push(`/my/setting/editPassword?forgetPassword=true`)
|
||||
}
|
||||
className="text-[#FF669E] text-xs mt-2 text-right"
|
||||
>
|
||||
忘记密码?
|
||||
</span>
|
||||
</div>
|
||||
<LoginBtn
|
||||
loginInfo={loginInfo}
|
||||
|
@ -430,12 +432,15 @@ const LoginBtn = ({ loginInfo, setLoginInfo, type, handleSubmit }) => {
|
|||
size="middle"
|
||||
block
|
||||
onClick={() => handleSubmit(type)}
|
||||
style={{ "--background-color": "#FF669E", color: "#FFFFFF",marginTop:"1rem" }}
|
||||
style={{
|
||||
"--background-color": "#FF669E",
|
||||
color: "#FFFFFF",
|
||||
marginTop: "1rem",
|
||||
}}
|
||||
className="mt-4 py-2"
|
||||
>
|
||||
登录
|
||||
</Button>
|
||||
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
@ -445,11 +450,18 @@ const BottomBox = () => {
|
|||
return (
|
||||
<div className="fixed bottom-0 w-full p-6 ">
|
||||
<div className="p-3 rounded-md flex justify-between items-center bg-[#ffffff17]">
|
||||
<div>
|
||||
<p className="">铁粉空间APP可以下载啦~</p>
|
||||
<p className="text-xs text-[#FFFFFF80]">立即下载APP体验更好的服务~</p>
|
||||
</div>
|
||||
<div className="px-2 py-1 rounded-full bg-[#FF669E]" onClick={()=>router.push("https://tiefen.fun")}>下载APP</div>
|
||||
<div>
|
||||
<p className="">铁粉空间APP可以下载啦~</p>
|
||||
<p className="text-xs text-[#FFFFFF80]">
|
||||
立即下载APP体验更好的服务~
|
||||
</p>
|
||||
</div>
|
||||
<div
|
||||
className="px-2 py-1 rounded-full bg-[#FF669E]"
|
||||
onClick={() => router.push("https://tiefen.fun")}
|
||||
>
|
||||
下载APP
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
|
|
@ -461,6 +461,7 @@ export default function MessageDetail({}) {
|
|||
className=""
|
||||
value={newMessage}
|
||||
onChange={setNewMessage}
|
||||
style={{"--font-size": "16px",}}
|
||||
/>
|
||||
</div>
|
||||
<Button
|
||||
|
|
|
@ -84,7 +84,8 @@ export default function EditUserName() {
|
|||
max={8}
|
||||
onChange={(value) => setName(value)}
|
||||
value={name}
|
||||
style={{ "--placeholder-color": "#FFFFFF80" }}
|
||||
style={{ "--placeholder-color": "#FFFFFF80","--font-size": "16px", }}
|
||||
|
||||
/>
|
||||
</div>
|
||||
<div className="mt-16">
|
||||
|
|
|
@ -82,7 +82,7 @@ export default function Feedback() {
|
|||
onChange={(value) => setValue(value)}
|
||||
value={value}
|
||||
className="h-32 bg-[#FFFFFF1A] text-white rounded-2xl mt-2 p-2"
|
||||
style={{ "--placeholder-color": "#FFFFFF80", "--font-size": "14px" }}
|
||||
style={{ "--placeholder-color": "#FFFFFF80", "--font-size": "16px" }}
|
||||
/>
|
||||
<p className="text-base font-medium text-white mt-4 mb-1">
|
||||
截图(最多9张)
|
||||
|
|
|
@ -183,7 +183,7 @@ export default function SpaceRefund() {
|
|||
className="h-32 bg-[#FFFFFF1A] text-white rounded-2xl mt-2 p-2"
|
||||
style={{
|
||||
"--placeholder-color": "#FFFFFF80",
|
||||
"--font-size": "14px",
|
||||
"--font-size": "16px",
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
|
|
|
@ -126,9 +126,8 @@ async function getFailId() {
|
|||
|
||||
//上传单张图片
|
||||
export async function uploadImage(asset) {
|
||||
|
||||
const auth = await getAuth(1);
|
||||
console.log("auth",auth)
|
||||
console.log("auth", auth);
|
||||
try {
|
||||
const formData = new FormData();
|
||||
formData.append("name", auth.filename);
|
||||
|
@ -138,12 +137,12 @@ export async function uploadImage(asset) {
|
|||
formData.append("signature", auth.signature);
|
||||
formData.append("key", auth.directory + "/" + auth.filename);
|
||||
formData.append("file", asset);
|
||||
console.log("formData",...formData)
|
||||
console.log("formData", ...formData);
|
||||
const uploadResponse = await fetch(auth.host, {
|
||||
method: "POST",
|
||||
body: formData,
|
||||
});
|
||||
console.log("uploadResponse",uploadResponse)
|
||||
console.log("uploadResponse", uploadResponse);
|
||||
if (uploadResponse.status === 200) {
|
||||
// console.log(asset);
|
||||
// debugger
|
||||
|
@ -156,22 +155,18 @@ export async function uploadImage(asset) {
|
|||
fmt: asset.type,
|
||||
};
|
||||
|
||||
|
||||
const base = baseRequest();
|
||||
const response = await fetch(
|
||||
`/api/media/c_upload`,
|
||||
{
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
body: JSON.stringify({
|
||||
mtype: 1,
|
||||
item: item,
|
||||
...base,
|
||||
}),
|
||||
}
|
||||
);
|
||||
const response = await fetch(`/api/media/c_upload`, {
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
body: JSON.stringify({
|
||||
mtype: 1,
|
||||
item: item,
|
||||
...base,
|
||||
}),
|
||||
});
|
||||
const data = await response.json();
|
||||
if (data.ret === -1) {
|
||||
Toast.show({
|
||||
|
@ -220,7 +215,7 @@ export async function uploadVideo(asset) {
|
|||
method: "POST",
|
||||
body: formData,
|
||||
});
|
||||
console.log("uploadResponse",uploadResponse)
|
||||
console.log("uploadResponse", uploadResponse);
|
||||
if (uploadResponse.status === 200) {
|
||||
const md5 = uploadResponse.headers.map.etag.substring(
|
||||
1,
|
||||
|
@ -235,21 +230,18 @@ export async function uploadVideo(asset) {
|
|||
dur: asset?.duration,
|
||||
fmt: fileType,
|
||||
};
|
||||
const base = baseRequest();
|
||||
const response = await fetch(
|
||||
`/api/media/c_upload`,
|
||||
{
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
body: JSON.stringify({
|
||||
mtype: 2,
|
||||
item: item,
|
||||
...base,
|
||||
}),
|
||||
}
|
||||
);
|
||||
const base = baseRequest();
|
||||
const response = await fetch(`/api/media/c_upload`, {
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
body: JSON.stringify({
|
||||
mtype: 2,
|
||||
item: item,
|
||||
...base,
|
||||
}),
|
||||
});
|
||||
const data = await response.json();
|
||||
if (data.ret === -1) {
|
||||
Toast.show({
|
||||
|
@ -281,14 +273,13 @@ export async function uploadVideo(asset) {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
//上传多个图片
|
||||
export async function multiUploadImage(assets) {
|
||||
console.log("assets",assets)
|
||||
console.log("assets", assets);
|
||||
let ids = { image_ids: [], video_ids: [] };
|
||||
await Promise.all(
|
||||
assets.map(async (asset) => {
|
||||
const id = await uploadImage(asset.src);
|
||||
const id = await uploadImage(asset);
|
||||
// debugger;
|
||||
ids.image_ids.push(id);
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue