Browse Source

扫描二维码

zhengkaixin 4 years ago
parent
commit
d427cc2ba2
1 changed files with 13 additions and 3 deletions
  1. 13 3
      src/projects/business/views/Guest/Current/List.vue

+ 13 - 3
src/projects/business/views/Guest/Current/List.vue

@@ -35,9 +35,10 @@
 
 
 		</div>
-	<NullList :remark="'暂无拜访记录'" v-if="!recordList.length"></NullList>
+	<NullList :remark="'暂无拜访记录'" v-if="!recordList.length&&openId"></NullList>
+    <NullList :remark="'请使用微信扫描二维码'" v-if="!recordList.length&&!openId"></NullList>
 
-	<div class="fyy-footer" v-if="id">
+	<div class="fyy-footer" v-if="id&&openId">
 			<div class="bindfyy-btn">
 				<button type="button" class="mui-btn mui-btn-primary " @click="save">
                     我要拜访
@@ -151,7 +152,16 @@
 			},
 
 			asynCallBack() {
-                this.getList();
+                if(!this.openId){
+                    this.isLoading = false;
+                    mui.toast("请使用微信扫描二维码,关注公众号【小鹏管家】")
+                }else if(!this.id){
+                    this.isLoading = false;
+                    mui.toast("请通过扫描二维码访问本页面")
+                }else{
+                    this.getList();
+                }
+
 			},
 		},
 		mounted() {