Selaa lähdekoodia

uni.showToast

zhengkaixin 1 vuosi sitten
vanhempi
commit
46bbfff551

+ 9 - 0
apis/pagejs/deduction.js

@@ -57,4 +57,13 @@ import request from '@/apis/utils/request'
  		data: data,
  		url: url
  	})
+ }
+ 
+ export function rechargeDetails(data) {
+ 	var url='/mobile/tenant/rechargeDetails';
+ 	return request({
+ 		method: 'post',
+ 		data: data,
+ 		url: url
+ 	})
  }

+ 1 - 1
config/.env.dev.js

@@ -4,7 +4,7 @@ const UNI_APP = {
 
 	BASE_URL: 'https://dgj.hbjp.com.cn/electric-manager-api/',
 	
-	//BASE_URL:'http://192.168.77.162:8081/electric-manager-api/',
+	BASE_URL:'http://192.168.77.162:8081/electric-manager-api/',
 	
 	
 	NODE_ENV :"dev",

+ 5 - 2
pages/billingRules/billingRules.vue

@@ -140,8 +140,11 @@ import {
 					uni.hideLoading();
 					this.queryList = response.data.data;
 				}).catch(error => {
-					uni.hideLoading();
-
+					uni.hideLoading();
+					uni.showToast({
+						icon: "none",
+						title: error
+					})
 				})
 			},
 			change(index) {

+ 12 - 4
pages/deductionRecord/billPush.vue

@@ -390,7 +390,11 @@
 					// }
 				}).catch(error => {
 					//uni.hideLoading();
-					
+					uni.hideLoading();
+					uni.showToast({
+						icon: "none",
+						title: error
+					})
 				})
 			},
 			copyUrl(){
@@ -503,8 +507,9 @@
 					this.showModel = true
 			
 				}).catch(error => {
+					uni.hideLoading();
 					uni.showToast({
-			
+						icon: "none",
 						title: error
 					})
 				})
@@ -525,8 +530,9 @@
 					wxPayJs(data);
 			
 				}).catch(error => {
+					uni.hideLoading();
 					uni.showToast({
-			
+						icon: "none",
 						title: error
 					})
 			
@@ -563,7 +569,9 @@
 					//this.transferAccountsInfo=this.detail.accountInfo;
 				}).catch(error => {
 					uni.hideLoading();
-					
+					uni.showToast({
+						title: error
+					})
 				})
 			}
 		}

+ 28 - 2
pages/deductionRecord/deductionDetails.vue

@@ -91,14 +91,40 @@
 </template>
 
 <script>
+	import * as API from '@/apis/pagejs/deduction.js'
+	
 	export default {
 		data() {
 			return {
-				
+				id:''
+			}
+		},
+		onLoad(op){
+			if(op.id){
+				this.id=op.id
 			}
+			this.getRechargeDetails()
 		},
 		methods: {
-			
+			getRechargeDetails(){
+				uni.showLoading({
+					title: "加载中",
+					mask: true,
+				})
+				
+				API.rechargeDetails({
+					id:this.id
+				}).then((response) => {
+					uni.hideLoading();
+					
+				}).catch(error => {
+					uni.hideLoading();
+					uni.showToast({
+						icon: "none",
+						title: error
+					})
+				})
+			}
 		}
 	}
 </script>

+ 22 - 5
pages/deductionRecord/deductionRecord.vue

@@ -41,7 +41,9 @@
 			</view>
 			
 				
-			<view class="details" v-for="(item,i) in list" :key="i" >
+			<view class="details" v-for="(item,i) in list" 
+			@click="gotoUrl('/pages/deductionRecord/deductionDetails?id='+item.id)"
+			:key="i" >
 				<view class="icon">
 					<image class="img" v-if="item.remark.indexOf('水')>-1" src="@/assets/img/wImage@1x.png" mode=""></image>
 						<image class="img"  v-else-if="item.remark.indexOf('房')>-1||item.remark.indexOf('租')>-1" src="@/assets/img/wImage.png" mode=""></image>
@@ -185,7 +187,11 @@
 					// }
 				}).catch(error => {
 					//uni.hideLoading();
-					
+					uni.hideLoading();
+					uni.showToast({
+						icon: "none",
+						title: error
+					})
 				})
 			},
 			extraInfoText(extraInfo){
@@ -262,7 +268,11 @@
 						//uni.upx2px(600)
 					
 				}).catch(error => {
-					
+					uni.hideLoading();
+					uni.showToast({
+						icon: "none",
+						title: error
+					})
 				})
 			},
 			getPle(list){
@@ -352,7 +362,10 @@
 					this.list=response.data.data;
 				}).catch(error => {
 					uni.hideLoading();
-					
+					uni.showToast({
+						icon: "none",
+						title: error
+					})
 				})
 			},
 			contractItemList(){
@@ -374,7 +387,11 @@
 					
 				}).catch(error => {
 					//uni.hideLoading();
-					
+					uni.hideLoading();
+					uni.showToast({
+						icon: "none",
+						title: error
+					})
 				})
 			},
 		}

+ 18 - 4
pages/index/index.vue

@@ -197,7 +197,11 @@
 					
 				}).catch(error => {
 					//uni.hideLoading();
-					
+					uni.hideLoading();
+					uni.showToast({
+						icon: "none",
+						title: error
+					})
 				})
 			},
 			getMessageTypeList(){
@@ -207,7 +211,10 @@
 					this.messageList=response.data.typeList;
 				}).catch(error => {
 					uni.hideLoading();
-					
+					uni.showToast({
+						icon: "none",
+						title: error
+					})
 				})
 			},
 			getBillList(){
@@ -223,7 +230,10 @@
 					
 				}).catch(error => {
 					uni.hideLoading();
-					
+					uni.showToast({
+						icon: "none",
+						title: error
+					})
 				})
 			},
 			confirmPhone() {
@@ -246,7 +256,11 @@
 					//console.log(response.data.tenantInfo)
 				}).catch(error => {
 					//uni.hideLoading();
-					
+					uni.hideLoading();
+					uni.showToast({
+						icon: "none",
+						title: error
+					})
 				})
 			}
 		}

+ 4 - 1
pages/invoiceManagement/InvoiceTitleManagement.vue

@@ -94,7 +94,10 @@
 					this.personTypes=response.data.personTypes;
 				}).catch(error => {
 					uni.hideLoading();
-					
+					uni.showToast({
+						icon: "none",
+						title: error
+					})
 				})
 			},
 		}

+ 5 - 1
pages/invoiceManagement/applyBilling.vue

@@ -82,8 +82,12 @@
 					uni.hideLoading();
 					
 				}).catch(error => {
-					uni.hideLoading();
 					
+					uni.hideLoading();
+					uni.showToast({
+						icon: "none",
+						title: error
+					})
 				})
 			}
 		}

+ 4 - 1
pages/invoiceManagement/invoiceDetails.vue

@@ -157,7 +157,10 @@
 					this.detail=response.data.invoiceInfo
 				}).catch(error => {
 					uni.hideLoading();
-					
+					uni.showToast({
+						icon: "none",
+						title: error
+					})
 				})
 			}
 		}

+ 8 - 2
pages/invoiceManagement/invoiceManagement.vue

@@ -313,7 +313,10 @@
 					this.list1=response.data.data;
 				}).catch(error => {
 					uni.hideLoading();
-					
+					uni.showToast({
+						icon: "none",
+						title: error
+					})
 				})
 			},
 			getInvoiceList2(){
@@ -342,7 +345,10 @@
 					this.recordsTotal2=res.data.recordsTotal;
 				}).catch(error => {
 					uni.hideLoading();
-					
+					uni.showToast({
+						icon: "none",
+						title: error
+					})
 				})
 			},
 			

+ 8 - 2
pages/invoiceManagement/issueInvoice.vue

@@ -187,7 +187,10 @@
 						})
 					}).catch(error => {
 						uni.hideLoading();
-						
+						uni.showToast({
+							icon: "none",
+							title: error
+						})
 					})
 			},
 			openInvoiceByRecordIds(){
@@ -204,7 +207,10 @@
 					this.totalPrice=response.data.totalPrice;
 				}).catch(error => {
 					uni.hideLoading();
-					
+					uni.showToast({
+						icon: "none",
+						title: error
+					})
 				})
 			},
 		}

+ 4 - 1
pages/invoiceManagement/selectTitleManagement.vue

@@ -98,7 +98,10 @@
 					this.personTypes=response.data.personTypes;
 				}).catch(error => {
 					uni.hideLoading();
-					
+					uni.showToast({
+						icon: "none",
+						title: error
+					})
 				})
 			},
 		}

+ 4 - 1
pages/login/login.vue

@@ -71,7 +71,10 @@
 				
 				}).catch(error => {
 					uni.hideLoading();
-					
+					uni.showToast({
+						icon: "none",
+						title: error
+					})
 				})
 			},
 			submit(){

+ 13 - 3
pages/message/message.vue

@@ -198,7 +198,11 @@
 					this.getMessageTypeList()
 				}).catch(error => {
 					//uni.hideLoading();
-					
+					uni.hideLoading();
+					uni.showToast({
+						icon: "none",
+						title: error
+					})
 				})
 			},
 			messageList1(){
@@ -214,7 +218,10 @@
 					this.messageList=response.data.typeList;
 				}).catch(error => {
 					uni.hideLoading();
-					
+					uni.showToast({
+						icon: "none",
+						title: error
+					})
 				})
 			},
 			getBillList(){
@@ -232,7 +239,10 @@
 					
 				}).catch(error => {
 					uni.hideLoading();
-					
+					uni.showToast({
+						icon: "none",
+						title: error
+					})
 				})
 			}
 			

+ 8 - 2
pages/message/messageList.vue

@@ -117,7 +117,10 @@
 					//this.list=response.data.data;
 				}).catch(error => {
 					uni.hideLoading();
-					
+					uni.showToast({
+						icon: "none",
+						title: error
+					})
 				})
 			},
 			getBillList(){
@@ -142,7 +145,10 @@
 					//this.list=response.data.data;
 				}).catch(error => {
 					uni.hideLoading();
-					
+					uni.showToast({
+						icon: "none",
+						title: error
+					})
 				})
 			}
 		}

+ 29 - 7
pages/mine/mine.vue

@@ -262,7 +262,10 @@
 					this.contractList = response.data.data;
 				}).catch(error => {
 					uni.hideLoading();
-			
+					uni.showToast({
+						icon: "none",
+						title: error
+					})
 				})
 			},
 			prefetch(){
@@ -275,7 +278,11 @@
 					
 				}).catch(error => {
 					//uni.hideLoading();
-
+					uni.hideLoading();
+					uni.showToast({
+						icon: "none",
+						title: error
+					})
 				})
 			},
 			getBillList(){
@@ -291,7 +298,10 @@
 					
 				}).catch(error => {
 					uni.hideLoading();
-					
+					uni.showToast({
+						icon: "none",
+						title: error
+					})
 				})
 			},
 			query() {
@@ -323,7 +333,10 @@
 
 				}).catch(error => {
 					uni.hideLoading();
-
+					uni.showToast({
+						icon: "none",
+						title: error
+					})
 				})
 			},
 			changeUserShowBtn() {
@@ -350,7 +363,10 @@
 					//this.companyInfo=response.data.companyInfo;
 				}).catch(error => {
 					uni.hideLoading();
-
+					uni.showToast({
+						icon: "none",
+						title: error
+					})
 				})
 			},
 			personalCenter() {
@@ -367,7 +383,10 @@
 					//this.companyInfo=response.data.companyInfo;
 				}).catch(error => {
 					uni.hideLoading();
-
+					uni.showToast({
+						icon: "none",
+						title: error
+					})
 				})
 			},
 			homePage() {
@@ -387,7 +406,10 @@
 
 				}).catch(error => {
 					uni.hideLoading();
-
+					uni.showToast({
+						icon: "none",
+						title: error
+					})
 				})
 			}
 		}

+ 4 - 1
pages/mine/setting.vue

@@ -71,7 +71,10 @@
 					this.personInfo=response.data.regUser;
 				}).catch(error => {
 					uni.hideLoading();
-					
+					uni.showToast({
+						title: error,
+						icon: "none"
+					})
 				})
 			}
 		}

+ 4 - 1
pages/recharge/accountRecharge.vue

@@ -331,7 +331,10 @@
 					}
 				}).catch(error => {
 					//uni.hideLoading();
-					
+					uni.showToast({
+						title: error,
+						icon: "none"
+					})
 				})
 			},
 			radioChange: function(evt) {

+ 8 - 2
pages/recharge/rechargeRecord.vue

@@ -198,7 +198,10 @@
 						//uni.upx2px(600)
 					
 				}).catch(error => {
-					
+					uni.showToast({
+						title: error,
+						icon: "none"
+					})
 				})
 			},
 			getPle(list){
@@ -288,7 +291,10 @@
 					this.list=response.data.data;
 				}).catch(error => {
 					uni.hideLoading();
-					
+					uni.showToast({
+						title: error,
+						icon: "none"
+					})
 				})
 			},
 		}

+ 4 - 1
pages/returnBalance/returnBalance.vue

@@ -102,7 +102,10 @@
 					
 				}).catch(error => {
 					//uni.hideLoading();
-					
+					uni.showToast({
+						title: error,
+						icon: "none"
+					})
 				})
 			},
 			open() {