作者: 毫末科技
更多毫末科技的uni-app跨端模板,请见毫末科技uni-app跨端模板
我们公司提供超低价的切图服务哈。移动端平均50元每个页面,PC Web端平均80元每个页面。目前支持出vue、react、uniapp、taro、flutter、小程序代码代码,代码支持自适应。其中uniapp、taro一份代码支持多端。app原生会在五月份开始支持。示例demo: http://edu.uniapp.haomo-tech.com。部分样例代码:http://downloads.haomo-tech.com/uniapp-demo.zip
毫末科技将长期迭代本组件。需要技术支持,请进钉钉群:
毫末uni-app新闻卡片组件。支持H5/小程序(微信、支付宝、头条、百度、QQ)/App;组件可自适应各种屏幕大小的手机。
请使用HBuilderX导入组件。
在script中引用:
import HmFriendInformationCard from '@/components/hm-friend-information-card/index.vue'
export default {
components: {HmFriendInformationCard}
}
在template中使用:
<template>
<div class="test-component">
<hm-friend-information-card :options="options"></hm-friend-information-card>
</div>
</template>
<script>
import HmFriendInformationCard from '@/components/hm-components/hm-friend-information-card/index.vue'
export default {
components: {
HmFriendInformationCard
},
data() {
return {
options: {
primary:
'/static/hm-friend-information-card/images/img_24031_0_1.png',
name: '张三',
titleImg:
'/static/hm-friend-information-card/images/img_24031_0_0.png',
address: '深圳'
}
};
},
methods: {
}
};
</script>
<style>
</style>
属性名 | 类型 | 默认值 | 说明 |
---|---|---|---|
options | Object | - | 卡片属性 |
options对象各个属性说明如下:
属性名 | 类型 | 默认值 | 说明 |
---|
| primary | String | - | 图片 | | name | String | - | 姓名 | | titleImg | String | - | 图片 | | address | String | - | 地址 |
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。