Commit 4a40e4796599fd115d08ded70a1fd3b720e100c8

Authored by wangfan
1 parent bffe07e7

customer

... ... @@ -7,7 +7,8 @@
"pages/book/b_desk",
"pages/customer/index",
"pages/customer/detail_owner",
"pages/customer/detail_customer"
"pages/customer/detail_customer",
"pages/customer/list"
],
"window": {
"backgroundTextStyle": "light",
... ...
... ... @@ -6,11 +6,8 @@
<view class="title">{{detail.topic?'#'+detail.topic+'#':''}}</view>
</view>
<view class="bottom">
<view class="rdateStr">{{detail.rdateStr}}</view>
<view class="rdateStr Medium">{{detail.rdateStr}}</view>
<view class="seller flex-lr" bindtap="lookLocation">
<view class="avatar">
<image src="{{detail.seller.seller_image}}" mode="aspectFill"></image>
</view>
<view class="seller-info">
<view class="name Medium">{{detail.seller.sellername}}</view>
<view class="addr">{{detail.seller.map_address}}</view>
... ... @@ -19,8 +16,8 @@
<image src="../image/gps-icon.png"></image>
</view>
</view>
<view>{{detail.tableFirst}} {{detail.tableSubInfo}}</view>
<view class="flex-lr" bindtap="showManager">
<view class="tableInfo">{{detail.tableFirst}} <text class="tableSubInfo"> {{detail.tableSubInfo}}</text></view>
<view class="flex-lr showManager" bindtap="showManager">
<view class="">容客户经理-{{detail.cusman}}</view>
<view style="text-decoration: underline">联系客户经理</view>
</view>
... ... @@ -29,21 +26,23 @@
<userinfo binduserinfo="userinfo" class="share-but-view">
<view class="share-but Regular">我愿意</view>
</userinfo>
<view class="line-text">
<view class="text">
<view>{{detail.customers.length}}人参与</view>
</view>
</view>
<view>
<block wx:for="{{detail.customers}}" wx:key="detail.customers.key">
<view class="flex-lr customers">
<view class="flex-ll">
<image src="{{item.headimgurl}}" class="avatar" mode="aspectFill"></image>
<view>{{item.nickname}}</view>
<block wx:if="{{detail.customers.length>0}}">
<view class="line-text">
<view class="text">
<view>{{detail.customers.length}}人参与</view>
</view>
<view>{{item.openid==detail.openid?'发起人':'已接受'}}</view>
</view>
<view>
<block wx:for="{{detail.customers}}" wx:key="detail.customers.key">
<view class="flex-lr customers">
<view class="flex-ll">
<image src="{{item.headimgurl}}" class="avatar" mode="aspectFill"></image>
<view>{{item.nickname}}</view>
</view>
<view>{{item.openid==detail.openid?'发起人':'已接受'}}</view>
</view>
</block>
</view>
</block>
</view>
</view>
<manager manager="{{detail}}" id="manager"></manager>
\ No newline at end of file
... ...
... ... @@ -6,6 +6,8 @@
}
.seller{
height: 84rpx;
margin-top: 14rpx;
margin-bottom: 46rpx;
}
.seller .avatar{
min-width: 60rpx;
... ... @@ -21,7 +23,6 @@
width: 60rpx;
height: 84rpx;
width:100%;
padding: 0 14rpx;
}
.seller .addr-icon{
min-width: 32rpx;
... ... @@ -33,13 +34,14 @@
}
.seller .addr{
font-size: 26rpx;
color:#999999;
}
.hr{
border-top: 2rpx solid #F1F0F4;
}
.share-but-view{
margin-top: 76rpx;
margin-bottom: 96rpx;
margin-top: 128rpx;
margin-bottom: 86rpx;
display: block;
}
.share-but{
... ... @@ -75,4 +77,37 @@
width:80rpx;
height:80rpx;
border-radius: 50%;
}
.tip{
font-size: 26rpx;
color:#666666;
margin-top: 10rpx;
margin-bottom: 48rpx;
}
.card{
border-radius: 10rpx;
box-shadow: 2rpx 2rpx 14rpx 6rpx rgba(231,228,228,.5);
}
.card .top{
min-height: 160rpx;
}
.card .bottom{
background-color: #EAECEE;
border-radius: 10rpx;
box-shadow: 2rpx 2rpx 14rpx 6rpx rgba(231,228,228,.5);
padding: 36rpx 46rpx 40rpx;
}
.card .bottom .rdateStr{
font-size: 30rpx;
}
.tableInfo{
font-size: 30rpx;
}
.tableSubInfo{
font-size: 30rpx;
color:#999999;
}
.showManager{
font-size: 30rpx;
margin-top: 26rpx;
}
\ No newline at end of file
... ...
... ... @@ -46,7 +46,7 @@ Page({
} else {
url = 'detail_customer';
if (res.data.openid == opt.openid) {
//url = 'detail_owner';
url = 'detail_owner';
}
}
url+='?id='+opt.id
... ...
... ... @@ -72,7 +72,7 @@
"id": 6,
"name": "pages/customer/index",
"pathName": "pages/customer/index",
"query": "id=63"
"query": "id=64"
}
]
}
... ...
... ... @@ -40,7 +40,7 @@ function rpc(host='',act,data={},fouce=false,header={},silence=true,cachetime=0,
return new Promise((success,fail)=>{
if(true){
getCache.isCache=true;
console.log(cache_key+'->use cache',getCache);
console.log(cache_key+'\nuse cache',getCache);
success(getCache);
}else{
fail();
... ...