Browse Source

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

1004749546@qq.com 4 years ago
parent
commit
5de48b05ae
2 changed files with 2 additions and 6 deletions
  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=>{
 					this.loading = false
 					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