Browse Source

[添加] 个人中心页面添加虚拟id判断显示

[优化] 我的收藏列表添加收藏样式
dev
邓平艺 5 years ago
parent
commit
c9d912ad93
  1. 4
      pages/center/index.vue
  2. 11
      pages/collect/index.vue

4
pages/center/index.vue

@ -9,8 +9,8 @@
<text class="user-label" v-for="(item, index) in info.tags" :key="index">{{ item }}</text>
</view>
<view class="lf-m-t-20 lf-font-28" style="color: #555555;">
<text>ID {{ info.id }}</text>
<text class="lf-m-l-30">{{ hidePhone(info.tel) }}</text>
<text class="lf-m-r-30" v-if="isRight(info.virtual_id)">ID {{ info.virtual_id }}</text>
<text>{{ hidePhone(info.tel) }}</text>
</view>
</view>
</view>

11
pages/collect/index.vue

@ -15,12 +15,12 @@
<view @click="switchCollect(index)" class="lf-font-40">
<view v-if="item.is_collect" class="flex flex-direction justify-around align-center text-center" style="width: 100%;">
<u-icon name="heart-fill" color="#ff0f00"></u-icon>
<text class="lf-font-24">取消收藏</text>
<text class="collect-btn">取消收藏</text>
</view>
<view v-else class="flex flex-direction justify-around align-center text-center" style="width: 100%;">
<u-icon name="heart"></u-icon>
<text class="lf-font-24">添加收藏</text>
<text class="collect-btn">添加收藏</text>
</view>
</view>
@ -133,4 +133,11 @@
}
}
}
.collect-btn{
display: inline-block;
padding: 2rpx 9rpx;
border: 1rpx solid #333333;
border-radius: 20rpx;
font-size: 22rpx;
}
</style>
Loading…
Cancel
Save