Commit 71911eeb authored by 郭欢's avatar 郭欢

'修改,'

parent 5b7b7161
No preview for this file type
......@@ -10,8 +10,8 @@ const baseUrl = '/api'
// todo: url
// const httpUrl = 'https://repairtest.zeruiedu.com' // 测试接口
const httpUrl = 'https://repair.zeruiedu.com' // 正式接口
// const h5Url = 'http://localhost:8080' // 测试h5线上地址
const h5Url = 'http://repair.h5.zeruiedu.com' // 测试h5线上地址
const h5Url = 'http://localhost:8080' // 测试h5线上地址
// const h5Url = 'http://repair.h5.zeruiedu.com' // 测试h5线上地址
window.localStorage.setItem('httpUrl', httpUrl)
window.localStorage.setItem('h5Url', h5Url)
// const httpUrl = 'https://fenghexm.xueyoubangedu.com' // 正式接口
......
......@@ -180,10 +180,6 @@ export default {
goods_number: 0
}
},
created () {
this.repair_order_id = this.$route.query.id
this.getDetail()
},
watch: {
addList: {
handler (newValue, oldValue) {
......@@ -351,7 +347,21 @@ export default {
this.$router.go(-1)
})
.catch(() => { })
},
fetchData (to, from) {
this.repair_order_id = to.query ? to.query.id : ''
if (this.repair_order_id) {
this.getDetail()
}
}
},
beforeRouteEnter (to, from, next) {
next(vm => {
vm.fetchData(to, from, next)
})
},
beforeRouteLeave (to, from, next) {
next()
}
}
</script>
......
......@@ -278,11 +278,6 @@ export default {
expend_detail: {} // 耗材详情
}
},
// created () {
// this.order_id = this.$route.query.id
// console.log(this.$route.query.id, 'this.$route.query.id----------')
// this.getDetail()
// },
methods: {
preview (img, index) {
const temp = img.map(item => {
......
......@@ -30,9 +30,6 @@ export default {
user: ''
}
},
// created () {
// this.getUserInfo()
// },
methods: {
goPhone () {
this.$router.push({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment