Commit 44b27b049cc82999dc025b9219fd4c05d450a324

Authored by vking
1 parent 1b3d73a9

GetSellerPreferentialDocking

... ... @@ -288,4 +288,21 @@ image{
background-image: url("http://nosqn.colorcun.com/timg.gif");
width:96rpx;
height:96rpx;
}
\ No newline at end of file
}
.close-x{
width:28rpx;
height:29rpx;
background-size: 100% 100%;
background-image: url("http://nosqn.colorcun.com/sellerbaobao/close.png");
position: relative;
}
.close-x:after{
width: 120rpx;
height: 120rpx;
position: absolute;
top:-50rpx;
left:-50rpx;
content: "";
display: block;
}
... ...
// pack-book/components/book/PreferentialDocking/index.js
import util from '../../../../utils/util'
import App from '../../../../utils/api';
Component({
/**
* 组件的属性列表
*/
properties: {
sid:String,
},
/**
* 组件的初始数据
*/
data: {
hide:true,
detail:null,
},
attached(){
this.getPreferentialDocking()
},
/**
* 组件的方法列表
*/
methods: {
getPreferentialDocking(){
App.Customer.GetSellerPreferentialDocking({sid:this.data.sid}).then(res=>{
if(res.data){
this.setData({
detail:res.data,
})
}
})
},
show(){
if(!this.data.detail) return util.toast('没有优惠对接信息','none')
this.setData({
hide:false,
})
},
hide(){
this.setData({
hide:true,
})
},
call(e){
wx.makePhoneCall({
phoneNumber: util.attr(e,'phone')
})
},
}
})
... ...
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file
... ...
<!--pack-book/components/book/PreferentialDocking/index.wxml-->
<view class="mask" wx:if="{{!hide}}" bindtap="hide">
<view class="dialog" catchtap="catchtap">
<view class="header flex-lr" bindtap="hide">
<view class="close-x" style="background: none;"></view>
<view class="title">优惠对接人相关信息</view>
<view class="close-x"></view>
</view>
<view class="content">
<view class="block">
<view class="title-tip">已对接优惠</view>
<view class="infos">
<text>{{detail.preferential}}</text>
</view>
</view>
<view class="block">
<view class="title-tip">公司洽谈人</view>
<view class="infos" bindtap="call" data-phone="{{detail.negotiators_phone}}">
<view class="dot">洽谈人姓名:{{detail.negotiators}}</view>
<view class="dot">洽谈时间:{{detail.negotiators_time}}</view>
<view class="dot flex-lr">
洽谈人电话:{{detail.negotiators_phone}}
<view class="phone"></view>
</view>
</view>
</view>
<view class="block">
<view class="title-tip">餐厅优惠对接人</view>
<view class="infos" bindtap="call" data-phone="{{detail.meet_phone}}">
<view class="dot">对接人姓名:{{detail.meet_people}}</view>
<view class="dot flex-lr">
对接人电话:{{detail.meet_phone}}
<view class="phone"></view>
</view>
</view>
</view>
</view>
</view>
</view>
<view bindtap="show">
<slot></slot>
</view>
... ...
/* pack-book/components/book/PreferentialDocking/index.wxss */
@import "../../../../app.wxss";
.mask{
z-index: 99999;
}
.dialog{
width: 100%;
background: #FFFFFF;
border-radius: 40rpx 40rpx 0rpx 0rpx;
position: fixed;
bottom: 0;
box-sizing: border-box;
padding: 40rpx 40rpx 60rpx;
max-height: 1000rpx;
overflow-y: auto;
}
.header{
margin-bottom: 30rpx;
}
.title{
height: 44rpx;
font-size: 32rpx;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #353535;
line-height: 44rpx;
}
.block{
text-align: left;
padding: 30rpx 0;
border-bottom: 2rpx solid #F5F5F5;
}
.block:last-child{
border-bottom-width:0 ;
}
.title-tip{
height: 42rpx;
font-size: 30rpx;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #999999;
line-height: 42rpx;
margin-bottom: 20rpx;
}
.infos{
font-size: 28rpx;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #353535;
line-height: 50rpx;
box-sizing: border-box;
padding-left: 40rpx;
}
.infos .dot{
line-height: 50rpx;
}
.phone{
background-image: url("http://nosqn.colorcun.com/phone-h.png");
width: 41rpx;
height: 38rpx;
background-size: 100% 100%;
}
\ No newline at end of file
... ...
... ... @@ -10,6 +10,7 @@
"nav":"/components/nav/nav",
"a2l":"/components/tips/add-to-lite",
"formids":"/components/formids/formids",
"PreferentialDocking":"../../components/book/PreferentialDocking/index",
"showModal":"/components/showModal/showModal"
}
}
\ No newline at end of file
... ...
... ... @@ -209,47 +209,50 @@
<!--操作在线预订-->
<view class="notice-opt" wx:if="{{bookInfo.status==0}}">
<block wx:if="{{isAdmin}}">
<view class="notice-button-border font34r flex-lr">
<view>
<view class="notice-button-border font34r flex-lr bg-blue">
<view class="item">
<formids bindclick="easyCall" data-key="jdmans">联系接单人</formids>
</view>
<view>
<view class="item">
<formids bindclick="easyCall" data-key="seller">联系商家</formids>
</view>
<view>
<view class="item">
<formids bindclick="easyCall" data-key="customer">联系顾客</formids>
</view>
</view>
<view class="notice-button-border font34r flex-lr">
<view>
<view class="item">
<PreferentialDocking sid="{{bookInfo.sid}}">优惠对接人</PreferentialDocking>
</view>
<view class="item">
<formids bindclick="refuseOrder">拒绝订单</formids>
</view>
<view>
<view class="item">
<formids bindclick="arrangeOrder">安排包间</formids>
</view>
</view>
</block>
<block wx:elif="{{hasCallPhone}}">
<view class="notice-button-border font34r flex-lr">
<view>
<view class="notice-button-border font34r flex-lr bg-blue">
<view class="item">
<formids bindclick="arrangeOrder">安排包间</formids>
</view>
</view>
<view class="notice-button-border font34r flex-lr">
<view>
<view class="item">
<formids bindclick="refuseOrder">拒绝订单</formids>
</view>
<view>
<view class="item">
<formids bindclick="easyCall" data-key="customer">联系顾客</formids>
</view>
</view>
</block>
<block wx:else="">
<view class="notice-button-border font34r flex-lr">
<view>
<view class="notice-button-border font34r flex-lr bg-blue">
<view class="item">
<formids bindclick="refuseOrder">拒绝订单</formids>
</view>
<view>
<view class="item">
<formids bindclick="arrangeOrder">安排包间</formids>
</view>
</view>
... ...
... ... @@ -112,14 +112,14 @@ view{
margin:20rpx auto 0;
color: #199095;
}
.notice-button-border view{
.notice-button-border .item{
width: 100%;
border-right: 2rpx solid #199095;
text-align: center;
height: 50rpx;
line-height: 50rpx;
}
.notice-button-border view:last-child{
.notice-button-border .item:last-child{
border-right-width: 0;
}
.reserve-status-tip{
... ... @@ -128,7 +128,6 @@ view{
right:240rpx;
width: 82rpx;
height: 52rpx;
z-index: 2;
}
.reserve-status-tip .text{
font-weight: bold;
... ... @@ -154,4 +153,11 @@ view{
top:-30rpx;
left:0rpx;
z-index: 2;
}
\ No newline at end of file
}
.bg-blue{
background-color: #199095;
color: #FEFEFE;
}
.bg-blue .item{
border-right-color: #FEFEFE;
}
... ...
... ... @@ -18,6 +18,7 @@
"checkSiteMap": true,
"uploadWithSourceMap": true,
"useMultiFrameRuntime": false,
"useApiHook": false,
"babelSetting": {
"ignore": [],
"disablePlugins": [],
... ... @@ -72,23 +73,23 @@
}
},
"condition": {
"search": {
"plugin": {
"current": -1,
"list": []
},
"conversation": {
"current": -1,
"game": {
"currentL": -1,
"list": []
},
"plugin": {
"gamePlugin": {
"current": -1,
"list": []
},
"game": {
"currentL": -1,
"search": {
"current": -1,
"list": []
},
"gamePlugin": {
"conversation": {
"current": -1,
"list": []
},
... ... @@ -536,7 +537,7 @@
"id": 59,
"name": "pack-book/pages/book/b_detail",
"pathName": "pack-book/pages/book/b_detail",
"query": "id=105664",
"query": "id=118236",
"scene": null
},
{
... ...
... ... @@ -494,7 +494,8 @@ export default {
openid:'openid',
silence: false,
},
//获取商家优惠对接人信息
'App.Customer.GetSellerPreferentialDocking':null,
//接单人,获得商家设置的接单人列表
'App.Customer.GetReceptionists':null,
}
\ No newline at end of file
... ...