Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
dev
/
zhiliang-light-mp
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
82f3a7a6
authored
2020-01-17 18:07:09 +0800
by
simon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
默认提交
1 parent
4d79bd5c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
3 deletions
src/pages/index/index.js
src/pages/user-center/user-center.js
src/pages/webview/webview.js
src/pages/index/index.js
View file @
82f3a7a
...
...
@@ -210,6 +210,12 @@ Page({
app
.
router
.
push
({
path
:
"distributor"
})
// app.router.push({
// path: "webview",
// query: {
// url:`https://h5.demo.k.wxpai.cn/Ntyk/#/login/weapp?storecode=316174`,
// }
// })
},
/**
...
...
src/pages/user-center/user-center.js
View file @
82f3a7a
...
...
@@ -47,7 +47,10 @@ Page({
}).
catch
((
err
)
=>
{
// 如果均没有,则去h5授权
app
.
router
.
push
({
path
:
"webview"
path
:
"webview"
,
query
:
{
url
:
"https://k.wxpai.cn/IdgW/index.html"
}
})
});
}
...
...
src/pages/webview/webview.js
View file @
82f3a7a
...
...
@@ -25,8 +25,8 @@ Page({
}
},
onLoad
(
options
=
{})
{
let
url
=
options
.
url
;
url
=
"https://k.wxpai.cn/IdgW/index.html"
let
url
=
decodeURIComponent
(
options
.
url
)
;
//
url = "https://k.wxpai.cn/IdgW/index.html"
console
.
log
(
"url:"
,
url
);
if
(
url
)
{
this
.
setData
({
...
...
Please
register
or
sign in
to post a comment