Pārlūkot izejas kodu

条件编译 样式bug修改

@dongkboy 3 mēneši atpakaļ
vecāks
revīzija
78bf4f1f28
2 mainītis faili ar 29 papildinājumiem un 18 dzēšanām
  1. 10 4
      pages/quote/paymentCode.vue
  2. 19 14
      pages/quote/quoteRecordDetail.vue

+ 10 - 4
pages/quote/paymentCode.vue

@@ -118,11 +118,17 @@
 				let res = await this.$http.get('/order/qrCode/getQrCode?orderNo=' + options.ordersNo)
 				if (res.code == '200') {
 					this.info = res.data;
+					let res1 = await this.$http.get('/supplementOrder/getOrderDetail?ordersNo=' + options.ordersNo);
+					if (res1.code == "200") {
+						this.insCompanyVo = res1.data.insCompanyVo[0];
+					}
+				} else {
+					uni.showToast({
+						title: res.msg,
+						icon: "none"
+					})
 				}
-				let res1 = await this.$http.get('/supplementOrder/getOrderDetail?ordersNo=' + options.ordersNo);
-				if (res1.code == "200") {
-					this.insCompanyVo = res1.data.insCompanyVo[0];
-				}
+
 
 			}
 			this.recommendCode();

+ 19 - 14
pages/quote/quoteRecordDetail.vue

@@ -373,7 +373,7 @@
 					</view>
 					<text class="feeEntry" @click="feeEntryInfoShow=true">费用信息</text>
 				</view>
-				<view class="dis a-c j-s">
+				<view class="dis a-c j-s" v-if="!isFromShare">
 					<view class="btn btns dis a-c j-c " @click="home">
 						投保其他车辆
 					</view>
@@ -381,7 +381,6 @@
 						申请核保
 					</view>
 				</view>
-
 			</view>
 		</view>
 		<!-- 系数修改弹窗 -->
@@ -623,7 +622,7 @@
 				insFeeOrders: {}, //费用信息
 				insOrderRightsInfoVo: {}, //权益信息
 				insOrderRightsInfoDto: null, //权益参数
-
+				isFromShare: null,
 			}
 		},
 		onShow() {},
@@ -641,22 +640,28 @@
 				await this.getDicType("car_type_code"); //车辆类型
 				await this.details(options.ordersNo); //详情接口
 				this.loadingShow = false;
+				const query = uni.createSelectorQuery();
+				query.select('#basicInfo').boundingClientRect((rect) => {
+					this.basicInfoHeight = rect.height; // 获取元素高度
+				}).exec();
+				query.select('#premiumFactor').boundingClientRect((rect) => {
+					this.premiumFactorHeight = rect.height; // 获取元素高度
+				}).exec()
+				query.select('#quotationScheme').boundingClientRect((rect) => {
+					this.quotationSchemeHeight = rect.height; // 获取元素高度
+				}).exec()
+				this.isFromShare = options?.from === 'share' || options?.share === 'true';
+				const systemInfo = uni.getSystemInfoSync();
+				uni.showToast({
+					title: systemInfo.uniPlatform,
+					icon: "none"
+				})
 			} catch (error) {
 				this.loadingShow = false;
 			}
 
 		},
 		async mounted() {
-			const query = uni.createSelectorQuery();
-			query.select('#basicInfo').boundingClientRect((rect) => {
-				this.basicInfoHeight = rect.height; // 获取元素高度
-			}).exec();
-			query.select('#premiumFactor').boundingClientRect((rect) => {
-				this.premiumFactorHeight = rect.height; // 获取元素高度
-			}).exec()
-			query.select('#quotationScheme').boundingClientRect((rect) => {
-				this.quotationSchemeHeight = rect.height; // 获取元素高度
-			}).exec()
 			this.doubleArrowimg = await turnBase64Image('/static/image/doubleArrow.png');
 			this.editimg = await turnBase64Image('/static/icon/edit.png')
 		},
@@ -918,7 +923,7 @@
 
 
 	.content {
-		padding: 20rpx 30rpx 166rpx;
+		padding: 20rpx 30rpx 186rpx;
 		box-sizing: border-box;
 
 		//过户信息