Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
严立
/
mini-shimao
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
8657eaab
authored
Aug 27, 2020
by
袁伟伦
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
ywl
parent
9f2c4ffd
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
3 deletions
pages/hotelAccommodation/hotelAccommodation.wxss
pages/myAppointment/myAppointment.js
pages/myAppointment/myAppointment.wxml
pages/ownerCertification/ownerCertification.wxss
pages/hotelAccommodation/hotelAccommodation.wxss
View file @
8657eaab
...
@@ -48,10 +48,19 @@
...
@@ -48,10 +48,19 @@
}
}
.form-item-nav{
.form-item-nav{
width: 120rpx;
width: 120rpx;
height: 40rpx;
line-height: 40rpx;
text-align: justify;
text-align-last: justify;
text-align-last: justify;
font-size:30rpx;
font-size:30rpx;
color:rgba(149,157,169,1);
color:rgba(149,157,169,1);
}
}
.form-item-nav::after{
content: "";
display: inline-block;
width: 100%;
height: 0;
}
.form-item-content{
.form-item-content{
width: 310rpx;
width: 310rpx;
font-size:30rpx;
font-size:30rpx;
...
...
pages/myAppointment/myAppointment.js
View file @
8657eaab
...
@@ -131,7 +131,7 @@ Page({
...
@@ -131,7 +131,7 @@ Page({
let
obj
=
{
let
obj
=
{
title
:
title
,
title
:
title
,
type
:
type
,
type
:
type
,
time
:
item
.
subscribeDate
.
substring
(
5
,
11
).
replace
(
'-'
,
'月'
).
replace
(
' '
,
'日'
)
+
((
type
==
0
)
?
' 20:00-24:00'
:
''
),
time
:
item
.
subscribeDate
.
substring
(
0
,
10
)
+
((
type
==
0
)
?
' 20:00-24:00'
:
''
),
num
:
item
.
subscribeNum
,
num
:
item
.
subscribeNum
,
url
:
url
,
url
:
url
,
id
:
item
.
id
,
id
:
item
.
id
,
...
...
pages/myAppointment/myAppointment.wxml
View file @
8657eaab
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
<image src="{{item.url}}" class="item-img"></image>
<image src="{{item.url}}" class="item-img"></image>
<view class="item-content">
<view class="item-content">
<view class="item-title {{item.type == 0 ?'item-num-1' : ''}}">{{item.title}}</view>
<view class="item-title {{item.type == 0 ?'item-num-1' : ''}}">{{item.title}}</view>
<view class="item-time {{item.type == 1 ?'item-time-1' : ''}}">预约时间 {{
item.time
}}</view>
<view class="item-time {{item.type == 1 ?'item-time-1' : ''}}">预约时间 {{
m1.getDate(item.time,item.type)
}}</view>
<view wx:if="{{item.type == 0}}" class="item-num">预约人数 {{item.num}}人</view>
<view wx:if="{{item.type == 0}}" class="item-num">预约人数 {{item.num}}人</view>
</view>
</view>
<view class="button" data-item="{{item}}" bindtap="gohotelAccommodation">预约凭证</view>
<view class="button" data-item="{{item}}" bindtap="gohotelAccommodation">预约凭证</view>
...
@@ -28,3 +28,10 @@
...
@@ -28,3 +28,10 @@
<view class="noActive-botton" data-index="2" bindtap="goAppoint">去预约</view>
<view class="noActive-botton" data-index="2" bindtap="goAppoint">去预约</view>
</view>
</view>
</view>
</view>
<wxs module = "m1">
var getDate = function(date,type){
return date.substring(5,11).replace('-','月').replace(' ','日') + ((type == 0) ? ' 20:00-24:00' : '');
}
module.exports.getDate = getDate;
</wxs>
pages/ownerCertification/ownerCertification.wxss
View file @
8657eaab
...
@@ -70,14 +70,18 @@ opacity: 0.4;
...
@@ -70,14 +70,18 @@ opacity: 0.4;
}
}
.form-item-nav{
.form-item-nav{
width: 120rpx;
width: 120rpx;
height: 80rpx;
line-height: 80rpx;
text-align:justify;
text-align:justify;
text-align-last:justify ;
text-align-last:justify ;
font-size:30rpx;
font-size:30rpx;
vertical-align: middle;
}
}
.form-item-nav::after{
.form-item-nav::after{
content: "
";
content: "";
display: inline-block;
display: inline-block;
width: 100%;
width: 100%;
height: 0;
}
}
.form-input{
.form-input{
width:510rpx;
width:510rpx;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment