Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
W
wechatapp.shangjiadao.com
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxuelai
wechatapp.shangjiadao.com
Commits
ae5bd04b
Commit
ae5bd04b
authored
Mar 16, 2020
by
wangxuelai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'完结'
parent
c2939f2e
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
27 additions
and
4 deletions
+27
-4
detail.js
business/pages/helpcenter/detail.js
+0
-1
index.js
business/pages/helpcenter/index.js
+9
-3
webview.js
business/pages/helpcenter/webview.js
+14
-0
webview.json
business/pages/helpcenter/webview.json
+3
-0
webview.wxml
business/pages/helpcenter/webview.wxml
+1
-0
webview.wxss
business/pages/helpcenter/webview.wxss
+0
-0
No files found.
business/pages/helpcenter/detail.js
View file @
ae5bd04b
...
...
@@ -88,7 +88,6 @@ Page({
}
catch
(
error
)
{
content
=
[];
}
console
.
log
(
content
,
'content'
);
data
.
content
=
content
;
this
.
setData
({
detail
:
data
,
...
...
business/pages/helpcenter/index.js
View file @
ae5bd04b
...
...
@@ -182,11 +182,17 @@ Page({
goLink
(
e
)
{
const
{
ad
}
=
e
.
currentTarget
.
dataset
;
// 1-小程序 2-公众号文章 3-自定义连接 4-无
if
(
ad
.
redirect_type
==
1
)
{
console
.
log
(
ad
.
redirect_type
,
'adsads'
);
wx
.
navigateTo
({
url
:
ad
.
redirect_url
,
})
}
else
if
(
ad
.
redirect_type
==
2
)
{
console
.
log
(
ad
.
redirect_type
,
'adsads'
);
wx
.
navigateTo
({
url
:
`/business/pages/helpcenter/webview?src=
${
ad
.
redirect_url
}
`
,
})
}
else
if
(
ad
.
redirect_type
==
3
)
{
console
.
log
(
ad
.
redirect_type
,
'adsads'
);
wx
.
navigateTo
({
url
:
`/business/pages/helpcenter/webview?src=
${
ad
.
redirect_url
}
`
,
})
}
else
if
(
ad
.
redirect_type
==
4
)
{
console
.
log
(
ad
.
redirect_type
,
'adsads'
);
}
...
...
business/pages/helpcenter/webview.js
0 → 100644
View file @
ae5bd04b
import
{
helpList
,
helpAds
}
from
"../../../service/common.js"
;
import
{
imagify
}
from
"../../../utilities/index.js"
;
var
app
=
getApp
();
Page
({
data
:
{
},
onLoad
:
function
(
options
)
{
const
{
src
}
=
options
;
this
.
setData
({
src
,
})
},
});
business/pages/helpcenter/webview.json
0 → 100644
View file @
ae5bd04b
{
"navigationBarTitleText"
:
""
}
\ No newline at end of file
business/pages/helpcenter/webview.wxml
0 → 100644
View file @
ae5bd04b
<web-view src="{{src}}"></web-view>
\ No newline at end of file
business/pages/helpcenter/webview.wxss
0 → 100644
View file @
ae5bd04b
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment