|
@@ -389,7 +389,7 @@ var vm = new Vue({
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
- $(window).on('resize', this.changeTop)
|
|
|
+ // $(window).on('resize', this.changeTop)
|
|
|
},
|
|
|
beforeDestroy() {
|
|
|
$(document).off('click')
|
|
@@ -419,15 +419,15 @@ var vm = new Vue({
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- changeTop: function () {
|
|
|
- this.$nextTick(function () {
|
|
|
- var dialogDom = $('#collectUserInfoDialog .dialog-container')
|
|
|
- var diffHeight = window.innerHeight - dialogDom.height() - 240
|
|
|
- if (diffHeight < 0) {
|
|
|
- dialogDom.css('margin-top', diffHeight.toString() + 'px')
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
+ // changeTop: function () {
|
|
|
+ // this.$nextTick(function () {
|
|
|
+ // var dialogDom = $('#collectUserInfoDialog .dialog-container')
|
|
|
+ // var diffHeight = window.innerHeight - dialogDom.height() - 240
|
|
|
+ // if (diffHeight < 0) {
|
|
|
+ // dialogDom.css('margin-top', diffHeight.toString() + 'px')
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ // },
|
|
|
nameFocus:function(){
|
|
|
this.$refs['ruleForm'].clearValidate(['name']);
|
|
|
},
|
|
@@ -546,7 +546,7 @@ var vm = new Vue({
|
|
|
_this.showForm = true
|
|
|
// 当前头部背景图
|
|
|
_this.isSelfHeader()
|
|
|
- _this.changeTop()
|
|
|
+ // _this.changeTop()
|
|
|
if (res.info) {
|
|
|
echoRequiredValues(_this.form, res.info, ['name', 'phone', 'mail', 'branch'])
|
|
|
// 原有赋值回显逻辑
|