修改扫码进入先授权登录
parent
a732ecffdd
commit
77b80fe18b
|
|
@ -226,9 +226,21 @@ export default {
|
||||||
},
|
},
|
||||||
onLoad({ id }) {
|
onLoad({ id }) {
|
||||||
this.id = 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() {
|
onShow() {
|
||||||
this.getDetail();
|
if(this.isLogin){
|
||||||
|
this.getDetail();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
service() {
|
service() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue