| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -23,18 +23,21 @@ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
										</countdown-timer> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									</view> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									<view> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
										<button class="confirmcash-btn" hover-class="lf-opacity" @click="offlinePay">确认</button> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
										<button class="confirmcash-btn" hover-class="lf-opacity" @click="confirm">确认</button> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									</view> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								</view> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							</view> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							<lf-pay-password v-if="show_pay" @comfirm="payComfirm" title="请输入支付密码"></lf-pay-password> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
						</view> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					</template> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					<script> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
						import countdownTimer from '@/components/countdown-timer/countdown-timer'; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
						import lfPayPassword from '@/components/lf-payPassword/lf-payPassword.vue' | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
						export default { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							components: { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								countdownTimer | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								countdownTimer, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								lfPayPassword | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							}, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							data() { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								return { | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -42,7 +45,9 @@ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									amount: 0, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									clerk_id: 0, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									brand_id: 0, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									is_date_end: false | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									is_date_end: false, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									show_pay: false, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									pay_pwd: '' // 支付密码 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							}, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							onLoad(options){ | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -55,7 +60,8 @@ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									console.log("倒计时结束"); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									this.is_date_end = true; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								}, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								offlinePay(){ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								// 确认 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								confirm(){ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									if(this.amount == 0){ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
										return this.$msg('支付金额不能为0'); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									} | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -68,18 +74,32 @@ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
										}); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
										return; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									}; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									this.show_pay = true; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								}, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								// 密码输入完毕 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								payComfirm(event){ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									this.show_pay = false; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									this.pay_pwd = event; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									this.offlinePay(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								}, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								offlinePay(){ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									uni.showLoading({ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
										title: '正在支付中' | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									}) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									let token = this.$cookieStorage.get('user_token'); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									this.$http.post({ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
										api: 'api/offline/pay', | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
										data: { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
											clerk_id: this.clerk_id, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
											brand_id: this.brand_id, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
											amount: this.amount | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
											amount: this.amount, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
											pay_pwd: this.pay_pwd | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
										}, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
										header: { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
											Authorization: token | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
										} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									}).then(res => { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
										uni.hideLoading(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
										if(res.data.code == 200){ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
											this.$url('/pages/aboutpay/paystate?payState=1&amount='+ this.amount); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
										}else{ | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -87,7 +107,7 @@ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
												this.$url('/pages/aboutpay/paystate?payState=0'); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
											}) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
										} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									}) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									}).catch(err => uni.hideLoading()) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
						} | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
				 | 
				
					
  |