Commit d507f2ec5f65d33d29448117a3216c344ba8106b

Authored by wangfan
1 parent d18cb77a

manager-invitation

... ... @@ -89,7 +89,7 @@ Page({
input(e){
console.log(e);
let key=util.attr(e,'key');
if(key=='addr' && !(this.data.form.lat>0)){
if(key=='address' && !(this.data.form.lat>0)){
return this.onChangeAddress()
}
let val=util.val(e);
... ...
<!--pages/manager-invitation/setting/sellers.wxml-->
<nav>我工作的店铺</nav>
<view style="background-color: #F5F5F5;height: 2rpx;width: 100%;"></view>
<view class="pages">
<view class="pages" wx:if="{{sellers.length>0}}">
<block wx:for="{{sellers}}" wx:key="sellers.key">
<formids bindclick="sellerEditor" data-index="{{index}}">
<view class="seller {{item.is_default==1?'active':''}}">
... ... @@ -12,3 +12,15 @@
</formids>
</block>
</view>
<view class="pages flex-vc" wx:else="">
<image src="http://qn.colorcun.com/custom/lite-online/image/follow-empty.png" class="empty-image"></image>
<view class="empty-text">您还没有添加工作店铺</view>
<formids url="./seller-editor" style="width: 110%">
<view class="create-but">立即添加</view>
</formids>
</view>
<formids url="./seller-editor" wx:if="{{sellers.length>0}}">
<view class="create">
<view class="create-but">立即添加</view>
</view>
</formids>
\ No newline at end of file
... ...
... ... @@ -3,6 +3,7 @@
width: 90%;
margin: 0 auto;
padding-top: 40rpx;
padding-bottom: 150rpx;
}
.seller{
margin-bottom: 40rpx;
... ... @@ -46,4 +47,34 @@
border-radius: 26rpx 10rpx 0 26rpx;
text-align: center;
line-height: 40rpx;
}
.create{
position: fixed;
bottom: 0rpx;
height: 150rpx;
line-height: 150rpx;
background-color: #ffffff;
width: 100%;
font-size: 34rpx;
}
.create-but{
height: 84rpx;
line-height: 84rpx;
border-radius: 10rpx;
background-color: #199095;
color: #fefefe;
width: 90%;
margin: 40rpx auto;
font-size: 34rpx;
text-align: center;
}
.empty-image{
margin-top: 200rpx;
width: 382rpx;
height: 316rpx;
}
.empty-text{
margin-top: 86rpx;
font-size: 28rpx;
margin-bottom: 220rpx;
}
\ No newline at end of file
... ...