@dongkboy 2 gadi atpakaļ
vecāks
revīzija
b47f7c83dd

+ 2 - 2
config/baseUrl.js

@@ -4,8 +4,8 @@ let socketUrl = "";
 if (process.env.NODE_ENV === 'development') {
 	// 开发环境
 	// baseUrl = "http://192.168.0.106:8080"; //屈晨
-	// baseUrl = "http://192.168.0.253:8080"; //蔡雅茹
-	baseUrl = "https://test.baoxianzhanggui.com/web-api"; //测试
+	baseUrl = "http://192.168.0.253:8080"; //蔡雅茹
+	// baseUrl = "https://test.baoxianzhanggui.com/web-api"; //测试
 	h5BaseUrl = "https://test.baoxianzhanggui.com/h5";
 	// baseUrl = "https://pre.baoxianzhanggui.com/web-api"; //预生产
 	// h5BaseUrl = "https://pre.baoxianzhanggui.com/h5";

+ 1 - 1
pages/carInsure/Information.vue

@@ -1336,7 +1336,7 @@
 						.policyHolderInfo,
 						'email') && this.isEveryPropertyFilled(this.insuredPersonInfo, 'email')) {
 					this.navigate({
-						url: '/pages/carInsure/insureItems',
+						url: '/pages/carInsure/companyQuotable',
 						success: (res) => {
 							res.eventChannel.emit(
 								"acceptData", {

+ 9 - 4
pages/carInsure/premiumCalc.vue

@@ -170,8 +170,7 @@
 									</view>
 								</view>
 								<view class="planDetails mb-2 dis a-c j-c f-c">
-									<view class="headers dis j-c a-c"
-										@tap="totalitem.planDetailsshow = !totalitem.planDetailsshow">
+									<view class="headers dis j-c a-c" @tap="togglePlanDetails(totalindex)">
 										<image
 											:src="totalitem.planDetailsshow?'/static/image/car-insure/DoubleLeft1.png':'/static/image/car-insure/DoubleLeft.png'"
 											mode=""></image>
@@ -558,6 +557,8 @@
 				this.policyHolderInfoPositiveList = data.policyHolderInfoPositiveList; //投保
 				this.insuredPersonInfoPositiveList = data.insuredPersonInfoPositiveList; //被保人
 				this.quotableCompanyList = data.quotableCompanyList;
+
+				this.commpanyList();
 			})
 			this.getDicType("taxRelifFlag"); //车船税类型
 			this.getDicType("taxpayerIdentifier"); //纳税人证件类型
@@ -566,10 +567,14 @@
 			this.jqendDate = this.oneYearPast(this.jqstartDate);
 			this.systartDate = this.nextday();
 			this.syendDate = this.oneYearPast(this.jqstartDate);
-			this.commpanyList();
 
 		},
 		methods: {
+			togglePlanDetails(index) {
+				this.quotableCompanyList[index].planDetailsshow = !this.quotableCompanyList[index]
+					.planDetailsshow; // 切换对应项的显示状态
+				this.quotableCompanyList = [...this.quotableCompanyList]; // 强制 Vue 重新渲染
+			},
 			// 显示报错信息
 			ErrorMsg(msg, title) {
 				uni.showModal({
@@ -653,7 +658,7 @@
 					ele['planDetailsshow'] = false;
 					ele['isComparableshowHide'] = false;
 					ele['isComparableDisabled'] = false;
-					return ele
+					return ele;
 				})
 			},
 			immediatelyClick(name) {