6
0
Fork 0

修改扫码进入先授权登录

hui.zhou
h30830569 2022-06-08 13:27:42 +08:00
parent a732ecffdd
commit 77b80fe18b
1 changed files with 13 additions and 1 deletions

View File

@ -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() {