Просмотр исходного кода

控制台显示的数值修改

shish 6 лет назад
Родитель
Сommit
ec9d29785f
2 измененных файлов с 12 добавлено и 20 удалено
  1. 9 16
      shop/src/views/home.vue
  2. 3 4
      shop/src/views/member/list.vue

+ 9 - 16
shop/src/views/home.vue

@@ -133,18 +133,18 @@ export default {
 				{
 					name: '访问量',
 					icon: 'el-icon-s-data',
-					val: '-'
+					val: 0
 				},
 				{
 					name: '新客户',
 					icon: 'el-icon-s-custom',
-					val: '-',
+					val: 0,
 					url: '/member/list'
 				},
 				{
 					name: '新粉丝',
 					icon: 'el-icon-user',
-					val: '-',
+					val: 0,
 					url: '/member/list?type=1'
 				},
 				{
@@ -155,7 +155,7 @@ export default {
 				{
 					name: '订单',
 					icon: 'el-icon-s-order',
-					val: '-',
+					val: 0,
 					url: '/order/list?status=-1'
 				}
 			],
@@ -302,25 +302,19 @@ export default {
 				setTimeout(() => {
 					this.initChart();
 				});
-
 				// total
-				this.totalData[0].val = res.todayData.visit > 0 ? res.todayData.visit : '-';
-				this.totalData[1].val = res.todayData.user > 0 ? res.todayData.user : '-';
-				this.totalData[2].val = res.todayData.fans > 0 ? res.todayData.fans : '-';
-				this.totalData[3].val = `¥${
-					res.todayData.income > 0 ? res.todayData.income : '-'
-				}`;
-				this.totalData[4].val = res.todayData.order > 0 ? res.todayData.order : '-';
+				this.totalData[0].val = res.todayData.visit;
+				this.totalData[1].val = res.todayData.user;
+				this.totalData[2].val = res.todayData.fans;
+				this.totalData[3].val = `¥${res.todayData.income}`;
+				this.totalData[4].val = res.todayData.order;
 				//待处理事务
-				console.log('待处理事务')
-				console.log(this.pendingData)
 				this.pendingData[0].val = res.asset.unPayOrder;
 				this.pendingData[1].val = res.asset.sendingOrder;
 				this.pendingData[2].val = res.asset.finishOrder;
 				this.pendingData[3].val = res.asset.unSendOrder;
 				this.pendingData[4].val = res.asset.totalOrder;
 				//总览
-				console.log('查看总览');
 				this.allTotalData[0].val = res.asset.totalUser;
 				this.allTotalData[1].val = res.asset.totalFans;
 				this.allTotalData[2].val = res.asset.totalMember;
@@ -333,7 +327,6 @@ export default {
 		},
 		initChart() {
 			this.$refs.incomeEchart.initChart();
-			// this.$refs.visitorEchart.initChart();
 		},
 		noticeFn(item) {
 			window.open(item.url);

+ 3 - 4
shop/src/views/member/list.vue

@@ -71,9 +71,8 @@
 			</template>
 
 			<template #table-column-memberLevel="{scope}">
-				<el-tag size="mini" v-if="scope.row.userAsset.member == -1" type="warning">普</el-tag>
-				<el-tag size="small" v-else-if="scope.row.userAsset.member == 0" title="已注册手机号">vip</el-tag>
-				<el-tag size="small" v-else-if="scope.row.userAsset.member > 0">{{ scope.row.userAsset.member }}</el-tag>
+				<el-tag size="mini" v-if="scope.row.userAsset.member == 0" type="warning">普</el-tag>
+				<el-tag size="small" v-else>{{ scope.row.userAsset.member }}</el-tag>
 			</template>
 
 			<!-- 充值 -->
@@ -348,7 +347,7 @@ export default {
 							align: 'center',
 							width: 100
 						},
-												{
+						{
 							prop: 'sourceType',
 							label: '来源',
 							align: 'center',