index.wxml 2.6 KB

1
  1. <view class="index data-v-57280228"><capsule vue-id="8dd740cc-1" showBorder="{{true}}" bgColor="transparent" class="data-v-57280228" bind:__l="__l" vue-slots="{{['top']}}"><view class="detail-top data-v-57280228" slot="top"><view data-event-opts="{{[['tap',[['openDrawer',['$event']]]]]}}" class="top-left data-v-57280228" bindtap="__e"><image src="/static/images/catalogue_icon.png" class="data-v-57280228"></image></view><view class="top-text data-v-57280228">团蜂电子名片</view></view></capsule><view class="seat data-v-57280228"></view><view class="box-bg data-v-57280228"></view><view class="container data-v-57280228"><block wx:if="{{$root.g0>0}}"><view class="card-list data-v-57280228" style="{{'height:'+(cardListHeight+'rpx')+';'}}"><block wx:for="{{cardList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['goCard',['/pages_module/myCard/index?id='+item.id]]]]]}}" class="card-item data-v-57280228" style="{{'top:'+(index*120+'rpx')+';'+('z-index:'+(index)+';')}}" catchtap="__e"><card-com vue-id="{{'8dd740cc-2-'+index}}" cardData="{{item}}" imgSerial="{{item.style}}" class="data-v-57280228" bind:__l="__l"></card-com></view></block></view></block><block wx:else><view class="empty-box data-v-57280228"><image src="/static/images/empty-card.png" class="data-v-57280228"></image><text class="data-v-57280228">暂未添加名片</text></view></block><view class="card-btn data-v-57280228"><button data-event-opts="{{[['tap',[['addCard',['$event']]]]]}}" bindtap="__e" class="data-v-57280228">+    新增名片</button></view></view><tui-drawer vue-id="8dd740cc-3" mode="left" visible="{{visible}}" data-event-opts="{{[['^close',[['closeDrawer']]]]}}" bind:close="__e" class="data-v-57280228" bind:__l="__l" vue-slots="{{['default']}}"><view class="d-container data-v-57280228"><view class="d-image data-v-57280228"><block wx:if="{{cardList[0].head}}"><image src="{{cardList[0].head}}" class="data-v-57280228"></image></block><block wx:else><image src="/static/images/default_avatar.png" class="data-v-57280228"></image></block><text class="data-v-57280228">{{cardList[0].name}}</text></view><view data-event-opts="{{[['tap',[['quitLogin',['$event']]]]]}}" class="quit data-v-57280228" bindtap="__e">退出登录</view></view></tui-drawer><tui-modal vue-id="8dd740cc-4" show="{{modal}}" button="{{[{text:'确定',type:'red',plain:false}]}}" title="提示" content="您还未登录,是否需要登录?" data-event-opts="{{[['^click',[['handleClick']]],['^cancel',[['hideModal']]]]}}" bind:click="__e" bind:cancel="__e" class="data-v-57280228" bind:__l="__l"></tui-modal></view>