|
@@ -88,10 +88,16 @@
|
|
|
props:['datas','preName','nextName','modluesLen'],
|
|
|
created(){},
|
|
|
mounted(){
|
|
|
- let scroll = setScroll(BScroll,true,'.otherper')
|
|
|
- this.scroll = scroll
|
|
|
+ this.$nextTick(()=>{
|
|
|
+ let scroll = setScroll(BScroll,true,'.otherper')
|
|
|
+ this.scroll = scroll
|
|
|
+ scroll.on('scroll', this.onScroll)
|
|
|
+ })
|
|
|
},
|
|
|
methods:{
|
|
|
+ onScroll() {
|
|
|
+ document.activeElement.scrollIntoViewIfNeeded(true);
|
|
|
+ },
|
|
|
beBack(){
|
|
|
this.$emit('back');
|
|
|
},
|
|
@@ -119,6 +125,10 @@
|
|
|
// this.$store.commit('setOrigin',{type:'3',data:data,pId:data.id});
|
|
|
this.$store.commit('setDatas',{type:moduleCP['other'],data:data,pId:data.id,ppId:id});
|
|
|
this.$store.commit('setText',{type:moduleCP['other'],text:data.value.replace(patt,'').replace(/\#\{/g,'').replace(/\}/g,''),textP:data.valueP.replace(patt,'').replace(/\#\{/g,'').replace(/\}/g,''),pId:data.id,flag:true});
|
|
|
+
|
|
|
+ this.$nextTick(()=>{
|
|
|
+ this.scroll.refresh()
|
|
|
+ })
|
|
|
},
|
|
|
getText(){
|
|
|
let textArr = this.checkText;
|