Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
activities
/
web-questionnaire
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
bcf32b06
authored
Mar 31, 2025
by
陆志强
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/postinfo'
parents
65338ee3
e6313b32
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
6 deletions
+15
-6
public/test/config.js
+3
-2
src/App.vue
+0
-1
src/pages/index.vue
+9
-2
src/store/modules/users.js
+3
-1
No files found.
public/test/config.js
View file @
bcf32b06
/*!
* Global Config for Guangdianyun v1.6.
0
* Global Config for Guangdianyun v1.6.
4
* https://guangdianyun.tv/
*
* Copyright belongs to Guangdianyun Corporation and other contributors
* Released under the Proprietary License
*
* Date: 2024-0
5-16 15:01:07
* Date: 2024-0
7-26 15:51:44
*/
(
function
()
{
if
(
!!
window
.
__GDY_ENV_CONFIG__
)
return
;
...
...
@@ -30,6 +30,7 @@
"ROP_DOMAIN"
:
"aodianyun.com"
,
"CNAME_DOMAIN"
:
"guangdianyun.tv"
,
"HELPER_DOMAIN"
:
"help-dev.guangdianyun.tv"
,
"BACKUP_DOMAIN"
:
""
,
"AODIAN_OSS_DOMAIN"
:
"cdn.aodianyun.com"
,
"CONSOLES_DOMAIN"
:
"consoles.dev.guangdianyun.tv"
,
"CHANNEL_DOMAIN"
:
"pindao.dev.guangdianyun.tv"
,
...
...
src/App.vue
View file @
bcf32b06
...
...
@@ -10,7 +10,6 @@ export default {
mounted
()
{
setTimeout
(()
=>
{
const
{
uin
}
=
this
.
$route
.
query
console
.
log
(
123123
,
uin
,
!
Number
(
uin
));
if
(
!
Number
(
uin
))
{
this
.
$router
.
push
(
'/error'
)
}
...
...
src/pages/index.vue
View file @
bcf32b06
...
...
@@ -101,6 +101,14 @@ export default {
},
},
},
watch
:
{
userInfo
:
{
handler
(
nVal
)
{
const
{
id
}
=
this
.
$route
.
params
this
.
postInfo
(
id
)
}
}
},
mounted
()
{
this
.
dataInit
()
this
.
eventBusInit
()
...
...
@@ -129,12 +137,11 @@ export default {
},
dataInit
()
{
const
{
uin
}
=
this
.
$route
.
query
const
{
id
}
=
this
.
$route
.
params
if
(
uin
&&
uin
!==
0
)
{
// 用户数据加载
this
.
getUerInfo
({
uin
})
// pv统计
this
.
postInfo
(
id
)
//
this.postInfo(id)
// 加载列表
this
.
loadData
()
}
else
{
...
...
src/store/modules/users.js
View file @
bcf32b06
...
...
@@ -31,6 +31,8 @@ export const actions = {
}
else
{
commit
(
'SET_ISLOGIN'
,
false
)
}
}
else
{
commit
(
'SET_USERINFO'
,
null
)
}
return
new
Promise
((
resolve
,
reject
)
=>
{
if
(
isReqSuccess
)
{
...
...
@@ -44,7 +46,7 @@ export const actions = {
const
params
=
{
channelId
:
id
,
// 资源id
uin
:
state
.
uin
,
userId
:
0
,
userId
:
state
.
userInfo
?.
id
||
0
,
type
:
10
,
// todo 问卷
deviceid
:
QuickStorage
.
localGet
(
'DEVICE_ID'
)
}
...
...
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