ruanzb hace 4 años
padre
commit
48d0c5371e
Se han modificado 2 ficheros con 6 adiciones y 5 borrados
  1. 1 0
      assets/http/api.js
  2. 5 5
      pages/index/index.vue

+ 1 - 0
assets/http/api.js

@@ -29,6 +29,7 @@ const shop={
 	detail:p => http.get('ldt_shop/shop/detail',{params:p}),
 	submit:p => http.post('ldt_shop/shop/submit',p),
 	scanPay: p => http.post('/shopTrade/initOrderByCode',p),
+	statistic:p => http.get('shop/indexInfo',{params:p}),
 }
 //审核状态
 const audit={

+ 5 - 5
pages/index/index.vue

@@ -48,11 +48,11 @@
 					<view class="menu-bottom">
 						<view class="">
 							<text>今日营收</text>
-							<text>{{statistic.todayIncome || 0}}</text>
+							<text>{{statistic.todayCharge || 0}}</text>
 						</view>
 						<view class="">
 							<text>总资产</text>
-							<text>{{statistic.totalAccount || 0}}</text>
+							<text>{{statistic.totalValue || 0}}</text>
 						</view>
 					</view>
 				</view>
@@ -66,11 +66,11 @@
 					<view class="menu-bottom" style="color: #FFFFFF;">
 						<view class="">
 							<text>新增会员</text>
-							<text>{{statistic.todayMemberIn || 0}}</text>
+							<text>{{statistic.newMember || 0}}</text>
 						</view>
 						<view class="">
 							<text>会员总数</text>
-							<text>{{statistic.memberCount || 0}}</text>
+							<text>{{statistic.allMembers || 0}}</text>
 						</view>
 					</view>
 				</view>
@@ -242,7 +242,7 @@
 				this.getStatistic()
 			},
 			getStatistic() {
-				this.$api.shop.statistic(this.shopId).then(res => {
+				this.$api.shop.statistic({shopId:this.shopId}).then(res => {
 					this.statistic = res.data
 				})
 			},