Commit 8cb7d1fec3f61c547e788ea1f4322f150fdb3072

Authored by wangfan
1 parent d777cb35

ui fix

... ... @@ -21,6 +21,7 @@
"pages/book/setting/index",
"pages/book/setting/sms",
"pages/book/setting/sms_buy",
"pages/book/crm/index",
"pages/book/smsbatch/index",
"pages/book/smsbatch/update",
"pages/book/smsbatch/detail",
... ...
<formids bindtap="detail">
<view class="book-list-tds flex-lr font30r black-font">
<view class="book-list-tds flex-lr font30r black-font reserve-status-{{vitem.status}}">
<view class="book-list-td flex-vc">
<view class="Medium" style="font-size: 30rpx; width: 100%;text-align: left;max-height:40px;overflow:hidden;">{{vitem.name}}</view>
<view class="Medium" style="font-size: 28rpx;width: 100%;text-align: left" wx:if="{{vitem.table_ids.length>1}}">等{{vitem.table_ids.length}}桌</view>
... ...
... ... @@ -13,4 +13,10 @@
.book-list-info{
width:100%;
line-height:1.2;
}
.reserve-status-4{
color:#999999;
}
.reserve-status-4 .green-font{
color:#999999;
}
\ No newline at end of file
... ...
... ... @@ -9,6 +9,9 @@
<view class="gray-deep-font font30r">用餐人数</view>
<view class="black-font font34r">{{bookInfo.pnum_str||bookInfo.pnum}}人</view>
</view>
<view class="reserve-status-tip">
<image src="http://qn.colorcun.com/custom/lite-yd/image/reserve-status-{{bookInfo.status}}.png"></image>
</view>
<view class="flex-lr order-detail">
<view class="gray-deep-font font30r">预定座位</view>
<view class="black-font font34r">{{tables.length}}个</view>
... ...
... ... @@ -121,3 +121,14 @@ view{
.notice-button-border view:last-child{
border-right-width: 0;
}
.reserve-status-tip{
position: absolute;
top:300rpx;
right:200rpx;
width: 82rpx;
height: 52rpx;
}
.reserve-status-tip image{
width: 100%;
height: 100%;
}
\ No newline at end of file
... ...
// pages/book/setting/index.js
import util from '../../../utils/util';
import App from '../../../utils/api';
const {regeneratorRuntime} = global
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
enter_params:{},
onLoad: function (options) {
this.enter_params=util.cache('enter_params');
App.Reserve.SellerInfo(this.enter_params).then(res=>{
this.setData({
seller:res.data.seller,
user:res.data.seller_user
})
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
App.Reserve.SmsInfo({seller_id:this.enter_params.seller_id}).then(res=>{
if(res.ret==404){
res.data={
last_num:100,
meals:[
{id:1,total:550,price_ave:0.09,price_old:50,price:50,discount:0},
{id:2,total:1200,price_ave:0.083,price_old:100,price:100,discount:0},
{id:3,total:3650,price_ave:0.082,price_old:328,price:300,discount:9.1},
],
};
}
this.setData({
sms:res.data,
})
})
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
})
\ No newline at end of file
... ...
{
"backgroundTextStyle":"light",
"navigationBarBackgroundColor": "#fff",
"navigationBarTextStyle":"light",
"usingComponents": {
"nav":"/components/nav/nav",
"tabBar":"/components/book/tabBar/tabBar",
"formids":"/components/formids/formids"
}
}
\ No newline at end of file
... ...
<!--pages/book/setting/index.wxml-->
<nav id="nav" backgroundColor="#199095" color="#fefefe">我的客户</nav>
<view class="page">
<formids url="/pages/book/setting/sms">
<view class="row flex-lr">
<view>短信管理</view>
<view class="flex-rr">
<view class="right lastNum">剩余{{sms.last_num||0}}条</view>
<view class="more"></view>
</view>
</view>
</formids>
<formids url="/pages/book/smsbatch/index">
<view class="row flex-lr" style="padding-top: 34rpx;">
<view>短信营销</view>
<view class="flex-rr">
<view class="more"></view>
</view>
</view>
</formids>
<formids url="/pages/book/crm/index">
<view class="row flex-lr" style="padding-top: 34rpx;">
<view>我的客户</view>
<view class="flex-rr">
<view class="more"></view>
</view>
</view>
</formids>
<formids url="/pages/customer/index?islove=customer">
<view class="row flex-lr" style="padding-top: 34rpx;">
<view>切换到顾客模式</view>
<view class="flex-rr">
<view class="more"></view>
</view>
</view>
</formids>
</view>
<tabBar></tabBar>
... ...
/* pages/book/setting/index.wxss */
/*
http://qn.colorcun.com/custom/lite-yd/image/icon-zk.png
http://qn.colorcun.com/custom/lite-yd/image/icon-cz.png
*/
.header{
height: 302rpx;
background-color: #199095;
margin-top: -2rpx;
}
.header .info{
color:#FEFEFE;
width: 90%;
padding-top: 86rpx;
margin: 0 auto;
}
.header .info .nick{
font-size: 44rpx;
font-weight: bold;
margin-bottom: 28rpx;
}
.header .info .seller{
font-size: 34rpx;
}
.page{
width: 90%;
margin: 0 auto;
color: #353535;
padding-top: 34rpx;
}
.row{
font-size: 34rpx;
height: 106rpx;
border-bottom: 2rpx solid #F1F0F4;
}
.row .right{
font-size: 30rpx;
color:#999999;
}
.row .more{
margin-left: 20rpx;
}
\ No newline at end of file
... ...
... ... @@ -3,7 +3,7 @@
<view class="header">
<view class="info">
<view class="nick">{{user.nickname}}</view>
<view class="seller Medium">{{seller.sellername}} | {{user.role_name}}</view>
<view class="seller Medium">{{seller.sellername}} | {{user.role_name||''}}</view>
</view>
</view>
<view class="page">
... ... @@ -24,6 +24,14 @@
</view>
</view>
</formids>
<formids url="/pages/book/crm/index">
<view class="row flex-lr" style="padding-top: 34rpx;">
<view>我的客户</view>
<view class="flex-rr">
<view class="more"></view>
</view>
</view>
</formids>
<formids url="/pages/customer/index?islove=customer">
<view class="row flex-lr" style="padding-top: 34rpx;">
<view>切换到顾客模式</view>
... ...