|
@@ -35,7 +35,7 @@
|
|
|
class="symp"
|
|
|
v-for="(it,ind) in symp"
|
|
|
:key="it.conceptId"
|
|
|
- @touchstart.prevent="touchstart($event,it)"
|
|
|
+ @touchstart.prevent="touchstart(it)"
|
|
|
@touchend.prevent="touchend(it)"
|
|
|
>{{it.description || it.name}}</span>
|
|
|
<p class="tip" v-show="chooseSymp.length==0">长按症状按钮可显示症状解释说明</p>
|
|
@@ -92,7 +92,7 @@ export default {
|
|
|
name: 'Symptom',
|
|
|
props:['modluesLen','nameStr'],
|
|
|
data() {
|
|
|
- let { datas, pathInfo,searchShow } = this.$store.state;
|
|
|
+ let { datas, pathInfo,searchShow,scroll } = this.$store.state;
|
|
|
const { choose, text } = this.$store.state.symptom;
|
|
|
return {
|
|
|
age: pathInfo.patientAge,
|
|
@@ -118,7 +118,10 @@ export default {
|
|
|
message:{
|
|
|
title:'',
|
|
|
text:''
|
|
|
- }
|
|
|
+ },
|
|
|
+ position:scroll,
|
|
|
+ start:{},
|
|
|
+ end:{},
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
@@ -141,14 +144,18 @@ export default {
|
|
|
methods: {
|
|
|
touchend(item,flg) {//症状点开详情
|
|
|
clearTimeout(this.timer);
|
|
|
+ this.end = this.$store.state.scroll
|
|
|
+ if(JSON.stringify(this.start) != JSON.stringify(this.end)){
|
|
|
+ return
|
|
|
+ }
|
|
|
let endTime = +new Date();
|
|
|
if(endTime - this.startTime < 500){//点击事件
|
|
|
this.common(item,flg);
|
|
|
}
|
|
|
this.startTime = "";
|
|
|
},
|
|
|
- touchstart(event,it){
|
|
|
- console.log(event)
|
|
|
+ touchstart(it){
|
|
|
+ this.start = this.$store.state.scroll
|
|
|
this.startTime = +new Date();
|
|
|
const that = this;
|
|
|
this.timer = setTimeout(function(){
|