index.axml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <view class="ab-get-card-content">
  2. <view class="card-position">
  3. <view class="card-flex" onTap="onJumpAreaSelect">
  4. <view class="pub-icon">
  5. <view class="card-icon"></view>
  6. </view>
  7. <view class="card-title" a:if="{{currentCourt&&currentCourt.name}}">{{currentCourt.name}}</view>
  8. <view class="card-title"a:else>选择小区</view>
  9. </view>
  10. <view class="card-title2" a:if="{{userInfo.userName}}">你好,{{userInfo.userName}}</view>
  11. </view>
  12. <view class="card-image" a:if="{{!componentData.componentExtInfo.memberInfo.flag}}" style="{{
  13. componentData.componentExtInfo.noGetCardImg ?
  14. `backgroundImage: url(${ componentData.componentExtInfo.noGetCardImg.length ==32 ? imgSrcPrefix + componentData.componentExtInfo.noGetCardImg : componentData.componentExtInfo.noGetCardImg})` :
  15. `backgroundColor: #fff`}}">
  16. <view class="card-info">
  17. <view class="card-info-title">电子会员卡</view>
  18. <view class="card-info-title2">我的专属生活服务</view>
  19. </view>
  20. <view class="get-cards" onTap="addCard">立即领卡</view>
  21. </view>
  22. <view class="card-image" a:else
  23. style="{{
  24. componentData.componentExtInfo.getCardImg ?
  25. `backgroundImage: url(${ componentData.componentExtInfo.getCardImg.length ==32 ? imgSrcPrefix + componentData.componentExtInfo.getCardImg : componentData.componentExtInfo.getCardImg})` :
  26. `backgroundColor: #fff`}}"
  27. onTap="goToCardDetail"
  28. data-memberInfo="{{componentData.componentExtInfo.memberInfo}}">
  29. <view class="card-info">
  30. <view class="card-info-title">电子会员卡</view>
  31. <view class="card-info-title2">我的专属生活服务</view>
  32. </view>
  33. <view class="card-number">{{componentData.componentExtInfo.memberInfo.cardNo}}</view>
  34. </view>
  35. </view>