优化:已知问题
This commit is contained in:
@@ -21,7 +21,7 @@ export async function uploadOssByPath(filePath: string) {
|
|||||||
let stsExpired = Taro.getStorageSync('stsExpiredAt');
|
let stsExpired = Taro.getStorageSync('stsExpiredAt');
|
||||||
if (!sts || (stsExpired && dayjs().isBefore(dayjs(stsExpired)))) {
|
if (!sts || (stsExpired && dayjs().isBefore(dayjs(stsExpired)))) {
|
||||||
// @ts-ignore
|
// @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('sts', credentials)
|
||||||
Taro.setStorageSync('stsExpiredAt', credentials.expiration)
|
Taro.setStorageSync('stsExpiredAt', credentials.expiration)
|
||||||
sts = credentials
|
sts = credentials
|
||||||
@@ -66,7 +66,7 @@ export async function uploadFile() {
|
|||||||
const tempFilePath = res.tempFilePaths[0];
|
const tempFilePath = res.tempFilePaths[0];
|
||||||
// 上传图片到OSS
|
// 上传图片到OSS
|
||||||
Taro.uploadFile({
|
Taro.uploadFile({
|
||||||
url: 'https://server.gxwebsoft.com/api/oss/upload',
|
url: 'https://server.websoft.top/api/oss/upload',
|
||||||
filePath: tempFilePath,
|
filePath: tempFilePath,
|
||||||
name: 'file',
|
name: 'file',
|
||||||
header: {
|
header: {
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ const Header = (props: any) => {
|
|||||||
success: function () {
|
success: function () {
|
||||||
if (code) {
|
if (code) {
|
||||||
Taro.request({
|
Taro.request({
|
||||||
url: 'https://server.gxwebsoft.com/api/wx-login/loginByMpWxPhone',
|
url: 'https://server.websoft.top/api/wx-login/loginByMpWxPhone',
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
data: {
|
data: {
|
||||||
code,
|
code,
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ const Login = (props:any) => {
|
|||||||
success: function () {
|
success: function () {
|
||||||
if (code) {
|
if (code) {
|
||||||
Taro.request({
|
Taro.request({
|
||||||
url: 'https://server.gxwebsoft.com/api/wx-login/loginByMpWxPhone',
|
url: 'https://server.websoft.top/api/wx-login/loginByMpWxPhone',
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
data: {
|
data: {
|
||||||
code,
|
code,
|
||||||
|
|||||||
@@ -7,8 +7,12 @@ const MyPage = () => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={'px-3'}>
|
<div className={'px-3'}>
|
||||||
<video controls className="w-full max-w-2xl mx-auto">
|
<video
|
||||||
<source src="https://oss.wsdns.cn/20250722/018be1bd1c8b4cc4a15076ad0578b88d.mp4" type="video/mp4" />
|
controls
|
||||||
|
className='w-full max-w-2xl mx-auto'
|
||||||
|
poster='https://oss.wsdns.cn/20250722/018be1bd1c8b4cc4a15076ad0578b88d.mp4?x-oss-process=video/snapshot,t_1000,f_jpg,w_396,h_222,m_fast'
|
||||||
|
>
|
||||||
|
<source src='https://oss.wsdns.cn/20250722/018be1bd1c8b4cc4a15076ad0578b88d.mp4' type='video/mp4' />
|
||||||
您的浏览器不支持视频播放
|
您的浏览器不支持视频播放
|
||||||
</video>
|
</video>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ page {
|
|||||||
|
|
||||||
.mobile-container {
|
.mobile-container {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
min-height: 90vh;
|
min-height: 100vh;
|
||||||
|
|
||||||
// PC端样式
|
// PC端样式
|
||||||
//@media screen and (min-width: 768px) {
|
//@media screen and (min-width: 768px) {
|
||||||
|
|||||||
@@ -47,6 +47,7 @@ function Home() {
|
|||||||
<Menu/>
|
<Menu/>
|
||||||
{/*<Banner/>*/}
|
{/*<Banner/>*/}
|
||||||
<Video />
|
<Video />
|
||||||
|
<div className={'h-20'}></div>
|
||||||
</>)}
|
</>)}
|
||||||
{/* H5模式下显示自定义TabBar */}
|
{/* H5模式下显示自定义TabBar */}
|
||||||
{process.env.TARO_ENV === 'h5' && <SimpleH5TabBar current={0} />}
|
{process.env.TARO_ENV === 'h5' && <SimpleH5TabBar current={0} />}
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ import {getUserInfo, getWxOpenId} from "@/api/layout";
|
|||||||
import {TenantId} from "@/utils/config";
|
import {TenantId} from "@/utils/config";
|
||||||
import {User} from "@/api/system/user/model";
|
import {User} from "@/api/system/user/model";
|
||||||
// import News from "./News";
|
// import News from "./News";
|
||||||
import {myPageBszxBm} from "@/api/bszx/bszxBm";
|
|
||||||
import {listCmsNavigation} from "@/api/cms/cmsNavigation";
|
import {listCmsNavigation} from "@/api/cms/cmsNavigation";
|
||||||
|
|
||||||
const OrderIcon = () => {
|
const OrderIcon = () => {
|
||||||
@@ -14,7 +13,7 @@ const OrderIcon = () => {
|
|||||||
const [loading, setLoading] = useState(true)
|
const [loading, setLoading] = useState(true)
|
||||||
const [isLogin, setIsLogin] = useState<boolean>(false)
|
const [isLogin, setIsLogin] = useState<boolean>(false)
|
||||||
const [userInfo, setUserInfo] = useState<User>()
|
const [userInfo, setUserInfo] = useState<User>()
|
||||||
const [bmLogs, setBmLogs] = useState<any>()
|
const [bmLogs] = useState<any>()
|
||||||
const [navItems, setNavItems] = useState<any>([])
|
const [navItems, setNavItems] = useState<any>([])
|
||||||
|
|
||||||
/* 获取用户手机号 */
|
/* 获取用户手机号 */
|
||||||
@@ -24,7 +23,7 @@ const OrderIcon = () => {
|
|||||||
success: function () {
|
success: function () {
|
||||||
if (code) {
|
if (code) {
|
||||||
Taro.request({
|
Taro.request({
|
||||||
url: 'https://server.gxwebsoft.com/api/wx-login/loginByMpWxPhone',
|
url: 'https://server.websoft.top/api/wx-login/loginByMpWxPhone',
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
data: {
|
data: {
|
||||||
code,
|
code,
|
||||||
@@ -114,12 +113,6 @@ const OrderIcon = () => {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
// 报名日志
|
|
||||||
myPageBszxBm({limit: 1}).then(res => {
|
|
||||||
if (res.list) {
|
|
||||||
setBmLogs(res.list);
|
|
||||||
}
|
|
||||||
})
|
|
||||||
setLoading(false);
|
setLoading(false);
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -186,13 +179,13 @@ const OrderIcon = () => {
|
|||||||
<div className={'flex flex-col justify-center items-center'} onClick={() => {
|
<div className={'flex flex-col justify-center items-center'} onClick={() => {
|
||||||
onLogin(item, index)
|
onLogin(item, index)
|
||||||
}}>
|
}}>
|
||||||
<Image src={item.icon} height={28} width={28}/>
|
<Image src={item.icon}/>
|
||||||
<div className={'mt-2'} style={{fontSize: '15px'}}>{item?.title}</div>
|
<div className={'mt-2'} style={{fontSize: '15px'}}>{item?.title}</div>
|
||||||
</div>
|
</div>
|
||||||
:
|
:
|
||||||
<Button className={'text-white'} open-type="getPhoneNumber" onGetPhoneNumber={handleGetPhoneNumber}>
|
<Button className={'text-white'} open-type="getPhoneNumber" onGetPhoneNumber={handleGetPhoneNumber}>
|
||||||
<div className={'flex flex-col justify-center items-center'}>
|
<div className={'flex flex-col justify-center items-center'}>
|
||||||
<Image src={item.icon} height={28} width={28}/>
|
<Image src={item.icon}/>
|
||||||
<div className={'mt-2 text-gray-700'} style={{fontSize: '15px'}}>{item?.title}</div>
|
<div className={'mt-2 text-gray-700'} style={{fontSize: '15px'}}>{item?.title}</div>
|
||||||
</div>
|
</div>
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
@@ -74,7 +74,7 @@ function Profile() {
|
|||||||
avatar: `${detail.avatarUrl}`,
|
avatar: `${detail.avatarUrl}`,
|
||||||
})
|
})
|
||||||
Taro.uploadFile({
|
Taro.uploadFile({
|
||||||
url: 'https://server.gxwebsoft.com/api/oss/upload',
|
url: 'https://server.websoft.top/api/oss/upload',
|
||||||
filePath: detail.avatarUrl,
|
filePath: detail.avatarUrl,
|
||||||
name: 'file',
|
name: 'file',
|
||||||
header: {
|
header: {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import {User} from "@/api/system/user/model";
|
|||||||
// 模版套餐ID
|
// 模版套餐ID
|
||||||
export const TEMPLATE_ID = 10556;
|
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 SERVER_API_URL = 'http://127.0.0.1:8000/api';
|
||||||
// 服务接口
|
// 服务接口
|
||||||
export const APP_API_URL = 'http://182.90.229.54:10048/api';
|
export const APP_API_URL = 'http://182.90.229.54:10048/api';
|
||||||
|
|||||||
Reference in New Issue
Block a user