Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
boyueCEnd
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
游洁
boyueCEnd
Commits
2cf87124
Commit
2cf87124
authored
Jan 16, 2026
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
重定向
parent
87b9e1e9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
11 additions
and
6 deletions
+11
-6
.env.production
.env.production
+2
-0
OtaRequest.ts
src/api/OtaRequest.ts
+2
-1
login-bg.png
src/assets/images/login/login-bg.png
+0
-0
login-bgregister.png
src/assets/images/login/login-bgregister.png
+0
-0
login_formbg.png
src/assets/images/login/login_formbg.png
+0
-0
login_wx.png
src/assets/images/login/login_wx.png
+0
-0
Login.vue
src/views/auth/Login.vue
+4
-3
register.vue
src/views/auth/register.vue
+1
-1
account.vue
src/views/personalCenter/accountPage/account.vue
+2
-1
No files found.
.env.production
View file @
2cf87124
# 生产环境配置
VITE_OTA_API_BASE_URL=http://byotaapi.oytour.com/api/app/
VITE_OTA_API_BASE_URLS=https://byotaapi.oytour.com/api/app/
VITE_ERP_API_BASE_URL=http://byapi.oytour.com/
VITE_FILEUPLOAD_API_BASE_URL=https://upload.oytour.com/
VITE_FILEPREVIEW_API_BASE_URL=http://imgfile.oytour.com/
VITE_APP_BASE_URL=http://ota.oytour.com
VITE_APP_BASE_URLS=https://ota.oytour.com
# 其他生产环境配置
VITE_APP_TITLE=Ttenjoy
VITE_APP_VERSION=1.0.0
\ No newline at end of file
src/api/OtaRequest.ts
View file @
2cf87124
...
...
@@ -15,8 +15,9 @@ export interface HttpResponse<T = any> extends Record<string, any> {
}
// 创建 axios 实例
const
baseURL
=
window
.
location
.
href
.
includes
(
'https://'
)
?
import
.
meta
.
env
.
VITE_OTA_API_BASE_URLS
:
import
.
meta
.
env
.
VITE_OTA_API_BASE_URL
;
const
service
=
axios
.
create
({
baseURL
:
import
.
meta
.
env
.
VITE_OTA_API_BASE_
URL
,
baseURL
:
base
URL
,
timeout
:
1000
*
60
});
...
...
src/assets/images/login/login-bg.png
View replaced file @
87b9e1e9
View file @
2cf87124
This image diff could not be displayed because it is too large. You can
view the blob
instead.
src/assets/images/login/login-bgregister.png
View replaced file @
87b9e1e9
View file @
2cf87124
This diff is collapsed.
Click to expand it.
src/assets/images/login/login_formbg.png
View replaced file @
87b9e1e9
View file @
2cf87124
101 KB
|
W:
|
H:
12.3 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/assets/images/login/login_wx.png
0 → 100644
View file @
2cf87124
555 Bytes
src/views/auth/Login.vue
View file @
2cf87124
...
...
@@ -96,8 +96,8 @@
flex items-center justify-center cursor-pointer loginForm-item"
:class=
"[loginMsg.reType==method.key?'loginForm-itemActive':'']"
@
click=
"toggleLoginType(method.key)"
>
<img
v-if=
"method.url"
:src=
"method.url"
alt=
""
class=
"w-[1
4
px] h-[14px]"
/>
<icon-wechat
v-if=
"method.icon=='icon-wechat'"
size=
"18"
class=
"!text-[#03DA6B]"
/>
<img
v-if=
"method.url"
:src=
"method.url"
alt=
""
class=
"w-[1
6
px] h-[14px]"
/>
<icon-wechat
v-if=
"
!method.url&&
method.icon=='icon-wechat'"
size=
"18"
class=
"!text-[#03DA6B]"
/>
</div>
</
template
>
</div>
...
...
@@ -124,6 +124,7 @@ import { Message } from '@arco-design/web-vue'
import
loginHeader
from
"./components/header.vue"
;
import
G
from
'@/assets/images/login/login_G.png'
import
tel
from
'@/assets/images/login/login_tel.png'
import
wx
from
'@/assets/images/login/login_wx.png'
import
eml
from
'@/assets/images/login/login_eml.png'
import
line
from
'@/assets/images/login/login_line.png'
import
{
query
}
from
'@/utils/common'
...
...
@@ -183,7 +184,7 @@ const loginMethods = ref([
{
label
:
'wechat'
,
key
:
2
,
url
:
''
,
url
:
wx
,
icon
:
'icon-wechat'
},
{
...
...
src/views/auth/register.vue
View file @
2cf87124
...
...
@@ -219,7 +219,7 @@
<
/div
>
<
/div
>
<
div
class
=
"flex justify-center text-white text-[16px]"
>
<
div
class
=
"px-[17px] pt-[40px] pb-[
2
0px] cursor-pointer"
@
click
=
"goHome('/')"
>
{{
t
(
'login.backToHome'
)
}}
<
/div
>
<
div
class
=
"px-[17px] pt-[40px] pb-[
1
0px] cursor-pointer"
@
click
=
"goHome('/')"
>
{{
t
(
'login.backToHome'
)
}}
<
/div
>
<
/div
>
<
/div
>
<
registerSuccess
v
-
if
=
"currentStep==3"
/>
...
...
src/views/personalCenter/accountPage/account.vue
View file @
2cf87124
...
...
@@ -240,7 +240,8 @@ const loginWithLine = () => {
// https://www.oytour.com/#/login/2/3
console
.
log
(
openInfo
.
value
,
'----------'
)
// return
const
redirectUri
=
encodeURIComponent
(
`
${
import
.
meta
.
env
.
VITE_APP_BASE_URL
}
/personalCenter/accountCenter/account/3`
);
// 替换为你的重定向 URI
const
URL
=
window
.
location
.
href
.
includes
(
'https://'
)
?
import
.
meta
.
env
.
VITE_APP_BASE_URLS
:
import
.
meta
.
env
.
VITE_APP_BASE_URL
;
const
redirectUri
=
encodeURIComponent
(
`
${
URL
}
/personalCenter/accountCenter/account/3`
);
// 替换为你的重定向 URI
const
state
=
generateState
();
// 防止 CSRF 攻击,生成随机的 state 参数
// 构造 LINE 授权 URL
const
lineLoginUrl
=
`https://access.line.me/oauth2/v2.1/authorize?response_type=code&client_id=
${
channelId
}
&redirect_uri=
${
redirectUri
}
&state=
${
state
}
&scope=openid%20profile`
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment