Showing
3 changed files
with
45 additions
and
2 deletions
| @@ -89,7 +89,7 @@ Page({ | @@ -89,7 +89,7 @@ Page({ | ||
| 89 | input(e){ | 89 | input(e){ |
| 90 | console.log(e); | 90 | console.log(e); |
| 91 | let key=util.attr(e,'key'); | 91 | let key=util.attr(e,'key'); |
| 92 | - if(key=='addr' && !(this.data.form.lat>0)){ | 92 | + if(key=='address' && !(this.data.form.lat>0)){ |
| 93 | return this.onChangeAddress() | 93 | return this.onChangeAddress() |
| 94 | } | 94 | } |
| 95 | let val=util.val(e); | 95 | let val=util.val(e); |
| 1 | <!--pages/manager-invitation/setting/sellers.wxml--> | 1 | <!--pages/manager-invitation/setting/sellers.wxml--> |
| 2 | <nav>我工作的店铺</nav> | 2 | <nav>我工作的店铺</nav> |
| 3 | <view style="background-color: #F5F5F5;height: 2rpx;width: 100%;"></view> | 3 | <view style="background-color: #F5F5F5;height: 2rpx;width: 100%;"></view> |
| 4 | -<view class="pages"> | 4 | +<view class="pages" wx:if="{{sellers.length>0}}"> |
| 5 | <block wx:for="{{sellers}}" wx:key="sellers.key"> | 5 | <block wx:for="{{sellers}}" wx:key="sellers.key"> |
| 6 | <formids bindclick="sellerEditor" data-index="{{index}}"> | 6 | <formids bindclick="sellerEditor" data-index="{{index}}"> |
| 7 | <view class="seller {{item.is_default==1?'active':''}}"> | 7 | <view class="seller {{item.is_default==1?'active':''}}"> |
| @@ -12,3 +12,15 @@ | @@ -12,3 +12,15 @@ | ||
| 12 | </formids> | 12 | </formids> |
| 13 | </block> | 13 | </block> |
| 14 | </view> | 14 | </view> |
| 15 | +<view class="pages flex-vc" wx:else=""> | ||
| 16 | + <image src="http://qn.colorcun.com/custom/lite-online/image/follow-empty.png" class="empty-image"></image> | ||
| 17 | + <view class="empty-text">您还没有添加工作店铺</view> | ||
| 18 | + <formids url="./seller-editor" style="width: 110%"> | ||
| 19 | + <view class="create-but">立即添加</view> | ||
| 20 | + </formids> | ||
| 21 | +</view> | ||
| 22 | +<formids url="./seller-editor" wx:if="{{sellers.length>0}}"> | ||
| 23 | + <view class="create"> | ||
| 24 | + <view class="create-but">立即添加</view> | ||
| 25 | + </view> | ||
| 26 | +</formids> |
| @@ -3,6 +3,7 @@ | @@ -3,6 +3,7 @@ | ||
| 3 | width: 90%; | 3 | width: 90%; |
| 4 | margin: 0 auto; | 4 | margin: 0 auto; |
| 5 | padding-top: 40rpx; | 5 | padding-top: 40rpx; |
| 6 | + padding-bottom: 150rpx; | ||
| 6 | } | 7 | } |
| 7 | .seller{ | 8 | .seller{ |
| 8 | margin-bottom: 40rpx; | 9 | margin-bottom: 40rpx; |
| @@ -46,4 +47,34 @@ | @@ -46,4 +47,34 @@ | ||
| 46 | border-radius: 26rpx 10rpx 0 26rpx; | 47 | border-radius: 26rpx 10rpx 0 26rpx; |
| 47 | text-align: center; | 48 | text-align: center; |
| 48 | line-height: 40rpx; | 49 | line-height: 40rpx; |
| 50 | +} | ||
| 51 | +.create{ | ||
| 52 | + position: fixed; | ||
| 53 | + bottom: 0rpx; | ||
| 54 | + height: 150rpx; | ||
| 55 | + line-height: 150rpx; | ||
| 56 | + background-color: #ffffff; | ||
| 57 | + width: 100%; | ||
| 58 | + font-size: 34rpx; | ||
| 59 | +} | ||
| 60 | +.create-but{ | ||
| 61 | + height: 84rpx; | ||
| 62 | + line-height: 84rpx; | ||
| 63 | + border-radius: 10rpx; | ||
| 64 | + background-color: #199095; | ||
| 65 | + color: #fefefe; | ||
| 66 | + width: 90%; | ||
| 67 | + margin: 40rpx auto; | ||
| 68 | + font-size: 34rpx; | ||
| 69 | + text-align: center; | ||
| 70 | +} | ||
| 71 | +.empty-image{ | ||
| 72 | + margin-top: 200rpx; | ||
| 73 | + width: 382rpx; | ||
| 74 | + height: 316rpx; | ||
| 75 | +} | ||
| 76 | +.empty-text{ | ||
| 77 | + margin-top: 86rpx; | ||
| 78 | + font-size: 28rpx; | ||
| 79 | + margin-bottom: 220rpx; | ||
| 49 | } | 80 | } |
-
Please register or login to post a comment