diff --git a/src/api/system/file/index.ts b/src/api/system/file/index.ts index fa78a8a..969fa0a 100644 --- a/src/api/system/file/index.ts +++ b/src/api/system/file/index.ts @@ -21,7 +21,7 @@ export async function uploadOssByPath(filePath: string) { let stsExpired = Taro.getStorageSync('stsExpiredAt'); if (!sts || (stsExpired && dayjs().isBefore(dayjs(stsExpired)))) { // @ts-ignore - const {data: {data: {credentials}}} = await request.get(`https://server.gxwebsoft.com/api/oss/getSTSToken`) + const {data: {data: {credentials}}} = await request.get(`https://server.websoft.top/api/oss/getSTSToken`) Taro.setStorageSync('sts', credentials) Taro.setStorageSync('stsExpiredAt', credentials.expiration) sts = credentials @@ -66,7 +66,7 @@ export async function uploadFile() { const tempFilePath = res.tempFilePaths[0]; // 上传图片到OSS Taro.uploadFile({ - url: 'https://server.gxwebsoft.com/api/oss/upload', + url: 'https://server.websoft.top/api/oss/upload', filePath: tempFilePath, name: 'file', header: { diff --git a/src/pages/index/Header.tsx b/src/pages/index/Header.tsx index 468afc4..2692272 100644 --- a/src/pages/index/Header.tsx +++ b/src/pages/index/Header.tsx @@ -35,7 +35,7 @@ const Header = (props: any) => { success: function () { if (code) { Taro.request({ - url: 'https://server.gxwebsoft.com/api/wx-login/loginByMpWxPhone', + url: 'https://server.websoft.top/api/wx-login/loginByMpWxPhone', method: 'POST', data: { code, diff --git a/src/pages/index/Login.tsx b/src/pages/index/Login.tsx index a2528e6..1cc2dd0 100644 --- a/src/pages/index/Login.tsx +++ b/src/pages/index/Login.tsx @@ -16,7 +16,7 @@ const Login = (props:any) => { success: function () { if (code) { Taro.request({ - url: 'https://server.gxwebsoft.com/api/wx-login/loginByMpWxPhone', + url: 'https://server.websoft.top/api/wx-login/loginByMpWxPhone', method: 'POST', data: { code, diff --git a/src/pages/index/Video.tsx b/src/pages/index/Video.tsx index c74246a..421f6cf 100644 --- a/src/pages/index/Video.tsx +++ b/src/pages/index/Video.tsx @@ -7,8 +7,12 @@ const MyPage = () => { return (
-
diff --git a/src/pages/index/index.scss b/src/pages/index/index.scss index 75a631d..0a07e09 100644 --- a/src/pages/index/index.scss +++ b/src/pages/index/index.scss @@ -3,7 +3,7 @@ page { .mobile-container { width: 100%; - min-height: 90vh; + min-height: 100vh; // PC端样式 //@media screen and (min-width: 768px) { diff --git a/src/pages/index/index.tsx b/src/pages/index/index.tsx index de996af..aa56847 100644 --- a/src/pages/index/index.tsx +++ b/src/pages/index/index.tsx @@ -47,6 +47,7 @@ function Home() { {/**/}