Browse Source

代码整理

tong 4 years ago
parent
commit
cc71d7a6c1

+ 0 - 16
pages/me/Reward-details/index.vue

@@ -148,10 +148,7 @@
 							'size': '10'
 						}
 					}).then(res => {
-						console.log(res)
-						// this.datalist = res.data.data
 						this.count = res.data.count
-						// this.datalength = res.data.data.length
 						this.datalist = this.datalist.concat(res.data.data)
 
 						// 判断扫码类型
@@ -174,11 +171,9 @@
 					})
 			},
 			calendar() {
-				console.log("@@@")
 			},
 			// 全部事件
 			whole() {
-				console.log("@@")
 				this.bottoma = true
 				this.bottomb = false
 				this.bottomc = false
@@ -226,7 +221,6 @@
 							'endTime': this.endTime + ' 23:59:59'
 						}
 					}).then(res => {
-						console.log(res)
 						this.datalist = this.datalist.concat(res.data.data)
 						this.count = res.data.count
 						// 判断扫码类型
@@ -237,7 +231,6 @@
 								this.getWay = "门店扫码"
 							}
 						}
-						console.log(res.data.data)
 					}).catch(err => {
 						console.log(err)
 					})
@@ -268,7 +261,6 @@
 								fontSize: 28
 							})
 						}
-						console.log(this.list_a)
 					}).catch(err => {
 						console.log(err)
 					})
@@ -282,14 +274,11 @@
 			},
 			// 搜索框
 			handleSearch(e) {
-				console.log(e)
 				this.data()
 				this.datalist = []
 			},
 			// 点击获取品牌
 			click(e) {
-				console.log(e)
-				console.log(this.list_a[e].text)
 				this.label = this.list_a[e].text
 				uni.showLoading({
 					title: '加载中...'
@@ -305,7 +294,6 @@
 							'brandCode': this.label
 						}
 					}).then(res => {
-						console.log(res)
 						this.count = res.data.count
 						this.datalength = res.data.data.length
 						this.datalist = this.datalist.concat(res.data.data)
@@ -317,7 +305,6 @@
 								this.getWay = "门店扫码"
 							}
 						}
-						console.log(res.data.data)
 					}).catch(err => {
 						console.log(err)
 					})
@@ -333,7 +320,6 @@
 
 
 			close() {
-				console.log("@@@")
 				this.whole()
 			},
 			change(index) {
@@ -360,8 +346,6 @@
 					this.data()
 				}
 			}, 1000)
-
-
 		}
 	}
 </script>

+ 0 - 12
pages/me/Settlement-center/index.vue

@@ -93,7 +93,6 @@
 						}
 					}).then(res => {
 						if (res.data.code == 0) {
-							console.log(res.data)
 							this.datalist = res.data.data
 							this.Arry.length = this.datalist.length
 							// 每个新建数组长度为空,全选为false
@@ -103,7 +102,6 @@
 							}
 							this.inStore()
 						} else {
-							console.log(res)
 							uni.showToast({
 								title: res.data.msg,
 								icon: "none",
@@ -112,7 +110,6 @@
 						}
 
 					}).catch(err => {
-						console.log(err + "")
 					})
 					.finally(() => {
 						setTimeout(() => {
@@ -133,10 +130,7 @@
 			// 选中某个复选框时,由checkbox时触发
 			// ,bollean,index
 			checkboxChange(e, index, dataArr) {
-				console.log(index)
-				console.log(e)
 				let newArr = []
-				console.log(this.Arry)
 				e.detail.value.forEach((item) => {
 					var obj = {
 						"storeId": this.$store.state.storeInfo.storeId,
@@ -145,11 +139,9 @@
 						"kunnr": JSON.parse(item).kunnr,
 						'userId': this.$store.state.storeInfo.userId
 					}
-					console.log(obj)
 					newArr.push(obj)
 				})
 				this.Arry[index] = newArr
-				console.log(newArr)
 				// 判断他是否全选
 				if (this.Arry[index].length == dataArr.filter((item) => {
 						return item.usableMoney != 0
@@ -162,8 +154,6 @@
 
 			// 核销返利
 			button(index) {
-				console.log(index)
-				console.log(this.Arry[index])
 				request({
 						url: '/myapp/storeCancel',
 						method: 'post',
@@ -200,7 +190,6 @@
 			checkboxGroupChange(e) {},
 			// 全选
 			checkedAll(index, e) {
-				console.log(index, e)
 				let newArr = []
 				// 根据奖励金额是否为0判断全选取消全选
 				if (this.Arry[index].length == e.storegentBrandList.filter((item) => {
@@ -225,7 +214,6 @@
 					this.Arry[index] = newArr
 				}
 
-				console.log(this.Arry, this.checkboxList)
 
 
 			}

+ 0 - 5
pages/me/Statistical-task/index.vue

@@ -87,7 +87,6 @@
 
 						}
 					}).then(res => {
-						console.log(res)
 						this.orderList = res.data.data
 						this.getPieData()
 					}).catch(err => {
@@ -101,7 +100,6 @@
 					})
 			},
 			getPieData() {
-				console.log('5555')
 				for (var i = 0; i < this.orderList.length; i++) {
 					var monthPie = {
 						series: []
@@ -132,7 +130,6 @@
 						}
 						monthObj.data = this.orderList[i].storeMonthList[j].data
 						this.data = this.orderList[i].storeMonthList[j].data
-						console.log(this.orderList[i].storeMonthList[j].data)
 						monthObj.name = this.orderList[i].storeMonthList[j].name+":"+this.orderList[i].storeMonthList[j].data
 						monthObj.percent = this.orderList[i].storeMonthList[j].percent
 						quarterObj.data = this.orderList[i].storeQuarterList[j].data
@@ -190,8 +187,6 @@
 				});
 			},
 			touchPie(e, id) {
-				console.log(e, id)
-				console.log(id)
 				canvasObj[id].showToolTip(e, {
 					format: function(item) {
 						return item.name

+ 1 - 9
pages/me/Write-off-management/index.vue

@@ -109,13 +109,10 @@
 							'userId': this.$store.state.storeInfo.userId
 						}
 					}).then(res => {
-						console.log(res)
-						console.log(this.pages)
 						this.orderList = this.orderList.concat(res.data.data.records)
 						// 页数
 						this.pages = res.data.data.pages
 						for (let i = 0; i < res.data.data.records.length; i++) {
-							console.log(res.data.data.records[i].status)
 							if (res.data.data.records[i].status == 0) {
 								this.b2bStatus = "待审核"
 							} else if (res.data.data.records[i].status == 2) {
@@ -135,9 +132,7 @@
 						}, 300)
 					})
 			},
-			handleSearch: function(v) {
-				console.log(v)
-			},
+			
 			handleFilterBrand: function(v2) {
 				this.current = v2
 				if (v2 == 0) {
@@ -163,7 +158,6 @@
 							'userId': this.$store.state.storeInfo.userId
 						}
 					}).then(res => {
-						console.log(res)
 						this.orderList = res.data.data.records
 						// 页数
 						this.pages = res.data.data.pages
@@ -193,8 +187,6 @@
 		onReachBottom() {
 			setTimeout(() => {
 				if (this.current2 > this.pages) {
-					console.log(this.current2)
-					console.log(this.pages)
 					this.status = 'nomore'
 				} else {
 					this.current2 = ++this.current2;

+ 1 - 9
pages/msg/System-message/index.vue

@@ -42,7 +42,6 @@
 
 		},
 		onLoad(options) {
-			console.log(options.sendUserId)
 			this.sendUserId = options.sendUserId
 		},
 		created() {
@@ -62,9 +61,7 @@
 
 						}
 					}).then(res => {
-						console.log(res)
 						this.orderList = res.data.list
-						// this.msgContent = res.data.list[0].msgContent
 						for(var i = 0; i<res.data.list.length; i++) {
 							this.msgContent = res.data.list[i].msgContent
 							this.sendUserId = res.data.list[i].sendUserId
@@ -93,14 +90,9 @@
 							'userId':this.$store.state.storeInfo.userId
 			
 						}
-					}).then(res => {
-						console.log(res)
-						
-			
-			
+					}).then(res => {		
 			
 					}).catch(err => {
-						console.log(err)
 					})
 					.finally(() => {
 						setTimeout(() => {

+ 0 - 13
pages/msg/index.vue

@@ -61,7 +61,6 @@ export default {
   created() {},
   onShow() {
     this.getDate();
-    // this.addDate()
   },
   filters: {
     formatDate: function (time) {
@@ -97,16 +96,12 @@ export default {
         },
       })
         .then((res) => {
-          console.log(res);
           this.orderList = res.data.category;
-		  console.log(this.orderList.length)
           for (let i = 0; i < this.orderList.length; i++) {
-            // this.orderList = res.data.data.category[i]
             this.gatTime = this.orderList[i].gatTime;
           }
         })
         .catch((err) => {
-          console.log(err);
         })
         .finally(() => {
           setTimeout(() => {
@@ -116,13 +111,8 @@ export default {
         });
     },
     inSystem(index) {
-      console.log(index);
     },
     click(index) {
-      console.log(index);
-
-      // this.orderList.splice(index, 1);
-
       request({
         url: "/appMessage/deleteMessage",
         method: "post",
@@ -137,7 +127,6 @@ export default {
           this.getDate();
         })
         .catch((err) => {
-          console.log(err);
         })
         .finally(() => {
           setTimeout(() => {
@@ -148,8 +137,6 @@ export default {
     },
     // 如果打开一个的时候,不需要关闭其他,则无需实现本方法
     open(index) {
-      console.log(index);
-      console.log(this.orderList[index].show);
       this.orderList[index].show = true;
       this.orderList.map((val, idx) => {
         if (index != idx) this.orderList[idx].show = false;