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