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() {
{/**/}
+
>)}
{/* H5模式下显示自定义TabBar */}
{process.env.TARO_ENV === 'h5' && }
diff --git a/src/pages/user/components/OrderIcon.tsx b/src/pages/user/components/OrderIcon.tsx
index e124fee..94341d0 100644
--- a/src/pages/user/components/OrderIcon.tsx
+++ b/src/pages/user/components/OrderIcon.tsx
@@ -6,7 +6,6 @@ import {getUserInfo, getWxOpenId} from "@/api/layout";
import {TenantId} from "@/utils/config";
import {User} from "@/api/system/user/model";
// import News from "./News";
-import {myPageBszxBm} from "@/api/bszx/bszxBm";
import {listCmsNavigation} from "@/api/cms/cmsNavigation";
const OrderIcon = () => {
@@ -14,7 +13,7 @@ const OrderIcon = () => {
const [loading, setLoading] = useState(true)
const [isLogin, setIsLogin] = useState(false)
const [userInfo, setUserInfo] = useState()
- const [bmLogs, setBmLogs] = useState()
+ const [bmLogs] = useState()
const [navItems, setNavItems] = useState([])
/* 获取用户手机号 */
@@ -24,7 +23,7 @@ const OrderIcon = () => {
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,
@@ -114,12 +113,6 @@ const OrderIcon = () => {
});
}
});
- // 报名日志
- myPageBszxBm({limit: 1}).then(res => {
- if (res.list) {
- setBmLogs(res.list);
- }
- })
setLoading(false);
};
@@ -186,13 +179,13 @@ const OrderIcon = () => {
{
onLogin(item, index)
}}>
-
+
{item?.title}
:
diff --git a/src/user/profile/profile.tsx b/src/user/profile/profile.tsx
index edc00a4..6ed593d 100644
--- a/src/user/profile/profile.tsx
+++ b/src/user/profile/profile.tsx
@@ -74,7 +74,7 @@ function Profile() {
avatar: `${detail.avatarUrl}`,
})
Taro.uploadFile({
- url: 'https://server.gxwebsoft.com/api/oss/upload',
+ url: 'https://server.websoft.top/api/oss/upload',
filePath: detail.avatarUrl,
name: 'file',
header: {
diff --git a/src/utils/server.ts b/src/utils/server.ts
index 4d37c25..b37d43b 100644
--- a/src/utils/server.ts
+++ b/src/utils/server.ts
@@ -4,7 +4,7 @@ import {User} from "@/api/system/user/model";
// 模版套餐ID
export const TEMPLATE_ID = 10556;
// 服务接口
-export const SERVER_API_URL = 'https://server.gxwebsoft.com/api';
+export const SERVER_API_URL = 'https://server.websoft.top/api';
// export const SERVER_API_URL = 'http://127.0.0.1:8000/api';
// 服务接口
export const APP_API_URL = 'http://182.90.229.54:10048/api';