修改扫码进入先授权登录
parent
a732ecffdd
commit
77b80fe18b
|
|
@ -226,9 +226,21 @@ export default {
|
|||
},
|
||||
onLoad({ id }) {
|
||||
this.id = id;
|
||||
setTimeout(()=>{
|
||||
if(!this.isLogin){
|
||||
this.$u.route({
|
||||
type:'redirectTo',
|
||||
url:`/pages/login/index?redirec=${encodeURIComponent(`/pages/order_details/index?id=${id}`)}`
|
||||
})
|
||||
}else{
|
||||
this.getDetail();
|
||||
}
|
||||
},300)
|
||||
},
|
||||
onShow() {
|
||||
this.getDetail();
|
||||
if(this.isLogin){
|
||||
this.getDetail();
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
service() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue