Commit 03c1d70f4e87ea8c5e3af117205b50ccf796f80e
1 parent
87d2e0fb
会员标签商家无设置标签判断显示
Showing
3 changed files
with
21 additions
and
3 deletions
pages/user/labels/labels.js
pages/user/labels/labels.wxml
| 1 | -<view class="container"> | |
| 1 | +<view wx:if="{{interest_lables.length>0}}" class="container"> | |
| 2 | 2 | <!-- 兴趣标签集合 --> |
| 3 | 3 | <view class="lables padding"> |
| 4 | 4 | <!-- 兴趣标签标题 --> |
| ... | ... | @@ -53,6 +53,18 @@ |
| 53 | 53 | </block> |
| 54 | 54 | |
| 55 | 55 | </view> |
| 56 | + | |
| 57 | +<view wx:if="{{interest_lables.length<1}}" class="flex-center fs30" style="overflow: hidden;margin-top:40%;"> | |
| 58 | +<view> | |
| 59 | + <view class="flex-center"> | |
| 60 | + <image class="no_labels" src="{{iurl}}miniapp/images/yyservice/no_history.png"></image> | |
| 61 | + </view> | |
| 62 | + <view> | |
| 63 | + <view>商家还未设置标签,敬请期待!</view> | |
| 64 | + </view> | |
| 65 | + </view> | |
| 66 | +</view> | |
| 67 | + | |
| 56 | 68 | <!-- 引入提示组件 --> |
| 57 | 69 | <warn id="warn"></warn> |
| 58 | 70 | <my_confirm id="my_confirm"></my_confirm> |
| 59 | 71 | \ No newline at end of file | ... | ... |
pages/user/labels/labels.wxss
| 1 | -page{ | |
| 1 | +/* page{ | |
| 2 | 2 | height: 100%; |
| 3 | -} | |
| 3 | +} */ | |
| 4 | 4 | .padding { |
| 5 | 5 | padding: 0rpx 65rpx; |
| 6 | 6 | } |
| ... | ... | @@ -87,4 +87,9 @@ page{ |
| 87 | 87 | } |
| 88 | 88 | .check_item{ |
| 89 | 89 | height: 30%; |
| 90 | +} | |
| 91 | +.no_labels{ | |
| 92 | + width: 290rpx; | |
| 93 | + height: 220rpx; | |
| 94 | + margin-bottom:40rpx; | |
| 90 | 95 | } |
| 91 | 96 | \ No newline at end of file | ... | ... |