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
20488053
authored
Sep 21, 2020
by
wjw
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
ww-拉取
parent
a4b6d590
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
66 additions
and
52 deletions
pages/mine/appointment/appointment.js
pages/mine/appointment/appointment.wxml
pages/mine/appointment/appointment.wxss
pages/play/service-detail/service-detail.js
pages/play/service-detail/service-detail.wxml
project.config.json
pages/mine/appointment/appointment.js
View file @
20488053
...
...
@@ -7,7 +7,7 @@ Page({
*/
data
:
{
navItem
:
[
// {content:'全部
',type:'0'},
{
content
:
'主题活动
'
,
type
:
'0'
},
{
content
:
'夜间入园预约'
,
type
:
'1'
...
...
@@ -18,8 +18,8 @@ Page({
},
],
data
:
[
// 假数据数组,type=0入园预约,type=1 看房预约
//
{title:'夜间入园预约',type:'0',time:'6月30日 20:00-24:00',num:3,url:'http://upload.miaomiao-bao.com/36acd202008141719598303.jpg'},
//
{title:'看房预约',type:'1',time:'6月30日',num:3,url:' http://upload.miaomiao-bao.com/4c644202008141702599692.jpg'},
{
title
:
'夜间入园预约'
,
type
:
'0'
,
time
:
'6月30日 20:00-24:00'
,
num
:
3
,
url
:
'http://upload.miaomiao-bao.com/36acd202008141719598303.jpg'
},
{
title
:
'看房预约'
,
type
:
'1'
,
time
:
'6月30日'
,
num
:
3
,
url
:
' http://upload.miaomiao-bao.com/4c644202008141702599692.jpg'
},
],
active
:
0
,
height
:
0
,
...
...
@@ -53,7 +53,7 @@ Page({
this
.
setData
({
height
:
wx
.
getSystemInfoSync
().
windowHeight
,
//获取屏幕的高度
})
this
.
getList
(
this
.
data
.
active
)
//
this.getList(this.data.active)
},
// 预约列表/我的预约
...
...
pages/mine/appointment/appointment.wxml
View file @
20488053
...
...
@@ -7,14 +7,21 @@
<view bindtap="chageNav" data-index="{{index}}" wx:for="{{navItem}}" wx:key="index" class="navItem {{index == active? 'active':''}}">{{item.content}}</view>
</view>
<view class="myAppointment-body">
<view class="myAppointment-item" wx:for="{{data}}" wx:key="index">
<image src="{{item.url}}" class="item-img"></image>
<view class="item-content">
<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 wx:if="{{item.type == 0}}" class="item-num">预约人数 {{item.num}}人</view>
<view class="appointment-wrapper">
<view class="appointment-time">8月15日-7月15日 10:00-12:00</view>
<view class="appointment-activity-content row">
<view class="appointment-activity-img">
<image src=""></image>
</view>
<view class="appointment-activity-info col con-a">
<view class="appointment-activity-title">
<text>日落观光游船体验活动</text>
</view>
<view class="appointment-activity-num">
<text>报名人数 3人</text>
</view>
</view>
</view>
<view class="button" data-item="{{item}}" bindtap="gohotelAccommodation">预约凭证</view>
</view>
</view>
</view>
...
...
pages/mine/appointment/appointment.wxss
View file @
20488053
...
...
@@ -73,49 +73,54 @@
margin: 0 auto;
margin-top: 64rpx;
}
.myAppointment-item {
.appointment-wrapper {
position: relative;
width: 670rpx;
height: 360rpx;
margin-top: 78rpx;
margin: auto;
margin-bottom: 50rpx;
background-color: rgb(220, 214, 220);
border-radius: 4px;
position: relative;
overflow: hidden;
padding: 24rpx 32rpx 0;
background-color: #FFFFFF;
border-radius: 4rpx;
}
.item-img {
width: 100%;
.appointment-time {
position: absolute;
height: 360rpx;
left: 0;
top: -28rpx;
height: 56rpx;
padding: 0 24rpx;
font-size: 26rpx;
color: #fff;
line-height: 56rpx;
font-weight: 600;
background-color: #000;
border-radius: 4rpx;
}
.item-content {
width: 610rpx;
height: auto;
position: absolute;
bottom: 45rpx;
left: 30rpx;
.appointment-activity-img image {
width: 140rpx;
height: 136rpx;
background-color: #ccc;
}
.
item-title
{
f
ont-size: 36rpx
;
line-height: 70
rpx;
.
appointment-activity-info
{
f
lex: 1
;
margin-left: 32
rpx;
}
.item-time {
line-height: 48rpx;
font-size: 28rpx;
color: rgb(220, 214, 220);
.appointment-activity-title {
color: #15191F;
font-size: 30rpx;
font-weight: 600;
line-height: 42rpx;
}
.
item
-num {
font-size: 28
rpx;
color:
rgb(220, 214, 220)
;
line-height: 48
rpx;
.
appointment-activity
-num {
margin-top: 16
rpx;
color:
#959DA9
;
font-size: 26
rpx;
}
/* 入园标题样式 */
.item-num-1 {
...
...
pages/play/service-detail/service-detail.js
View file @
20488053
...
...
@@ -643,7 +643,6 @@ Page({
},
success
:
function
(
response
)
{
let
funcData
=
response
.
data
console
.
log
(
funcData
.
serviceEvaluation
)
that
.
setData
({
officeServiceText
:
funcData
.
serviceEvaluation
.
toFixed
(
1
),
officeProductText
:
funcData
.
productEvaluatio
.
toFixed
(
1
),
...
...
pages/play/service-detail/service-detail.wxml
View file @
20488053
...
...
@@ -195,22 +195,19 @@
<view class="evaluate" wx:if="{{contentType === 'evaluate'}}">
<view class="evaluate-option row con-b align-c">
<view class="evaluate-option-item row align-c">
<image wx:if="{{options.id === 2}}" src="{{imageBase + 'icon/evaluate-2.png'}}"></image>
<image wx:else src="{{imageBase + 'icon/evaluate-1.png'}}"></image>
<image src="{{imageBase + 'icon/evaluate-1.png'}}"></image>
<text>服务</text>
<text>{{officeServiceText}}</text>
<text>分</text>
</view>
<view class="evaluate-option-item row align-c">
<image wx:if="{{options.id === 2}}" src="{{imageBase + 'icon/shop-2.png'}}"></image>
<image wx:else src="{{imageBase + 'icon/shop-1.png'}}"></image>
<image src="{{imageBase + 'icon/shop-1.png'}}"></image>
<text>产品</text>
<text>{{officeProductText}}</text>
<text>分</text>
</view>
<view class="evaluate-option-item row align-c">
<image wx:if="{{options.id === 2}}" src="{{imageBase + 'icon/album-2.png'}}"></image>
<image wx:else src="{{imageBase + 'icon/album-1.png'}}"></image>
<image src="{{imageBase + 'icon/album-1.png'}}"></image>
<text>环境</text>
<text>{{officeEnvironmentalText}}</text>
<text>分</text>
...
...
@@ -392,21 +389,21 @@
<view class="evaluate movie-evaluate" wx:if="{{contentType === 'evaluate'}}">
<view class="evaluate-option row con-b align-c">
<view class="evaluate-option-item row align-c">
<image src="{{imageBase + 'icon/evaluate-
1
.png'}}"></image>
<image src="{{imageBase + 'icon/evaluate-
2
.png'}}"></image>
<text>服务</text>
<text>
0.5
</text>
<text>
{{officeServiceText}}
</text>
<text>分</text>
</view>
<view class="evaluate-option-item row align-c">
<image src="{{imageBase + 'icon/shop-
1
.png'}}"></image>
<image src="{{imageBase + 'icon/shop-
2
.png'}}"></image>
<text>产品</text>
<text>
0.5
</text>
<text>
{{officeProductText}}
</text>
<text>分</text>
</view>
<view class="evaluate-option-item row align-c">
<image src="{{imageBase + 'icon/album-
1
.png'}}"></image>
<image src="{{imageBase + 'icon/album-
2
.png'}}"></image>
<text>环境</text>
<text>
0.5
</text>
<text>
{{officeEnvironmentalText}}
</text>
<text>分</text>
</view>
</view>
...
...
project.config.json
View file @
20488053
...
...
@@ -159,6 +159,12 @@
"pathName"
:
"pages/play/activity/activity"
,
"query"
:
""
,
"scene"
:
null
},
{
"id"
:
-1
,
"name"
:
"pages/mine/appointment/appointment"
,
"pathName"
:
"pages/mine/appointment/appointment"
,
"scene"
:
null
}
]
}
...
...
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