更新最新版

master
Lee-1203 2022-04-25 17:07:45 +08:00
parent 2e43ad19c1
commit b689a06e5d
8 changed files with 35 additions and 3 deletions

View File

@ -4,6 +4,7 @@
"pages/login/login", "pages/login/login",
"pages/login/bind/bind", "pages/login/bind/bind",
"pages/login/verification/verification", "pages/login/verification/verification",
"pages/home/home" "pages/home/home",
"pages/newpage/newpage"
] ]
} }

View File

@ -29,7 +29,8 @@ Page({
dd.$toolAll.removeCache('isInFirst'); dd.$toolAll.removeCache('isInFirst');
// 钉钉跳转 // 钉钉跳转
dd.redirectTo({url: '/pages/login/login'}); dd.redirectTo({url: '/pages/login/login'});
}else if(e.detail.name == 'downImg'){ }
if(e.detail.name == 'downImg'){
dd.downloadFile({ dd.downloadFile({
url: e.detail.url, url: e.detail.url,
success({ filePath }) { success({ filePath }) {
@ -44,5 +45,12 @@ Page({
}, },
}); });
} }
if(e.detail.name == 'newsPage'){
let url = e.detail.url;
console.log(url,'h5传过来的跳转链接')
dd.navigateTo({
url: '/pages/newpage/newpage?url='+url
})
}
} }
}); });

View File

@ -167,6 +167,13 @@ Page({
}) })
}, },
// 手机登录
modePhone(){
// 跳转页面
dd.redirectTo ({
url: '/pages/login/login'
})
},
// 跳过绑定 // 跳过绑定
passBind(){ passBind(){
// 跳转页面 // 跳转页面
@ -174,4 +181,5 @@ Page({
url: '/pages/home/home' url: '/pages/home/home'
}) })
}, },
}); });

View File

View File

@ -0,0 +1,3 @@
<view>
<web-view src="{{url}}" onMessage="onmessage"></web-view>
</view>

9
pages/newpage/newpage.js Normal file
View File

@ -0,0 +1,9 @@
Page({
data: {},
onLoad(query) {
console.log(query.url,'接收到的跳转链接')
this.setData({
url: query.url
})
},
});

View File

@ -0,0 +1,3 @@
{
"usingComponents": {}
}