|
@@ -2,7 +2,7 @@
|
|
|
* @Author: WangQiBiao
|
|
|
* @Date: 2019-09-25 14:10:08
|
|
|
* @LastEditors: mozhuangru
|
|
|
- * @LastEditTime: 2019-10-12 19:04:14
|
|
|
+ * @LastEditTime: 2019-10-13 16:56:30
|
|
|
* @Description: 在线沟通
|
|
|
-->
|
|
|
<template>
|
|
@@ -14,7 +14,8 @@
|
|
|
</div>
|
|
|
<div class="linst-line"></div>
|
|
|
<div class="list">
|
|
|
- <div class="list-item" v-for="(item, idx) in dialogData" :key="idx">
|
|
|
+ <vueSeamless :data="dialogData" :class-option="optionScroll" class="list">
|
|
|
+ <div class="list-item" v-for="(item, idx) in dialogData" :key="idx">
|
|
|
<div class="list-item-lf">
|
|
|
<TagCom type="time">{{item.createAt}}</TagCom>
|
|
|
<span class="list-item-txt">{{item.content}}</span>
|
|
@@ -27,6 +28,7 @@
|
|
|
<TagCom v-if="item.label === '待受理'" type="accept">待受理</TagCom>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ </vueSeamless>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -35,7 +37,16 @@ import TitleCom from '@/components/title'
|
|
|
import TagCom from '@/components/tag'
|
|
|
import echarts from 'echarts'
|
|
|
import { api } from '@/api'
|
|
|
+import vueSeamless from 'vue-seamless-scroll'
|
|
|
+
|
|
|
export default {
|
|
|
+ computed: {
|
|
|
+ optionScroll () {
|
|
|
+ return {
|
|
|
+ step: 0.5
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
data () {
|
|
|
return {
|
|
|
dialogData: []
|
|
@@ -43,7 +54,8 @@ export default {
|
|
|
},
|
|
|
components: {
|
|
|
TitleCom,
|
|
|
- TagCom
|
|
|
+ TagCom,
|
|
|
+ vueSeamless
|
|
|
},
|
|
|
mounted () {
|
|
|
this.init()
|