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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@mas.io/mas-cs-shop-card

v1.0.3

Published

@alipay/mas-cs-shop-card 的组件描述

Readme

安装

tnpm install --save @alipay/mas-cs-shop-card

组件介绍

行业小程序门店列表组件,分为门店卡片和下方的按钮卡片两部分,两个组件可以分开使用也可以结合使用,具体看demo

参数说明

卡片组件

属性 | 必填 | 参数类型 | 参数说明 | 默认值 | 示例 --|:-:|:--:|:--:|:--: | :-: img | N | string | 门店图片 | --- | '' status | N | string | 门店状态 | --- | '' title | Y | string | 门店名 | --- | 余杭区五常街道向往街11号 tag | Y | string | 门店名后面的标签 | '' | 买过 rate | N | number | 评分 | --- | 3.8 subTitle | N | string | 副标题 | --- | 666单 address | N | string | 门店地址 | --- | 余杭区五常街道向往街11 distance | N | string | 门店距离 | --- | 3km shopTags | N | Arrar<string>| 门店标签 | [] | ['十元优惠', '到期退款'] data | N | any | 点击事件携带的参数值 | --- | index onClick | N | (data: any) => void | 卡片点击事件| -- | -- onAppear | N | (data: any) => void | 卡片曝光事件| -- | --

按钮组件

属性 | 必填 | 参数类型 | 参数说明 | 默认值 | 示例 --|:-:|:--:|:--:|:--: | :-: name | Y | string | 商品名称 | --- | 商品名称 price | N | string | 商品价格 | --- | ¥20 oldPrice | N | string | 划线价格 | '' | 门店价¥30 btn | Y | string | 按钮文字 | '' | 购买 disabled | N | boolean | 是否禁用 | false | true data | N | any | 购买按钮点击事件携带的参数值 | --- | index onClick | N | (data: any) => void | 购买按钮点击事件| -- | -- onAppear | N | (data: any) => void | 购买按钮曝光事件| -- | --

在小程序中使用

{
  "usingComponents": {
    "shop-card": "@alipay/mas-cs-shop-card/es/index",
    "shop-card-goods": "@alipay/mas-cs-shop-card/es/goods-info/index"
  }
}

在 page.axml 中引用组件

<!-- 页面使用方式 -->
<shop-card
  title="ZJK一站式汽车服务"
    address="余杭区五常街道向往街11号"
    rate="{{ 3.8 }}"
    subTitle="666单"
    distance="3km"
    data="click data"
    status="暂停营业"
    tag="买过"
    img="https://gw.alipayobjects.com/mdn/rms_6d74f8/afts/img/A*_BBwT7BtC4UAAAAAAAAAAAAAARQnAQ"
    onClick="onClick"
    shopTags="{{ ['十元优惠', '到期退款'] }}"
>
  <block a:for="{{ 3 }}">
    <shop-card-goods
      key="{{ index }}"
      data="{{ index }}"
      name="商品名称"
      btn="购买"
      price="¥20"
      disabled="{{ false }}"
      oldPrice="门店价¥30"
      onClick="onPay"
    />
  </block>
</shop-card>

Badges

TNPM version TNPM downloads [![install size][install-size-image]][install-size-url]