| 
														
															@@ -17,7 +17,21 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			<view>包月金额</view> 
														 | 
														
														 | 
														
															 			<view>包月金额</view> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			<view class="handle-monthly-money">{{ form.monthAmount || 0 }}元</view> 
														 | 
														
														 | 
														
															 			<view class="handle-monthly-money">{{ form.monthAmount || 0 }}元</view> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		</view> 
														 | 
														
														 | 
														
															 		</view> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-		<view class="handle-monthly-item"> 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		<view class="handle-monthly-item" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			v-if="monthlyRuleObj.giveFlag && Number(monthlyRuleObj.giveFlag) === 1" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			:class="{ 'pb20': monthlyRuleObj.minMonth && form.month >= monthlyRuleObj.minMonth && Number(monthlyRuleObj.giveFlag) === 1 }"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			<view>包月时长</view> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			<view class="handle-monthly-time-long"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+				<button @click="reduceMonthNum()">-</button> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+				<view>{{ form.month || 0 }}个月</view> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+				<button @click="addMonthNum()">+</button> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			</view> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			<view class="handle-monthly-time-tips" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+				v-if="monthlyRuleObj.minMonth && form.month >= monthlyRuleObj.minMonth && Number(monthlyRuleObj.giveFlag) === 1"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+				赠送提示:可获得{{ freeMonthNum }}个月的免费停车时长 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			</view> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		</view> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		<view class="handle-monthly-item" v-else> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			<view>包月时长</view> 
														 | 
														
														 | 
														
															 			<view>包月时长</view> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			<view class="handle-monthly-time-long"> 
														 | 
														
														 | 
														
															 			<view class="handle-monthly-time-long"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				<button @click="reduceMonthNum()">-</button> 
														 | 
														
														 | 
														
															 				<button @click="reduceMonthNum()">-</button> 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -117,9 +131,23 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				carLicenseDefaultValue: [0], 
														 | 
														
														 | 
														
															 				carLicenseDefaultValue: [0], 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				wxEnv: false, 
														 | 
														
														 | 
														
															 				wxEnv: false, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				loading: false, 
														 | 
														
														 | 
														
															 				loading: false, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-				type: 'road' 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+				type: 'road', 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+				monthlyRuleObj: {}, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+				freeMonthNum: 0 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			}; 
														 | 
														
														 | 
														
															 			}; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		}, 
														 | 
														
														 | 
														
															 		}, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		watch: { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			'form.month'(val) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+				let freeNum = 0; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+				if (this.monthlyRuleObj.giveFlag && Number(this.monthlyRuleObj.giveFlag) === 1) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+					let remainNum = Number(val) % Number(this.monthlyRuleObj.minMonth), 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+						timesNum = Number(val) / Number(this.monthlyRuleObj.minMonth); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+					if (remainNum === 0) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+						this.freeMonthNum = Number(timesNum) * Number(this.monthlyRuleObj.giveMonth); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+					} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+				} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		}, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		onLoad(page) { 
														 | 
														
														 | 
														
															 		onLoad(page) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			this.wxEnv = getEnvIsWx(); 
														 | 
														
														 | 
														
															 			this.wxEnv = getEnvIsWx(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			this.getSysterms(0); 
														 | 
														
														 | 
														
															 			this.getSysterms(0); 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -146,6 +174,9 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				this.monthId = page.monthId 
														 | 
														
														 | 
														
															 				this.monthId = page.monthId 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				this.payWayPop = true 
														 | 
														
														 | 
														
															 				this.payWayPop = true 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			} 
														 | 
														
														 | 
														
															 			} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			if (page.roadNo) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+				this.monthlyRuleDetails(page.roadNo); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			const baseUrl = window.location.href.split('#')[0]; 
														 | 
														
														 | 
														
															 			const baseUrl = window.location.href.split('#')[0]; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			let jumpUrl = baseUrl + '#/pages/center/monthly/monthly?type=' + this.type; 
														 | 
														
														 | 
														
															 			let jumpUrl = baseUrl + '#/pages/center/monthly/monthly?type=' + this.type; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			this.jumpUrl = jumpUrl; 
														 | 
														
														 | 
														
															 			this.jumpUrl = jumpUrl; 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -267,6 +298,21 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 						console.log(err); 
														 | 
														
														 | 
														
															 						console.log(err); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 					}) 
														 | 
														
														 | 
														
															 					}) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			}, 
														 | 
														
														 | 
														
															 			}, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			/** 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			 * 获取包月规则详情 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			 * @date 2022-12-20 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			 * @param {any} roadNo 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			 * @returns {any} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			 */ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			monthlyRuleDetails(roadNo) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+				this.$u.api.monthlyRuleDetailsApi({ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+					roadNo 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+				}).then(res => { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+					if (res.code === 200) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+						this.monthlyRuleObj = res?.rows[0] ?? {} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+					} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+				}) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			}, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			/** 
														 | 
														
														 | 
														
															 			/** 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			 * 提交包月信息 
														 | 
														
														 | 
														
															 			 * 提交包月信息 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			 * @date 2022-10-09 
														 | 
														
														 | 
														
															 			 * @date 2022-10-09 
														 |