浏览代码

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. 二进制
      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
 					} 
 				})
 			},

二进制
static/img/noPic.jpg