Commit bcf32b06 by 陆志强

Merge branch 'feature/postinfo'

parents 65338ee3 e6313b32
/*!
* 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-05-16 15:01:07
* Date: 2024-07-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",
......
......@@ -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')
}
......
......@@ -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 {
......
......@@ -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')
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment