Commit 9f0ceccf by 李长胜

更改

1 parent bf747fcb
...@@ -58,7 +58,9 @@ export default { ...@@ -58,7 +58,9 @@ export default {
this.$router.push('/memberCenter/center') this.$router.push('/memberCenter/center')
}, },
mounted() {}, mounted() {
},
methods: { methods: {
tabClick(index) { tabClick(index) {
......
...@@ -94,7 +94,7 @@ export default { ...@@ -94,7 +94,7 @@ export default {
// this.setTableData() // this.setTableData()
}, },
mounted() { mounted() {
document.querySelector(".el-tabs").style.display="none"
this.$nextTick(() => { this.$nextTick(() => {
let clientHeight = document.documentElement.clientHeight let clientHeight = document.documentElement.clientHeight
let offsettop = document.getElementById('tableWrap').offsetTop let offsettop = document.getElementById('tableWrap').offsetTop
...@@ -125,7 +125,7 @@ export default { ...@@ -125,7 +125,7 @@ export default {
console.log(this.detail, 'gggg') console.log(this.detail, 'gggg')
// this.$router.go(-1) // this.$router.go(-1)
this.$router.push("/memberCenter/order") this.$router.push("/memberCenter/order")
document.querySelector(".el-tabs").style.display="block"
} }
} }
} }
......
...@@ -133,6 +133,9 @@ export default { ...@@ -133,6 +133,9 @@ export default {
} }
this.getLoginCountFun() this.getLoginCountFun()
}, },
mounted () {
},
methods: { methods: {
getLoginCountFun() { getLoginCountFun() {
//loginType:4是查会员服务浏览次数 //loginType:4是查会员服务浏览次数
......
...@@ -264,7 +264,7 @@ export default { ...@@ -264,7 +264,7 @@ export default {
mounted() { mounted() {
this.footerLeft = document.querySelector('.base-container-right').offsetLeft this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft this.footerWidth = document.documentElement.clientWidth - this.footerLeft
document.querySelector(".el-tabs").style.display="none"
}, },
methods: { methods: {
getPageDetail() { getPageDetail() {
...@@ -365,7 +365,7 @@ export default { ...@@ -365,7 +365,7 @@ export default {
// console.log(res, '提交内容') // console.log(res, '提交内容')
this.$message.success('创建服务成功') this.$message.success('创建服务成功')
this.$router.push('/memberCenter/service') this.$router.push('/memberCenter/service')
document.querySelector(".el-tabs").style.display="block"
} else { } else {
this.$message({ this.$message({
type: 'error', type: 'error',
...@@ -387,7 +387,7 @@ export default { ...@@ -387,7 +387,7 @@ export default {
if (res.code == 0) { if (res.code == 0) {
this.$message.success('编辑服务成功') this.$message.success('编辑服务成功')
this.$router.push('/memberCenter/service') this.$router.push('/memberCenter/service')
document.querySelector(".el-tabs").style.display="block"
} else { } else {
this.$message({ this.$message({
type: 'error', type: 'error',
...@@ -400,7 +400,6 @@ export default { ...@@ -400,7 +400,6 @@ export default {
goBack() { goBack() {
if(JSON.stringify(this.ruleForm)==JSON.stringify(this.copyRuleForm)){ if(JSON.stringify(this.ruleForm)==JSON.stringify(this.copyRuleForm)){
this.$router.push('/memberCenter/service') this.$router.push('/memberCenter/service')
document.querySelector(".el-tabs").style.display="block"
}else{ }else{
// this.$message.error('是否保存信息') // this.$message.error('是否保存信息')
this.isDialogVisible=true this.isDialogVisible=true
...@@ -411,7 +410,6 @@ export default { ...@@ -411,7 +410,6 @@ export default {
}, },
handleConfirm(){ handleConfirm(){
this.$router.push('/memberCenter/service') this.$router.push('/memberCenter/service')
document.querySelector(".el-tabs").style.display="block"
}, },
oninput(value) { oninput(value) {
let str = value let str = value
......
...@@ -309,7 +309,6 @@ export default { ...@@ -309,7 +309,6 @@ export default {
if (res.code == '0') { if (res.code == '0') {
// this.$router.go(-1) // this.$router.go(-1)
this.$router.push("/memberCenter/setmeal") this.$router.push("/memberCenter/setmeal")
document.querySelector(".el-tabs").style.display="block"
} }
}) })
} else { } else {
...@@ -333,7 +332,6 @@ export default { ...@@ -333,7 +332,6 @@ export default {
}) })
if (res.code == '0') { if (res.code == '0') {
this.$router.push("/memberCenter/setmeal") this.$router.push("/memberCenter/setmeal")
document.querySelector(".el-tabs").style.display="block"
} }
}) })
} }
...@@ -355,7 +353,6 @@ export default { ...@@ -355,7 +353,6 @@ export default {
goBack() { goBack() {
if (JSON.stringify(this.ruleForm) == JSON.stringify(this.copyRuleForm) && this.choseItemList.length == this.copyChoseItemList.length && this.totalPrice == this.copyTotalPrice) { if (JSON.stringify(this.ruleForm) == JSON.stringify(this.copyRuleForm) && this.choseItemList.length == this.copyChoseItemList.length && this.totalPrice == this.copyTotalPrice) {
this.$router.push("/memberCenter/setmeal") this.$router.push("/memberCenter/setmeal")
document.querySelector(".el-tabs").style.display="block"
} else { } else {
this.isTipDialogVisible = true this.isTipDialogVisible = true
} }
...@@ -426,7 +423,6 @@ export default { ...@@ -426,7 +423,6 @@ export default {
}, },
handleTipConfirm() { handleTipConfirm() {
this.$router.push("/memberCenter/setmeal") this.$router.push("/memberCenter/setmeal")
document.querySelector(".el-tabs").style.display="block"
} }
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!