luolei hace 5 años
padre
commit
5794502da2

+ 0 - 2
src/common/Input.vue

@@ -48,9 +48,7 @@
       changeVal(e){
         this.borColor = true;
         if(this.item.controlType==7){//数字键盘
-          if(+e.target.value.length>10){
             this.val = e.target.value=e.target.value.replace(/^\.$/,'').slice(0,10)
-          }
         }
         // document.activeElement.scrollIntoViewIfNeeded(true);
         this.borColor = false;

+ 0 - 2
src/common/MultiLineInput.vue

@@ -76,9 +76,7 @@ export default {
       let tmpTxt = '',arr=this.tmpArr
       // document.activeElement.scrollIntoViewIfNeeded(true);
       if(type == 'number'){
-        if(+e.currentTarget.value.length>10){
           e.currentTarget.value = e.currentTarget.value.replace(/^\.$/,'').slice(0,10)
-        }
       }
       arr[num]=e.currentTarget.value
       tmpTxt=arr.join('/')

+ 0 - 2
src/common/OptionInp.vue

@@ -40,9 +40,7 @@ import $ from 'jquery';
     methods:{
       changeVal(e){
         if(this.msg.type=='number'){//数字键盘
-          if(+e.target.value.length>10){
             this.txt = e.target.value=e.target.value.replace(/^\.$/,'').slice(0,10)
-          }
         }
         const newData = Object.assign({},this.part,{value:this.txt});
         this.$emit("updata",newData);

+ 0 - 1
src/common/Picker.vue

@@ -8,7 +8,6 @@
             :visible-item-count='3'
             :swipe-duration="100"
             @change="handlechange"
-            :swipe-duration="time"
           />
           <div class="confBtn">
             <p class="tip" v-show="showTip">请选择正确的时间</p>

+ 0 - 5
src/components/Search.vue

@@ -69,11 +69,6 @@ export default {
   },
   methods: {
     showDetil(item) {
-      if(this.chooseSymp.length>0){     //已有选中症状,不展开详情
-        this.$emit('setText',item);     //选中症状
-        this.search();      //关闭搜索页
-        return;
-      }
       let flg = false;
       if(JSON.stringify(this.tmpItem)==JSON.stringify(item)){//eg:重复点击胸痛bug
         flg = true

+ 1 - 0
src/components/Symptom.vue

@@ -273,6 +273,7 @@ export default {
       }
     },
     showDetil(item,flg) {//搜索点开的详情
+      console.log(item)
       this.tmpItem=item
       this.isSearch=flg||false
       this.common(item,flg,this.chooseSymp);