123456789101112131415161718192021222324252627282930313233343536373839 |
- <view class="card_select">
- <view bindtap="{{disable?'leftScroll':''}}" class="leftIcon icon {{list.length && list.length>1 ? 'iconUrl':''}}"></view>
- <view class="middleCard" style="width:calc({{cardWidth}}px - 120rpx)">
- <swiper current="{{current}}" circular="{{true}}" bindchange="bindchange" easing-function="linear" style="height:240rpx">
- <swiper-item style="padding:40rpx 0 20rpx;" wx:for="{{list}}" wx:key="index" id="{{'view'+index}}" class="scrollItem">
- <view class="card" style="width:calc({{cardWidth}}px - 120rpx)">
- <image class="logo_title" src="/images/card_logo.png" mode="widthFix"></image>
- <view class="childInfo">
- <view class="headImg">
- <image src="{{item.avatar || 'https://img.bbztx.com/miniProgram/challengeFamily/loginLogo.png'}}"></image>
- </view>
- <view class="info">
- <view class="left_info {{!showMedal?'medal':''}}">
- <view class="info_name">{{item.name}}</view>
- <view class="days" wx:if="{{showMedal}}">(差 <text style="color:#333">{{item.nextMedalLevel}}</text> 天升级)</view>
- </view>
- <view class="info_buttom">
- <view class="level" wx:if="{{showMedal}}">
- <view class="info_medal_level">勋章等级:{{item.medal}}级</view>
- <view class="info_seal_num">印章数:{{item.goldSeal+item.seal}}个</view>
- </view>
- <view class="level" wx:else>活动数:{{item.num}}次</view>
- <navigator wx:if="{{showMedal}}" class="btn" open-type="switchTab" url="/pages/home/index" hover-class="none">参与活动升级 ></navigator>
- <navigator wx:else class="btn" open-type="switchTab" url="/pages/home/index" hover-class="none">参加更多活动 ></navigator>
- </view>
- <view class="info_buttom moreActive" wx:if="{{!showMedal}}">
- </view>
- </view>
- </view>
- <view class="right_level"><view class="level">LV {{item.medal}}</view></view>
- </view>
- </swiper-item>
- </swiper>
- </view>
- <view bindtap="{{disable?'rightScroll':''}}" class="rightIcon icon {{list.length && list.length>1 ?'iconUrl':''}}"></view>
- </view>
- <slot></slot>
|