登录模块调整,兼容H5平台

This commit is contained in:
唐明明
2022-01-11 11:35:38 +08:00
parent 69328de055
commit a27ffc0a7f
6 changed files with 139 additions and 20 deletions

View File

@@ -75,7 +75,6 @@
if(JSON.stringify(this.$store.getters.getAddress) !== '{}') this.address = this.$store.getters.getAddress
},
mounted() {
console.log(this.$Route.query)
this.getBuy()
},
methods:{
@@ -107,10 +106,13 @@
address_id : this.address.address_id,
remark : this.remark || ''
}).then(res => {
console.log(res)
this.$store.commit('setAddress', {})
this.$Router.replace({
name: 'Pay'
name: 'Pay',
params: {
orderNo: res.order_no,
price : res.total
}
})
})
}

View File

@@ -62,7 +62,6 @@
methods:{
getGoods(){
goods(this.$Route.query.id).then(res => {
console.log(res)
this.goods = res
})
},