正在显示
2 个修改的文件
包含
7 行增加
和
3 行删除
@@ -70,10 +70,14 @@ Page({ | @@ -70,10 +70,14 @@ Page({ | ||
70 | url: '/pages/Vmore4SList/Vmore4SList?home=1' | 70 | url: '/pages/Vmore4SList/Vmore4SList?home=1' |
71 | }) | 71 | }) |
72 | }, | 72 | }, |
73 | - linkWebview() { | 73 | + linkWebview(e) { |
74 | + let index = e.currentTarget.dataset.index | ||
75 | + if (index == 0) { | ||
74 | wx.navigateTo({ | 76 | wx.navigateTo({ |
75 | - url: '/pages/webview/webview?url=' + 'http://h5.goorcar.com/' | 77 | + url: '/pages/webview/webview?url=' + 'https://h5.goorcar.com/' |
76 | }) | 78 | }) |
79 | + } | ||
80 | + | ||
77 | }, | 81 | }, |
78 | addLoveCared() { // 去添加车辆 | 82 | addLoveCared() { // 去添加车辆 |
79 | let that = this | 83 | let that = this |
@@ -70,7 +70,7 @@ | @@ -70,7 +70,7 @@ | ||
70 | <swiper class="banner" indicator-color="{{indicator}}" indicator-active-color="{{indicatorActive}}" circular='{{circular}}' indicator-dots="{{indicatorDots}}" autoplay="{{autoplay}}"> | 70 | <swiper class="banner" indicator-color="{{indicator}}" indicator-active-color="{{indicatorActive}}" circular='{{circular}}' indicator-dots="{{indicatorDots}}" autoplay="{{autoplay}}"> |
71 | <swiper-item wx:for="{{homeLoop}}" wx:key="index" wx:for-index="index" wx:for-item="item"> | 71 | <swiper-item wx:for="{{homeLoop}}" wx:key="index" wx:for-index="index" wx:for-item="item"> |
72 | <navigator class="ims" hover-class="none"> | 72 | <navigator class="ims" hover-class="none"> |
73 | - <image src="{{item.img}}" bindtap="linkWebview" /> | 73 | + <image src="{{item.img}}" bindtap="linkWebview" data-index="{{index}}" /> |
74 | </navigator> | 74 | </navigator> |
75 | </swiper-item> | 75 | </swiper-item> |
76 | </swiper> | 76 | </swiper> |
-
请 注册 或 登录 后发表评论