更新记录
1.0.5(2025-01-14) 下载此版本
优化格式
1.0.4(2025-01-07) 下载此版本
更新
1.0.3(2024-09-28) 下载此版本
添加最小高度
查看更多平台兼容性
uni-app
Vue2 | Vue3 | Chrome | Safari | app-vue | app-nvue | Android | iOS | 鸿蒙 |
---|---|---|---|---|---|---|---|---|
√ | √ | √ | √ | √ | × | - | - | - |
微信小程序 | 支付宝小程序 | 抖音小程序 | 百度小程序 | 快手小程序 | 京东小程序 | 鸿蒙元服务 | QQ小程序 | 飞书小程序 | 快应用-华为 | 快应用-联盟 |
---|---|---|---|---|---|---|---|---|---|---|
√ | √ | √ | √ | - | - | - | √ | - | - | - |
其他
多语言 | 暗黑模式 | 宽屏模式 |
---|---|---|
× | × | √ |
z-commodity-card
<view style="display: flex;overflow-y: scroll;width: 600rpx;padding: 30rpx;">
<z-commodity-card active duration="1个月" price="14" desc="物体移动时录像" buttonText="低至0.8元/天"></z-commodity-card>
<z-commodity-card showTag duration="6个月" price="18" desc="物体移动时录像" buttonText="低至0.8元/天"></z-commodity-card>
<z-commodity-card showTag tagText="其他优惠" duration="1年" price="18" desc="物体移动时录像" buttonText="低至0.8元/天"></z-commodity-card>
<z-commodity-card showTag tagText="其他优惠" duration="永久" price="18" desc="物体移动时录像" buttonText="低至0.8元/天"></z-commodity-card>
</view>
props
属性 | 说明 | 类型 | 默认值 |
---|---|---|---|
active | 是否选中 | Boolean | false |
showTag | 是否显示左上角标签 | Boolean | false |
tagText | 标签文本 | String | '限时优惠' |
duration | 时长 | String | '' |
price | 价格 | String | '' |
desc | 描述 | String | '' |
buttonText | 按钮文字 | String | '' |