Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
scrm-wx-merchant-activity
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 581fa42f
authored
Oct 26, 2022
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
im全屏
1 parent
1015b135
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
32 additions
and
21 deletions
src/App.vue
src/assets/css/crowdfunding.scss
src/assets/css/index.scss
src/components/TIM/Im.vue
src/store/modules/app.js
src/views/crowdfunding/index/index.vue
src/App.vue
View file @
581fa42
...
...
@@ -10,7 +10,7 @@
<router-view
v-if=
"!$route.meta.keepAlive"
></router-view>
</transition>
</
template
>
<action
v-show=
"$route.meta.showAction"
></action>
<action
v-show=
"$route.meta.showAction
&& !$store.state.app.isLiveFull
"
></action>
</div>
</template>
<
script
>
...
...
src/assets/css/crowdfunding.scss
View file @
581fa42
...
...
@@ -8,11 +8,13 @@
}
}
.layout
{
padding-bottom
:
100px
;
&
.no-padding
{
padding
:
0
;
}
.empty-page
{
position
:
absolute
;
top
:
0
;
...
...
@@ -47,7 +49,7 @@
border-radius
:
100%
;
}
.big-img
{
...
...
@@ -470,5 +472,5 @@
}
}
}
src/assets/css/index.scss
View file @
581fa42
...
...
@@ -8,7 +8,6 @@ body .app {
background-color
:
#f7f8fa
;
-webkit-overflow-scrolling
:
touch
;
height
:
100%
;
// overflow: hidden;
--themeColor
:
#3975c6
;
}
...
...
src/components/TIM/Im.vue
View file @
581fa42
...
...
@@ -105,7 +105,7 @@ export default {
updated
()
{
this
.
scrollToBottom
()
},
mounted
()
{},
mounted
()
{
},
beforeDestroy
()
{
timObj
.
quit
()
},
...
...
@@ -162,20 +162,23 @@ export default {
let
message
=
data
.
message
console
.
log
(
'收到消息:'
,
data
)
// 根据消息类型判断,执行不同操作
if
(
message
.
type
==
'TIMTextElem'
)
{
// 群成员发送消息
// let eleData = JSON.parse()
let
eleData
=
{
userName
:
message
.
from
,
content
:
message
.
payload
.
text
data
.
forEach
(
item
=>
{
// 根据消息类型判断,执行不同操作
if
(
item
.
type
==
'TIMTextElem'
)
{
// 群成员发送消息
// let eleData = JSON.parse()
let
eleData
=
{
userName
:
item
.
from
,
content
:
item
.
payload
.
text
}
// 获取群聊消息,消息上屏
this
.
updateMessageList
(
eleData
)
}
// 获取群聊消息,消息上屏
this
.
updateMessageList
(
eleData
)
}
if
(
message
.
payload
.
operationType
==
5
)
{
// 群聊解散
}
})
// if (message.payload.operationType == 5) {
// // 群聊解散
// }
// tim.getGroupProfile({
// groupID: this.groupId
// }).then(res => {
...
...
src/store/modules/app.js
View file @
581fa42
...
...
@@ -16,7 +16,8 @@ const state = {
lastPath
:
''
,
activityInfo
:
{},
updataCarInfo
:
Date
.
now
(),
loginStatus
:
false
loginStatus
:
false
,
isLiveFull
:
false
}
const
mutations
=
{
SET_ACTIVITY_INFO
(
state
,
value
)
{
...
...
@@ -44,6 +45,9 @@ const mutations = {
},
SET_LOGIN_STATUS
(
state
,
data
)
{
state
.
loginStatus
=
data
},
SET_LIVE_FULL
(
state
,
data
)
{
state
.
isLiveFull
=
data
}
}
const
actions
=
{
...
...
@@ -63,6 +67,9 @@ const actions = {
setLoginStatus
({
commit
},
value
)
{
commit
(
'SET_LOGIN_STATUS'
,
value
)
},
setIsLiveFull
({
commit
},
value
)
{
commit
(
'SET_LIVE_FULL'
,
value
)
},
wxLogin
({
dispatch
},
{
code
,
redirectUrl
,
appId
})
{
ssoApi
.
login
({
...
...
src/views/crowdfunding/index/index.vue
View file @
581fa42
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
Attach a file
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 post a comment