Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pptist
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
viitto
pptist
Commits
b86d0226
Commit
b86d0226
authored
Jun 20, 2024
by
zhengke
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into 1.4.0
parents
9006e886
89506e63
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
13 deletions
+21
-13
.env.development
.env.development
+3
-0
.env.production
.env.production
+3
-0
UserCard.vue
src/components/User/UserCard.vue
+2
-1
follow.vue
src/components/home/follow.vue
+8
-6
domainManager.ts
src/utils/domainManager.ts
+5
-6
No files found.
.env.development
View file @
b86d0226
VUE_APP_API_URL = 'http://192.168.5.46/api/common/post'
VUE_APP_UPLOADURLAPI_URL = 'http://192.168.5.46:8120'
VUE_APP_VIITTOFILE_URL = 'http://192.168.5.46:8130'
VUE_APP_NOTIFICATION_URL = 'http://localhost:8081'
VUE_APP_DOWNLOAD_URL = 'http://192.168.5.46'
VUE_APP_SHARE_URL = 'http://127.0.0.1:8080'
VUE_APP_PDF_URL = 'http://127.0.0.1:5164'
# VUE_APP_API_URL = 'https://reborn.oytour.com/api/common/post'
...
...
.env.production
View file @
b86d0226
VUE_APP_API_URL = 'https://reborn.oytour.com/api/common/post'
VUE_APP_UPLOADURLAPI_URL = 'https://upload.oytour.com'
VUE_APP_VIITTOFILE_URL = 'http://imgfile.oytour.com'
VUE_APP_NOTIFICATION_URL = 'http://yx.oytour.com'
VUE_APP_DOWNLOAD_URL = 'https://reborn.oytour.com'
VUE_APP_SHARE_URL = 'http://vitto.com'
VUE_APP_PDF_URL = 'https://fileservice.oytour.com'
\ No newline at end of file
src/components/User/UserCard.vue
View file @
b86d0226
...
...
@@ -101,7 +101,8 @@
<!-- 创建设计 -->
<temDesign
:addTem=
"addVisible"
@
close=
"addVisible=false"
/>
<OrderReview
v-if=
"orderVisible"
:show-person=
"isShowPerson"
:default-type=
"isShowPerson?1:2"
@
close=
"()=>orderVisible=false"
></OrderReview>
<follow
v-show=
"isPublicAccount"
:show=
"isPublicAccount"
@
close=
"isPublicAccount=false,getInfo()"
></follow>
<follow
v-show=
"isPublicAccount"
:show=
"isPublicAccount"
@
close=
"isPublicAccount=false"
@
success=
"isPublicAccount=false,getInfo()"
></follow>
</template>
<
script
lang=
"ts"
setup
>
import
{
ref
,
reactive
}
from
"vue"
;
...
...
src/components/home/follow.vue
View file @
b86d0226
...
...
@@ -64,6 +64,7 @@ const params = reactive({
})
const
emit
=
defineEmits
<
{
(
event
:
'close'
):
void
,
(
event
:
'success'
):
void
,
}
>
()
const
queryTimer
=
ref
<
any
>
(
null
)
...
...
@@ -73,6 +74,7 @@ const RefreshLoading = ref(false)
const
followForm
=
ref
()
const
close
=
()
=>
{
stopTimerHandler
()
emit
(
'close'
)
}
if
(
model
.
value
==
0
&&
ConfigId
.
value
)
params
.
ConfigId
=
ConfigId
.
value
...
...
@@ -115,7 +117,7 @@ const userLoginHandler = async (type:any)=>{
if
(
!
type
)
{
stopTimerHandler
()
ElMessage
.
success
({
message
:
'关注成功'
})
location
.
reload
(
)
emit
(
'success'
)
}
}
else
if
(
result
.
status
==
'ERROR'
)
{
if
(
!
type
)
{
...
...
@@ -133,17 +135,17 @@ const goVipIntroduce = () =>{
}
watch
(()
=>
props
.
show
,(
n
,
o
)
=>
{
if
(
!
n
)
stopTimerHandler
()
if
(
n
)
getQrcode
()
if
(
n
)
{
getQrcode
()
if
(
followForm
.
value
)
followForm
.
value
.
click
()
}
else
document
.
removeEventListener
(
'click'
,
()
=>
{});
},{
immediate
:
true
})
onMounted
(
()
=>
{
document
.
addEventListener
(
'click'
,
(
e
)
=>
{
if
(
props
.
show
&&
followForm
.
value
)
{
followForm
.
value
.
click
()
}
});
})
onBeforeUnmount
(()
=>
{
...
...
src/utils/domainManager.ts
View file @
b86d0226
export
const
domainManager
=
()
=>
{
const
locationName
=
window
.
location
.
hostname
const
obj
=
{
domainUrl
:
locationName
.
indexOf
(
'oytour'
)
!==
-
1
?
"https://reborn.oytour.com/api/common/post"
:
"http://192.168.5.46/api/common/post"
,
domainUrl
:
process
.
env
.
VUE_APP_API_URL
,
//上传站点
UploadUrl
:
locationName
.
indexOf
(
'oytour'
)
!==
-
1
?
"https://upload.oytour.com"
:
"http://192.168.5.46:8120"
,
UploadUrl
:
process
.
env
.
VUE_APP_UPLOADURLAPI_URL
,
//文件站点
ViittoFileUrl
:
locationName
.
indexOf
(
'oytour'
)
!==
-
1
?
"http://imgfile.oytour.com"
:
'http://192.168.5.46:8130'
,
ViittoFileUrl
:
process
.
env
.
VUE_APP_VIITTOFILE_URL
,
// 通知erp
notificationUrl
:
locationName
.
indexOf
(
'oytour'
)
!==
-
1
?
"http://yx.oytour.com"
:
"http://localhost:8081"
,
notificationUrl
:
process
.
env
.
VUE_APP_NOTIFICATION_URL
,
// 文件下载地址
DownloadUrl
:
locationName
.
indexOf
(
'oytour'
)
!==
-
1
?
"https://reborn.oytour.com"
:
"http://192.168.5.46"
,
DownloadUrl
:
process
.
env
.
VUE_APP_DOWNLOAD_URL
,
}
return
obj
}
\ No newline at end of file
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