|
@@ -6,6 +6,7 @@ import iconTeacher from '@common/images/icon_teacher.png'
|
|
|
import request from '@/helpers/request'
|
|
|
import IconXueli from '@common/images/icon-xueli.png'
|
|
|
import IconJiaozi from '@common/images/icon-jiaozi.png'
|
|
|
+import IconChat from '../images/icon-chat.png'
|
|
|
|
|
|
export const getAssetsHomeFile = (fileName: string) => {
|
|
|
const path = `../images/${fileName}`
|
|
@@ -163,12 +164,12 @@ export default defineComponent({
|
|
|
<Button
|
|
|
type="primary"
|
|
|
size="small"
|
|
|
- plain={!!this.userInfo.isStar}
|
|
|
+ plain
|
|
|
round
|
|
|
- class={styles.btn}
|
|
|
+ class={[styles.btn, this.userInfo.isStar ? styles.btnStar : '']}
|
|
|
onClick={this.onStart}
|
|
|
>
|
|
|
- {!this.userInfo.isStar && <Icon name="plus" />}
|
|
|
+ {/* {!this.userInfo.isStar && <Icon name="plus" />} */}
|
|
|
|
|
|
{this.userInfo.isStar ? '已关注' : '关注'}
|
|
|
</Button>
|
|
@@ -178,6 +179,7 @@ export default defineComponent({
|
|
|
round
|
|
|
style={{ marginLeft: '5px' }}
|
|
|
class={styles.btn}
|
|
|
+ icon={IconChat}
|
|
|
onClick={() => {
|
|
|
postMessage({
|
|
|
api: 'joinChatGroup',
|
|
@@ -188,7 +190,7 @@ export default defineComponent({
|
|
|
})
|
|
|
}}
|
|
|
>
|
|
|
- <Icon name="chat-o" style={{ marginRight: '3px' }} />
|
|
|
+ {/* <Icon name={} size="16" style={{ marginRight: '3px' }} /> */}
|
|
|
聊天
|
|
|
</Button>
|
|
|
</div>
|