shish 6 лет назад
Родитель
Сommit
bef2e1f710
4 измененных файлов с 51 добавлено и 24 удалено
  1. 6 3
      shop/src/components/chat/index.vue
  2. 19 10
      shop/src/views/home.vue
  3. 23 10
      shop/src/views/member/list.vue
  4. 3 1
      shop/src/views/order/list.vue

+ 6 - 3
shop/src/components/chat/index.vue

@@ -95,6 +95,7 @@
 			size="small"
 			size="small"
 			@click="show()"
 			@click="show()"
 		></el-button>
 		></el-button>
+
 	</div>
 	</div>
 </template>
 </template>
 
 
@@ -102,7 +103,7 @@
 export default {
 export default {
 	data() {
 	data() {
 		return {
 		return {
-			visible: false,
+			visible: fale,
 			userList: [],
 			userList: [],
 			messageList: [
 			messageList: [
 				{
 				{
@@ -143,8 +144,10 @@ export default {
 		},
 		},
 
 
 		show() {
 		show() {
-			this.visible = true;
-			this.getUserList();
+            this.$message.success('即将开通...')
+            return false
+			this.visible = true
+			this.getUserList()
 		},
 		},
 
 
 		hide() {
 		hide() {

+ 19 - 10
shop/src/views/home.vue

@@ -41,7 +41,7 @@
 			<div class="card-title">快捷操作</div>
 			<div class="card-title">快捷操作</div>
 			<div class="card-body">
 			<div class="card-body">
 				<div class="entry-list-wrap">
 				<div class="entry-list-wrap">
-					<div class="list" v-for="(item, index) in entryData" :key="index" @click="$util.pageTo(item)">
+					<div class="list" v-for="(item, index) in entryData" :key="index" @click="fastDoFn(item)">
 						<div class="icon-wrap">
 						<div class="icon-wrap">
 							<i class="iconfont" :class="[item.icon]"></i>
 							<i class="iconfont" :class="[item.icon]"></i>
 						</div>
 						</div>
@@ -226,13 +226,11 @@ export default {
 				},
 				},
 				{
 				{
 					name: '客服',
 					name: '客服',
-					icon: 'iconkefu',
-					url: ''
+					icon: 'iconkefu'
 				},
 				},
 				{
 				{
 					name: '拼团',
 					name: '拼团',
-					icon: 'iconlianjie',
-					url: ''
+					icon: 'iconlianjie'
 				}
 				}
 			],
 			],
 			// 总统计
 			// 总统计
@@ -292,7 +290,9 @@ export default {
 		},
 		},
 		getData() {
 		getData() {
 			this.$service.workbench.index().then(res => {
 			this.$service.workbench.index().then(res => {
-				if (this.$util.isEmpty(res)) return false;
+				if (this.$util.isEmpty(res)) {
+					return false;
+				}
 				this.incomeData = res.incomeStat;
 				this.incomeData = res.incomeStat;
 				this.visitorData = res.visitStat;
 				this.visitorData = res.visitStat;
 				this.noticeData = res.notice;
 				this.noticeData = res.notice;
@@ -311,14 +311,16 @@ export default {
 					res.todayData.income > 0 ? res.todayData.income : '-'
 					res.todayData.income > 0 ? res.todayData.income : '-'
 				}`;
 				}`;
 				this.totalData[4].val = res.todayData.order > 0 ? res.todayData.order : '-';
 				this.totalData[4].val = res.todayData.order > 0 ? res.todayData.order : '-';
-				// pending
+				//待处理事务
+				console.log('待处理事务')
+				console.log(this.pendingData)
 				this.pendingData[0].val = res.asset.unPayOrder;
 				this.pendingData[0].val = res.asset.unPayOrder;
 				this.pendingData[1].val = res.asset.sendingOrder;
 				this.pendingData[1].val = res.asset.sendingOrder;
 				this.pendingData[2].val = res.asset.finishOrder;
 				this.pendingData[2].val = res.asset.finishOrder;
 				this.pendingData[3].val = res.asset.unSendOrder;
 				this.pendingData[3].val = res.asset.unSendOrder;
-				this.pendingData[4].val = res.asset.unNoticeOrder;
-				this.pendingData[5].val = res.asset.totalOrder;
-				// all-total
+				this.pendingData[4].val = res.asset.totalOrder;
+				//总览
+				console.log('查看总览');
 				this.allTotalData[0].val = res.asset.totalUser;
 				this.allTotalData[0].val = res.asset.totalUser;
 				this.allTotalData[1].val = res.asset.totalFans;
 				this.allTotalData[1].val = res.asset.totalFans;
 				this.allTotalData[2].val = res.asset.totalMember;
 				this.allTotalData[2].val = res.asset.totalMember;
@@ -335,6 +337,13 @@ export default {
 		},
 		},
 		noticeFn(item) {
 		noticeFn(item) {
 			window.open(item.url);
 			window.open(item.url);
+		},
+		fastDoFn(item) {
+			if (item.url) {
+				this.$util.pageTo(item);
+			} else {
+				this.$message.success('即将开通...');
+			}
 		}
 		}
 	}
 	}
 };
 };

+ 23 - 10
shop/src/views/member/list.vue

@@ -61,13 +61,19 @@
 				</div>
 				</div>
 			</template>
 			</template>
 
 
-			<template #table-column-actPrice="{scope}">
+			<template #table-column-sourceType="{scope}">
+				<span v-if="scope.row.sourceType == 0">微信</span>
+				<span v-else-if="scope.row.sourceType == 1">支付宝</span>
+				<span v-else-if="scope.row.sourceType == 2">小程序</span>
+				<span v-else-if="scope.row.sourceType == 3">朋友圈</span>
+				<span v-else-if="scope.row.sourceType == 4">美团</span>
+				<span v-else></span>
+			</template>
+
+			<template #table-column-memberLevel="{scope}">
 				<el-tag size="mini" v-if="scope.row.userAsset.member == -1" type="warning">普</el-tag>
 				<el-tag size="mini" v-if="scope.row.userAsset.member == -1" type="warning">普</el-tag>
-				<el-tag size="mini" v-else-if="scope.row.userAsset.member == 0">vip</el-tag>
-				<el-tag
-					size="mini"
-					v-else-if="scope.row.userAsset.member > 0"
-				>vip{{ scope.row.userAsset.member }}</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>
 			</template>
 			</template>
 
 
 			<!-- 充值 -->
 			<!-- 充值 -->
@@ -78,7 +84,6 @@
 			<template #slot-upgrade="{scope}">
 			<template #slot-upgrade="{scope}">
 				<el-button type="text" size="mini" @click="upgradeShowFn(scope.row)">升级</el-button>
 				<el-button type="text" size="mini" @click="upgradeShowFn(scope.row)">升级</el-button>
 			</template>
 			</template>
-
 		</x-crud>
 		</x-crud>
 		<!-- 充值 -->
 		<!-- 充值 -->
 		<el-dialog title="充值" :visible.sync="rechargeDialog" :close-on-click-modal="false" width="600px">
 		<el-dialog title="充值" :visible.sync="rechargeDialog" :close-on-click-modal="false" width="600px">
@@ -284,7 +289,9 @@ export default {
 			this.app = app;
 			this.app = app;
 
 
 			//传入参数 shish 2020.5.9
 			//传入参数 shish 2020.5.9
-			this.tabIndex = this.$route.query.type
+			if (this.$route.query.type) {
+				this.tabIndex = this.$route.query.type;
+			}
 
 
 			ctx.service(this.$service.member)
 			ctx.service(this.$service.member)
 				.set('table', {
 				.set('table', {
@@ -313,7 +320,7 @@ export default {
 							width: 120
 							width: 120
 						},
 						},
 						{
 						{
-							prop: 'actPrice',
+							prop: 'memberLevel',
 							label: '会员级别',
 							label: '会员级别',
 							align: 'center',
 							align: 'center',
 							emptyText: '无'
 							emptyText: '无'
@@ -337,7 +344,13 @@ export default {
 						},
 						},
 						{
 						{
 							prop: 'store',
 							prop: 'store',
-							label: '到店消费',
+							label: '已到店',
+							align: 'center',
+							width: 100
+						},
+												{
+							prop: 'sourceType',
+							label: '来源',
 							align: 'center',
 							align: 'center',
 							width: 100
 							width: 100
 						},
 						},

+ 3 - 1
shop/src/views/order/list.vue

@@ -224,7 +224,9 @@ export default {
 			this.app = app;
 			this.app = app;
 
 
 			//传入参数 shish 2020.5.9
 			//传入参数 shish 2020.5.9
-			this.tabIndex = this.$route.query.status
+			if(this.$route.query.status){
+				this.tabIndex = this.$route.query.status
+			}
 
 
 			ctx.service(this.$service.order)
 			ctx.service(this.$service.order)
 				.set('table', {
 				.set('table', {