Commit 6508e3a7650155b37dec162af55dc30ad375bfff

Authored by yiren
1 parent 5a205caf

客户经理字段修改及样式修改

... ... @@ -14,6 +14,7 @@ Page({
},
tableNum:0,
detail:{},
staffinfo:{},
between: false,
is_display:true,
id: null,
... ... @@ -77,21 +78,25 @@ Page({
onShow: function () {
},
cli() {
wx.setClipboardData({
data: this.data.reserve.manager_wechat,
success(res) {
wx.getClipboardData({
success(res) {
console.log(res.data) // data
}
})
}
})
if(this.data.staffinfo.wechat){
wx.setClipboardData({
data: this.data.staffinfo.wechat,
success(res) {
wx.getClipboardData({
success(res) {
console.log(res.data) // data
}
})
}
})
}else{
console.log('无微信号')
}
},
call() {
wx.reportMonitor('1012', 1)
wx.makePhoneCall({
phoneNumber: this.data.reserve.manager_phone
phoneNumber: this.data.staffinfo.phone
})
},
looklocation: function () {
... ... @@ -163,11 +168,26 @@ Page({
console.log('reserevreserevreserevreserevreserev',reserev);
console.log('sellersellersellerseller',this.data.seller);
console.log('detaildetaildetaildetail',this.data.detail);
this.getSellerTemplateConfFun(reserev.sid);
setTimeout(() => {
this.getSellerTemplateConfFun(reserev.sid);
this.getstaffinfo(res.data.uid)
}, 0);
}).catch(res=>{
console.log(res,'详情请求失败');
})
},
getstaffinfo(uid){
console.log('Baseinfo__uid',uid);
console.log('sellerid',this.data.detail.seller.id);
App.Activity.GetCustomerActivityBaseinfo({sellerid:this.data.detail.seller.id,uid}).then((json)=>{
if(json.ret==200){
console.log('staffinfostaffinfostaffinfo',json.data)
this.setData({
staffinfo:json.data
})
}
})
},
cookbook() {
if (this.data.detail.order && this.data.detail.order.cookbooklist.length > 0) {
wx.navigateTo({
... ...
... ... @@ -47,16 +47,16 @@
<view class="welcome">
欢迎垂询,恭候光临!
</view>
<block wx:if="{{detail.sid!='677' && reserve && reserve.swich_manager=='1' && reserve.manager_phone && reserve.manager_wechat}}">
<block wx:if="{{detail.sid!='677' && staffinfo && reserve.swich_manager=='1'}}">
<view class="handleInfo">
<image wx:if="{{reserve && reserve.manager_image}}" src="{{reserve.manager_image}}" class="headerimg" mode="aspectFill"></image>
<view class="handle">
<text>专属服务:{{reserve.manager_phone}}</text>
<text>服务电话:{{reserve.manager_wechat}}</text>
<image wx:if="{{staffinfo && staffinfo.photo}}" src="{{staffinfo.photo}}" class="headerimg" mode="aspectFill"></image>
<view class="handle handlePhone">
<view>专属服务:{{staffinfo.name}}</view>
<view>服务电话:{{staffinfo.phone}}</view>
</view>
<view class="handle">
<view class="font22r brownFont" bindtap="call">拨打电话</view>
<view class="font22r brownFont" bindtap="cli">复制微信号</view>
<view wx:if="{{staffinfo.phone}}" class="font22r brownFont" bindtap="call">拨打电话</view>
<view wx:if="{{staffinfo.wechat}}" class="font22r brownFont" bindtap="cli">复制微信号</view>
</view>
</view>
</block>
... ... @@ -91,7 +91,7 @@
<view class="shopName">
{{seller.name?seller.name:reserve .seller_name}}
</view>
<view class="labelBox">
<view class="labelBox labelBox2">
<view class="line">
</view>
<text class="label">{{store.introduce}}
... ... @@ -132,10 +132,10 @@
<view class="shopName">
{{chef.chef_name}}
</view>
<view class="labelBox labelBox1">
<view class="labelBox labelBox2">
<text class="label" >{{chef.introduce}}
</text>
<view class="line">
<view class="line line1">
</view>
</view>
</view>
... ...
... ... @@ -157,8 +157,12 @@
font-family: PingFang SC;
font-weight: 500;
font-size: 24rpx;
height: 110rpx;
justify-content: space-between;
}
.handlePhone{
height: 100rpx;
}
.brownFont {
padding: 4rpx 16rpx;
color: #0143A3;
... ... @@ -168,13 +172,15 @@
}
.brownFont:nth-of-type(1) {
margin-bottom: 30rpx;
margin-bottom: 22rpx;
}
.handle text {
margin-bottom: 20rpx;
}
.handle text:nth-of-type(2){
margin-bottom: 0;
}
.positioning {
margin: 16rpx 26rpx;
display: flex;
... ... @@ -269,7 +275,7 @@
color: #ffffff;
font-family: FangSong;
font-size: 20rpx;
height: 400rpx;
max-height: 400rpx;
overflow: hidden;
white-space: pre-line;
word-wrap: break-word;
... ... @@ -279,8 +285,11 @@
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 10;
padding-left: 20rpx;
}
.labelBox2 .label {
height: 400rpx;
}
.labelBox .styleLabel {
color: #999999;
}
... ... @@ -296,7 +305,9 @@
.labelBox1 .line {
margin: 0 0 0 16rpx;
}
.labelBox .line1{
margin: 0 0 0 16rpx;
}
.IntroductionItems image {
width: 100%;
display: block;
... ...