Просмотр исходного кода

APP报价详情费用信息弹窗优化展示方式

@dongkboy 4 недель назад
Родитель
Сommit
01d7520a05
3 измененных файлов с 16 добавлено и 2 удалено
  1. 2 1
      pages/quote/premiumCalc1.vue
  2. 13 1
      pages/quote/quoteRecordDetail.vue
  3. 1 0
      style/zcm-main.css

+ 2 - 1
pages/quote/premiumCalc1.vue

@@ -133,7 +133,8 @@
 								<text>¥</text>
 								<text>{{companyItem.result.costs.sumPremium}}</text>
 							</view>
-							<text class="discountedPrice">优惠 {{ companyItem.result.insFeeOrders.totalPayablePremium }}</text>
+							<text class="discountedPrice" v-if="companyItem.result.insFeeOrders">优惠
+								{{ companyItem.result.insFeeOrders.totalPayablePremium }}</text>
 						</view>
 						<!-- 右侧loading加载组件 -->
 						<lsLoading v-if="companyItem.quoteCode=='1'"></lsLoading>

+ 13 - 1
pages/quote/quoteRecordDetail.vue

@@ -376,7 +376,7 @@
 						<text>¥</text>
 						<text>{{costs.sumPremium || 0 }}</text>
 					</view>
-					<text class="feeEntry" @click="feeEntryInfoShow=true">费用信息</text>
+					<text class="feeEntry" @click="getfeeEntry">费用信息</text>
 				</view>
 				<view class="dis a-c j-s" v-if="isFromShare!='share'">
 					<view class="btn btns dis a-c j-c " @click="home">
@@ -681,6 +681,17 @@
 
 		},
 		methods: {
+			// 查看费用信息
+			getfeeEntry() {
+				if (!this.insFeeOrders) {
+					uni.showToast({
+						icon: 'none',
+						title: '没有费用信息'
+					})
+				} else {
+					this.feeEntryInfoShow = true;
+				}
+			},
 			// 选择权益
 			selectedBenefits() {
 				this.discountMethodShow = false;
@@ -1238,6 +1249,7 @@
 		.feeEntry {
 			font-size: 24rpx;
 			color: #FFAC1D;
+			cursor: pointer;
 		}
 
 		.btn {

+ 1 - 0
style/zcm-main.css

@@ -1232,6 +1232,7 @@ uni-page {
 .footer,
 .u-overlay,
 .cropper-wrapper,
+.footerfixed,
 .uni-navbar {
 	max-width: 375px;
 	margin: 0 auto;