Commit 03c1d70f4e87ea8c5e3af117205b50ccf796f80e
1 parent
87d2e0fb
会员标签商家无设置标签判断显示
Showing
3 changed files
with
21 additions
and
3 deletions
pages/user/labels/labels.js
| @@ -10,6 +10,7 @@ Page({ | @@ -10,6 +10,7 @@ Page({ | ||
| 10 | */ | 10 | */ |
| 11 | data: { | 11 | data: { |
| 12 | url: a.url, //接口网址 | 12 | url: a.url, //接口网址 |
| 13 | + iurl: a.imghost,//图片前缀网址 | ||
| 13 | interest_lables: [], //兴趣标签 | 14 | interest_lables: [], //兴趣标签 |
| 14 | check_label: [], //用户选中的标签集合 | 15 | check_label: [], //用户选中的标签集合 |
| 15 | user_label_val: "", //奖励多少 | 16 | user_label_val: "", //奖励多少 |
pages/user/labels/labels.wxml
| 1 | -<view class="container"> | 1 | +<view wx:if="{{interest_lables.length>0}}" class="container"> |
| 2 | <!-- 兴趣标签集合 --> | 2 | <!-- 兴趣标签集合 --> |
| 3 | <view class="lables padding"> | 3 | <view class="lables padding"> |
| 4 | <!-- 兴趣标签标题 --> | 4 | <!-- 兴趣标签标题 --> |
| @@ -53,6 +53,18 @@ | @@ -53,6 +53,18 @@ | ||
| 53 | </block> | 53 | </block> |
| 54 | 54 | ||
| 55 | </view> | 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 | <warn id="warn"></warn> | 69 | <warn id="warn"></warn> |
| 58 | <my_confirm id="my_confirm"></my_confirm> | 70 | <my_confirm id="my_confirm"></my_confirm> |
| 59 | \ No newline at end of file | 71 | \ No newline at end of file |
pages/user/labels/labels.wxss
| 1 | -page{ | 1 | +/* page{ |
| 2 | height: 100%; | 2 | height: 100%; |
| 3 | -} | 3 | +} */ |
| 4 | .padding { | 4 | .padding { |
| 5 | padding: 0rpx 65rpx; | 5 | padding: 0rpx 65rpx; |
| 6 | } | 6 | } |
| @@ -87,4 +87,9 @@ page{ | @@ -87,4 +87,9 @@ page{ | ||
| 87 | } | 87 | } |
| 88 | .check_item{ | 88 | .check_item{ |
| 89 | height: 30%; | 89 | height: 30%; |
| 90 | +} | ||
| 91 | +.no_labels{ | ||
| 92 | + width: 290rpx; | ||
| 93 | + height: 220rpx; | ||
| 94 | + margin-bottom:40rpx; | ||
| 90 | } | 95 | } |
| 91 | \ No newline at end of file | 96 | \ No newline at end of file |