Commit 52d9fa27f3c9289df1b33f40d071bc7d68b784ae

Authored by vking
1 parent a4c9fed2

blue ui other

@@ -2,7 +2,7 @@ import util from '../../utils/util'; @@ -2,7 +2,7 @@ import util from '../../utils/util';
2 import App from '../../utils/api'; 2 import App from '../../utils/api';
3 Page({ 3 Page({
4 data:{ 4 data:{
5 - 5 + loading:0,
6 }, 6 },
7 onLoad(opt){ 7 onLoad(opt){
8 console.log(opt) 8 console.log(opt)
@@ -20,7 +20,8 @@ Page({ @@ -20,7 +20,8 @@ Page({
20 console.log(json) 20 console.log(json)
21 if(json.ret==200){ 21 if(json.ret==200){
22 this.setData({ 22 this.setData({
23 - concatlist:json.data 23 + concatlist:json.data,
  24 + loading:1,
24 }) 25 })
25 } 26 }
26 }) 27 })
1 <nav hasHome>{{action ? '选择联系人' : '常用联系人'}}</nav> 1 <nav hasHome>{{action ? '选择联系人' : '常用联系人'}}</nav>
2 -<view class="concat-list" style="padding-bottom: 150rpx;">  
3 - <block wx:for="{{concatlist}}" wx:key="{{index}}">  
4 - <view class="flex-lr item font30r black-font" data-index="{{index}}" catchtap="edit">  
5 - <view class="font-bold">{{item.name}}</view>  
6 - <view>{{item.phone}}</view>  
7 - </view>  
8 - </block>  
9 -</view>  
10 -<view class="add-cover flex-cc">  
11 - <view class="white-font font32r add-button flex-cc" catchtap="add">新建联系人</view>  
12 -</view>  
  2 +<page loading="{{loading}}">
  3 + <view class="concat-list" wx:if="{{concatlist.length}}">
  4 + <block wx:for="{{concatlist}}" wx:key="{{index}}">
  5 + <view class="flex item font30r black-font margin-bottom-sm justify-between align-center padding-left padding-right-lg" data-index="{{index}}" catchtap="edit">
  6 + <view>
  7 + <view class="flex align-center">
  8 + <viwe class="txt-38-h text-bold">{{item.name}}</viwe>
  9 + <viwe wx:if="{{item.is_default==1}}" class="default margin-left-sm">默认</viwe>
  10 + </view>
  11 + <view class="txt-38-h" style="margin-top: 16rpx;">{{item.phone}}</view>
  12 + </view>
  13 + <image src="http://nosqn.colorcun.com/detail/x%20%2815%29.png"
  14 + wx:if="{{!action}}"
  15 + style="width: 28rpx;height: 30rpx;"></image>
  16 + </view>
  17 + </block>
  18 + </view>
  19 + <view class="view flex flex-direction justify-start align-center" wx:else="{{concatlist.length}}">
  20 + <image src="http://nosqn.colorcun.com/%E7%BC%96%E7%BB%84%203%403x%20%281%29.png"
  21 + style="width: 520rpx;height: 384rpx; margin-top: 132rpx;"></image>
  22 + <view class="txt-28-h margin-top-lg">暂无常用预订人哦</view>
  23 + </view>
  24 + <view class="add-cover flex-cc">
  25 + <view class="white-font font36r text-bold add-button flex-cc bg-blue-blue round" catchtap="add">新建联系人</view>
  26 + </view>
  27 +</page>
  1 +@import "../../colorui/main.wxss";
1 .concat-list{ 2 .concat-list{
2 width:100%; 3 width:100%;
3 - padding:0 40rpx; 4 + padding:40rpx 40rpx 150rpx;
4 box-sizing: border-box; 5 box-sizing: border-box;
5 } 6 }
6 .item{ 7 .item{
7 - width:100%;  
8 - height:140rpx;  
9 - border-bottom: 2rpx solid #F1F0F4; 8 + width: 100%;
  9 + height: 204rpx;
  10 + background: #FFFFFF;
  11 + box-shadow: 0px 0px 20rpx 0px #EEF0F2;
  12 + border-radius: 20rpx;
10 box-sizing: border-box; 13 box-sizing: border-box;
11 } 14 }
12 .add-cover{ 15 .add-cover{
@@ -19,8 +22,21 @@ @@ -19,8 +22,21 @@
19 background: #fff; 22 background: #fff;
20 } 23 }
21 .add-button{ 24 .add-button{
22 - width:680rpx;  
23 - height:80rpx; 25 + width:calc(100% - 80rpx);
  26 + height:84rpx;
24 margin:0 auto; 27 margin:0 auto;
25 - background: #242320; 28 +}
  29 +.default{
  30 + width: 96rpx;
  31 + height: 60rpx;
  32 + background: #F8F8F8;
  33 + border-radius: 10rpx;
  34 +
  35 +
  36 + font-size: 28rpx;
  37 + font-family: PingFangSC-Regular, PingFang SC;
  38 + font-weight: 400;
  39 + color: #666666;
  40 + line-height: 60rpx;
  41 + text-align: center;
26 } 42 }