2023-03-02 09:44:12 +08:00
|
|
|
|
> 官网: [https://haomo-tech.com](https://haomo-tech.com)
|
2023-03-02 09:38:09 +08:00
|
|
|
|
|
2023-03-02 09:44:12 +08:00
|
|
|
|
> 作者: 毫末科技
|
2023-03-02 09:38:09 +08:00
|
|
|
|
|
2023-03-02 09:44:12 +08:00
|
|
|
|
> 邮箱: hxg@haomo-studio.com
|
2023-03-02 09:38:09 +08:00
|
|
|
|
|
2023-03-02 09:44:12 +08:00
|
|
|
|
## 预览
|
2023-03-02 09:38:09 +08:00
|
|
|
|
|
2023-03-02 09:44:12 +08:00
|
|
|
|
![预览图片](http://downloads.haomo-tech.com/uniapp/hm-information-card.png)
|
2023-03-02 09:38:09 +08:00
|
|
|
|
|
2023-03-02 09:44:12 +08:00
|
|
|
|
[在线效果预览](http://template.uniapp.haomo-tech.com/pages/haomo/test-component/hm-information-card)
|
2023-03-02 09:38:09 +08:00
|
|
|
|
|
2023-03-02 09:44:12 +08:00
|
|
|
|
更多毫末科技的uni-app跨端模板,请见[毫末科技uni-app跨端模板](https://haomo-tech.com/sale.html)
|
2023-03-02 09:38:09 +08:00
|
|
|
|
|
2023-03-02 09:44:12 +08:00
|
|
|
|
## 技术支持
|
2023-03-02 09:38:09 +08:00
|
|
|
|
|
2023-03-02 09:44:12 +08:00
|
|
|
|
* [uni-app插件市场](https://ext.dcloud.net.cn/plugin?id=1396)
|
2023-03-02 09:38:09 +08:00
|
|
|
|
|
2023-03-02 09:44:12 +08:00
|
|
|
|
* [npm包](https://www.npmjs.com/package/hm-uniapp-information-card)
|
2023-03-02 09:38:09 +08:00
|
|
|
|
|
2023-03-02 09:44:12 +08:00
|
|
|
|
* [github地址](https://github.com/haomo-studio/hm-uniapp-information-card)
|
2023-03-02 09:38:09 +08:00
|
|
|
|
|
2023-03-02 09:44:12 +08:00
|
|
|
|
* [gitee地址](https://gitee.com/haomo/hm-uniapp-information-card)
|
2023-03-02 09:38:09 +08:00
|
|
|
|
|
2023-03-02 09:44:12 +08:00
|
|
|
|
毫末科技将长期迭代本组件。需要技术支持,请进钉钉群:
|
2023-03-02 09:38:09 +08:00
|
|
|
|
|
2023-03-02 09:44:12 +08:00
|
|
|
|
<img width="250" src="http://downloads.haomo-tech.com/%E6%AF%AB%E6%9C%ABuniapp%E7%BB%84%E4%BB%B6%E6%8A%80%E6%9C%AF%E6%94%AF%E6%8C%81.jpg">
|
2023-03-02 09:38:09 +08:00
|
|
|
|
|
2023-03-02 09:44:12 +08:00
|
|
|
|
## 概述
|
2023-03-02 09:38:09 +08:00
|
|
|
|
|
2023-03-02 09:44:12 +08:00
|
|
|
|
毫末uni-app新闻卡片组件。支持H5/小程序(微信、支付宝、头条、百度、QQ)/App;组件可自适应各种屏幕大小的手机。
|
2023-03-02 09:38:09 +08:00
|
|
|
|
|
2023-03-02 09:44:12 +08:00
|
|
|
|
## 使用
|
2023-03-02 09:38:09 +08:00
|
|
|
|
|
2023-03-02 09:44:12 +08:00
|
|
|
|
请使用HBuilderX导入组件。
|
2023-03-02 09:38:09 +08:00
|
|
|
|
|
2023-03-02 09:44:12 +08:00
|
|
|
|
在script中引用:
|
2023-03-02 09:38:09 +08:00
|
|
|
|
|
2023-03-02 09:44:12 +08:00
|
|
|
|
```javascript
|
|
|
|
|
import HmInformationCard from '@/components/hm-information-card/index.vue'
|
|
|
|
|
export default {
|
|
|
|
|
components: {HmInformationCard}
|
|
|
|
|
}
|
|
|
|
|
```
|
2023-03-02 09:38:09 +08:00
|
|
|
|
|
2023-03-02 09:44:12 +08:00
|
|
|
|
在template中使用:
|
|
|
|
|
|
|
|
|
|
```html
|
|
|
|
|
<template>
|
|
|
|
|
<div class="test-component">
|
|
|
|
|
<hm-information-card :options="options"></hm-information-card>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<script>
|
|
|
|
|
import HmInformationCard from '@/components/hm-components/hm-information-card/index.vue'
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
components: {
|
|
|
|
|
HmInformationCard
|
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
options: {
|
|
|
|
|
tag: '阿杰',
|
|
|
|
|
alexander: '阿雷',
|
|
|
|
|
data: '星期三',
|
|
|
|
|
titleImg:
|
|
|
|
|
'/static/hm-information-card/images/img_24030_0_1.png',
|
|
|
|
|
summary:
|
|
|
|
|
'全息用户界面提供输入到电子或机电设备通过通过手指通过复制全息图像什么',
|
|
|
|
|
word: '…',
|
|
|
|
|
shoucang:
|
|
|
|
|
'/static/hm-information-card/images/img_24030_0_0.png',
|
|
|
|
|
num: '783',
|
|
|
|
|
like: '喜欢'
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
<style>
|
|
|
|
|
</style>
|
2023-03-02 09:38:09 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-03-02 09:44:12 +08:00
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## 属性说明
|
2023-03-02 09:38:09 +08:00
|
|
|
|
|
2023-03-02 09:44:12 +08:00
|
|
|
|
| 属性名 | 类型 | 默认值 | 说明 |
|
|
|
|
|
|----------- |---------|--------|----------------------------------------------------------------------------|
|
|
|
|
|
| options | Object | - | 卡片属性 |
|
2023-03-02 09:38:09 +08:00
|
|
|
|
|
2023-03-02 09:44:12 +08:00
|
|
|
|
options对象各个属性说明如下:
|
2023-03-02 09:38:09 +08:00
|
|
|
|
|
2023-03-02 09:44:12 +08:00
|
|
|
|
| 属性名 | 类型 | 默认值 | 说明 |
|
|
|
|
|
|----------- |---------|--------|----------------------------------------------------------------------------|
|
|
|
|
|
| tag | String | - | 头像名 |
|
|
|
|
|
| alexander | String | - | 名字 |
|
|
|
|
|
| data | String | - | 时间 |
|
|
|
|
|
| titleImg | String | - | 图片 |
|
|
|
|
|
| word | String | - | 分享 |
|
|
|
|
|
| summary | String | - | 内容 |
|
|
|
|
|
| shoucang | String | - | 图片 |
|
|
|
|
|
| num | String | - | 人数 |
|
|
|
|
|
| like | String | - | 喜欢 |
|
2023-03-02 09:38:09 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-03-02 09:44:12 +08:00
|
|
|
|
## 事件说明
|
2023-03-02 09:38:09 +08:00
|
|
|
|
|
|
|
|
|
|
2023-03-02 09:44:12 +08:00
|
|
|
|
## 更新日志
|
2023-03-02 09:38:09 +08:00
|
|
|
|
|
2023-03-02 09:44:12 +08:00
|
|
|
|
### 0.0.1(2020-03-010)
|
2023-03-02 09:38:09 +08:00
|
|
|
|
|
2023-03-02 09:44:12 +08:00
|
|
|
|
* 完成第一个版本
|