浏览代码

Merge branch 'test' of git.echepei.com:sailun/sailun-tbr-web into test

qukaidi 4 年之前
父节点
当前提交
8445ccd3db
共有 3 个文件被更改,包括 399 次插入385 次删除
  1. 187 189
      pages/home/scancode/index.vue
  2. 201 182
      pages/home/scancode/scancodeout.vue
  3. 11 14
      pages/me/Statistical-task/index.vue

+ 187 - 189
pages/home/scancode/index.vue

@@ -228,95 +228,105 @@
 			//手动录入调用
 			manualentry() {
 				if (this.number_a.length != 0) {
-					request({
-							url: '/storeScan/storeScanGetTyre',
-							method: 'Post',
-							data: {
-								storeId: this.$store.state.storeInfo.storeId,
-								userId: this.$store.state.storeInfo.userId,
-								tyreNum: this.number_a,
-								scanType: 1,
-								scanWay: 0,
-								longitude: this.degree.x,
-								latitude: this.degree.y,
-								scanAddress: this.address
-							}
-						}).then(res => {
-							console.log(res)
-							if (res.data.code == 513) {
-								console.log(res.data.msg)
-								let name = 'regular'
-								this.tipss(res, name)
-								return
-							}
-							if (res.data.code == 514) {
-								console.log(res.data.msg)
-								let name = 'nonoperating'
-								this.tipss(res, name)
-								return
-							}
-							if (res.data.code == 515) {
-								console.log(res.data.msg)
-								let name = 'warehousing'
-								this.tipss(res, name)
-								return
-							}
-							if (res.data.code == 517) {
-								console.log(res.data.msg)
-								let name = 'atypism'
-								this.tipss(res, name)
-								return
-							}
-							if (res.data.code == 518) {
-								console.log(res.data.msg)
-								let name = 'gobeyond'
-								this.tipss(res, name)
-								return
-							}
-							if (res.data.code == 519) {
-								console.log(res.data.msg)
-								let name = 'notallow'
-								this.tipss(res, name)
-								return
-							}
-							if (res.data.code == 500) {
-								console.log(res.data.msg)
-								let name = 'error'
-								this.tipss(res, name)
-								return
-							}
-							if (res.data.code == 0) {
+					console.log(this.degree)
+					if (this.degree == undefined) {
+						uni.showToast({
+							icon: 'none',
+							title: '获取地址失败, 请检查是否开启定位权限~~',
+							position: "bottom"
+						})
+						return
+					}else{
+						request({
+								url: '/storeScan/storeScanGetTyre',
+								method: 'Post',
+								data: {
+									storeId: this.$store.state.storeInfo.storeId,
+									userId: this.$store.state.storeInfo.userId,
+									tyreNum: this.number_a,
+									scanType: 1,
+									scanWay: 0,
+									longitude: this.degree.x,
+									latitude: this.degree.y,
+									scanAddress: this.address
+								}
+							}).then(res => {
 								console.log(res)
-								this.res = res
-								console.log(res.data.data[0].isRegular)
-								for (let i = 0; i < this.lisi.length; i++) {
-									if (this.lisi[i].tireNumber == res.data.data[0].tirenumber) {
-										console.log(res)
-										let err = {
-											"data": {
-												"msg": "请勿重复录入",
+								if (res.data.code == 513) {
+									console.log(res.data.msg)
+									let name = 'regular'
+									this.tipss(res, name)
+									return
+								}
+								if (res.data.code == 514) {
+									console.log(res.data.msg)
+									let name = 'nonoperating'
+									this.tipss(res, name)
+									return
+								}
+								if (res.data.code == 515) {
+									console.log(res.data.msg)
+									let name = 'warehousing'
+									this.tipss(res, name)
+									return
+								}
+								if (res.data.code == 517) {
+									console.log(res.data.msg)
+									let name = 'atypism'
+									this.tipss(res, name)
+									return
+								}
+								if (res.data.code == 518) {
+									console.log(res.data.msg)
+									let name = 'gobeyond'
+									this.tipss(res, name)
+									return
+								}
+								if (res.data.code == 519) {
+									console.log(res.data.msg)
+									let name = 'notallow'
+									this.tipss(res, name)
+									return
+								}
+								if (res.data.code == 500) {
+									console.log(res.data.msg)
+									let name = 'error'
+									this.tipss(res, name)
+									return
+								}
+								if (res.data.code == 0) {
+									console.log(res)
+									this.res = res
+									console.log(res.data.data[0].isRegular)
+									for (let i = 0; i < this.lisi.length; i++) {
+										if (this.lisi[i].tireNumber == res.data.data[0].tirenumber) {
+											console.log(res)
+											let err = {
+												"data": {
+													"msg": "请勿重复录入",
+												}
 											}
+											console.log(err.data.msg)
+											let name = 'duplicateentry'
+											this.tipss(err, name)
+											return
 										}
-										console.log(err.data.msg)
-										let name = 'duplicateentry'
-										this.tipss(err, name)
-										return
 									}
+									this.container()
 								}
-								this.container()
-							}
-							console.log(this.lisi)
-						}).catch(err => {
-							// this.$refs.repeat.show({
-							// 	title: "网络繁忙,请稍后再试",
-							// 	type: 'default',
-							// 	position: 'bottom'
-							// })
-							console.log(err)
-						})
-						.finally(() => {
-							// Loading.close()
-						})
+								console.log(this.lisi)
+							}).catch(err => {
+								// this.$refs.repeat.show({
+								// 	title: "网络繁忙,请稍后再试",
+								// 	type: 'default',
+								// 	position: 'bottom'
+								// })
+								console.log(err)
+							})
+							.finally(() => {
+								// Loading.close()
+							})
+					}
 				} else {
 					this.$refs.repeat.show({
 						title: '请输入胎号',
@@ -407,119 +417,107 @@
 						}
 					}
 				});
-				let datats = {
-							storeId: this.$store.state.storeInfo.storeId,
-							userId: this.$store.state.storeInfo.userId,
-							tyreNum: this.number_s,
-							scanType: 1,
-							scanWay: 1,
-							longitude: this.degree.x,
-							latitude: this.degree.y,
-							scanAddress: this.address
-						}
-						console.log(datats)
 				console.log(val)
 				this.number = val
 				this.number_s = val
-				request({
-						url: '/storeScan/storeScanGetTyre',
-						method: 'Post',
-						data: {
-							storeId: this.$store.state.storeInfo.storeId,
-							userId: this.$store.state.storeInfo.userId,
-							tyreNum: this.number_s,
-							scanType: 1,
-							scanWay: 1,
-							longitude: this.degree.x,
-							latitude: this.degree.y,
-							scanAddress: this.address
-						}
-					}).then(res => {
-						this.res_s = res
-						this.tips = "胎号"
-						if (res.data.code == 513) {
-							console.log(res.data.msg)
-							let name = 'regular'
-							this.tipss(res, name)
-							return
-						}
-						if (res.data.code == 514) {
-							console.log(res.data.msg)
-							let name = 'nonoperating'
-							this.tipss(res, name)
-							return
-						}
-						if (res.data.code == 515) {
-							console.log(res.data.msg)
-							let name = 'warehousing'
-							this.tipss(res, name)
-							return
-						}
-						if (res.data.code == 517) {
-							console.log(res.data.msg)
-							let name = 'atypism'
-							this.tipss(res, name)
-							return
-						}
-						if (res.data.code == 518) {
-							console.log(res.data.msg)
-							let name = 'gobeyond'
-							this.tipss(res, name)
-							return
-						}
-						if (res.data.code == 519) {
-							console.log(res.data.msg)
-							let name = 'notallow'
-							this.tipss(res, name)
-							return
-						}
-						if (res.data.code == 500) {
-							console.log(res.data.msg)
-							let name = 'error'
-							this.tipss(res, name)
-							return
-						}
-						if (res.data.code == 0) {
+				if (this.degree == undefined) {
+					uni.showToast({
+						icon: 'none',
+						title: '获取地址失败, 请检查是否开启定位权限~~',
+						position: "bottom"
+					})
+					return
+				}else{
+					request({
+							url: '/storeScan/storeScanGetTyre',
+							method: 'Post',
+							data: {
+								storeId: this.$store.state.storeInfo.storeId,
+								userId: this.$store.state.storeInfo.userId,
+								tyreNum: this.number_a,
+								scanType: 1,
+								scanWay: 0,
+								longitude: this.degree.x,
+								latitude: this.degree.y,
+								scanAddress: this.address
+							}
+						}).then(res => {
 							console.log(res)
-							this.res = res
-							console.log(res.data.data[0].isRegular)
-							for (let i = 0; i < this.lisi.length; i++) {
-								if (this.lisi[i].tireNumber == res.data.data[0].tirenumber) {
-									console.log(res)
-									let err = {
-										"data": {
-											"msg": "请勿重复扫码",
+							if (res.data.code == 513) {
+								console.log(res.data.msg)
+								let name = 'regular'
+								this.tipss(res, name)
+								return
+							}
+							if (res.data.code == 514) {
+								console.log(res.data.msg)
+								let name = 'nonoperating'
+								this.tipss(res, name)
+								return
+							}
+							if (res.data.code == 515) {
+								console.log(res.data.msg)
+								let name = 'warehousing'
+								this.tipss(res, name)
+								return
+							}
+							if (res.data.code == 517) {
+								console.log(res.data.msg)
+								let name = 'atypism'
+								this.tipss(res, name)
+								return
+							}
+							if (res.data.code == 518) {
+								console.log(res.data.msg)
+								let name = 'gobeyond'
+								this.tipss(res, name)
+								return
+							}
+							if (res.data.code == 519) {
+								console.log(res.data.msg)
+								let name = 'notallow'
+								this.tipss(res, name)
+								return
+							}
+							if (res.data.code == 500) {
+								console.log(res.data.msg)
+								let name = 'error'
+								this.tipss(res, name)
+								return
+							}
+							if (res.data.code == 0) {
+								console.log(res)
+								this.res = res
+								console.log(res.data.data[0].isRegular)
+								for (let i = 0; i < this.lisi.length; i++) {
+									if (this.lisi[i].tireNumber == res.data.data[0].tirenumber) {
+										console.log(res)
+										let err = {
+											"data": {
+												"msg": "请勿重复录入",
+											}
 										}
+										console.log(err.data.msg)
+										let name = 'duplicateentry'
+										this.tipss(err, name)
+										return
 									}
-									console.log(err.data.msg)
-									let name = 'repeatcode'
-									this.tipss(err, name)
-									return
 								}
+								this.container()
 							}
-							this.container_s()
-						}
-						// console.log(this.lisi)
-					}).catch(err => {
-						if (err.code == 400) {//谁给我删了......
-							this.$refs.repeat.show({
-								title: "无网络",
-								type: 'default',
-								position: 'bottom'
-							})
-						} else {
-							this.$refs.repeat.show({
-								title: "请重新扫码",
-								type: 'default',
-								position: 'bottom'
-							})
-							this.repeated()
-						}
-						console.log(err)
-					})
-					.finally(() => {
-						// Loading.close()
-					})
+							console.log(this.lisi)
+						}).catch(err => {
+							// this.$refs.repeat.show({
+							// 	title: "网络繁忙,请稍后再试",
+							// 	type: 'default',
+							// 	position: 'bottom'
+							// })
+							console.log(err)
+						})
+						.finally(() => {
+							// Loading.close()
+						})
+				}
 			},
 			container_s() {
 				this.show_d = false

+ 201 - 182
pages/home/scancode/scancodeout.vue

@@ -153,7 +153,7 @@
 			});
 			this.coord = ''
 		},
-		onShow(){
+		onShow() {
 			this.mounteds()
 		},
 		methods: {
@@ -198,12 +198,12 @@
 						}).then(res => {
 							console.log(res.data.data.result)
 							console.log(res.data)
-							if(res.data.code != 0){
+							if (res.data.code != 0) {
 								uni.showToast({
 									icon: 'none',
 									title: '获取定位失败,请稍后再试~'
 								})
-							}else{
+							} else {
 								this_.baidu = res.data.data.result
 								this_.addreev(this_.baidu, aress)
 							}
@@ -228,95 +228,105 @@
 			//手动录入调用
 			manualentry() {
 				if (this.number_a.length != 0) {
-					request({
-							url: '/storeScan/storeScanGetTyre',
-							method: 'Post',
-							data: {
-								storeId: this.$store.state.storeInfo.storeId,
-								userId: this.$store.state.storeInfo.userId,
-								tyreNum: this.number_a,
-								scanType: 2,
-								scanWay: 0,
-								longitude: this.degree.x,
-								latitude: this.degree.y,
-								scanAddress: this.address
-							}
-						}).then(res => {
-							console.log(res)
-							if (res.data.code == 513) {
-								console.log(res.data.msg)
-								let name = 'regular'
-								this.tipss(res, name)
-								return
-							}
-							if (res.data.code == 514) {
-								console.log(res.data.msg)
-								let name = 'nonoperating'
-								this.tipss(res, name)
-								return
-							}
-							if (res.data.code == 515) {
-								console.log(res.data.msg)
-								let name = 'warehousing'
-								this.tipss(res, name)
-								return
-							}
-							if (res.data.code == 517) {
-								console.log(res.data.msg)
-								let name = 'atypism'
-								this.tipss(res, name)
-								return
-							}
-							if (res.data.code == 518) {
-								console.log(res.data.msg)
-								let name = 'gobeyond'
-								this.tipss(res, name)
-								return
-							}
-							if (res.data.code == 519) {
-								console.log(res.data.msg)
-								let name = 'notallow'
-								this.tipss(res, name)
-								return
-							}
-							if (res.data.code == 500) {
-								console.log(res.data.msg)
-								let name = 'error'
-								this.tipss(res, name)
-								return
-							}
-							if (res.data.code == 0) {
+					console.log(this.degree)
+					if (this.degree == undefined) {
+						uni.showToast({
+							icon: 'none',
+							title: '获取地址失败, 请检查是否开启定位权限~~',
+							position: "bottom"
+						})
+						return
+					} else {
+						request({
+								url: '/storeScan/storeScanGetTyre',
+								method: 'Post',
+								data: {
+									storeId: this.$store.state.storeInfo.storeId,
+									userId: this.$store.state.storeInfo.userId,
+									tyreNum: this.number_a,
+									scanType: 2,
+									scanWay: 0,
+									longitude: this.degree.x,
+									latitude: this.degree.y,
+									scanAddress: this.address
+								}
+							}).then(res => {
 								console.log(res)
-								this.res = res
-								console.log(res.data.data[0].isRegular)
-								for (let i = 0; i < this.lisi.length; i++) {
-									if (this.lisi[i].tireNumber == res.data.data[0].tirenumber) {
-										console.log(res)
-										let err = {
-											"data": {
-												"msg": "请勿重复录入",
+								if (res.data.code == 513) {
+									console.log(res.data.msg)
+									let name = 'regular'
+									this.tipss(res, name)
+									return
+								}
+								if (res.data.code == 514) {
+									console.log(res.data.msg)
+									let name = 'nonoperating'
+									this.tipss(res, name)
+									return
+								}
+								if (res.data.code == 515) {
+									console.log(res.data.msg)
+									let name = 'warehousing'
+									this.tipss(res, name)
+									return
+								}
+								if (res.data.code == 517) {
+									console.log(res.data.msg)
+									let name = 'atypism'
+									this.tipss(res, name)
+									return
+								}
+								if (res.data.code == 518) {
+									console.log(res.data.msg)
+									let name = 'gobeyond'
+									this.tipss(res, name)
+									return
+								}
+								if (res.data.code == 519) {
+									console.log(res.data.msg)
+									let name = 'notallow'
+									this.tipss(res, name)
+									return
+								}
+								if (res.data.code == 500) {
+									console.log(res.data.msg)
+									let name = 'error'
+									this.tipss(res, name)
+									return
+								}
+								if (res.data.code == 0) {
+									console.log(res)
+									this.res = res
+									console.log(res.data.data[0].isRegular)
+									for (let i = 0; i < this.lisi.length; i++) {
+										if (this.lisi[i].tireNumber == res.data.data[0].tirenumber) {
+											console.log(res)
+											let err = {
+												"data": {
+													"msg": "请勿重复录入",
+												}
 											}
+											console.log(err.data.msg)
+											let name = 'duplicateentry'
+											this.tipss(err, name)
+											return
 										}
-										console.log(err.data.msg)
-										let name = 'duplicateentry'
-										this.tipss(err, name)
-										return
 									}
+									this.container()
 								}
-								this.container()
-							}
-							console.log(this.lisi)
-						}).catch(err => {
-							// this.$refs.repeat.show({
-							// 	title: "网络繁忙,请稍后再试",
-							// 	type: 'default',
-							// 	position: 'bottom'
-							// })
-							console.log(err)
-						})
-						.finally(() => {
-							// Loading.close()
-						})
+								console.log(this.lisi)
+							}).catch(err => {
+								// this.$refs.repeat.show({
+								// 	title: "网络繁忙,请稍后再试",
+								// 	type: 'default',
+								// 	position: 'bottom'
+								// })
+								console.log(err)
+							})
+							.finally(() => {
+								// Loading.close()
+							})
+					}
 				} else {
 					this.$refs.repeat.show({
 						title: '请输入胎号',
@@ -410,105 +420,114 @@
 				console.log(val)
 				this.number = val
 				this.number_s = val
-				request({
-						url: '/storeScan/storeScanGetTyre',
-						method: 'Post',
-						data: {
-							storeId: this.$store.state.storeInfo.storeId,
-							userId: this.$store.state.storeInfo.userId,
-							tyreNum: this.number_s,
-							scanType: 2,
-							scanWay: 1,
-							longitude: this.degree.x,
-							latitude: this.degree.y,
-							scanAddress: this.address
-						}
-					}).then(res => {
-						this.res_s = res
-						this.tips = "胎号"
-						if (res.data.code == 513) {
-							console.log(res.data.msg)
-							let name = 'regular'
-							this.tipss(res, name)
-							return
-						}
-						if (res.data.code == 514) {
-							console.log(res.data.msg)
-							let name = 'nonoperating'
-							this.tipss(res, name)
-							return
-						}
-						if (res.data.code == 515) {
-							console.log(res.data.msg)
-							let name = 'warehousing'
-							this.tipss(res, name)
-							return
-						}
-						if (res.data.code == 517) {
-							console.log(res.data.msg)
-							let name = 'atypism'
-							this.tipss(res, name)
-							return
-						}
-						if (res.data.code == 518) {
-							console.log(res.data.msg)
-							let name = 'gobeyond'
-							this.tipss(res, name)
-							return
-						}
-						if (res.data.code == 519) {
-							console.log(res.data.msg)
-							let name = 'notallow'
-							this.tipss(res, name)
-							return
-						}
-						if (res.data.code == 500) {
-							console.log(res.data.msg)
-							let name = 'error'
-							this.tipss(res, name)
-							return
-						}
-						if (res.data.code == 0) {
-							console.log(res)
-							this.res = res
-							console.log(res.data.data[0].isRegular)
-							for (let i = 0; i < this.lisi.length; i++) {
-								if (this.lisi[i].tireNumber == res.data.data[0].tirenumber) {
-									console.log(res)
-									let err = {
-										"data": {
-											"msg": "请勿重复扫码",
+				if (this.degree == undefined) {
+					uni.showToast({
+						icon: 'none',
+						title: '获取地址失败, 请检查是否开启定位权限~~',
+						position: "bottom"
+					})
+					return
+				} else {
+					request({
+							url: '/storeScan/storeScanGetTyre',
+							method: 'Post',
+							data: {
+								storeId: this.$store.state.storeInfo.storeId,
+								userId: this.$store.state.storeInfo.userId,
+								tyreNum: this.number_s,
+								scanType: 2,
+								scanWay: 1,
+								longitude: this.degree.x,
+								latitude: this.degree.y,
+								scanAddress: this.address
+							}
+						}).then(res => {
+							this.res_s = res
+							this.tips = "胎号"
+							if (res.data.code == 513) {
+								console.log(res.data.msg)
+								let name = 'regular'
+								this.tipss(res, name)
+								return
+							}
+							if (res.data.code == 514) {
+								console.log(res.data.msg)
+								let name = 'nonoperating'
+								this.tipss(res, name)
+								return
+							}
+							if (res.data.code == 515) {
+								console.log(res.data.msg)
+								let name = 'warehousing'
+								this.tipss(res, name)
+								return
+							}
+							if (res.data.code == 517) {
+								console.log(res.data.msg)
+								let name = 'atypism'
+								this.tipss(res, name)
+								return
+							}
+							if (res.data.code == 518) {
+								console.log(res.data.msg)
+								let name = 'gobeyond'
+								this.tipss(res, name)
+								return
+							}
+							if (res.data.code == 519) {
+								console.log(res.data.msg)
+								let name = 'notallow'
+								this.tipss(res, name)
+								return
+							}
+							if (res.data.code == 500) {
+								console.log(res.data.msg)
+								let name = 'error'
+								this.tipss(res, name)
+								return
+							}
+							if (res.data.code == 0) {
+								console.log(res)
+								this.res = res
+								console.log(res.data.data[0].isRegular)
+								for (let i = 0; i < this.lisi.length; i++) {
+									if (this.lisi[i].tireNumber == res.data.data[0].tirenumber) {
+										console.log(res)
+										let err = {
+											"data": {
+												"msg": "请勿重复扫码",
+											}
 										}
+										console.log(err.data.msg)
+										let name = 'repeatcode'
+										this.tipss(err, name)
+										return
 									}
-									console.log(err.data.msg)
-									let name = 'repeatcode'
-									this.tipss(err, name)
-									return
 								}
+								this.container_s()
 							}
-							this.container_s()
-						}
-						// console.log(this.lisi)
-					}).catch(err => {
-						if (err.code == 400) { //谁给我删了......
-							this.$refs.repeat.show({
-								title: "无网络",
-								type: 'default',
-								position: 'bottom'
-							})
-						} else {
-							this.$refs.repeat.show({
-								title: "请重新扫码",
-								type: 'default',
-								position: 'bottom'
-							})
-							this.repeated()
-						}
-						console.log(err)
-					})
-					.finally(() => {
-						// Loading.close()
-					})
+							// console.log(this.lisi)
+						}).catch(err => {
+							if (err.code == 400) { //谁给我删了......
+								this.$refs.repeat.show({
+									title: "无网络",
+									type: 'default',
+									position: 'bottom'
+								})
+							} else {
+								this.$refs.repeat.show({
+									title: "请重新扫码",
+									type: 'default',
+									position: 'bottom'
+								})
+								this.repeated()
+							}
+							console.log(err)
+						})
+						.finally(() => {
+							// Loading.close()
+						})
+				}
 			},
 			container_s() {
 				this.show_d = false

+ 11 - 14
pages/me/Statistical-task/index.vue

@@ -51,6 +51,7 @@
 		data() {
 			return {
 				orderList: [],
+				data: '',
 				cWidth: '',
 				cHeight: '',
 				pixelRatio: 1,
@@ -89,9 +90,6 @@
 						console.log(res)
 						this.orderList = res.data.data
 						this.getPieData()
-
-
-						// this.showPie('mouthPie0',monthPie);
 					}).catch(err => {
 						console.log(err)
 					})
@@ -117,11 +115,10 @@
 							name: '',
 							percent: '',
 							format: (val) => {
-								console.log(val)
-								// return val.toFixed(0) + ''
+								console.log(val * 100)
+								console.log((val * 100).toFixed())
 								return (val * 100).toFixed()+"%"
 							}
-
 						}
 						let quarterObj = {
 							data: null,
@@ -134,27 +131,26 @@
 							}
 						}
 						monthObj.data = this.orderList[i].storeMonthList[j].data
-						monthObj.name = this.orderList[i].storeMonthList[j].name
+						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
-						quarterObj.name = this.orderList[i].storeQuarterList[j].name
+						quarterObj.name = this.orderList[i].storeQuarterList[j].name+":"+this.orderList[i].storeQuarterList[j].data
 						quarterObj.percent = this.orderList[i].storeQuarterList[j].percent
 						quarterPie.series.push(quarterObj)
 						monthPie.series.push(monthObj)
-						
 					}
 					this.showPie(`mouthPie${i}`, monthPie);
 					this.showPie(`quarterPie${i}`, quarterPie)
 				}
 			},
 			showPie(canvasId, chartData) {
-				console.log('88888')
-				console.log(canvasId, chartData)
 				canvasObj[canvasId] = new uCharts({
 					$this: _self,
 					canvasId: canvasId,
 					type: 'ring',
-					fontSize: 11,
+					fontSize: 8,
 					padding: [5, 5, 5, 5],
 					legend: {
 						show: true,
@@ -177,7 +173,7 @@
 					subtitle: {
 						name: chartData.series[0].percent,
 						color: '#7cb5ec',
-						fontSize: 12 * _self.pixelRatio,
+						fontSize: 13 * _self.pixelRatio,
 					},
 					title: {
 						name: '已完成',
@@ -195,9 +191,10 @@
 			},
 			touchPie(e, id) {
 				console.log(e, id)
+				console.log(id)
 				canvasObj[id].showToolTip(e, {
 					format: function(item) {
-						return item.name + ':' + item.data
+						return item.name
 					}
 				});
 			},