Bläddra i källkod

Merge remote-tracking branch 'origin/master'

wgl 4 år sedan
förälder
incheckning
17e5bdf259
1 ändrade filer med 37 tillägg och 5 borttagningar
  1. 37 5
      src/projects/business/views/Master/Property/Car/Apply.vue

+ 37 - 5
src/projects/business/views/Master/Property/Car/Apply.vue

@@ -43,7 +43,7 @@
 			</div>
 			</div>
 		</div>
 		</div>
 		<div class="fyy-footer"  v-if="step==1" >
 		<div class="fyy-footer"  v-if="step==1" >
-			<div class="bindfyy-btn"><button class="mui-btn mui-btn-primary " @click="submit()">提交</button></div>
+			<div class="bindfyy-btn"><button class="mui-btn mui-btn-primary " v-if="issubmit" @click="submit()">提交</button></div>
 		</div>
 		</div>
 
 
 
 
@@ -53,8 +53,26 @@
 	</header>
 	</header>
 	<div class="mui-content margin60" v-show="step==2">
 	<div class="mui-content margin60" v-show="step==2">
 		<div class="mui-content-padded">
 		<div class="mui-content-padded">
-			<img src="~$project/assets/img/02.jpg" width="100%" />
-		</div>
+
+			<div id="slider" class="mui-slider">
+				<div class="mui-slider-group">
+					<template v-for="mod in picList">
+
+						<div class="mui-slider-item"  >
+							<a>
+								<img :src="mod"   style="height: 180px">
+							</a>
+						</div>
+
+					</template>
+				</div>
+				<div class="mui-slider-indicator">
+					<template v-for="(mod,index) in picList">
+						<div class="mui-indicator" :class="index==0?'mui-active':''"></div>
+					</template>
+				</div>
+			</div>
+ 		</div>
 		<div class="vongi-meform-pho vongi-car">
 		<div class="vongi-meform-pho vongi-car">
 			<h5>车位筛选</h5>
 			<h5>车位筛选</h5>
 			<ul class="mui-table-view mui-table-view-radio flew" v-for="(cen,i) in listcen">
 			<ul class="mui-table-view mui-table-view-radio flew" v-for="(cen,i) in listcen">
@@ -115,6 +133,7 @@
 					num:'',
 					num:'',
 					unitId:'',
 					unitId:'',
 				},
 				},
+				issubmit:true,
 				carName:"请选择",
 				carName:"请选择",
 				unitName:'月',
 				unitName:'月',
 				map:null,
 				map:null,
@@ -237,7 +256,17 @@
 			getPic() {
 			getPic() {
 
 
 				API.parkingPicList().then(response => {
 				API.parkingPicList().then(response => {
- 					this.picList=response;
+ 					this.picList=response.list;
+					this.$nextTick(() => {
+						var gallery = mui('.mui-slider');
+						var slider = gallery.slider({
+							interval: 3000, //自动轮播周期,若为0则不自动播放,默认为0;
+							bounce: true //是否启用回弹
+						});
+
+
+					})
+
 				}).catch(error => {
 				}).catch(error => {
  					mui.toast(error);
  					mui.toast(error);
 				})
 				})
@@ -294,7 +323,10 @@
 					this.detail.unitId=response.unit.id;
 					this.detail.unitId=response.unit.id;
 					this.unitName=response.unit.name;
 					this.unitName=response.unit.name;
 					this.isLoading = false;
 					this.isLoading = false;
-
+					if(response.id){
+						this.issubmit=false;
+						mui.toast("您已有一条待处理的车位申请记录");
+					}
 				}).catch(error => {
 				}).catch(error => {
 					this.isLoading = false;
 					this.isLoading = false;
 					mui.toast(error);
 					mui.toast(error);