Commit 6d2687ca3263ef2a030c83ddb2653ef29107a260

Authored by wangfan
1 parent 03d12fdd

customer

... ... @@ -204,4 +204,11 @@ image{
}
.border-right{
border-right:1px solid #efeef3;
}
.font-bold,.Semibold{
font-weight:bold;
}
.Medium{
font-weight: 400;
}
\ No newline at end of file
... ...
... ... @@ -9,4 +9,5 @@
line-height: inherit;
-webkit-tap-highlight-color: transparent;
color: inherit;
width:100%;
}
\ No newline at end of file
... ...
// pages/customer/detail_owner.js
import util from '../../utils/util';
import App from '../../utils/api';
const {regeneratorRuntime} = global
Page({
/**
* 页面的初始数据
*/
data: {
detail:null,
},
id:null,
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
this.id=options.id;
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
App.Reserve.Detail({
openid: getApp().openid,
rid: this.id
}).then(res => {
this.setData({
detail:this.formatDatail(res.data)
})
})
},
/**
... ... @@ -62,5 +72,14 @@ Page({
*/
onShareAppMessage: function () {
},
formatDatail(detail){
detail.rdateStr=util.unixtoTime(detail.rdate,'MM月DD日 WW HH:II');
detail.tableFirst=detail.tables[0].name;
if(detail.tables.length>1){
detail.tableSubInfo='等'+(detail.tables.length)+'个'
+(detail.tables[0].tid==2?'包间':'');
}
return detail;
}
})
\ No newline at end of file
... ...
{
"navigationBarBackgroundColor": "#ffffff",
"navigationBarTextStyle": "black",
"navigationBarTitleText":"订座详情"
"navigationBarTitleText":"订座详情",
"usingComponents": {
"userinfo": "/components/userinfo/userinfo"
}
}
\ No newline at end of file
... ...
<!--pages/customer/detail_owner.wxml-->
<text>pages/customer/detail_owner.wxml</text>
<view class="page">
<view class="flex-vc success">
<view class="icon">
<image src="http://qn.colorcun.com/custom/lite-yd/image/success-ok.png"></image>
</view>
<view class="title Medium">订座成功</view>
<view class="info">你可以将订座信息发送给朋友,邀请朋友参加</view>
</view>
<userinfo binduserinfo="userinfo" class="share-but-view">
<view class="share-but Regular">去邀请</view>
</userinfo>
<view class="seller flex-lr">
<view class="avatar">
<image src="{{detail.seller.seller_image}}"></image>
</view>
<view class="seller-info">
<view class="name Medium">{{detail.seller.sellername}}</view>
<view class="addr">{{detail.seller.map_address}}</view>
</view>
<view class="addr-icon">
<image src="../image/gps-icon.png"></image>
</view>
</view>
<view class="hr" style="margin-top: 52rpx;margin-bottom: 48rpx;"></view>
<view class="detail-info Medium">
<view class="flex-lr">
<view>用餐时间</view>
<view class="detail-info-right">{{detail.rdateStr}}</view>
</view>
<view class="flex-lr" style="margin-top: 43rpx;">
<view>预定座位</view>
<view class="detail-info-right">{{detail.tableFirst}}
<text class="tableSubInfo">{{detail.tableSubInfo}}</text>
</view>
</view>
<view class="flex-lr" style="margin-top: 43rpx;">
<view>用餐人数</view>
<view class="detail-info-right">{{detail.pnum}}人</view>
</view>
<view class="flex-lr" wx:if="{{detail.cusman}}" style="margin-top: 43rpx;">
<view>客户经理</view>
<view class="detail-info-right">{{detail.cusman||''}}</view>
</view>
<view class="flex-lr" wx:if="{{detail.cusman}}" style="margin-top: 24rpx;">
<view></view>
<view class="detail-info-right">联系客户经理</view>
</view>
</view>
<view class="hr" style="margin-top: 56rpx;margin-bottom: 50rpx;"></view>
<view class="detail-info Medium" style="line-height: 48rpx; margin-bottom: 80rpx;">
<view class="flex-lr">
<view>预 定 人</view>
<view class="detail-info-right">{{detail.rname}}</view>
</view>
<view class="flex-lr" wx:if="{{detail.phone}}">
<view>手机号码</view>
<view class="detail-info-right">{{detail.phone}}</view>
</view>
<view class="flex-lr" wx:if="{{detail.cusdem}}">
<view>备注信息</view>
<view class="detail-info-right">{{detail.cusdem}}</view>
</view>
</view>
</view>
... ...
... ... @@ -2,4 +2,79 @@
page{
width: 94%;
margin: 0 3%;
color:#353535;
}
.success image{
width: 100%;
height: 100%;
}
.success .icon{
width: 120rpx;
height: 120rpx;
margin-top: 10rpx;
}
.success .title{
font-size: 36rpx;
margin-top: 32rpx;
margin-bottom: 26rpx;
}
.success .info{
font-size: 26rpx;
color:#999999
}
.share-but-view{
margin-top: 76rpx;
margin-bottom: 96rpx;
display: block;
}
.share-but{
color:#FEFEFE;
background: #262628;
width: 100%;
line-height: 80rpx;
font-size: 34rpx;
text-align: center;
}
.seller{
height: 84rpx;
}
.seller .avatar{
min-width: 60rpx;
width: 60rpx;
height: 60rpx;
background: #ccc;
}
.seller image{
width:100%;
height: 100%;
}
.seller .seller-info{
width: 60rpx;
height: 84rpx;
width:100%;
padding: 0 14rpx;
}
.seller .addr-icon{
min-width: 32rpx;
width: 32rpx;
height: 34rpx;
}
.seller .name{
font-size: 30rpx;
}
.seller .addr{
font-size: 26rpx;
}
.hr{
border-top: 2rpx solid #F1F0F4;
}
.detail-info{
font-size: 30rpx;
}
.detail-info .detail-info-right{
font-size: 34rpx;
}
.tableSubInfo{
font-size: 30rpx;
color:#ccc;
}
\ No newline at end of file
... ...
... ... @@ -32,14 +32,14 @@ Page({
}
let url = 'list';
App.Reserve.SetRelaOpenid({
id:opt.id,
rid:opt.id,
openid:opt.openid,
fromid:opt.fromid?opt.fromid:''
})
if (opt.id > 0) {
App.Reserve.Detail({
openid: opt.openid,
id: opt.id
rid: opt.id
}).then(res => {
if (!res.owner_openid) {//无预订人
url = 'detail_owner';
... ...
... ... @@ -69,10 +69,10 @@
"query": ""
},
{
"id": -1,
"id": 6,
"name": "pages/customer/index",
"pathName": "pages/customer/index",
"query": "id=61"
"query": "id=62"
}
]
}
... ...
... ... @@ -46,13 +46,13 @@ function unixtoTime(ns,format) {
result=result.replace('SS',ss>9?ss:'0'+ss);
var week;
switch (time.getDay()) {
case 0:week="星期天";break
case 1:week="星期一";break
case 2:week="星期二";break
case 3:week="星期三";break
case 4:week="星期四";break
case 5:week="星期五";break
case 6:week="星期六";break
case 0:week="周日";break
case 1:week="周一";break
case 2:week="周二";break
case 3:week="周三";break
case 4:week="周四";break
case 5:week="周五";break
case 6:week="周六";break
}
result=result.replace('WW',week);
return result;
... ...