npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

hm-uniapp-goods-card

v0.0.1

Published

毫末uni-app毫末商品卡片组件。支持H5/小程序(微信、支付宝、头条、百度、QQ)/App;组件可自适应各种屏幕大小的手机。

Downloads

4

Readme

官网: https://haomo-tech.com

作者: 毫末科技

邮箱: [email protected]

预览

预览图片

在线效果预览

更多毫末科技的uni-app跨端模板,请见毫末科技uni-app跨端模板

技术支持

毫末科技将长期迭代本组件。需要技术支持,请进钉钉群(群号30423559):

概述

毫末uni-app毫末商品卡片组件。支持H5/小程序(微信、支付宝、头条、百度、QQ)/App;组件可自适应各种屏幕大小的手机。

使用

请使用HBuilderX导入组件。

在script中引用:

import HmGoodsCard from '@/components/hm-goods-card/index.vue'
export default {
    components: { HmGoodsCard }
}

在template中使用:

<template>
  <div class="test-component">
    <hm-goods-card :options="options"></hm-goods-card>
  </div>
</template>
<script>
import HmGoodsCard from '@/components/hm-components/hm-goods-card/index.vue'

export default {
  components: { HmGoodsCard },
  data() {
    return {
      options: {
          title: '热门产品',
          titleimg:
            '/static/hm-goods-card/images/img_25335_0_0.png',
          pic:
            '/static/hm-goods-card/images/img_25335_0_1.png',
          tradeName: '圆形户外搁脚凳',
          describe: '搁脚凳',
          commodity: '凳子',
          img:
            '/static/hm-goods-card/images/img_25335_0_2.png',
          secondName: '深灰色翼背',
          secondDescribe: '椅子第1版',
          secondcommodity: '椅子',
          smallItem:
            '/static/hm-goods-card/images/img_25335_0_3.png',
          thirdName: '简易木端',
          thirdDescribe: '小号桌',
          thirdcommodity: '桌子'
        }
    };
  },
  methods: {
    onClick: function(e) {
      console.log('onClick');
    }
  }
};
</script>
<style>
</style>

属性说明

| 属性名 | 类型 | 默认值 | 说明 | |----------- |---------|--------|----------------------------------------------------------------------------| | options | Object | - | 卡片属性 |

options对象各个属性说明如下:

| 属性名 | 类型 | 默认值 | 说明 | |----------- |---------|--------|----------------------------------------------------------------------------| | title | String | - | 标题文字 | | titleimg | String | - | 标题图片 | | pic | String | - | 商品图片 | | tradeName | String | - | 商品名 | | describe | String | - | 商品描述 | | commodity | String | - | 商品 |

事件说明

| 事件称名 | 事件说明 | 返回参数 | |----------|--------------------|----------| | @click | 点击 Card 触发事件 | - |

更新日志

0.0.1(2020-03-24)

  • 完成第一个版本