hotel.html
6.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
<script>
$(function (){
$(".hasDatepicker1").jcDate({
IcoClass : "jcDateIco",
Event : "click",
Speed : 100,
Left : 0,
Top : 28,
format : "-",
Timeout : 100
});
});
</script>
<div class="pageheader notab">
<h1 class="pagetitle">客栈详情</h1>
<span class="pagedesc">添加修改客栈信息</span>
</div>
<!--pageheader-->
<div id="contentwrapper" class="contentwrapper">
<div id="basicform" class="subcontent">
<div class="contenttitle2">
<h3>客栈表单</h3>
</div>
<!--contenttitle-->
<form class="stdform stdform2" method="post" action="javascript:void(0);">
<p>
<input type="hidden" ng-value="{{hotel.hotelId}}"/>
<label>客栈名称<span style="color: red;font-style: inherit;padding-left: 5px">(客栈名称)</span></label>
<span class="field">
<input type="text" id="firstname2" class="longinput"
ng-model="hotel.hotelName" ng-value="{{hotel.hotelName}}" />
</span>
</p>
<p>
<label>客栈简介<span style="color: red;font-style: inherit;padding-left: 5px">(输入文字描述)</span></label>
<span class="field">
<input type="text" id="firstname2" class="longinput"
ng-model="hotel.shortName" ng-value="{{hotel.shortName}}" />
</span>
</p>
<p>
<label>开业时间<span style="color: red;font-style: inherit;padding-left: 5px">(选择时间)</span></label>
<span class="field">
<input type="text" id="openTime" class="longinput hasDatepicker1"
ng-model="hotel.openTime" ng-value="{{hotel.openTime|date:'yyyy-MM-dd'}}" />
</span>
</p>
<p>
<label>客栈设施<span style="color: red;font-style: inherit;padding-left: 5px">(输入简短文字)</span></label>
<span class="field">
<input type="text" id="firstname2" class="longinput"
ng-model="hotel.roomEquipment" ng-value="{{hotel.roomEquipment}}" />
</span>
</p>
<p>
<label>客栈服务<span style="color: red;font-style: inherit;padding-left: 5px">(输入简短文字)</span></label>
<span class="field">
<input type="text" id="firstname2" class="longinput"
ng-model="hotel.hotelService" ng-value="{{hotel.hotelService}}" />
</span>
</p>
<p>
<label>入住时间<span style="color: red;font-style: inherit;padding-left: 5px">(输入文字描述)</span></label>
<span class="field">
<input type="text" id="firstname2" class="longinput"
ng-model="hotel.checkInTime" ng-value="{{hotel.checkInTime}}" />
</span>
</p>
<p>
<label>退房时间<span style="color: red;font-style: inherit;padding-left: 5px">(输入文字描述)</span></label>
<span class="field">
<input type="text" id="firstname2" class="longinput"
ng-model="hotel.checkOutTime" ng-value="{{hotel.checkOutTime}}" />
</span>
</p>
<p>
<label>客栈地址<span style="color: red;font-style: inherit;padding-left: 5px">(输入文字描述)</span></label>
<span class="field">
<input type="text" id="firstname2" class="longinput"
ng-model="hotel.hotelAddress" ng-value="{{hotel.hotelAddress}}" />
</span>
</p>
<p>
<label>客栈联系电话</label>
<span class="field">
<input type="text" id="firstname2" class="longinput"
ng-model="hotel.hotelTelphone" ng-value="{{hotel.hotelTelphone}}" />
</span>
</p>
<p>
<label>客栈等级</label>
<span class="field">
<select ng-model="hotel.hotelStar">
<option value="1">★</option>
<option value="2">★★</option>
<option value="3">★★★</option>
<option value="4">★★★★</option>
<option value="5">★★★★★</option>
</select>
</span>
</p>
<p>
<label>客栈缩略图<span style="color: red;font-style: inherit;padding-left: 5px">(仅上传一张图片)</span></label>
<span class="field">
<span class="weui_uploader_input_wrp">
<input style="height: 100%;"
class="weui_uploader_input"
type="file"
name="attachs"
num="1"
accept="image/jpg,image/jpeg,image/png,image/gif"
action="../fileupload/fdfsUpload"
upload_thumb_image>
</span>
<span id="img_lists" ng-repeat=" image in imageUrls ">
<span style="margin-left: 15px;"><img ng-src='{{image}}' style='width:100px; height:100px;'><span class="delete_icon" ng-click="deleteImg(imageUrls,$index)"></span></span>
</span>
</span>
</p>
<p>
<label>客栈图片<span style="color: red;font-style: inherit;padding-left: 5px">(最多上传五张图片)</span></label>
<span class="field">
<span class="weui_uploader_input_wrp">
<input style="height: 100%;"
class="weui_uploader_input"
type="file"
name="attachs"
accept="image/jpg,image/jpeg,image/png,image/gif"
action="../fileupload/fdfsUpload"
upload-image>
</span>
<span id="img_lists" ng-repeat=" hotelImage in hotel.hotelImgs track by $index">
<span ng-if="hotelImage.imageUrl !=''" id="{{hotelImage.imageId}}" style="margin-left: 15px;"><img ng-src='{{hotelImage.imageUrl}}' style='width:100px; height:100px;'><span class="delete_icon" ng-click="deleteImg(hotel.hotelImgs,$index)"></span></span>
</span>
</span>
</p>
<p>
<label>客栈介绍<span style="color: red;font-style: inherit;padding-left: 5px">(输入文字描述)</span></label>
<span class="field">
<textarea style="height: 87px;width: 748px;" ng-model="hotel.intro" ng-value="{{hotel.intro}}" class="longinput" >
</textarea>
</span>
</p>
<p class="stdformbutton">
<button class="submit radius2" ng-click="update()"><span ng-if="hotel.hotelId == ''" style="color: white;">添加</span><span ng-if="hotel.hotelId != ''" style="color: white;">更新</span></button>
<input type="reset" class="reset radius2" value="重置" />
</p>
</form>
<br />
</div>
<!--subcontent-->
</div>