更新最新版

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/bind/bind",
"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.redirectTo({url: '/pages/login/login'});
}else if(e.detail.name == 'downImg'){
}
if(e.detail.name == 'downImg'){
dd.downloadFile({
url: e.detail.url,
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(){
// 跳转页面
@ -174,4 +181,5 @@ Page({
url: '/pages/home/home'
})
},
});

View File

@ -7,7 +7,7 @@
<image mode="widthFix" src="/static/login/logo.png" />
</view>
</view>
<view class="company">有谱志愿</view>
<view class="company">有谱志愿</view>
<view class="phone-number" a:if="{{!isMode}}">
<view>手机号</view>
<input type="input" onInput="bindKeyInput" onBlur="myBlur" onFocus="myFocus" placeholder="请输入手机号"/>

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": {}
}