diff --git a/components/empty/index.js b/components/empty/index.js deleted file mode 100644 index 0fee8a4..0000000 --- a/components/empty/index.js +++ /dev/null @@ -1,20 +0,0 @@ -import { VantComponent } from '../common/component'; -const PRESETS = ['error', 'search', 'default', 'network']; -VantComponent({ - props: { - description: String, - image: { - type: String, - value: 'default', - }, - }, - created() { - if (PRESETS.indexOf(this.data.image) !== -1) { - this.setData({ - imageUrl: `https://img.yzcdn.cn/vant/empty-image-${this.data.image}.png`, - }); - } else { - this.setData({ imageUrl: this.data.image }); - } - }, -}); diff --git a/components/empty/index.json b/components/empty/index.json deleted file mode 100644 index e8cfaaf..0000000 --- a/components/empty/index.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "component": true, - "usingComponents": {} -} \ No newline at end of file diff --git a/components/empty/index.wxml b/components/empty/index.wxml deleted file mode 100644 index 1c28469..0000000 --- a/components/empty/index.wxml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - -

- {{ description }} -

- - - -
\ No newline at end of file diff --git a/components/empty/index.wxss b/components/empty/index.wxss deleted file mode 100644 index 931518d..0000000 --- a/components/empty/index.wxss +++ /dev/null @@ -1 +0,0 @@ -@import '../common/index.wxss';.van-empty{display:-webkit-flex;display:flex;-webkit-flex-direction:column;flex-direction:column;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center;box-sizing:border-box;padding:32px 0}.van-empty__image{width:160px;height:160px}.van-empty__image__img{width:100%;height:100%}.van-empty__description{margin-top:16px;padding:0 60px;color:#969799;font-size:14px;line-height:20px}.van-empty__bottom{margin-top:24px} \ No newline at end of file diff --git a/pages/message/index/index.wxml b/pages/message/index/index.wxml index 450178f..272b538 100644 --- a/pages/message/index/index.wxml +++ b/pages/message/index/index.wxml @@ -1,7 +1,7 @@ {{userInfo.enterpriseName}} - 原纸商场 + 消息