|
@@ -24,6 +24,7 @@
|
|
|
<div :class="selecteds.length>0?'realSure sure':'sure'" @click="makeSuer">
|
|
|
确定 <span v-if="numPlus">({{numPlus}})</span>
|
|
|
</div>
|
|
|
+ <Tiptoast :show="showExp" :data="message" @close="closeTip"/>
|
|
|
</div>
|
|
|
</portal>
|
|
|
</template>
|
|
@@ -31,6 +32,7 @@
|
|
|
import api from '../utils/api.js';
|
|
|
import {mapState} from 'vuex';
|
|
|
import {delResymptoms} from '@utils/tools';
|
|
|
+ import Tiptoast from '../common/Tiptoast.vue';
|
|
|
export default {
|
|
|
props: ["num"],
|
|
|
data() {
|
|
@@ -40,6 +42,11 @@
|
|
|
symptoms:[], //症状
|
|
|
sure:false,
|
|
|
numPlus:0, //已选答案个数
|
|
|
+ showExp:false,
|
|
|
+ message:{
|
|
|
+ title:'',
|
|
|
+ text:''
|
|
|
+ },
|
|
|
};
|
|
|
},
|
|
|
computed:{
|
|
@@ -116,6 +123,21 @@
|
|
|
|
|
|
})
|
|
|
},
|
|
|
+ showExplain(it){
|
|
|
+ if(it.explains){
|
|
|
+ this.message.title = it.description || it.name;
|
|
|
+ this.message.text = it.explains;
|
|
|
+ }else{
|
|
|
+ this.message.title = "";
|
|
|
+ this.message.text = "暂无资料";
|
|
|
+ }
|
|
|
+ this.showExp = true
|
|
|
+ },
|
|
|
+ closeTip(){
|
|
|
+ this.showExp = false;
|
|
|
+ this.message.title = '';
|
|
|
+ this.message.text = '';
|
|
|
+ },
|
|
|
getSymptomLisCom(result){
|
|
|
let symp = (result&&result.data.symptom)||[];
|
|
|
let symped = JSON.parse(JSON.stringify(this.chooseSymp));//已选症状
|
|
@@ -183,6 +205,9 @@
|
|
|
this.numPlus = this.selectedsName==="没有了"?0:this.selecteds.length;
|
|
|
this.getPush(this.chooseSymp[0].name+this.selectedsName);
|
|
|
}
|
|
|
+ },
|
|
|
+ components:{
|
|
|
+ Tiptoast
|
|
|
}
|
|
|
};
|
|
|
</script>
|
|
@@ -233,7 +258,7 @@
|
|
|
padding: 0.14rem 0.2rem;
|
|
|
border:1px #DFE0E4 solid;
|
|
|
border-radius: 0.36rem;
|
|
|
- font-size: 0.26rem;
|
|
|
+ font-size: #font[select];
|
|
|
margin: 0.15rem;
|
|
|
float: left;
|
|
|
color: #666;
|