room.html 6.9 KB
<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>房型名称</label>
				<span class="field">
					<input type="text" id="firstname2" class="longinput" 
							ng-model="room.roomName" ng-value="{{room.roomName}}" />
				</span>
			</p>
			<p>
				<label>标准价</label>
				<span class="field">
					<input type="text" id="firstname2" class="longinput" 
							ng-model="room.retailPrice" ng-value="{{room.retailPrice}}" />
				</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"
							ng-model="room.martketPrice" ng-value="{{room.martketPrice}}" />
				</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="room.integral" ng-value="{{room.integral}}" />
				</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="room.roomStock" ng-value="{{room.roomStock}}" />
				</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="room.roomFloor" ng-value="{{room.roomFloor}}" />
				</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="room.bedType" ng-value="{{room.bedType}}" />
				</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="room.roomArea" ng-value="{{room.roomArea}}" />
				</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="room.deditAmount" ng-value="{{room.deditAmount}}" />
				</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="room.deditIntegral" ng-value="{{room.deditIntegral}}" />
				</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="room.overdueDays" ng-value="{{room.overdueDays}}" />
				</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="room.overdueAmount" ng-value="{{room.overdueAmount}}" />
				</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="room.overdueIntegral" ng-value="{{room.overdueIntegral}}" />
				</span>
			</p>
			<p>
				<label>是否可住</label>
				<span class="field">
					<select ng-model="room.isOpen">
						<option value="1">可住</option>
						<option value="0">不可住</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"
                                    num="3"
                                    accept="image/jpg,image/jpeg,image/png,image/gif" 
                                    action="../fileupload/fdfsUpload"
                                    upload_product_image>
					</span>
					<span id="img_lists" ng-repeat=" roomImage in productIms ">
						<span  style="margin-left: 15px;"><img ng-src='{{roomImage}}' style='width:100px; height:100px;'><span class="delete_icon" ng-click="deleteImg(productIms,$index)"></span></span>
					</span>
				</span>
			</p>
			<p>
				<label>房型介绍</label>
				<span class="field">
					<textarea style="height: 87px;width: 748px;" ng-model="room.roomIntro" ng-value="{{room.roomIntro}}" class="longinput" >
					</textarea>
				</span>
			</p>
			<p class="stdformbutton">
				<button class="submit radius2" ng-click="update()"><span ng-if="room.roomId == ''" style="color: white;">添加</span><span ng-if="room.roomId != ''" style="color: white;">更新</span></button>
				<input type="reset" class="reset radius2" value="重置" /> &nbsp;&nbsp;&nbsp;&nbsp;
			</p>
		</form>
		<br />
	</div>
	<!--subcontent-->
</div>