Commit 47d9e9b0 by daqian

imageswiper

parent 323cf042
...@@ -10,9 +10,17 @@ ...@@ -10,9 +10,17 @@
style="height: {{maxHeight}}px;" style="height: {{maxHeight}}px;"
> >
<block wx:for="{{imageList}}" wx:key="swiper{{index}}" wx:for-item="item"> <block wx:for="{{imageList}}" wx:key="swiper{{index}}" wx:for-item="item">
<swiper-item class="swiper-item" > <swiper-item class="swiper-item">
<view wx:if="{{item.needAuth}}"> <view wx:if="{{item.needAuth}}">
<view wx:if="{{!currentHasUserInfo}}"> <button
wx:if="{{!currentHasUserInfo}}"
bindgetuserinfo="_getUserInfo"
data-jflag="false"
open-type='getUserInfo'
class='btn btn-primary btn-vip-code'
hover-class="btn-hover"
style="height:100%"
>
<image <image
bindload="imageLoad" bindload="imageLoad"
src="{{utils.formateUrl(item.imageUrl,baseImgUrl)}}" src="{{utils.formateUrl(item.imageUrl,baseImgUrl)}}"
...@@ -20,8 +28,8 @@ ...@@ -20,8 +28,8 @@
mode="widthFix" mode="widthFix"
class="slide-image" class="slide-image"
/> />
</view> </button>
<view wx:else> <view wx:if="{{currentHasUserInfo}}">
<view <view
data-appid="{{item.link.appid}}" data-appid="{{item.link.appid}}"
data-path="{{item.link.url}}" data-path="{{item.link.url}}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment