Commit 493ba8babe23382f73ba5ca3bf0d85d131350745

Authored by wangfan
1 parent 5ca901cf

seller

// components/book/step.js
Component({
/**
* 组件的属性列表
*/
properties: {
step:Number,
},
/**
* 组件的初始数据
*/
data: {
},
/**
* 组件的方法列表
*/
methods: {
}
})
... ...
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file
... ...
<!--components/book/step.wxml-->
<view class="flex-lr step">
<view class="flex-vc {{step>=1?'active':''}}">
<view class="cricle">1</view>
<view class="text">录入订座</view>
</view>
<view class="flex-cc">
<view class="line"></view>
<view class="line-right"></view>
</view>
<view class="flex-vc {{step>=2?'active':''}}">
<view class="cricle">2</view>
<view class="text">通知预订人</view>
</view>
<view class="flex-cc">
<view class="line"></view>
<view class="line-right"></view>
</view>
<view class="flex-vc {{step>=3?'active':''}}">
<view class="cricle">3</view>
<view class="text">到店消费</view>
</view>
</view>
... ...
/* components/book/step.wxss */
@import "../../../app.wxss";
.step{
width: 90%;
margin: 64rpx 5% 42rpx;
color:#999999;
font-size: 26rpx;
font-weight: 500rpx;
}
.step .cricle{
width:40rpx;
height: 40rpx;
border-radius: 50%;
border: 2rpx solid #999999;
font-size: 34rpx;
text-align: center;
margin-bottom: 16rpx;
}
.step .active .cricle{
background-color: #262628;
color: #FEFEFE;
}
.step .active .text{
color: #353535;
}
.line{
width: 96rpx;
border-top: 2rpx solid #E0E0E0;
}
.line-right{
width: 24rpx;
height: 24rpx;
border-top: 2rpx solid #E0E0E0;
border-right: 2rpx solid #E0E0E0;
transform: rotate(45deg);
margin-left: -24rpx;
}
... ...
... ... @@ -3,6 +3,7 @@
"navigationBarBackgroundColor": "#fff",
"navigationBarTextStyle":"black",
"usingComponents": {
"noticeCall":"/components/book/notice/notice"
"noticeCall":"/components/book/notice/notice",
"step":"/components/book/step/step"
}
}
\ No newline at end of file
... ...
<step step="2"></step>
<!--商家信息-->
<view class="flex-lr seller-info">
<view class="flex-ll">
... ... @@ -61,6 +61,7 @@
<view>{{bookInfo.cusman}}</view>
</view>
</block>
<view style="height: 160rpx;"></view>
<!--通知预订人-->
<block wx:if="{{!bookInfo.code}}">
... ...
... ... @@ -3,6 +3,7 @@
"navigationBarBackgroundColor": "#fff",
"navigationBarTextStyle":"black",
"usingComponents": {
"selectPeople":"/components/book/people/people"
"selectPeople":"/components/book/people/people",
"step":"/components/book/step/step"
}
}
\ No newline at end of file
... ...
<step step="1"></step>
<view class="other-info flex-lr">
<view class="selected-time flex-vc" bindtap="changetime">
<view class="font30r black-font">时间</view>
... ...
... ... @@ -30,7 +30,7 @@
"list": []
},
"miniprogram": {
"current": 0,
"current": 11,
"list": [
{
"id": 0,
... ... @@ -102,6 +102,13 @@
"pathName": "pages/customer/index",
"query": "",
"scene": "1001"
},
{
"id": 11,
"name": "录入订座信息 b_info",
"pathName": "pages/book/b_info",
"query": "year=2018&date=08-23&time=18:30",
"scene": "1001"
}
]
}
... ...