Pārlūkot izejas kodu

解决驾意险无法拖动问题

@dongkboy 1 gadu atpakaļ
vecāks
revīzija
fc9c24cf24

+ 2 - 2
manifest.json

@@ -7,8 +7,8 @@
 		"sizes": "分辨率,192x192",
 		"src": "图片路径"
 	}],
-	"versionName": "1.0.177",
-	"versionCode": 177,
+	"versionName": "1.0.179",
+	"versionCode": 179,
 	"app-plus": {
 		"error": {
 			"url": "hybrid/html/error.html"

+ 18 - 7
node_modules/uview-ui/components/u-modal/u-modal.vue

@@ -1,22 +1,26 @@
 <template>
 	<view>
 		<u-popup :zoom="zoom" mode="center" :popup="false" :z-index="uZIndex" v-model="value" :length="width"
-		 :mask-close-able="maskCloseAble" :border-radius="borderRadius" @close="popupClose" :negative-top="negativeTop">
+			:mask-close-able="maskCloseAble" :border-radius="borderRadius" @close="popupClose"
+			:negative-top="negativeTop">
 			<view class="u-model">
 				<view v-if="showTitle" class="u-model__title u-line-1" :style="[titleStyle]">{{ title }}</view>
 				<view class="u-model__content">
 					<view :style="[contentStyle]" v-if="$slots.default  || $slots.$default">
-						<slot />
+						<scroll-view scroll-y="true" :style="scrollHeight">
+							<slot />
+						</scroll-view>
 					</view>
 					<view v-else class="u-model__content__message" :style="[contentStyle]">{{ content }}</view>
 				</view>
 				<view class="u-model__footer u-border-top" v-if="showCancelButton || showConfirmButton">
-					<view v-if="showCancelButton" :hover-stay-time="100" hover-class="u-model__btn--hover" class="u-model__footer__button"
-					 :style="[cancelBtnStyle]" @tap="cancel">
+					<view v-if="showCancelButton" :hover-stay-time="100" hover-class="u-model__btn--hover"
+						class="u-model__footer__button" :style="[cancelBtnStyle]" @tap="cancel">
 						{{cancelText}}
 					</view>
-					<view v-if="showConfirmButton || $slots['confirm-button']" :hover-stay-time="100" :hover-class="asyncClose ? 'none' : 'u-model__btn--hover'"
-					 class="u-model__footer__button hairline-left" :style="[confirmBtnStyle]" @tap="confirm">
+					<view v-if="showConfirmButton || $slots['confirm-button']" :hover-stay-time="100"
+						:hover-class="asyncClose ? 'none' : 'u-model__btn--hover'"
+						class="u-model__footer__button hairline-left" :style="[confirmBtnStyle]" @tap="confirm">
 						<slot v-if="$slots['confirm-button']" name="confirm-button"></slot>
 						<block v-else>
 							<u-loading mode="circle" :color="confirmColor" v-if="loading"></u-loading>
@@ -74,6 +78,7 @@
 				type: [Number, String],
 				default: ''
 			},
+
 			// 标题
 			title: {
 				type: [String],
@@ -129,6 +134,12 @@
 				type: [Number, String],
 				default: 16
 			},
+			scrollHeight: {
+				type: Object,
+				default () {
+					return {}
+				}
+			},
 			// 标题的样式
 			titleStyle: {
 				type: Object,
@@ -280,4 +291,4 @@
 			}
 		}
 	}
-</style>
+</style>

+ 2 - 3
pages/carInsure1/quote1.vue

@@ -422,7 +422,7 @@
 				</u-radio-group>
 			</view>
 		</u-popup>
-		<u-modal v-model="zijinPopupshow" title="意外险">
+		<u-modal v-model="zijinPopupshow" title="意外险" :scroll-height="{height: '300px'}">
 			<view class="slot-content">
 				<u-checkbox-group @change="ZJcheckboxGroupChange">
 					<u-checkbox style="margin: 4px 0;flex: auto;" v-model="item.checked" active-color="rgb(255, 153, 0)"
@@ -2396,8 +2396,7 @@
 
 	.slot-content {
 		padding: 10px;
-		height: 300px;
-		overflow-y: auto;
+		box-sizing: border-box;
 	}
 
 	/* 查看详情按钮End */

+ 3 - 4
pages/carInsure1/underwriting1.vue

@@ -397,10 +397,10 @@
 				<view class="btn d-flex a-center j-center" @tap="submitAudit">申请核保</view>
 			</view>
 		</view>
-		<u-modal v-model="show">
+		<u-modal v-model="show" title="特约选择" :scroll-height="{height: '300px'}">
 			<view class="slot-content">
 				<u-checkbox-group @change="tycheckboxGroupChange">
-					<u-checkbox @change="tycheckboxChange" v-model="item.checked" active-color="rgb(255, 153, 0)"
+					<u-checkbox v-model="item.checked" active-color="rgb(255, 153, 0)"
 						v-for="(item, index) in zijinengageListData" :key="index"
 						:name="item.clauseCode">{{item.clauseName}}</u-checkbox>
 				</u-checkbox-group>
@@ -1293,8 +1293,7 @@
 
 	.slot-content {
 		padding: 10px;
-		height: 200px;
-		overflow-y: auto;
+		box-sizing: border-box;
 	}
 
 	/* 底部按钮End */