Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wx-program
Overview
Overview
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
陈玉桐
wx-program
Commits
2fb7cf9b
Commit
2fb7cf9b
authored
Oct 10, 2019
by
陈玉桐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix 首页banner跳转webview
parent
25ab5c4d
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
5 deletions
+21
-5
historyDetail.js
pages/historyDetail/historyDetail.js
+1
-2
index.js
pages/index/index.js
+7
-0
index.wxml
pages/index/index.wxml
+1
-1
out.js
pages/out/out.js
+10
-0
out.wxml
pages/out/out.wxml
+2
-2
No files found.
pages/historyDetail/historyDetail.js
View file @
2fb7cf9b
...
@@ -95,8 +95,7 @@ Page({
...
@@ -95,8 +95,7 @@ Page({
method
:
'POST'
,
method
:
'POST'
,
data
:
{
data
:
{
token
:
wx
.
getStorageSync
(
'token'
),
token
:
wx
.
getStorageSync
(
'token'
),
// historyId: options.historyId
historyId
:
options
.
historyId
historyId
:
12
},
},
success
:
function
(
res
)
{
success
:
function
(
res
)
{
// 请求成功后关闭Loading
// 请求成功后关闭Loading
...
...
pages/index/index.js
View file @
2fb7cf9b
...
@@ -842,4 +842,10 @@ Page({
...
@@ -842,4 +842,10 @@ Page({
})
})
}
}
},
},
// banner跳转
toUrl
(
e
)
{
wx
.
navigateTo
({
url
:
'/pages/out/out?url='
+
e
.
currentTarget
.
dataset
.
url
})
}
})
})
\ No newline at end of file
pages/index/index.wxml
View file @
2fb7cf9b
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
autoplay="{{autoplay}}" interval="{{interval}}" circular="{{ circular }}">
autoplay="{{autoplay}}" interval="{{interval}}" circular="{{ circular }}">
<block wx:for="{{imgUrls}}" wx:key="{{index}}">
<block wx:for="{{imgUrls}}" wx:key="{{index}}">
<swiper-item class="swiperCon">
<swiper-item class="swiperCon">
<image src="{{item.url}}" class="slideImage"/>
<image src="{{item.url}}"
data-url="{{item.redirectTo}}" bindtap="toUrl"
class="slideImage"/>
</swiper-item>
</swiper-item>
</block>
</block>
</swiper>
</swiper>
...
...
pages/out/out.js
View file @
2fb7cf9b
Page
({
Page
({
data
:{
url
:
''
},
onLoad
:
function
(
options
)
{
console
.
log
(
options
.
url
)
this
.
setData
({
url
:
options
.
url
})
}
})
})
\ No newline at end of file
pages/out/out.wxml
View file @
2fb7cf9b
<web-view src="https://seex.dev.iouou.cn/Wechat/WechatIot/wxDeviceWifi#wechat_redirect"></web-view>
<web-view src="{{url}}"></web-view>
\ No newline at end of file
\ No newline at end of file
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