소스 검색

Signed-off-by: 1004749546@qq.com <1004749546@qq.com>
增加暂无图片

1004749546@qq.com 4 년 전
부모
커밋
5de48b05ae
2개의 변경된 파일2개의 추가작업 그리고 6개의 파일을 삭제
  1. 2 6
      pages/store/storeDetail.vue
  2. BIN
      static/img/noPic.jpg

+ 2 - 6
pages/store/storeDetail.vue

@@ -164,12 +164,8 @@
 				getWaitPhoto({deviceNo:deviceNo}).then(res=>{
 				getWaitPhoto({deviceNo:deviceNo}).then(res=>{
 					this.loading = false
 					this.loading = false
 					if(res.status==200) {
 					if(res.status==200) {
-						if (res.data) {
-							this.waitPhoto = res.data
-							this.showPop=true
-						} else {
-							this.toashMsg('暂无数据')
-						}
+						this.waitPhoto = res.data ? res.data : '/static/img/noPic.jpg'
+						this.showPop=true
 					} 
 					} 
 				})
 				})
 			},
 			},

BIN
static/img/noPic.jpg