浏览代码

样式修改

twt 2 年之前
父节点
当前提交
a6f25cb67c

+ 8 - 2
pages/index/confirmYuyue.vue

@@ -9,7 +9,7 @@
 			  <view class="kklineLeft">
 			  	<span class="stars">*</span> <span>预约门店</span>
 			  </view>
-			  <view class="kklineRight">连锁一号</view>
+			  <view class="kklineRight">{{yyshopInfo.shopName}}</view>
 		  </view>
 		  <view class="kkline">
 			  <view class="kklineLeft">
@@ -79,6 +79,7 @@
 				billDate:'',
 				yuyueData:'',
 				carInfo:'',
+				yyshopInfo:'',
 			}
 		},
 		onLoad() {
@@ -86,6 +87,7 @@
 			this.yuyueData=this.$store.state.yuyueData;
 			this.carInfo=this.$store.state.carInfo
 			this.userInfo = uni.getStorageSync("userInfo");
+			this.yyshopInfo=uni.getStorageSync("yyshopInfo")
 			//this.getOrderTimes()
 		},
 		
@@ -104,9 +106,10 @@
 				  comment: this.comment,
 				  carID: this.carInfo.id,
 				  orderItem: this.yuyueData.map(item => item.ID).join(),
-				  shopId: this.userInfo.shopId,
+				  shopId: this.yyshopInfo.id,
 				  unionId: this.userInfo.unionId
 				 },'POST').then(res => {
+					    var id=res.data
 						if(res.code==0){
 							uni.showModal({
 							    title: '提示',
@@ -121,6 +124,9 @@
 									   })
 							        } else if (res.cancel) {
 							           // console.log('用户点击取消');
+									   uni.reLaunch({
+										   url:'../user/bespeakDetail?id='+id
+									   })
 							        }
 							    }
 							});

+ 3 - 4
pages/index/index.vue

@@ -21,7 +21,6 @@
 		  </view>
 		</view>
 		<view class="shoptopbox"  v-if="carInfo">
-		
 		  <view class="carinfoBox" >
 		      <view class="carinfoBoxTop">
 		        <img :src="carInfo.brandLogo" alt="" class="carLogo" v-if="carInfo.brandLogo">
@@ -59,7 +58,7 @@
 		</view>
 		
 		<!-- 服务顾问 -->
-		<view class="adviser" v-if="homeCardList.openMUsers" @click="goRoter">
+		<view class="adviser" v-if="homeCardList.openMUsers.showType==1" @click="goRoter">
 			<view class="adviserLeft">
 				<img src="../../static/timg/pic_def_ava@2x.png" alt="" class="advisertx">
 				<view class="adviserNema">{{homeCardList.openMUsers.operatorName}}</view>
@@ -466,7 +465,7 @@
 	}
 	.topBox{
 		width: 750rpx;
-		height: 200rpx;
+		height: 150rpx;
 		background: #D53533;
 	}
 	.yuanhu{
@@ -588,7 +587,7 @@
 			padding-left: 24rpx;
 	}
 	.shoptopbox{
-		margin-top: -200rpx;
+		margin-top: -170rpx;
 	}
 	.shoptopbox2{
 		margin-top: -170rpx;

+ 7 - 5
pages/index/onlineBooking.vue

@@ -22,7 +22,7 @@
 				</swiper>
 			</view>
 			<!-- 门店详情 -->
-			<view class="newshopNames">
+			<view class="newshopNames" v-if="shopInfo">
 			  <view class="newshopDstop">
 			    <view class="newshopDname">{{shopInfo.shopName}}</view>
 			    <view class="newshopDtime">
@@ -36,9 +36,9 @@
 			    <view class="newshopDaleft">
 			      <view class="newshopDaleftTop">
 			        <img src="../../static/timg/icon_coordinate@2x.png" alt="" class="shopaddressIcon">
-			        <span class="shopDdistance" v-if="Number(shopInfo.distance)>1">距离{{shopInfo.distance}}km</span>
+			       <!-- <span class="shopDdistance" v-if="Number(shopInfo.distance)>1">距离{{shopInfo.distance}}km</span>
 			        <span class="shopDdistance" v-else-if="Number(shopInfo.distance)">距离{{shopInfo.distance*1000}}m</span>
-			        <span class="shopDdistance" v-else>距离--km</span>
+			        <span class="shopDdistance" v-else>距离--km</span> -->
 			      </view>
 			      <view class="newshopDadressName">{{shopInfo.address}}</view>
 			    </view>
@@ -97,7 +97,7 @@
 	    <view href="javascript:;" class=" newbottom-container-button" @click="yuyue">立即预约</view>
 	  </view>
 	  
-	  <view class="yydetailBox" v-show="yydetailShow" @click="yydetailShow=false">
+	  <view class="yydetailBox" v-if="yydetailShow" @click="yydetailShow=false">
 	    <view class="yyDetailTop" @click.stop="">
 	      <view class="yyDetailTopleft">清单</view>
 	      <view class="yyDetailTopRight">
@@ -232,7 +232,9 @@
 				
 			},
 			phones(){
-				
+				uni.makePhoneCall({
+					phoneNumber: this.shopInfo.contactorPhone
+				});
 			},
 			listItemWxInfo(item,index){
 				console.log(item)

+ 2 - 1
pages/shop/shop.vue

@@ -48,7 +48,8 @@
 	   		<view class="goodsBox">
 	   			<view class="hotGoodsLine" v-for="(item,index) in list" @click="goDetail(item)">
 	   				<view>
-	   					<image :src="item.url" mode="" @error="defImg()" class="hotGoodsLineImg"></image>
+	   					<image :src="item.url" v-if="item.url" mode="" @error="defImg()" class="hotGoodsLineImg"></image>
+						<image v-else src="../../static/timg/noimg.png" mode="" class="hotGoodsLineImg"></image>
 	   				</view>
 	   				<view class="hotGoodsLineRIght">
 	   					<view class="goodsName">{{item.name}}</view>

+ 1 - 1
pages/user/addCar/addCar.vue

@@ -320,7 +320,7 @@
 								    	uni.navigateBack({
 								    
 								    	})
-								    }, 3000);
+								    }, 1000);
 								 
 								 }
 							}); 

+ 2 - 2
pages/user/addCar/cailist.vue

@@ -15,8 +15,8 @@
 					</view>
 				</view>
 				<view class="lineBottom">
-					<view class="lineDel" @click.stop="maintain(item.id)">编辑</view>
-					<view class="lineDel" @click.stop="delCar(item.id)">保养信息</view>
+					<view class="lineDel" @click.stop="editCar(item.id)">编辑</view>
+					<view class="lineDel" @click.stop="maintain(item.id)">保养信息</view>
 					<!-- <view class="Default" v-show="item.isDefault!=1" @click.stop="defaultCar(item)">设为默认</view>
 					<view class="DefaultYES" v-show="item.isDefault==1">已设为默认</view> -->
 				</view>

+ 1 - 1
pages/user/user.vue

@@ -253,7 +253,7 @@
 			},
 			call() {
 				uni.makePhoneCall({
-					phoneNumber: this.userInfo.mobilePhone
+					phoneNumber: this.numList.shopInfo.contactorPhone
 				});
 			},
 			goorder(num) {