├── .cursorrules
├── .eslintrc.js
├── .gitignore
├── .npmrc
├── .prettierignore
├── .prettierrc.yml
├── .vscode
└── settings.json
├── Introduction.md
├── LICENSE
├── README.md
├── app.js
├── app.json
├── app.wxss
├── cloudfunctions
├── shop_pay
│ ├── index.js
│ ├── package-lock.json
│ └── package.json
└── updateUserCoupon
│ ├── index.js
│ └── package.json
├── commitlint.config.js
├── common
└── updateManager.js
├── components
├── filter-popup
│ ├── index.js
│ ├── index.json
│ ├── index.wxml
│ └── index.wxss
├── filter
│ ├── index.js
│ ├── index.json
│ ├── index.wxml
│ └── index.wxss
├── goods-card
│ ├── index.js
│ ├── index.json
│ ├── index.wxml
│ └── index.wxss
├── goods-list
│ ├── index.js
│ ├── index.json
│ ├── index.wxml
│ └── index.wxss
├── load-more
│ ├── index.js
│ ├── index.json
│ ├── index.wxml
│ └── index.wxss
├── loading-content
│ ├── index.js
│ ├── index.json
│ ├── index.wxml
│ └── index.wxss
├── loading-dialog
│ ├── index.js
│ ├── index.json
│ ├── index.wxml
│ └── index.wxss
├── price
│ ├── index.js
│ ├── index.json
│ ├── index.wxml
│ └── index.wxss
├── swipeout
│ ├── index.js
│ ├── index.json
│ ├── index.wxml
│ └── index.wxss
└── webp-image
│ ├── index.js
│ ├── index.json
│ ├── index.wxml
│ ├── index.wxss
│ └── utils.wxs
├── config
├── eslintCheck.js
├── index.js
└── model.js
├── custom-tab-bar
├── data.js
├── index.js
├── index.json
├── index.wxml
└── index.wxss
├── jsconfig.json
├── miniprogram_npm
├── @cloudbase
│ └── wx-cloud-client-sdk
│ │ ├── index.js
│ │ └── index.js.map
├── dayjs
│ ├── index.js
│ └── index.js.map
├── tdesign-miniprogram
│ ├── .wechatide.ib.json
│ ├── action-sheet
│ │ ├── README.en-US.md
│ │ ├── README.md
│ │ ├── action-sheet.d.ts
│ │ ├── action-sheet.js
│ │ ├── action-sheet.json
│ │ ├── action-sheet.wxml
│ │ ├── action-sheet.wxs
│ │ ├── action-sheet.wxss
│ │ ├── index.d.ts
│ │ ├── index.js
│ │ ├── props.d.ts
│ │ ├── props.js
│ │ ├── show.d.ts
│ │ ├── show.js
│ │ ├── template
│ │ │ ├── grid.wxml
│ │ │ └── list.wxml
│ │ ├── type.d.ts
│ │ └── type.js
│ ├── avatar-group
│ │ ├── avatar-group.d.ts
│ │ ├── avatar-group.js
│ │ ├── avatar-group.json
│ │ ├── avatar-group.wxml
│ │ ├── avatar-group.wxss
│ │ ├── props.d.ts
│ │ ├── props.js
│ │ ├── type.d.ts
│ │ └── type.js
│ ├── avatar
│ │ ├── README.en-US.md
│ │ ├── README.md
│ │ ├── avatar.d.ts
│ │ ├── avatar.js
│ │ ├── avatar.json
│ │ ├── avatar.wxml
│ │ ├── avatar.wxs
│ │ ├── avatar.wxss
│ │ ├── props.d.ts
│ │ ├── props.js
│ │ ├── type.d.ts
│ │ └── type.js
│ ├── back-top
│ │ ├── README.en-US.md
│ │ ├── README.md
│ │ ├── back-top.d.ts
│ │ ├── back-top.js
│ │ ├── back-top.json
│ │ ├── back-top.wxml
│ │ ├── back-top.wxss
│ │ ├── props.d.ts
│ │ ├── props.js
│ │ ├── type.d.ts
│ │ └── type.js
│ ├── badge
│ │ ├── README.en-US.md
│ │ ├── README.md
│ │ ├── badge.d.ts
│ │ ├── badge.js
│ │ ├── badge.json
│ │ ├── badge.wxml
│ │ ├── badge.wxs
│ │ ├── badge.wxss
│ │ ├── index.d.ts
│ │ ├── index.js
│ │ ├── props.d.ts
│ │ ├── props.js
│ │ ├── type.d.ts
│ │ └── type.js
│ ├── button
│ │ ├── README.en-US.md
│ │ ├── README.md
│ │ ├── button.d.ts
│ │ ├── button.js
│ │ ├── button.json
│ │ ├── button.wxml
│ │ ├── button.wxss
│ │ ├── index.d.ts
│ │ ├── index.js
│ │ ├── props.d.ts
│ │ ├── props.js
│ │ ├── type.d.ts
│ │ └── type.js
│ ├── calendar
│ │ ├── README.en-US.md
│ │ ├── README.md
│ │ ├── calendar.d.ts
│ │ ├── calendar.js
│ │ ├── calendar.json
│ │ ├── calendar.wxml
│ │ ├── calendar.wxs
│ │ ├── calendar.wxss
│ │ ├── index.d.ts
│ │ ├── index.js
│ │ ├── props.d.ts
│ │ ├── props.js
│ │ ├── template.wxml
│ │ ├── type.d.ts
│ │ └── type.js
│ ├── cascader
│ │ ├── README.en-US.md
│ │ ├── README.md
│ │ ├── cascader.d.ts
│ │ ├── cascader.js
│ │ ├── cascader.json
│ │ ├── cascader.wxml
│ │ ├── cascader.wxss
│ │ ├── props.d.ts
│ │ ├── props.js
│ │ ├── type.d.ts
│ │ └── type.js
│ ├── cell-group
│ │ ├── cell-group.d.ts
│ │ ├── cell-group.js
│ │ ├── cell-group.json
│ │ ├── cell-group.wxml
│ │ ├── cell-group.wxss
│ │ ├── props.d.ts
│ │ ├── props.js
│ │ ├── type.d.ts
│ │ └── type.js
│ ├── cell
│ │ ├── README.en-US.md
│ │ ├── README.md
│ │ ├── cell.d.ts
│ │ ├── cell.js
│ │ ├── cell.json
│ │ ├── cell.wxml
│ │ ├── cell.wxss
│ │ ├── props.d.ts
│ │ ├── props.js
│ │ ├── type.d.ts
│ │ └── type.js
│ ├── check-tag
│ │ ├── check-tag.d.ts
│ │ ├── check-tag.js
│ │ ├── check-tag.json
│ │ ├── check-tag.wxml
│ │ ├── check-tag.wxss
│ │ ├── props.d.ts
│ │ ├── props.js
│ │ ├── type.d.ts
│ │ └── type.js
│ ├── checkbox-group
│ │ ├── checkbox-group.d.ts
│ │ ├── checkbox-group.js
│ │ ├── checkbox-group.json
│ │ ├── checkbox-group.wxml
│ │ ├── checkbox-group.wxss
│ │ ├── props.d.ts
│ │ ├── props.js
│ │ ├── type.d.ts
│ │ └── type.js
│ ├── checkbox
│ │ ├── README.en-US.md
│ │ ├── README.md
│ │ ├── checkbox.d.ts
│ │ ├── checkbox.js
│ │ ├── checkbox.json
│ │ ├── checkbox.wxml
│ │ ├── checkbox.wxss
│ │ ├── props.d.ts
│ │ ├── props.js
│ │ ├── type.d.ts
│ │ └── type.js
│ ├── col
│ │ ├── README.en-US.md
│ │ ├── README.md
│ │ ├── col.d.ts
│ │ ├── col.js
│ │ ├── col.json
│ │ ├── col.wxml
│ │ ├── col.wxs
│ │ ├── col.wxss
│ │ ├── props.d.ts
│ │ ├── props.js
│ │ ├── type.d.ts
│ │ └── type.js
│ ├── collapse-panel
│ │ ├── collapse-panel.d.ts
│ │ ├── collapse-panel.js
│ │ ├── collapse-panel.json
│ │ ├── collapse-panel.wxml
│ │ ├── collapse-panel.wxss
│ │ ├── props.d.ts
│ │ ├── props.js
│ │ ├── type.d.ts
│ │ └── type.js
│ ├── collapse
│ │ ├── README.en-US.md
│ │ ├── README.md
│ │ ├── collapse.d.ts
│ │ ├── collapse.js
│ │ ├── collapse.json
│ │ ├── collapse.wxml
│ │ ├── collapse.wxss
│ │ ├── index.d.ts
│ │ ├── index.js
│ │ ├── props.d.ts
│ │ ├── props.js
│ │ ├── type.d.ts
│ │ └── type.js
│ ├── common
│ │ ├── bus.d.ts
│ │ ├── bus.js
│ │ ├── common.d.ts
│ │ ├── common.js
│ │ ├── component.d.ts
│ │ ├── component.js
│ │ ├── config.d.ts
│ │ ├── config.js
│ │ ├── index.wxss
│ │ ├── shared
│ │ │ ├── calendar
│ │ │ │ ├── index.d.ts
│ │ │ │ ├── index.js
│ │ │ │ ├── type.d.ts
│ │ │ │ └── type.js
│ │ │ ├── date.d.ts
│ │ │ └── date.js
│ │ ├── src
│ │ │ ├── control.d.ts
│ │ │ ├── control.js
│ │ │ ├── flatTool.d.ts
│ │ │ ├── flatTool.js
│ │ │ ├── index.d.ts
│ │ │ ├── index.js
│ │ │ ├── instantiationDecorator.d.ts
│ │ │ ├── instantiationDecorator.js
│ │ │ ├── superComponent.d.ts
│ │ │ └── superComponent.js
│ │ ├── style
│ │ │ ├── _variables.wxss
│ │ │ ├── base.wxss
│ │ │ ├── icons.wxss
│ │ │ ├── index.wxss
│ │ │ ├── mixins
│ │ │ │ ├── _clearfix.wxss
│ │ │ │ ├── _cursor.wxss
│ │ │ │ ├── _ellipsis.wxss
│ │ │ │ ├── _hairline.wxss
│ │ │ │ └── _index.wxss
│ │ │ ├── theme
│ │ │ │ ├── _components.wxss
│ │ │ │ ├── _dark.wxss
│ │ │ │ ├── _font.wxss
│ │ │ │ ├── _index.wxss
│ │ │ │ ├── _light.wxss
│ │ │ │ ├── _radius.wxss
│ │ │ │ └── _spacer.wxss
│ │ │ └── utilities
│ │ │ │ ├── _animation.wxss
│ │ │ │ ├── _float.wxss
│ │ │ │ └── _index.wxss
│ │ ├── template
│ │ │ ├── badge.wxml
│ │ │ ├── button.wxml
│ │ │ ├── icon.wxml
│ │ │ └── image.wxml
│ │ ├── utils.d.ts
│ │ ├── utils.js
│ │ ├── utils.wxs
│ │ ├── version.d.ts
│ │ ├── version.js
│ │ ├── wechat.d.ts
│ │ └── wechat.js
│ ├── count-down
│ │ ├── README.en-US.md
│ │ ├── README.md
│ │ ├── count-down.d.ts
│ │ ├── count-down.js
│ │ ├── count-down.json
│ │ ├── count-down.wxml
│ │ ├── count-down.wxss
│ │ ├── props.d.ts
│ │ ├── props.js
│ │ ├── type.d.ts
│ │ ├── type.js
│ │ ├── utils.d.ts
│ │ └── utils.js
│ ├── date-time-picker
│ │ ├── README.en-US.md
│ │ ├── README.md
│ │ ├── date-time-picker.d.ts
│ │ ├── date-time-picker.js
│ │ ├── date-time-picker.json
│ │ ├── date-time-picker.wxml
│ │ ├── date-time-picker.wxss
│ │ ├── locale
│ │ │ ├── dayjs.d.ts
│ │ │ ├── dayjs.js
│ │ │ ├── en.d.ts
│ │ │ ├── en.js
│ │ │ ├── ja.d.ts
│ │ │ ├── ja.js
│ │ │ ├── ko.d.ts
│ │ │ ├── ko.js
│ │ │ ├── ru.d.ts
│ │ │ ├── ru.js
│ │ │ ├── tc.d.ts
│ │ │ ├── tc.js
│ │ │ ├── zh.d.ts
│ │ │ └── zh.js
│ │ ├── props.d.ts
│ │ ├── props.js
│ │ ├── type.d.ts
│ │ └── type.js
│ ├── dialog
│ │ ├── README.en-US.md
│ │ ├── README.md
│ │ ├── dialog.d.ts
│ │ ├── dialog.js
│ │ ├── dialog.json
│ │ ├── dialog.wxml
│ │ ├── dialog.wxs
│ │ ├── dialog.wxss
│ │ ├── index.d.ts
│ │ ├── index.js
│ │ ├── props.d.ts
│ │ ├── props.js
│ │ ├── type.d.ts
│ │ └── type.js
│ ├── divider
│ │ ├── README.en-US.md
│ │ ├── README.md
│ │ ├── divider.d.ts
│ │ ├── divider.js
│ │ ├── divider.json
│ │ ├── divider.wxml
│ │ ├── divider.wxss
│ │ ├── props.d.ts
│ │ ├── props.js
│ │ ├── type.d.ts
│ │ └── type.js
│ ├── drawer
│ │ ├── README.en-US.md
│ │ ├── README.md
│ │ ├── drawer.d.ts
│ │ ├── drawer.js
│ │ ├── drawer.json
│ │ ├── drawer.wxml
│ │ ├── drawer.wxss
│ │ ├── props.d.ts
│ │ ├── props.js
│ │ ├── type.d.ts
│ │ └── type.js
│ ├── dropdown-item
│ │ ├── dropdown-item.d.ts
│ │ ├── dropdown-item.js
│ │ ├── dropdown-item.json
│ │ ├── dropdown-item.wxml
│ │ ├── dropdown-item.wxss
│ │ ├── index.wxs
│ │ ├── props.d.ts
│ │ ├── props.js
│ │ ├── type.d.ts
│ │ └── type.js
│ ├── dropdown-menu
│ │ ├── README.en-US.md
│ │ ├── README.md
│ │ ├── dropdown-menu.d.ts
│ │ ├── dropdown-menu.js
│ │ ├── dropdown-menu.json
│ │ ├── dropdown-menu.wxml
│ │ ├── dropdown-menu.wxss
│ │ ├── index.d.ts
│ │ ├── index.js
│ │ ├── props.d.ts
│ │ ├── props.js
│ │ ├── type.d.ts
│ │ └── type.js
│ ├── empty
│ │ ├── README.en-US.md
│ │ ├── README.md
│ │ ├── empty.d.ts
│ │ ├── empty.js
│ │ ├── empty.json
│ │ ├── empty.wxml
│ │ ├── empty.wxss
│ │ ├── props.d.ts
│ │ ├── props.js
│ │ ├── type.d.ts
│ │ └── type.js
│ ├── fab
│ │ ├── README.en-US.md
│ │ ├── README.md
│ │ ├── draggable
│ │ │ ├── draggable.d.ts
│ │ │ ├── draggable.js
│ │ │ ├── draggable.json
│ │ │ ├── draggable.wxml
│ │ │ ├── draggable.wxss
│ │ │ ├── index.d.ts
│ │ │ ├── index.js
│ │ │ ├── props.d.ts
│ │ │ ├── props.js
│ │ │ ├── type.d.ts
│ │ │ └── type.js
│ │ ├── fab.d.ts
│ │ ├── fab.js
│ │ ├── fab.json
│ │ ├── fab.wxml
│ │ ├── fab.wxss
│ │ ├── props.d.ts
│ │ ├── props.js
│ │ ├── template
│ │ │ ├── draggable.wxml
│ │ │ └── view.wxml
│ │ ├── type.d.ts
│ │ └── type.js
│ ├── footer
│ │ ├── README.en-US.md
│ │ ├── README.md
│ │ ├── footer.d.ts
│ │ ├── footer.js
│ │ ├── footer.json
│ │ ├── footer.wxml
│ │ ├── footer.wxss
│ │ ├── props.d.ts
│ │ ├── props.js
│ │ ├── type.d.ts
│ │ └── type.js
│ ├── grid-item
│ │ ├── grid-item.d.ts
│ │ ├── grid-item.js
│ │ ├── grid-item.json
│ │ ├── grid-item.wxml
│ │ ├── grid-item.wxss
│ │ ├── props.d.ts
│ │ ├── props.js
│ │ ├── type.d.ts
│ │ └── type.js
│ ├── grid
│ │ ├── README.en-US.md
│ │ ├── README.md
│ │ ├── grid.d.ts
│ │ ├── grid.js
│ │ ├── grid.json
│ │ ├── grid.wxml
│ │ ├── grid.wxss
│ │ ├── props.d.ts
│ │ ├── props.js
│ │ ├── type.d.ts
│ │ └── type.js
│ ├── guide
│ │ ├── README.en-US.md
│ │ ├── README.md
│ │ ├── content.wxml
│ │ ├── guide.d.ts
│ │ ├── guide.js
│ │ ├── guide.json
│ │ ├── guide.wxml
│ │ ├── guide.wxss
│ │ ├── props.d.ts
│ │ ├── props.js
│ │ ├── type.d.ts
│ │ └── type.js
│ ├── icon
│ │ ├── README.md
│ │ ├── icon.d.ts
│ │ ├── icon.js
│ │ ├── icon.json
│ │ ├── icon.wxml
│ │ ├── icon.wxss
│ │ ├── props.d.ts
│ │ ├── props.js
│ │ ├── type.d.ts
│ │ └── type.js
│ ├── image-viewer
│ │ ├── README.en-US.md
│ │ ├── README.md
│ │ ├── image-viewer.d.ts
│ │ ├── image-viewer.js
│ │ ├── image-viewer.json
│ │ ├── image-viewer.wxml
│ │ ├── image-viewer.wxss
│ │ ├── props.d.ts
│ │ ├── props.js
│ │ ├── type.d.ts
│ │ └── type.js
│ ├── image
│ │ ├── README.en-US.md
│ │ ├── README.md
│ │ ├── image-info.json
│ │ ├── image.d.ts
│ │ ├── image.js
│ │ ├── image.json
│ │ ├── image.wxml
│ │ ├── image.wxss
│ │ ├── index.d.ts
│ │ ├── index.js
│ │ ├── props.d.ts
│ │ ├── props.js
│ │ ├── type.d.ts
│ │ └── type.js
│ ├── index.d.ts
│ ├── index.js
│ ├── indexes-anchor
│ │ ├── README.en-US.md
│ │ ├── README.md
│ │ ├── indexes-anchor.d.ts
│ │ ├── indexes-anchor.js
│ │ ├── indexes-anchor.json
│ │ ├── indexes-anchor.wxml
│ │ ├── indexes-anchor.wxss
│ │ ├── props.d.ts
│ │ ├── props.js
│ │ ├── type.d.ts
│ │ └── type.js
│ ├── indexes
│ │ ├── README.en-US.md
│ │ ├── README.md
│ │ ├── indexes.d.ts
│ │ ├── indexes.js
│ │ ├── indexes.json
│ │ ├── indexes.wxml
│ │ ├── indexes.wxss
│ │ ├── props.d.ts
│ │ ├── props.js
│ │ ├── type.d.ts
│ │ └── type.js
│ ├── input
│ │ ├── README.en-US.md
│ │ ├── README.md
│ │ ├── input.d.ts
│ │ ├── input.js
│ │ ├── input.json
│ │ ├── input.wxml
│ │ ├── input.wxs
│ │ ├── input.wxss
│ │ ├── props.d.ts
│ │ ├── props.js
│ │ ├── type.d.ts
│ │ └── type.js
│ ├── link
│ │ ├── README.en-US.md
│ │ ├── README.md
│ │ ├── link.d.ts
│ │ ├── link.js
│ │ ├── link.json
│ │ ├── link.wxml
│ │ ├── link.wxss
│ │ ├── props.d.ts
│ │ ├── props.js
│ │ ├── type.d.ts
│ │ └── type.js
│ ├── loading
│ │ ├── README.en-US.md
│ │ ├── README.md
│ │ ├── index.d.ts
│ │ ├── index.js
│ │ ├── loading.d.ts
│ │ ├── loading.js
│ │ ├── loading.json
│ │ ├── loading.wxml
│ │ ├── loading.wxss
│ │ ├── props.d.ts
│ │ ├── props.js
│ │ ├── type.d.ts
│ │ └── type.js
│ ├── message-item
│ │ ├── index.d.ts
│ │ ├── index.js
│ │ ├── message-item.d.ts
│ │ ├── message-item.js
│ │ ├── message-item.json
│ │ ├── message-item.wxml
│ │ ├── message-item.wxs
│ │ └── message-item.wxss
│ ├── message
│ │ ├── README.en-US.md
│ │ ├── README.md
│ │ ├── index.d.ts
│ │ ├── index.js
│ │ ├── message.d.ts
│ │ ├── message.interface.d.ts
│ │ ├── message.interface.js
│ │ ├── message.js
│ │ ├── message.json
│ │ ├── message.wxml
│ │ ├── message.wxss
│ │ ├── props.d.ts
│ │ ├── props.js
│ │ ├── type.d.ts
│ │ └── type.js
│ ├── miniprogram_npm
│ │ └── dayjs
│ │ │ ├── index.js
│ │ │ ├── locale
│ │ │ ├── en.js
│ │ │ ├── ja.js
│ │ │ ├── ko.js
│ │ │ ├── ru.js
│ │ │ ├── zh-cn.js
│ │ │ └── zh-tw.js
│ │ │ └── plugin
│ │ │ └── localeData.js
│ ├── mixins
│ │ ├── page-scroll.d.ts
│ │ ├── page-scroll.js
│ │ ├── theme-change.d.ts
│ │ ├── theme-change.js
│ │ ├── touch.d.ts
│ │ ├── touch.js
│ │ ├── transition.d.ts
│ │ ├── transition.js
│ │ ├── using-custom-navbar.d.ts
│ │ └── using-custom-navbar.js
│ ├── navbar
│ │ ├── README.en-US.md
│ │ ├── README.md
│ │ ├── navbar.d.ts
│ │ ├── navbar.js
│ │ ├── navbar.json
│ │ ├── navbar.wxml
│ │ ├── navbar.wxss
│ │ ├── props.d.ts
│ │ ├── props.js
│ │ ├── type.d.ts
│ │ └── type.js
│ ├── notice-bar
│ │ ├── README.en-US.md
│ │ ├── README.md
│ │ ├── notice-bar.d.ts
│ │ ├── notice-bar.js
│ │ ├── notice-bar.json
│ │ ├── notice-bar.wxml
│ │ ├── notice-bar.wxss
│ │ ├── props.d.ts
│ │ ├── props.js
│ │ ├── type.d.ts
│ │ └── type.js
│ ├── overlay
│ │ ├── README.en-US.md
│ │ ├── README.md
│ │ ├── index.d.ts
│ │ ├── index.js
│ │ ├── overlay.d.ts
│ │ ├── overlay.js
│ │ ├── overlay.json
│ │ ├── overlay.wxml
│ │ ├── overlay.wxss
│ │ ├── props.d.ts
│ │ ├── props.js
│ │ ├── type.d.ts
│ │ └── type.js
│ ├── picker-item
│ │ ├── picker-item.d.ts
│ │ ├── picker-item.js
│ │ ├── picker-item.json
│ │ ├── picker-item.wxml
│ │ ├── picker-item.wxss
│ │ ├── props.d.ts
│ │ ├── props.js
│ │ ├── type.d.ts
│ │ └── type.js
│ ├── picker
│ │ ├── README.en-US.md
│ │ ├── README.md
│ │ ├── picker.d.ts
│ │ ├── picker.js
│ │ ├── picker.json
│ │ ├── picker.wxml
│ │ ├── picker.wxss
│ │ ├── props.d.ts
│ │ ├── props.js
│ │ ├── template.wxml
│ │ ├── type.d.ts
│ │ └── type.js
│ ├── popup
│ │ ├── README.en-US.md
│ │ ├── README.md
│ │ ├── index.d.ts
│ │ ├── index.js
│ │ ├── popup.d.ts
│ │ ├── popup.js
│ │ ├── popup.json
│ │ ├── popup.wxml
│ │ ├── popup.wxs
│ │ ├── popup.wxss
│ │ ├── props.d.ts
│ │ ├── props.js
│ │ ├── type.d.ts
│ │ └── type.js
│ ├── progress
│ │ ├── README.en-US.md
│ │ ├── README.md
│ │ ├── progress.d.ts
│ │ ├── progress.js
│ │ ├── progress.json
│ │ ├── progress.wxml
│ │ ├── progress.wxs
│ │ ├── progress.wxss
│ │ ├── props.d.ts
│ │ ├── props.js
│ │ ├── type.d.ts
│ │ ├── type.js
│ │ ├── utils.d.ts
│ │ └── utils.js
│ ├── pull-down-refresh
│ │ ├── README.en-US.md
│ │ ├── README.md
│ │ ├── props.d.ts
│ │ ├── props.js
│ │ ├── pull-down-refresh.d.ts
│ │ ├── pull-down-refresh.js
│ │ ├── pull-down-refresh.json
│ │ ├── pull-down-refresh.wxml
│ │ ├── pull-down-refresh.wxss
│ │ ├── type.d.ts
│ │ └── type.js
│ ├── radio-group
│ │ ├── props.d.ts
│ │ ├── props.js
│ │ ├── radio-group.d.ts
│ │ ├── radio-group.js
│ │ ├── radio-group.json
│ │ ├── radio-group.wxml
│ │ ├── radio-group.wxss
│ │ ├── type.d.ts
│ │ └── type.js
│ ├── radio
│ │ ├── README.en-US.md
│ │ ├── README.md
│ │ ├── props.d.ts
│ │ ├── props.js
│ │ ├── radio.d.ts
│ │ ├── radio.js
│ │ ├── radio.json
│ │ ├── radio.wxml
│ │ ├── radio.wxss
│ │ ├── type.d.ts
│ │ └── type.js
│ ├── rate
│ │ ├── README.en-US.md
│ │ ├── README.md
│ │ ├── props.d.ts
│ │ ├── props.js
│ │ ├── rate.d.ts
│ │ ├── rate.js
│ │ ├── rate.json
│ │ ├── rate.wxml
│ │ ├── rate.wxs
│ │ ├── rate.wxss
│ │ ├── type.d.ts
│ │ └── type.js
│ ├── result
│ │ ├── README.en-US.md
│ │ ├── README.md
│ │ ├── index.d.ts
│ │ ├── index.js
│ │ ├── props.d.ts
│ │ ├── props.js
│ │ ├── result.d.ts
│ │ ├── result.js
│ │ ├── result.json
│ │ ├── result.wxml
│ │ ├── result.wxss
│ │ ├── type.d.ts
│ │ └── type.js
│ ├── row
│ │ ├── README.md
│ │ ├── props.d.ts
│ │ ├── props.js
│ │ ├── row.d.ts
│ │ ├── row.js
│ │ ├── row.json
│ │ ├── row.wxml
│ │ ├── row.wxs
│ │ ├── row.wxss
│ │ ├── type.d.ts
│ │ └── type.js
│ ├── search
│ │ ├── README.en-US.md
│ │ ├── README.md
│ │ ├── props.d.ts
│ │ ├── props.js
│ │ ├── search.d.ts
│ │ ├── search.js
│ │ ├── search.json
│ │ ├── search.wxml
│ │ ├── search.wxs
│ │ ├── search.wxss
│ │ ├── type.d.ts
│ │ └── type.js
│ ├── side-bar-item
│ │ ├── props.d.ts
│ │ ├── props.js
│ │ ├── side-bar-item.d.ts
│ │ ├── side-bar-item.js
│ │ ├── side-bar-item.json
│ │ ├── side-bar-item.wxml
│ │ ├── side-bar-item.wxss
│ │ ├── type.d.ts
│ │ └── type.js
│ ├── side-bar
│ │ ├── README.en-US.md
│ │ ├── README.md
│ │ ├── props.d.ts
│ │ ├── props.js
│ │ ├── side-bar.d.ts
│ │ ├── side-bar.js
│ │ ├── side-bar.json
│ │ ├── side-bar.wxml
│ │ ├── side-bar.wxss
│ │ ├── type.d.ts
│ │ └── type.js
│ ├── skeleton
│ │ ├── README.en-US.md
│ │ ├── README.md
│ │ ├── props.d.ts
│ │ ├── props.js
│ │ ├── skeleton.d.ts
│ │ ├── skeleton.js
│ │ ├── skeleton.json
│ │ ├── skeleton.wxml
│ │ ├── skeleton.wxss
│ │ ├── type.d.ts
│ │ └── type.js
│ ├── slider
│ │ ├── README.en-US.md
│ │ ├── README.md
│ │ ├── props.d.ts
│ │ ├── props.js
│ │ ├── slider.d.ts
│ │ ├── slider.js
│ │ ├── slider.json
│ │ ├── slider.wxml
│ │ ├── slider.wxs
│ │ ├── slider.wxss
│ │ ├── tool.d.ts
│ │ ├── tool.js
│ │ ├── type.d.ts
│ │ └── type.js
│ ├── step-item
│ │ ├── props.d.ts
│ │ ├── props.js
│ │ ├── step-item.d.ts
│ │ ├── step-item.js
│ │ ├── step-item.json
│ │ ├── step-item.wxml
│ │ ├── step-item.wxs
│ │ ├── step-item.wxss
│ │ ├── type.d.ts
│ │ └── type.js
│ ├── stepper
│ │ ├── README.en-US.md
│ │ ├── README.md
│ │ ├── props.d.ts
│ │ ├── props.js
│ │ ├── stepper.d.ts
│ │ ├── stepper.js
│ │ ├── stepper.json
│ │ ├── stepper.wxml
│ │ ├── stepper.wxss
│ │ ├── type.d.ts
│ │ └── type.js
│ ├── steps
│ │ ├── README.en-US.md
│ │ ├── README.md
│ │ ├── props.d.ts
│ │ ├── props.js
│ │ ├── steps.d.ts
│ │ ├── steps.js
│ │ ├── steps.json
│ │ ├── steps.wxml
│ │ ├── steps.wxss
│ │ ├── type.d.ts
│ │ └── type.js
│ ├── sticky
│ │ ├── README.en-US.md
│ │ ├── README.md
│ │ ├── index.d.ts
│ │ ├── index.js
│ │ ├── props.d.ts
│ │ ├── props.js
│ │ ├── sticky.d.ts
│ │ ├── sticky.js
│ │ ├── sticky.json
│ │ ├── sticky.wxml
│ │ ├── sticky.wxss
│ │ ├── type.d.ts
│ │ └── type.js
│ ├── swipe-cell
│ │ ├── README.en-US.md
│ │ ├── README.md
│ │ ├── props.d.ts
│ │ ├── props.js
│ │ ├── swipe-cell.d.ts
│ │ ├── swipe-cell.js
│ │ ├── swipe-cell.json
│ │ ├── swipe-cell.wxml
│ │ ├── swipe-cell.wxs
│ │ ├── swipe-cell.wxss
│ │ ├── type.d.ts
│ │ └── type.js
│ ├── swiper-nav
│ │ ├── index.d.ts
│ │ ├── index.js
│ │ ├── props.d.ts
│ │ ├── props.js
│ │ ├── swiper-nav.d.ts
│ │ ├── swiper-nav.js
│ │ ├── swiper-nav.json
│ │ ├── swiper-nav.wxml
│ │ ├── swiper-nav.wxss
│ │ ├── type.d.ts
│ │ └── type.js
│ ├── swiper
│ │ ├── README.en-US.md
│ │ ├── README.md
│ │ ├── index.wxs
│ │ ├── props.d.ts
│ │ ├── props.js
│ │ ├── swiper.d.ts
│ │ ├── swiper.js
│ │ ├── swiper.json
│ │ ├── swiper.wxml
│ │ ├── swiper.wxss
│ │ ├── type.d.ts
│ │ └── type.js
│ ├── switch
│ │ ├── README.en-US.md
│ │ ├── README.md
│ │ ├── props.d.ts
│ │ ├── props.js
│ │ ├── switch.d.ts
│ │ ├── switch.js
│ │ ├── switch.json
│ │ ├── switch.wxml
│ │ ├── switch.wxss
│ │ ├── type.d.ts
│ │ └── type.js
│ ├── tab-bar-item
│ │ ├── props.d.ts
│ │ ├── props.js
│ │ ├── tab-bar-item.d.ts
│ │ ├── tab-bar-item.js
│ │ ├── tab-bar-item.json
│ │ ├── tab-bar-item.wxml
│ │ ├── tab-bar-item.wxss
│ │ ├── type.d.ts
│ │ └── type.js
│ ├── tab-bar
│ │ ├── README.en-US.md
│ │ ├── README.md
│ │ ├── props.d.ts
│ │ ├── props.js
│ │ ├── tab-bar.d.ts
│ │ ├── tab-bar.js
│ │ ├── tab-bar.json
│ │ ├── tab-bar.wxml
│ │ ├── tab-bar.wxss
│ │ ├── type.d.ts
│ │ └── type.js
│ ├── tab-panel
│ │ ├── props.d.ts
│ │ ├── props.js
│ │ ├── tab-panel.d.ts
│ │ ├── tab-panel.js
│ │ ├── tab-panel.json
│ │ ├── tab-panel.wxml
│ │ ├── tab-panel.wxss
│ │ ├── type.d.ts
│ │ └── type.js
│ ├── tabs
│ │ ├── README.en-US.md
│ │ ├── README.md
│ │ ├── index.d.ts
│ │ ├── index.js
│ │ ├── props.d.ts
│ │ ├── props.js
│ │ ├── tabs.d.ts
│ │ ├── tabs.js
│ │ ├── tabs.json
│ │ ├── tabs.wxml
│ │ ├── tabs.wxs
│ │ ├── tabs.wxss
│ │ ├── type.d.ts
│ │ └── type.js
│ ├── tag
│ │ ├── README.en-US.md
│ │ ├── README.md
│ │ ├── props.d.ts
│ │ ├── props.js
│ │ ├── tag.d.ts
│ │ ├── tag.js
│ │ ├── tag.json
│ │ ├── tag.wxml
│ │ ├── tag.wxss
│ │ ├── type.d.ts
│ │ └── type.js
│ ├── textarea
│ │ ├── README.en-US.md
│ │ ├── README.md
│ │ ├── props.d.ts
│ │ ├── props.js
│ │ ├── textarea.d.ts
│ │ ├── textarea.js
│ │ ├── textarea.json
│ │ ├── textarea.wxml
│ │ ├── textarea.wxs
│ │ ├── textarea.wxss
│ │ ├── type.d.ts
│ │ └── type.js
│ ├── toast
│ │ ├── README.en-US.md
│ │ ├── README.md
│ │ ├── index.d.ts
│ │ ├── index.js
│ │ ├── props.d.ts
│ │ ├── props.js
│ │ ├── toast.d.ts
│ │ ├── toast.js
│ │ ├── toast.json
│ │ ├── toast.wxml
│ │ ├── toast.wxss
│ │ ├── type.d.ts
│ │ └── type.js
│ ├── transition
│ │ ├── README.md
│ │ ├── index.d.ts
│ │ ├── index.js
│ │ ├── props.d.ts
│ │ ├── props.js
│ │ ├── transition.d.ts
│ │ ├── transition.js
│ │ ├── transition.json
│ │ ├── transition.wxml
│ │ ├── transition.wxss
│ │ ├── type.d.ts
│ │ └── type.js
│ ├── tree-select
│ │ ├── README.en-US.md
│ │ ├── README.md
│ │ ├── index.wxs
│ │ ├── props.d.ts
│ │ ├── props.js
│ │ ├── tree-select.d.ts
│ │ ├── tree-select.js
│ │ ├── tree-select.json
│ │ ├── tree-select.wxml
│ │ ├── tree-select.wxss
│ │ ├── type.d.ts
│ │ └── type.js
│ └── upload
│ │ ├── README.en-US.md
│ │ ├── README.md
│ │ ├── drag.wxs
│ │ ├── props.d.ts
│ │ ├── props.js
│ │ ├── type.d.ts
│ │ ├── type.js
│ │ ├── upload-info.json
│ │ ├── upload.d.ts
│ │ ├── upload.js
│ │ ├── upload.json
│ │ ├── upload.wxml
│ │ ├── upload.wxs
│ │ └── upload.wxss
└── tslib
│ ├── index.js
│ └── index.js.map
├── model
├── activities.js
├── activity.js
├── address.js
├── cart.js
├── category.js
├── comments.js
├── comments
│ └── queryDetail.js
├── coupon.js
├── detailsComments.js
├── good.js
├── goods.js
├── order
│ ├── applyService.js
│ ├── orderConfirm.js
│ ├── orderDetail.js
│ └── orderList.js
├── promotion.js
├── search.js
├── submitComment.js
├── swiper.js
└── usercenter.js
├── mysql
├── attr_name.json
├── attr_value.json
├── cart_item.json
├── comment.json
├── coupons.json
├── delivery_info.json
├── home_swiper_image.json
├── hospital.json
├── order.json
├── order_item.json
├── server_city.json
├── shop_spu.json
├── sku.json
├── spu_cate.json
├── user.json
└── user_coupons.json
├── package-lock.json
├── package.json
├── packageCoupon
└── pages
│ └── coupon
│ ├── components
│ ├── coupon-card
│ │ ├── index.js
│ │ ├── index.json
│ │ ├── index.wxml
│ │ └── index.wxss
│ ├── floating-button
│ │ ├── index.js
│ │ ├── index.json
│ │ ├── index.wxml
│ │ └── index.wxss
│ └── ui-coupon-card
│ │ ├── index.js
│ │ ├── index.json
│ │ ├── index.wxml
│ │ └── index.wxss
│ ├── coupon-activity-goods
│ ├── index.js
│ ├── index.json
│ ├── index.wxml
│ └── index.wxss
│ ├── coupon-detail
│ ├── index.js
│ ├── index.json
│ ├── index.wxml
│ └── index.wxss
│ ├── coupon-list
│ ├── index.js
│ ├── index.json
│ ├── index.wxml
│ └── index.wxss
│ ├── index.js
│ ├── index.json
│ ├── index.wxml
│ └── index.wxss
├── packagePromotion
└── pages
│ └── promotion-detail
│ ├── index.js
│ ├── index.json
│ ├── index.wxml
│ └── index.wxss
├── packageUser
└── pages
│ ├── components
│ └── ui-address-item
│ │ ├── index.js
│ │ ├── index.json
│ │ ├── index.wxml
│ │ └── index.wxss
│ ├── name-edit
│ ├── index.js
│ ├── index.json
│ ├── index.wxml
│ └── index.wxss
│ └── person-info
│ ├── index.js
│ ├── index.json
│ ├── index.wxml
│ └── index.wxss
├── pages
├── cart
│ ├── components
│ │ ├── cart-bar
│ │ │ ├── index.js
│ │ │ ├── index.json
│ │ │ ├── index.wxml
│ │ │ └── index.wxss
│ │ ├── cart-empty
│ │ │ ├── index.js
│ │ │ ├── index.json
│ │ │ ├── index.wxml
│ │ │ └── index.wxss
│ │ ├── cart-group
│ │ │ ├── index.js
│ │ │ ├── index.json
│ │ │ ├── index.wxml
│ │ │ ├── index.wxs
│ │ │ ├── index.wxss
│ │ │ └── utils.wxs
│ │ ├── goods-card
│ │ │ ├── index.js
│ │ │ ├── index.json
│ │ │ ├── index.wxml
│ │ │ └── index.wxss
│ │ └── specs-popup
│ │ │ ├── index.js
│ │ │ ├── index.json
│ │ │ ├── index.wxml
│ │ │ └── index.wxss
│ ├── index.js
│ ├── index.json
│ ├── index.wxml
│ └── index.wxss
├── coupon
│ ├── components
│ │ ├── coupon-card
│ │ │ ├── index.js
│ │ │ ├── index.json
│ │ │ ├── index.wxml
│ │ │ └── index.wxss
│ │ ├── floating-button
│ │ │ ├── index.js
│ │ │ ├── index.json
│ │ │ ├── index.wxml
│ │ │ └── index.wxss
│ │ └── ui-coupon-card
│ │ │ ├── index.js
│ │ │ ├── index.json
│ │ │ ├── index.wxml
│ │ │ └── index.wxss
│ └── util.js
├── goods
│ ├── category
│ │ ├── components
│ │ │ └── goods-category
│ │ │ │ ├── components
│ │ │ │ ├── c-sidebar
│ │ │ │ │ ├── README.md
│ │ │ │ │ ├── c-sidebar-item
│ │ │ │ │ │ ├── index.js
│ │ │ │ │ │ ├── index.json
│ │ │ │ │ │ ├── index.wxml
│ │ │ │ │ │ └── index.wxss
│ │ │ │ │ ├── index.js
│ │ │ │ │ ├── index.json
│ │ │ │ │ ├── index.wxml
│ │ │ │ │ └── index.wxss
│ │ │ │ └── c-tabbar
│ │ │ │ │ ├── c-tabbar-more
│ │ │ │ │ ├── index.js
│ │ │ │ │ ├── index.json
│ │ │ │ │ ├── index.wxml
│ │ │ │ │ └── index.wxss
│ │ │ │ │ ├── index.js
│ │ │ │ │ ├── index.json
│ │ │ │ │ ├── index.wxml
│ │ │ │ │ └── index.wxss
│ │ │ │ ├── index.js
│ │ │ │ ├── index.json
│ │ │ │ ├── index.wxml
│ │ │ │ └── index.wxss
│ │ ├── index.js
│ │ ├── index.json
│ │ ├── index.wxml
│ │ └── index.wxss
│ ├── comments
│ │ ├── components
│ │ │ └── comments-card
│ │ │ │ ├── components
│ │ │ │ ├── images-videos
│ │ │ │ │ ├── assets
│ │ │ │ │ │ └── play.png
│ │ │ │ │ ├── index.js
│ │ │ │ │ ├── index.json
│ │ │ │ │ ├── index.wxml
│ │ │ │ │ └── index.wxss
│ │ │ │ └── my-video
│ │ │ │ │ ├── index.js
│ │ │ │ │ ├── index.json
│ │ │ │ │ ├── index.wxml
│ │ │ │ │ └── index.wxss
│ │ │ │ ├── index.js
│ │ │ │ ├── index.json
│ │ │ │ ├── index.wxml
│ │ │ │ └── index.wxss
│ │ ├── create-list
│ │ │ ├── index.js
│ │ │ ├── index.json
│ │ │ ├── index.wxml
│ │ │ └── index.wxss
│ │ ├── create
│ │ │ ├── index.js
│ │ │ ├── index.json
│ │ │ ├── index.wxml
│ │ │ └── index.wxss
│ │ ├── index.js
│ │ ├── index.json
│ │ ├── index.wxml
│ │ └── index.wxss
│ ├── details
│ │ ├── components
│ │ │ ├── buy-bar
│ │ │ │ ├── index.js
│ │ │ │ ├── index.json
│ │ │ │ ├── index.wxml
│ │ │ │ └── index.wxss
│ │ │ ├── goods-specs-popup
│ │ │ │ ├── index.js
│ │ │ │ ├── index.json
│ │ │ │ ├── index.wxml
│ │ │ │ └── index.wxss
│ │ │ └── promotion-popup
│ │ │ │ ├── index.js
│ │ │ │ ├── index.json
│ │ │ │ ├── index.wxml
│ │ │ │ └── index.wxss
│ │ ├── index.js
│ │ ├── index.json
│ │ ├── index.wxml
│ │ └── index.wxss
│ ├── list
│ │ ├── index.js
│ │ ├── index.json
│ │ ├── index.wxml
│ │ └── index.wxss
│ ├── result
│ │ ├── index.js
│ │ ├── index.json
│ │ ├── index.wxml
│ │ └── index.wxss
│ └── search
│ │ ├── index.js
│ │ ├── index.json
│ │ ├── index.wxml
│ │ └── index.wxss
├── home
│ ├── home.js
│ ├── home.json
│ ├── home.wxml
│ └── home.wxss
├── hospital
│ ├── detail
│ │ ├── index.js
│ │ ├── index.json
│ │ ├── index.wxml
│ │ └── index.wxss
│ └── list
│ │ ├── index.js
│ │ ├── index.json
│ │ ├── index.wxml
│ │ └── index.wxss
├── order
│ ├── after-service-detail
│ │ ├── api.js
│ │ ├── index.js
│ │ ├── index.json
│ │ ├── index.wxml
│ │ └── index.wxss
│ ├── after-service-list
│ │ ├── api.js
│ │ ├── index.js
│ │ ├── index.json
│ │ ├── index.wxml
│ │ └── index.wxss
│ ├── apply-service
│ │ ├── index.js
│ │ ├── index.json
│ │ ├── index.wxml
│ │ └── index.wxss
│ ├── components
│ │ ├── after-service-button-bar
│ │ │ ├── index.js
│ │ │ ├── index.json
│ │ │ ├── index.wxml
│ │ │ └── index.wxss
│ │ ├── customer-service
│ │ │ ├── index.js
│ │ │ ├── index.json
│ │ │ ├── index.wxml
│ │ │ └── index.wxss
│ │ ├── goods-card
│ │ │ ├── index.js
│ │ │ ├── index.json
│ │ │ ├── index.wxml
│ │ │ └── index.wxss
│ │ ├── noGoods
│ │ │ ├── noGood.wxs
│ │ │ ├── noGoods.js
│ │ │ ├── noGoods.json
│ │ │ ├── noGoods.wxml
│ │ │ └── noGoods.wxss
│ │ ├── order-button-bar
│ │ │ ├── index.js
│ │ │ ├── index.json
│ │ │ ├── index.wxml
│ │ │ └── index.wxss
│ │ ├── order-card
│ │ │ ├── index.js
│ │ │ ├── index.json
│ │ │ ├── index.wxml
│ │ │ └── index.wxss
│ │ ├── order-goods-card
│ │ │ ├── index.js
│ │ │ ├── index.json
│ │ │ └── index.wxml
│ │ ├── reason-sheet
│ │ │ ├── index.js
│ │ │ ├── index.json
│ │ │ ├── index.wxml
│ │ │ ├── index.wxss
│ │ │ └── reasonSheet.js
│ │ ├── selectCoupons
│ │ │ ├── mock.js
│ │ │ ├── selectCoupon.wxs
│ │ │ ├── selectCoupons.js
│ │ │ ├── selectCoupons.json
│ │ │ ├── selectCoupons.wxml
│ │ │ └── selectCoupons.wxss
│ │ └── specs-goods-card
│ │ │ ├── index.js
│ │ │ ├── index.json
│ │ │ ├── index.wxml
│ │ │ └── index.wxss
│ ├── config.js
│ ├── delivery-detail
│ │ ├── index.js
│ │ ├── index.json
│ │ ├── index.wxml
│ │ └── index.wxss
│ ├── fill-tracking-no
│ │ ├── api.js
│ │ ├── index.js
│ │ ├── index.json
│ │ ├── index.wxml
│ │ └── index.wxss
│ ├── invoice
│ │ ├── index.js
│ │ ├── index.json
│ │ ├── index.wxml
│ │ └── index.wxss
│ ├── order-confirm
│ │ ├── components
│ │ │ └── address-card
│ │ │ │ ├── index.js
│ │ │ │ ├── index.json
│ │ │ │ ├── index.wxml
│ │ │ │ └── index.wxss
│ │ ├── getNotes.wxs
│ │ ├── handleInvoice.wxs
│ │ ├── index.js
│ │ ├── index.json
│ │ ├── index.wxml
│ │ ├── index.wxss
│ │ ├── order.wxs
│ │ └── pay.js
│ ├── order-detail
│ │ ├── index.js
│ │ ├── index.json
│ │ ├── index.wxml
│ │ └── index.wxss
│ ├── order-list
│ │ ├── index.js
│ │ ├── index.json
│ │ ├── index.wxml
│ │ └── index.wxss
│ ├── pay-result
│ │ ├── index.js
│ │ ├── index.json
│ │ ├── index.wxml
│ │ └── index.wxss
│ └── receipt
│ │ ├── index.js
│ │ ├── index.json
│ │ ├── index.wxml
│ │ └── index.wxss
├── usercenter
│ ├── address
│ │ ├── edit
│ │ │ ├── index.js
│ │ │ ├── index.json
│ │ │ ├── index.wxml
│ │ │ └── index.wxss
│ │ └── list
│ │ │ ├── index.js
│ │ │ ├── index.json
│ │ │ ├── index.wxml
│ │ │ ├── index.wxss
│ │ │ └── util.js
│ ├── components
│ │ ├── order-group
│ │ │ ├── index.js
│ │ │ ├── index.json
│ │ │ ├── index.wxml
│ │ │ └── index.wxss
│ │ ├── ui-address-item
│ │ │ ├── index.js
│ │ │ ├── index.json
│ │ │ ├── index.wxml
│ │ │ └── index.wxss
│ │ ├── ui-select-picker
│ │ │ ├── index.js
│ │ │ ├── index.json
│ │ │ ├── index.wxml
│ │ │ └── index.wxss
│ │ └── user-center-card
│ │ │ ├── index.js
│ │ │ ├── index.json
│ │ │ ├── index.wxml
│ │ │ └── index.wxss
│ ├── index.js
│ ├── index.json
│ ├── index.wxml
│ └── index.wxss
└── webview
│ ├── index.js
│ ├── index.json
│ ├── index.wxml
│ └── index.wxss
├── project.config.json
├── project.private.config.json
├── services
├── _utils
│ ├── delay.js
│ ├── model.js
│ └── timeout.js
├── activity
│ ├── fetchActivity.js
│ └── fetchActivityList.js
├── address
│ └── address.js
├── attrValue
│ └── attrValue.js
├── cart
│ └── cart.js
├── cate
│ └── cate.js
├── city
│ └── city.js
├── cloudbaseMock
│ └── index.js
├── comments
│ ├── comments.js
│ ├── fetchComments.js
│ └── fetchCommentsCount.js
├── coupon
│ ├── coupon.js
│ └── index.js
├── good
│ ├── comments
│ │ └── fetchCommentDetail.js
│ ├── fetchCategoryList.js
│ ├── fetchGood.js
│ ├── fetchGoodsDetailsComments.js
│ ├── fetchGoodsList.js
│ ├── fetchSearchHistory.js
│ ├── fetchSearchResult.js
│ └── spu.js
├── home
│ └── home.js
├── hospital
│ └── hospital.js
├── order
│ ├── applyService.js
│ ├── order.js
│ ├── orderConfirm.js
│ ├── orderDetail.js
│ ├── orderItem.js
│ ├── orderList.js
│ └── orderSubmitComment.js
├── pay
│ └── pay.js
├── promotion
│ └── detail.js
├── sku
│ └── sku.js
├── user
│ └── user.js
└── usercenter
│ ├── fetchPerson.js
│ └── fetchUsercenter.js
├── sitemap.json
├── style
├── cart-group.wxss
├── global.wxss
├── goodsList.wxss
├── iconfont.wxss
└── theme.wxss
└── utils
├── addressListFresh.js
├── cartFresh.js
├── cloudImageHandler.js
├── getPermission.js
├── listLoading.js
├── mock.js
├── orderListFresh.js
├── orderOperation.js
├── spuStatus.js
└── util.js
/.gitignore:
--------------------------------------------------------------------------------
1 | # 依赖包文件夹
2 | node_modules/
3 |
4 | # 微信开发者工具本地配置文件
5 | project.config.json
6 | project.private.config.json
7 |
8 | # 编译后的小程序代码和临时文件
9 | miniprogram_npm/
10 | dist/
11 | .miniprogram/
12 |
13 | # 微信开发者工具自动生成的项目配置备份文件
14 | *.bak
15 |
16 | # 本地环境文件
17 | .env
18 | .env.local
19 | .env.development.local
20 | .env.test.local
21 | .env.production.local
22 |
23 | # npm日志文件
24 | npm-debug.log*
25 | yarn-debug.log*
26 | yarn-error.log*
27 |
28 | # 编辑器目录和文件
29 | .idea/
30 | .vscode/
31 | *.suo
32 | *.ntvs*
33 | *.njsproj
34 | *.sln
35 | *.sw?
36 |
37 | # 临时文件
38 | .DS_Store
39 | Thumbs.db
40 | .tmp/
41 |
--------------------------------------------------------------------------------
/.npmrc:
--------------------------------------------------------------------------------
1 | # 去除注释可以使用代理进行安装
2 | # proxy=http://127.0.0.1:1080
3 | # https_proxy=http://127.0.0.1:1080
4 |
5 | # 去除注释可以使用淘宝源
6 | # registry=https://registry.npm.taobao.org
7 |
8 | # 去除注释可以使用腾讯源
9 | #registry=http://mirrors.tencent.com/npm/
10 |
--------------------------------------------------------------------------------
/.prettierignore:
--------------------------------------------------------------------------------
1 | miniprogram_npm
2 | package.json
3 | project.config.json
--------------------------------------------------------------------------------
/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "git.ignoreLimitWarning": true
3 | }
--------------------------------------------------------------------------------
/app.wxss:
--------------------------------------------------------------------------------
1 | @import 'style/iconfont.wxss';
2 |
3 | @import 'style/theme.wxss';
--------------------------------------------------------------------------------
/cloudfunctions/shop_pay/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "shop_pay",
3 | "version": "1.0.0",
4 | "description": "云开发电商支付订单",
5 | "main": "index.js",
6 | "scripts": {
7 | "test": "echo \"Error: no test specified\" && exit 1"
8 | },
9 | "author": "",
10 | "license": "ISC",
11 | "dependencies": {
12 | "@cloudbase/node-sdk": "3.2",
13 | "wx-server-sdk": "~2.4.0"
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/cloudfunctions/updateUserCoupon/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "updateUserCoupon",
3 | "version": "1.0.0",
4 | "description": "更新用户优惠券状态",
5 | "main": "index.js",
6 | "scripts": {
7 | "test": "echo \"Error: no test specified\" && exit 1"
8 | },
9 | "author": "",
10 | "license": "ISC",
11 | "dependencies": {
12 | "@cloudbase/node-sdk": "3.2",
13 | "wx-server-sdk": "~2.4.0"
14 | }
15 | }
--------------------------------------------------------------------------------
/commitlint.config.js:
--------------------------------------------------------------------------------
1 | module.exports = { extends: ['@commitlint/config-conventional'] };
2 |
--------------------------------------------------------------------------------
/components/filter-popup/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "t-popup": "tdesign-miniprogram/popup/popup"
5 | }
6 | }
--------------------------------------------------------------------------------
/components/filter-popup/index.wxml:
--------------------------------------------------------------------------------
1 |
8 |
9 |
10 |
11 | 重置
12 |
13 | 确定
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/components/filter/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "t-icon": "tdesign-miniprogram/icon/icon"
5 | }
6 | }
--------------------------------------------------------------------------------
/components/goods-card/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "price": "/components/price/index",
5 | "t-icon": "tdesign-miniprogram/icon/icon",
6 | "t-image": "/components/webp-image/index"
7 | }
8 | }
--------------------------------------------------------------------------------
/components/goods-list/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "goods-card": "/components/goods-card/index"
5 | }
6 | }
--------------------------------------------------------------------------------
/components/goods-list/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/components/goods-list/index.wxss:
--------------------------------------------------------------------------------
1 | .goods-list-wrap {
2 | display: flex;
3 | flex-flow: row wrap;
4 | justify-content: space-between;
5 | padding: 0;
6 | background: #fff;
7 | }
8 |
--------------------------------------------------------------------------------
/components/load-more/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "t-loading": "tdesign-miniprogram/loading/loading",
5 | "t-divider": "tdesign-miniprogram/divider/divider"
6 | }
7 | }
--------------------------------------------------------------------------------
/components/loading-content/index.js:
--------------------------------------------------------------------------------
1 | Component({
2 | externalClasses: ['wr-class'],
3 | properties: {
4 | position: {
5 | type: String,
6 | value: 'static',
7 | },
8 | noMask: Boolean,
9 | type: {
10 | type: String,
11 | value: 'circular',
12 | },
13 | vertical: Boolean,
14 | size: {
15 | type: String,
16 | value: '50rpx',
17 | },
18 | backgroundColor: {
19 | type: String,
20 | value: 'rgba(0, 0, 0, .6)',
21 | },
22 | },
23 | });
24 |
--------------------------------------------------------------------------------
/components/loading-content/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "t-loading": "tdesign-miniprogram/loading/loading"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/components/loading-content/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/components/loading-content/index.wxss:
--------------------------------------------------------------------------------
1 | .loading-content {
2 | width: 100%;
3 | height: 100%;
4 | background-color: rgba(0, 0, 0, 0.6);
5 | position: relative;
6 | }
7 | .loading-content.absolute {
8 | position: absolute;
9 | z-index: 1;
10 | left: 0;
11 | top: 0;
12 | }
13 | .loading-content.fixed {
14 | position: fixed;
15 | z-index: 1;
16 | left: 0;
17 | top: 0;
18 | }
19 | .loading-content .loading {
20 | width: 100%;
21 | height: 100%;
22 | visibility: visible;
23 | }
24 |
--------------------------------------------------------------------------------
/components/loading-dialog/index.js:
--------------------------------------------------------------------------------
1 | Component({
2 | properties: {
3 | show: {
4 | type: Boolean,
5 | value: false,
6 | },
7 | },
8 | });
9 |
--------------------------------------------------------------------------------
/components/loading-dialog/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "t-loading": "tdesign-miniprogram/loading/loading",
5 | "t-dialog": "tdesign-miniprogram/dialog/dialog"
6 | },
7 | "styleIsolation": "shared"
8 | }
--------------------------------------------------------------------------------
/components/loading-dialog/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/components/loading-dialog/index.wxss:
--------------------------------------------------------------------------------
1 | .loading-dialog .t-dialog{
2 | width: unset;
3 | }
4 |
5 | .loading-dialog .t-dialog__content {
6 | padding: 80rpx;
7 | }
8 |
9 | .loading-dialog .t-dialog__footer {
10 | display: none;
11 | }
--------------------------------------------------------------------------------
/components/price/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {}
4 | }
5 |
--------------------------------------------------------------------------------
/components/swipeout/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {}
4 | }
5 |
--------------------------------------------------------------------------------
/components/swipeout/index.wxss:
--------------------------------------------------------------------------------
1 | .wr-swipeout {
2 | position: relative;
3 | overflow: hidden;
4 | }
5 | .wr-swipeout__left,
6 | .wr-swipeout__right {
7 | position: absolute;
8 | top: 0;
9 | height: 100%;
10 | }
11 | .wr-swipeout__left {
12 | left: 0;
13 | transform: translate3d(-100%, 0, 0);
14 | }
15 | .wr-swipeout__right {
16 | right: 0;
17 | transform: translate3d(100%, 0, 0);
18 | }
19 |
--------------------------------------------------------------------------------
/components/webp-image/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "t-image": "tdesign-miniprogram/image/image"
5 | }
6 | }
--------------------------------------------------------------------------------
/components/webp-image/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
15 |
--------------------------------------------------------------------------------
/components/webp-image/index.wxss:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gray878/wx_clinic/4374090e12bbc2f4cfcb45900b66ae0cebba9d9c/components/webp-image/index.wxss
--------------------------------------------------------------------------------
/config/index.js:
--------------------------------------------------------------------------------
1 | /** TDesign 使用 */
2 | export const config = {
3 | /** 是否使用mock代替api返回 */
4 | useMock: false,
5 | };
6 |
7 | /** 云开发使用 */
8 | export const cloudbaseTemplateConfig = {
9 | useMock: false,
10 | };
11 |
12 | export const cdnBase = 'https://we-retail-static-1300977798.cos.ap-guangzhou.myqcloud.com/retail-mp';
13 |
--------------------------------------------------------------------------------
/config/model.js:
--------------------------------------------------------------------------------
1 | export const DATA_MODEL_KEY = {
2 | ATTR_VALUE: 'shop_attr_value',
3 | CATE: 'shop_spu_cate',
4 | CART_ITEM: 'shop_cart_item',
5 | COMMENT: 'shop_comment',
6 | DELIVERY_INFO: 'shop_delivery_info',
7 | HOME_SWIPER: 'shop_home_swiper_image',
8 | ORDER: 'shop_order',
9 | ORDER_ITEM: 'shop_order_item',
10 | SKU: 'shop_sku',
11 | SPU: 'shop_spu',
12 | CITY: 'server_city',
13 | HOSPITAL: 'hospital',
14 | USER: 'shop_user',
15 | COUPON: 'coupons',
16 | USER_COUPON: 'user_coupons'
17 | };
18 |
--------------------------------------------------------------------------------
/custom-tab-bar/data.js:
--------------------------------------------------------------------------------
1 | export default [
2 | {
3 | icon: 'home',
4 | text: '首页',
5 | url: 'pages/home/home',
6 | },
7 | {
8 | icon: 'sort',
9 | text: '分类',
10 | url: 'pages/goods/category/index',
11 | },
12 | {
13 | icon: 'cart',
14 | text: '购物车',
15 | url: 'pages/cart/index',
16 | },
17 | {
18 | icon: 'person',
19 | text: '我的',
20 | url: 'pages/usercenter/index',
21 | },
22 | ];
23 |
--------------------------------------------------------------------------------
/custom-tab-bar/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "t-tab-bar": "tdesign-miniprogram/tab-bar/tab-bar",
5 | "t-tab-bar-item": "tdesign-miniprogram/tab-bar-item/tab-bar-item",
6 | "t-icon": "tdesign-miniprogram/icon/icon"
7 | }
8 | }
--------------------------------------------------------------------------------
/custom-tab-bar/index.wxml:
--------------------------------------------------------------------------------
1 |
6 |
12 |
13 |
14 | {{ item.text }}
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/custom-tab-bar/index.wxss:
--------------------------------------------------------------------------------
1 | .custom-tab-bar-wrapper {
2 | display: flex;
3 | flex-direction: column;
4 | align-items: center;
5 | }
6 |
7 | .custom-tab-bar-wrapper .text {
8 | font-size: 20rpx;
9 | }
10 |
--------------------------------------------------------------------------------
/jsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "baseUrl": "."
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/action-sheet/action-sheet.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "styleIsolation": "apply-shared",
4 | "usingComponents": {
5 | "t-icon": "../icon/icon",
6 | "t-popup": "../popup/popup",
7 | "t-grid": "../grid/grid",
8 | "t-grid-item": "../grid-item/grid-item"
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/action-sheet/action-sheet.wxs:
--------------------------------------------------------------------------------
1 | var getListThemeItemClass = function (props) {
2 | var classPrefix = props.classPrefix;
3 | var item = props.item;
4 | var prefix = props.prefix;
5 | var classList = [classPrefix + '__list-item'];
6 | if (item.disabled) {
7 | classList.push(prefix + '-is-disabled');
8 | }
9 | return classList.join(' ');
10 | };
11 |
12 | var isImage = function (name) {
13 | return name.indexOf('/') !== -1;
14 | };
15 |
16 | module.exports = {
17 | getListThemeItemClass: getListThemeItemClass,
18 | isImage: isImage,
19 | };
20 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/action-sheet/index.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | import { ActionSheetItem, ActionSheetTheme, ActionSheetShowOption } from './show';
3 | export { ActionSheetItem, ActionSheetTheme, ActionSheetShowOption };
4 | declare const _default: {
5 | show(options: ActionSheetShowOption): WechatMiniprogram.Component.TrivialInstance;
6 | close(options: ActionSheetShowOption): void;
7 | };
8 | export default _default;
9 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/action-sheet/index.js:
--------------------------------------------------------------------------------
1 | import { show, close, ActionSheetTheme } from './show';
2 | export { ActionSheetTheme };
3 | export default {
4 | show(options) {
5 | return show(options);
6 | },
7 | close(options) {
8 | return close(options);
9 | },
10 | };
11 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/action-sheet/props.d.ts:
--------------------------------------------------------------------------------
1 | import { TdActionSheetProps } from './type';
2 | declare const props: TdActionSheetProps;
3 | export default props;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/action-sheet/type.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/avatar-group/avatar-group.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "styleIsolation": "shared",
4 | "usingComponents": {
5 | "t-avatar": "../avatar/avatar"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/avatar-group/props.d.ts:
--------------------------------------------------------------------------------
1 | import { TdAvatarGroupProps } from './type';
2 | declare const props: TdAvatarGroupProps;
3 | export default props;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/avatar-group/props.js:
--------------------------------------------------------------------------------
1 | const props = {
2 | cascading: {
3 | type: String,
4 | value: 'left-up',
5 | },
6 | collapseAvatar: {
7 | type: String,
8 | },
9 | max: {
10 | type: Number,
11 | },
12 | shape: {
13 | type: String,
14 | },
15 | size: {
16 | type: String,
17 | value: '',
18 | },
19 | };
20 | export default props;
21 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/avatar-group/type.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/avatar/avatar.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "styleIsolation": "shared",
4 | "usingComponents": {
5 | "t-icon": "../icon/icon",
6 | "t-badge": "../badge/badge",
7 | "t-image": "../image/image"
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/avatar/props.d.ts:
--------------------------------------------------------------------------------
1 | import { TdAvatarProps } from './type';
2 | declare const props: TdAvatarProps;
3 | export default props;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/avatar/type.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/back-top/back-top.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "styleIsolation": "apply-shared",
4 | "usingComponents": {
5 | "t-icon": "../icon/icon"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/back-top/props.d.ts:
--------------------------------------------------------------------------------
1 | import { TdBackTopProps } from './type';
2 | declare const props: TdBackTopProps;
3 | export default props;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/back-top/type.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/badge/badge.d.ts:
--------------------------------------------------------------------------------
1 | import { SuperComponent } from '../common/src/index';
2 | import type { TdBadgeProps } from './type';
3 | export interface BadgeProps extends TdBadgeProps {
4 | }
5 | export default class Badge extends SuperComponent {
6 | options: {
7 | multipleSlots: boolean;
8 | };
9 | externalClasses: string[];
10 | properties: TdBadgeProps;
11 | data: {
12 | prefix: string;
13 | classPrefix: string;
14 | value: string;
15 | labelID: string;
16 | descriptionID: string;
17 | };
18 | lifetimes: {
19 | ready(): void;
20 | };
21 | }
22 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/badge/badge.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "styleIsolation": "apply-shared",
4 | "usingComponents": {}
5 | }
6 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/badge/index.d.ts:
--------------------------------------------------------------------------------
1 | export * from './type';
2 | export * from './props';
3 | export * from './badge';
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/badge/index.js:
--------------------------------------------------------------------------------
1 | export * from './type';
2 | export * from './props';
3 | export * from './badge';
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/badge/props.d.ts:
--------------------------------------------------------------------------------
1 | import { TdBadgeProps } from './type';
2 | declare const props: TdBadgeProps;
3 | export default props;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/badge/type.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/button/button.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "styleIsolation": "apply-shared",
4 | "usingComponents": {
5 | "t-icon": "../icon/icon",
6 | "t-loading": "../loading/loading"
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/button/index.d.ts:
--------------------------------------------------------------------------------
1 | export * from './props';
2 | export * from './type';
3 | export * from './button';
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/button/index.js:
--------------------------------------------------------------------------------
1 | export * from './props';
2 | export * from './type';
3 | export * from './button';
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/button/props.d.ts:
--------------------------------------------------------------------------------
1 | import { TdButtonProps } from './type';
2 | declare const props: TdButtonProps;
3 | export default props;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/button/type.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/calendar/calendar.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "styleIsolation": "apply-shared",
4 | "usingComponents": {
5 | "t-popup": "../popup/popup",
6 | "t-button": "../button/button",
7 | "t-icon": "../icon/icon"
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/calendar/calendar.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/calendar/index.d.ts:
--------------------------------------------------------------------------------
1 | export * from './type';
2 | export * from './calendar';
3 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/calendar/index.js:
--------------------------------------------------------------------------------
1 | export * from './type';
2 | export * from './calendar';
3 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/calendar/props.d.ts:
--------------------------------------------------------------------------------
1 | import { TdCalendarProps } from './type';
2 | declare const props: TdCalendarProps;
3 | export default props;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/calendar/type.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/cascader/cascader.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "styleIsolation": "apply-shared",
4 | "usingComponents": {
5 | "t-icon": "../icon/icon",
6 | "t-popup": "../popup/popup",
7 | "t-tabs": "../tabs/tabs",
8 | "t-tab-panel": "../tab-panel/tab-panel",
9 | "t-radio-group": "../radio-group/radio-group"
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/cascader/props.d.ts:
--------------------------------------------------------------------------------
1 | import { TdCascaderProps } from './type';
2 | declare const props: TdCascaderProps;
3 | export default props;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/cascader/type.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/cell-group/cell-group.d.ts:
--------------------------------------------------------------------------------
1 | import { SuperComponent, RelationsOptions } from '../common/src/index';
2 | export default class CellGroup extends SuperComponent {
3 | externalClasses: string[];
4 | relations: RelationsOptions;
5 | properties: import("./type").TdCellGroupProps;
6 | data: {
7 | prefix: string;
8 | classPrefix: string;
9 | };
10 | methods: {
11 | updateLastChid(): void;
12 | };
13 | }
14 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/cell-group/cell-group.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "styleIsolation": "apply-shared"
4 | }
5 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/cell-group/cell-group.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 | {{ title }}
4 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/cell-group/props.d.ts:
--------------------------------------------------------------------------------
1 | import { TdCellGroupProps } from './type';
2 | declare const props: TdCellGroupProps;
3 | export default props;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/cell-group/props.js:
--------------------------------------------------------------------------------
1 | const props = {
2 | bordered: {
3 | type: Boolean,
4 | value: false,
5 | },
6 | theme: {
7 | type: String,
8 | value: 'default',
9 | },
10 | title: {
11 | type: String,
12 | value: '',
13 | },
14 | };
15 | export default props;
16 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/cell-group/type.d.ts:
--------------------------------------------------------------------------------
1 | export interface TdCellGroupProps {
2 | bordered?: {
3 | type: BooleanConstructor;
4 | value?: boolean;
5 | };
6 | theme?: {
7 | type: StringConstructor;
8 | value?: 'default' | 'card';
9 | };
10 | title?: {
11 | type: StringConstructor;
12 | value?: string;
13 | };
14 | }
15 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/cell-group/type.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/cell/cell.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "styleIsolation": "apply-shared",
4 | "usingComponents": {
5 | "t-icon": "../icon/icon",
6 | "t-image": "../image/image"
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/cell/props.d.ts:
--------------------------------------------------------------------------------
1 | import { TdCellProps } from './type';
2 | declare const props: TdCellProps;
3 | export default props;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/cell/type.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/check-tag/check-tag.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "styleIsolation": "apply-shared",
4 | "usingComponents": {
5 | "t-icon": "../icon/icon"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/check-tag/props.d.ts:
--------------------------------------------------------------------------------
1 | import { TdCheckTagProps } from './type';
2 | declare const props: TdCheckTagProps;
3 | export default props;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/check-tag/type.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/checkbox-group/checkbox-group.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "styleIsolation": "apply-shared",
4 | "usingComponents": {
5 | "t-checkbox": "../checkbox/checkbox"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/checkbox-group/checkbox-group.wxss:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gray878/wx_clinic/4374090e12bbc2f4cfcb45900b66ae0cebba9d9c/miniprogram_npm/tdesign-miniprogram/checkbox-group/checkbox-group.wxss
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/checkbox-group/props.d.ts:
--------------------------------------------------------------------------------
1 | import { TdCheckboxGroupProps } from './type';
2 | declare const props: TdCheckboxGroupProps;
3 | export default props;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/checkbox-group/type.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/checkbox/checkbox.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "styleIsolation": "apply-shared",
4 | "usingComponents": {
5 | "t-icon": "../icon/icon"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/checkbox/props.d.ts:
--------------------------------------------------------------------------------
1 | import { TdCheckboxProps } from './type';
2 | declare const props: TdCheckboxProps;
3 | export default props;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/checkbox/type.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/col/col.d.ts:
--------------------------------------------------------------------------------
1 | import { SuperComponent, RelationsOptions } from '../common/src/index';
2 | export default class Col extends SuperComponent {
3 | externalClasses: string[];
4 | properties: import("./type").TdColProps;
5 | data: {
6 | prefix: string;
7 | classPrefix: string;
8 | };
9 | relations: RelationsOptions;
10 | }
11 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/col/col.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "styleIsolation": "apply-shared",
4 | "usingComponents": {}
5 | }
6 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/col/col.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/col/col.wxs:
--------------------------------------------------------------------------------
1 | var utils = require('../common/utils.wxs');
2 |
3 | function getColStyles(gutter, style, customStyle) {
4 | var _style = '';
5 | if (gutter) {
6 | _style = utils._style({
7 | 'padding-right': utils.addUnit(gutter / 2),
8 | 'padding-left': utils.addUnit(gutter / 2),
9 | });
10 | }
11 |
12 | return utils._style([style, customStyle]) + _style;
13 | }
14 |
15 | module.exports = {
16 | getColStyles: getColStyles,
17 | };
18 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/col/props.d.ts:
--------------------------------------------------------------------------------
1 | import { TdColProps } from './type';
2 | declare const props: TdColProps;
3 | export default props;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/col/props.js:
--------------------------------------------------------------------------------
1 | const props = {
2 | offset: {
3 | type: null,
4 | },
5 | span: {
6 | type: null,
7 | },
8 | };
9 | export default props;
10 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/col/type.d.ts:
--------------------------------------------------------------------------------
1 | export interface TdColProps {
2 | offset?: {
3 | type: null;
4 | value?: string | number;
5 | };
6 | span?: {
7 | type: null;
8 | value?: string | number;
9 | };
10 | }
11 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/col/type.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/collapse-panel/collapse-panel.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "styleIsolation": "apply-shared",
4 | "usingComponents": {
5 | "t-cell": "../cell/cell"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/collapse-panel/props.d.ts:
--------------------------------------------------------------------------------
1 | import { TdCollapsePanelProps } from './type';
2 | declare const props: TdCollapsePanelProps;
3 | export default props;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/collapse-panel/type.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/collapse/collapse.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "styleIsolation": "apply-shared"
4 | }
5 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/collapse/collapse.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/collapse/index.d.ts:
--------------------------------------------------------------------------------
1 | export { default as Collapse } from './collapse';
2 | export * from './type';
3 | export * from './props';
4 | export { CollapseProps } from './collapse';
5 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/collapse/index.js:
--------------------------------------------------------------------------------
1 | export { default as Collapse } from './collapse';
2 | export * from './type';
3 | export * from './props';
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/collapse/props.d.ts:
--------------------------------------------------------------------------------
1 | import { TdCollapseProps } from './type';
2 | declare const props: TdCollapseProps;
3 | export default props;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/collapse/type.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/common/bus.d.ts:
--------------------------------------------------------------------------------
1 | export default class Bus {
2 | listeners: Map;
3 | emitted: Set;
4 | constructor();
5 | on(evtName: string, listener: any): void;
6 | emit(evtName: string): void;
7 | }
8 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/common/common.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/common/component.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | declare const TComponent: typeof Component;
3 | export default TComponent;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/common/component.js:
--------------------------------------------------------------------------------
1 | const TComponent = (options) => {
2 | options.options = Object.assign({ multipleSlots: true, addGlobalClass: true }, options.options);
3 | return Component(options);
4 | };
5 | export default TComponent;
6 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/common/config.d.ts:
--------------------------------------------------------------------------------
1 | declare const _default: {
2 | prefix: string;
3 | };
4 | export default _default;
5 | export declare const prefix = "t";
6 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/common/config.js:
--------------------------------------------------------------------------------
1 | export default {
2 | prefix: "t",
3 | };
4 | export const prefix = "t";
5 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/common/index.wxss:
--------------------------------------------------------------------------------
1 | .t-float-left {
2 | float: left;
3 | }
4 | .t-float-right {
5 | float: right;
6 | }
7 | @keyframes tdesign-fade-out {
8 | from {
9 | opacity: 1;
10 | }
11 | to {
12 | opacity: 0;
13 | }
14 | }
15 | .hotspot-expanded.relative {
16 | position: relative;
17 | }
18 | .hotspot-expanded::after {
19 | content: '';
20 | display: block;
21 | position: absolute;
22 | left: 0;
23 | top: 0;
24 | right: 0;
25 | bottom: 0;
26 | transform: scale(1.5);
27 | }
28 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/common/shared/calendar/type.d.ts:
--------------------------------------------------------------------------------
1 | export interface TDate {
2 | date: Date;
3 | day: number;
4 | type: TDateType;
5 | className?: string;
6 | prefix?: string;
7 | suffix?: string;
8 | }
9 | export declare type TCalendarValue = number | Date;
10 | export declare type TDateType = 'selected' | 'disabled' | 'start' | 'centre' | 'end' | '';
11 | export declare type TCalendarType = 'single' | 'multiple' | 'range';
12 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/common/shared/calendar/type.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/common/src/control.d.ts:
--------------------------------------------------------------------------------
1 | declare type ControlInstance = {
2 | controlled: boolean;
3 | initValue: any;
4 | set(newVal: any, extObj?: Object, fn?: any): void;
5 | get(): any;
6 | change(newVal: any, customChangeData?: any, customUpdateFn?: any): void;
7 | };
8 | declare type ControlOption = {
9 | valueKey?: string;
10 | defaultValueKey?: string;
11 | changeEventName?: string;
12 | strict?: boolean;
13 | };
14 | declare function useControl(this: any, option?: ControlOption): ControlInstance;
15 | export { ControlOption, ControlInstance, useControl };
16 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/common/src/index.d.ts:
--------------------------------------------------------------------------------
1 | export * from './superComponent';
2 | export * from './flatTool';
3 | export * from './instantiationDecorator';
4 | export * from './control';
5 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/common/src/index.js:
--------------------------------------------------------------------------------
1 | export * from './superComponent';
2 | export * from './flatTool';
3 | export * from './instantiationDecorator';
4 | export * from './control';
5 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/common/src/instantiationDecorator.d.ts:
--------------------------------------------------------------------------------
1 | import { SuperComponent } from './superComponent';
2 | export declare const toComponent: (options: Record) => Record;
3 | export declare const wxComponent: () => (constructor: new () => SuperComponent) => void;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/common/src/superComponent.js:
--------------------------------------------------------------------------------
1 | export class SuperComponent {
2 | constructor() {
3 | this.app = getApp();
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/common/style/_variables.wxss:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gray878/wx_clinic/4374090e12bbc2f4cfcb45900b66ae0cebba9d9c/miniprogram_npm/tdesign-miniprogram/common/style/_variables.wxss
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/common/style/base.wxss:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gray878/wx_clinic/4374090e12bbc2f4cfcb45900b66ae0cebba9d9c/miniprogram_npm/tdesign-miniprogram/common/style/base.wxss
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/common/style/icons.wxss:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gray878/wx_clinic/4374090e12bbc2f4cfcb45900b66ae0cebba9d9c/miniprogram_npm/tdesign-miniprogram/common/style/icons.wxss
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/common/style/index.wxss:
--------------------------------------------------------------------------------
1 | .t-float-left {
2 | float: left;
3 | }
4 | .t-float-right {
5 | float: right;
6 | }
7 | @keyframes tdesign-fade-out {
8 | from {
9 | opacity: 1;
10 | }
11 | to {
12 | opacity: 0;
13 | }
14 | }
15 | .hotspot-expanded.relative {
16 | position: relative;
17 | }
18 | .hotspot-expanded::after {
19 | content: '';
20 | display: block;
21 | position: absolute;
22 | left: 0;
23 | top: 0;
24 | right: 0;
25 | bottom: 0;
26 | transform: scale(1.5);
27 | }
28 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/common/style/mixins/_clearfix.wxss:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gray878/wx_clinic/4374090e12bbc2f4cfcb45900b66ae0cebba9d9c/miniprogram_npm/tdesign-miniprogram/common/style/mixins/_clearfix.wxss
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/common/style/mixins/_cursor.wxss:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gray878/wx_clinic/4374090e12bbc2f4cfcb45900b66ae0cebba9d9c/miniprogram_npm/tdesign-miniprogram/common/style/mixins/_cursor.wxss
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/common/style/mixins/_ellipsis.wxss:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gray878/wx_clinic/4374090e12bbc2f4cfcb45900b66ae0cebba9d9c/miniprogram_npm/tdesign-miniprogram/common/style/mixins/_ellipsis.wxss
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/common/style/mixins/_hairline.wxss:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gray878/wx_clinic/4374090e12bbc2f4cfcb45900b66ae0cebba9d9c/miniprogram_npm/tdesign-miniprogram/common/style/mixins/_hairline.wxss
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/common/style/mixins/_index.wxss:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gray878/wx_clinic/4374090e12bbc2f4cfcb45900b66ae0cebba9d9c/miniprogram_npm/tdesign-miniprogram/common/style/mixins/_index.wxss
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/common/style/theme/_radius.wxss:
--------------------------------------------------------------------------------
1 | page,
2 | .page {
3 | --td-radius-small: 6rpx;
4 | --td-radius-default: 12rpx;
5 | --td-radius-large: 18rpx;
6 | --td-radius-extra-large: 24rpx;
7 | --td-radius-round: 999px;
8 | --td-radius-circle: 50%;
9 | }
10 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/common/style/theme/_spacer.wxss:
--------------------------------------------------------------------------------
1 | page,
2 | .page {
3 | --td-spacer: 16rpx;
4 | --td-spacer-1: 24rpx;
5 | --td-spacer-2: 32rpx;
6 | --td-spacer-3: 48rpx;
7 | --td-spacer-4: 64rpx;
8 | --td-spacer-5: 96rpx;
9 | --td-spacer-6: 160rpx;
10 | }
11 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/common/style/utilities/_animation.wxss:
--------------------------------------------------------------------------------
1 | @keyframes tdesign-fade-out {
2 | from {
3 | opacity: 1;
4 | }
5 | to {
6 | opacity: 0;
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/common/style/utilities/_float.wxss:
--------------------------------------------------------------------------------
1 | .t-float-left {
2 | float: left;
3 | }
4 | .t-float-right {
5 | float: right;
6 | }
7 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/common/style/utilities/_index.wxss:
--------------------------------------------------------------------------------
1 | .t-float-left {
2 | float: left;
3 | }
4 | .t-float-right {
5 | float: right;
6 | }
7 | @keyframes tdesign-fade-out {
8 | from {
9 | opacity: 1;
10 | }
11 | to {
12 | opacity: 0;
13 | }
14 | }
15 | .hotspot-expanded.relative {
16 | position: relative;
17 | }
18 | .hotspot-expanded::after {
19 | content: '';
20 | display: block;
21 | position: absolute;
22 | left: 0;
23 | top: 0;
24 | right: 0;
25 | bottom: 0;
26 | transform: scale(1.5);
27 | }
28 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/common/template/badge.wxml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/common/template/icon.wxml:
--------------------------------------------------------------------------------
1 |
2 |
14 |
15 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/common/version.d.ts:
--------------------------------------------------------------------------------
1 | export declare function compareVersion(v1: any, v2: any): 0 | 1 | -1;
2 | export declare function canIUseFormFieldButton(): boolean;
3 | export declare function canUseVirtualHost(): boolean;
4 | export declare function canUseProxyScrollView(): boolean;
5 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/common/wechat.d.ts:
--------------------------------------------------------------------------------
1 | export declare const getObserver: (context: any, selector: string) => Promise;
2 | export declare const getWindowInfo: () => WechatMiniprogram.WindowInfo | WechatMiniprogram.SystemInfo;
3 | export declare const getAppBaseInfo: () => WechatMiniprogram.SystemInfo | WechatMiniprogram.AppBaseInfo;
4 | export declare const getDeviceInfo: () => WechatMiniprogram.SystemInfo | WechatMiniprogram.DeviceInfo;
5 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/count-down/count-down.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "styleIsolation": "apply-shared",
4 | "usingComponents": {
5 | "t-icon": "../icon/icon"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/count-down/props.d.ts:
--------------------------------------------------------------------------------
1 | import { TdCountDownProps } from './type';
2 | declare const props: TdCountDownProps;
3 | export default props;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/count-down/type.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/date-time-picker/date-time-picker.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "styleIsolation": "apply-shared",
4 | "usingComponents": {
5 | "t-picker": "../picker/picker",
6 | "t-picker-item": "../picker-item/picker-item"
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/date-time-picker/locale/en.d.ts:
--------------------------------------------------------------------------------
1 | declare const _default: {
2 | year: string;
3 | month: string;
4 | date: string;
5 | hour: string;
6 | minute: string;
7 | second: string;
8 | am: string;
9 | pm: string;
10 | confirm: string;
11 | cancel: string;
12 | };
13 | export default _default;
14 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/date-time-picker/locale/en.js:
--------------------------------------------------------------------------------
1 | export default {
2 | year: '',
3 | month: '',
4 | date: '',
5 | hour: '',
6 | minute: '',
7 | second: '',
8 | am: 'AM',
9 | pm: 'PM',
10 | confirm: 'confirm',
11 | cancel: 'cancel',
12 | };
13 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/date-time-picker/locale/ja.d.ts:
--------------------------------------------------------------------------------
1 | declare const _default: {
2 | year: string;
3 | month: string;
4 | date: string;
5 | hour: string;
6 | minute: string;
7 | second: string;
8 | am: string;
9 | pm: string;
10 | confirm: string;
11 | cancel: string;
12 | };
13 | export default _default;
14 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/date-time-picker/locale/ja.js:
--------------------------------------------------------------------------------
1 | export default {
2 | year: '年',
3 | month: '月',
4 | date: '日',
5 | hour: '時',
6 | minute: '分',
7 | second: '秒',
8 | am: '午前',
9 | pm: '午後',
10 | confirm: '確認',
11 | cancel: 'キャンセル',
12 | };
13 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/date-time-picker/locale/ko.d.ts:
--------------------------------------------------------------------------------
1 | declare const _default: {
2 | year: string;
3 | month: string;
4 | date: string;
5 | hour: string;
6 | minute: string;
7 | second: string;
8 | am: string;
9 | pm: string;
10 | confirm: string;
11 | cancel: string;
12 | };
13 | export default _default;
14 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/date-time-picker/locale/ko.js:
--------------------------------------------------------------------------------
1 | export default {
2 | year: '년',
3 | month: '월',
4 | date: '일',
5 | hour: '시',
6 | minute: '분',
7 | second: '초',
8 | am: '오전',
9 | pm: '오후',
10 | confirm: '확인',
11 | cancel: '취소',
12 | };
13 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/date-time-picker/locale/ru.d.ts:
--------------------------------------------------------------------------------
1 | declare const _default: {
2 | year: string;
3 | month: string;
4 | date: string;
5 | hour: string;
6 | minute: string;
7 | second: string;
8 | am: string;
9 | pm: string;
10 | confirm: string;
11 | cancel: string;
12 | };
13 | export default _default;
14 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/date-time-picker/locale/ru.js:
--------------------------------------------------------------------------------
1 | export default {
2 | year: '',
3 | month: '',
4 | date: '',
5 | hour: '',
6 | minute: '',
7 | second: '',
8 | am: 'до полудня',
9 | pm: 'после полудня',
10 | confirm: 'подтвердить',
11 | cancel: 'отменить',
12 | };
13 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/date-time-picker/locale/tc.d.ts:
--------------------------------------------------------------------------------
1 | declare const _default: {
2 | year: string;
3 | month: string;
4 | date: string;
5 | hour: string;
6 | minute: string;
7 | second: string;
8 | am: string;
9 | pm: string;
10 | confirm: string;
11 | cancel: string;
12 | };
13 | export default _default;
14 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/date-time-picker/locale/tc.js:
--------------------------------------------------------------------------------
1 | export default {
2 | year: '年',
3 | month: '月',
4 | date: '日',
5 | hour: '時',
6 | minute: '分',
7 | second: '秒',
8 | am: '上午',
9 | pm: '下午',
10 | confirm: '確定',
11 | cancel: '取消',
12 | };
13 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/date-time-picker/locale/zh.d.ts:
--------------------------------------------------------------------------------
1 | declare const _default: {
2 | year: string;
3 | month: string;
4 | date: string;
5 | hour: string;
6 | minute: string;
7 | second: string;
8 | am: string;
9 | pm: string;
10 | confirm: string;
11 | cancel: string;
12 | };
13 | export default _default;
14 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/date-time-picker/locale/zh.js:
--------------------------------------------------------------------------------
1 | export default {
2 | year: '年',
3 | month: '月',
4 | date: '日',
5 | hour: '时',
6 | minute: '分',
7 | second: '秒',
8 | am: '上午',
9 | pm: '下午',
10 | confirm: '确定',
11 | cancel: '取消',
12 | };
13 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/date-time-picker/props.d.ts:
--------------------------------------------------------------------------------
1 | import { TdDateTimePickerProps } from './type';
2 | declare const props: TdDateTimePickerProps;
3 | export default props;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/date-time-picker/type.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/dialog/dialog.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "styleIsolation": "apply-shared",
4 | "usingComponents": {
5 | "t-popup": "../popup/popup",
6 | "t-icon": "../icon/icon",
7 | "t-button": "../button/button"
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/dialog/dialog.wxs:
--------------------------------------------------------------------------------
1 | module.exports.getTypeof = function (obj) {
2 | return typeof obj;
3 | };
4 |
5 | module.exports.getActionClass = function (prefix, buttonLayout) {
6 | var cls = [prefix + '__button', prefix + '__button--action'];
7 |
8 | if (buttonLayout) {
9 | cls.push(prefix + '__button--' + buttonLayout);
10 | }
11 |
12 | return cls.join(' ');
13 | };
14 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/dialog/props.d.ts:
--------------------------------------------------------------------------------
1 | import { TdDialogProps } from './type';
2 | declare const props: TdDialogProps;
3 | export default props;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/dialog/type.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/divider/divider.d.ts:
--------------------------------------------------------------------------------
1 | import { SuperComponent } from '../common/src/index';
2 | export default class Divider extends SuperComponent {
3 | externalClasses: string[];
4 | options: {
5 | multipleSlots: boolean;
6 | };
7 | properties: import("./type").TdDividerProps;
8 | data: {
9 | prefix: string;
10 | classPrefix: string;
11 | };
12 | observers: {
13 | lineColor(): void;
14 | };
15 | methods: {
16 | setStyle(): void;
17 | };
18 | }
19 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/divider/divider.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "styleIsolation": "apply-shared"
4 | }
5 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/divider/divider.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
8 |
9 | {{content}}
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/divider/props.d.ts:
--------------------------------------------------------------------------------
1 | import { TdDividerProps } from './type';
2 | declare const props: TdDividerProps;
3 | export default props;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/divider/props.js:
--------------------------------------------------------------------------------
1 | const props = {
2 | align: {
3 | type: String,
4 | value: 'center',
5 | },
6 | content: {
7 | type: String,
8 | },
9 | dashed: {
10 | type: Boolean,
11 | value: false,
12 | },
13 | layout: {
14 | type: String,
15 | value: 'horizontal',
16 | },
17 | };
18 | export default props;
19 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/divider/type.d.ts:
--------------------------------------------------------------------------------
1 | export interface TdDividerProps {
2 | align?: {
3 | type: StringConstructor;
4 | value?: 'left' | 'right' | 'center';
5 | };
6 | content?: {
7 | type: StringConstructor;
8 | value?: string;
9 | };
10 | dashed?: {
11 | type: BooleanConstructor;
12 | value?: boolean;
13 | };
14 | layout?: {
15 | type: StringConstructor;
16 | value?: 'horizontal' | 'vertical';
17 | };
18 | }
19 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/divider/type.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/drawer/drawer.d.ts:
--------------------------------------------------------------------------------
1 | import { ComponentsOptionsType, SuperComponent } from '../common/src/index';
2 | export default class Drawer extends SuperComponent {
3 | behaviors: string[];
4 | externalClasses: any[];
5 | options: ComponentsOptionsType;
6 | properties: import("./type").TdDrawerProps;
7 | data: {
8 | classPrefix: string;
9 | };
10 | methods: {
11 | visibleChange({ detail }: {
12 | detail: any;
13 | }): void;
14 | itemClick(detail: any): void;
15 | };
16 | }
17 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/drawer/drawer.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "styleIsolation": "apply-shared",
4 | "usingComponents": {
5 | "t-popup": "../popup/popup",
6 | "t-icon": "../icon/icon"
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/drawer/props.d.ts:
--------------------------------------------------------------------------------
1 | import { TdDrawerProps } from './type';
2 | declare const props: TdDrawerProps;
3 | export default props;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/drawer/type.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/dropdown-item/dropdown-item.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "styleIsolation": "apply-shared",
4 | "usingComponents": {
5 | "t-button": "../button/button",
6 | "t-radio": "../radio/radio",
7 | "t-radio-group": "../radio-group/radio-group",
8 | "t-checkbox": "../checkbox/checkbox",
9 | "t-checkbox-group": "../checkbox-group/checkbox-group",
10 | "t-popup": "../popup/popup"
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/dropdown-item/index.wxs:
--------------------------------------------------------------------------------
1 | var getStyles = function (top, zIndex) {
2 | var topStyle = top ? 'top:' + top + 'px;' : '';
3 | var zIndexStyle = zIndex ? 'z-index:' + zIndex + ';' : '';
4 | return topStyle + zIndexStyle;
5 | };
6 |
7 | module.exports = {
8 | getStyles: getStyles,
9 | };
10 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/dropdown-item/props.d.ts:
--------------------------------------------------------------------------------
1 | import { TdDropdownItemProps } from './type';
2 | declare const props: TdDropdownItemProps;
3 | export default props;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/dropdown-item/type.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/dropdown-menu/dropdown-menu.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "styleIsolation": "apply-shared",
4 | "usingComponents": {
5 | "t-icon": "../icon/icon"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/dropdown-menu/index.d.ts:
--------------------------------------------------------------------------------
1 | export * from './type';
2 | export * from './props';
3 | export * from './dropdown-menu';
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/dropdown-menu/index.js:
--------------------------------------------------------------------------------
1 | export * from './type';
2 | export * from './props';
3 | export * from './dropdown-menu';
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/dropdown-menu/props.d.ts:
--------------------------------------------------------------------------------
1 | import { TdDropdownMenuProps } from './type';
2 | declare const props: TdDropdownMenuProps;
3 | export default props;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/dropdown-menu/props.js:
--------------------------------------------------------------------------------
1 | const props = {
2 | arrowIcon: {
3 | type: null,
4 | value: 'caret-down-small',
5 | },
6 | closeOnClickOverlay: {
7 | type: Boolean,
8 | value: true,
9 | },
10 | duration: {
11 | type: null,
12 | value: 200,
13 | },
14 | showOverlay: {
15 | type: Boolean,
16 | value: true,
17 | },
18 | zIndex: {
19 | type: Number,
20 | value: 11600,
21 | },
22 | };
23 | export default props;
24 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/dropdown-menu/type.d.ts:
--------------------------------------------------------------------------------
1 | export interface TdDropdownMenuProps {
2 | arrowIcon?: {
3 | type: null;
4 | value?: string | object;
5 | };
6 | closeOnClickOverlay?: {
7 | type: BooleanConstructor;
8 | value?: boolean;
9 | };
10 | duration?: {
11 | type: null;
12 | value?: string | number;
13 | };
14 | showOverlay?: {
15 | type: BooleanConstructor;
16 | value?: boolean;
17 | };
18 | zIndex?: {
19 | type: NumberConstructor;
20 | value?: number;
21 | };
22 | }
23 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/dropdown-menu/type.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/empty/empty.d.ts:
--------------------------------------------------------------------------------
1 | import { SuperComponent } from '../common/src/index';
2 | export default class extends SuperComponent {
3 | options: {
4 | multipleSlots: boolean;
5 | };
6 | externalClasses: string[];
7 | properties: import("./type").TdEmptyProps;
8 | data: {
9 | prefix: string;
10 | classPrefix: string;
11 | };
12 | observers: {
13 | icon(icon: any): void;
14 | };
15 | }
16 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/empty/empty.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "styleIsolation": "apply-shared",
4 | "usingComponents": {
5 | "t-icon": "../icon/icon",
6 | "t-image": "../image/image"
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/empty/props.d.ts:
--------------------------------------------------------------------------------
1 | import { TdEmptyProps } from './type';
2 | declare const props: TdEmptyProps;
3 | export default props;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/empty/props.js:
--------------------------------------------------------------------------------
1 | const props = {
2 | description: {
3 | type: String,
4 | },
5 | externalClasses: {
6 | type: Array,
7 | },
8 | icon: {
9 | type: null,
10 | },
11 | image: {
12 | type: String,
13 | },
14 | };
15 | export default props;
16 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/empty/type.d.ts:
--------------------------------------------------------------------------------
1 | export interface TdEmptyProps {
2 | description?: {
3 | type: StringConstructor;
4 | value?: string;
5 | };
6 | externalClasses?: {
7 | type: ArrayConstructor;
8 | value?: ['t-class', 't-class-description', 't-class-image', 't-class-actions'];
9 | };
10 | icon?: {
11 | type: null;
12 | value?: string | object;
13 | };
14 | image?: {
15 | type: StringConstructor;
16 | value?: string;
17 | };
18 | }
19 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/empty/type.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/fab/draggable/draggable.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {}
4 | }
5 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/fab/draggable/draggable.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/fab/draggable/draggable.wxss:
--------------------------------------------------------------------------------
1 | .t-float-left {
2 | float: left;
3 | }
4 | .t-float-right {
5 | float: right;
6 | }
7 | @keyframes tdesign-fade-out {
8 | from {
9 | opacity: 1;
10 | }
11 | to {
12 | opacity: 0;
13 | }
14 | }
15 | .hotspot-expanded.relative {
16 | position: relative;
17 | }
18 | .hotspot-expanded::after {
19 | content: '';
20 | display: block;
21 | position: absolute;
22 | left: 0;
23 | top: 0;
24 | right: 0;
25 | bottom: 0;
26 | transform: scale(1.5);
27 | }
28 | .t-draggable {
29 | position: fixed;
30 | }
31 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/fab/draggable/index.d.ts:
--------------------------------------------------------------------------------
1 | export * from './props';
2 | export * from './type';
3 | export * from './draggable';
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/fab/draggable/index.js:
--------------------------------------------------------------------------------
1 | export * from './props';
2 | export * from './type';
3 | export * from './draggable';
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/fab/draggable/props.d.ts:
--------------------------------------------------------------------------------
1 | import { TdDraggableProps } from './type';
2 | declare const props: TdDraggableProps;
3 | export default props;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/fab/draggable/props.js:
--------------------------------------------------------------------------------
1 | const props = {
2 | direction: {
3 | type: String,
4 | value: 'all',
5 | },
6 | };
7 | export default props;
8 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/fab/draggable/type.d.ts:
--------------------------------------------------------------------------------
1 | export interface TdDraggableProps {
2 | direction?: {
3 | type: StringConstructor;
4 | value?: 'all' | 'vertical' | 'horizontal' | 'none';
5 | };
6 | }
7 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/fab/draggable/type.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/fab/fab.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "styleIsolation": "apply-shared",
4 | "usingComponents": {
5 | "t-button": "../button/button",
6 | "t-draggable": "./draggable/draggable"
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/fab/fab.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
8 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/fab/props.d.ts:
--------------------------------------------------------------------------------
1 | import { TdFabProps } from './type';
2 | declare const props: TdFabProps;
3 | export default props;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/fab/props.js:
--------------------------------------------------------------------------------
1 | const props = {
2 | buttonProps: {
3 | type: Object,
4 | },
5 | draggable: {
6 | type: null,
7 | value: false,
8 | },
9 | icon: {
10 | type: String,
11 | value: '',
12 | },
13 | style: {
14 | type: String,
15 | value: 'right: 16px; bottom: 32px;',
16 | },
17 | text: {
18 | type: String,
19 | value: '',
20 | },
21 | usingCustomNavbar: {
22 | type: Boolean,
23 | value: false,
24 | },
25 | yBounds: {
26 | type: Array,
27 | },
28 | };
29 | export default props;
30 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/fab/template/draggable.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/fab/template/view.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/fab/type.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/footer/footer.d.ts:
--------------------------------------------------------------------------------
1 | import { SuperComponent } from '../common/src/index';
2 | export default class Footer extends SuperComponent {
3 | externalClasses: string[];
4 | properties: import("./type").TdFooterProps;
5 | data: {
6 | prefix: string;
7 | classPrefix: string;
8 | };
9 | }
10 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/footer/footer.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "styleIsolation": "apply-shared",
4 | "usingComponents": {
5 | "t-image": "../image/image"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/footer/props.d.ts:
--------------------------------------------------------------------------------
1 | import { TdFooterProps } from './type';
2 | declare const props: TdFooterProps;
3 | export default props;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/footer/props.js:
--------------------------------------------------------------------------------
1 | const props = {
2 | links: {
3 | type: Array,
4 | value: [],
5 | },
6 | logo: {
7 | type: Object,
8 | },
9 | text: {
10 | type: String,
11 | value: '',
12 | },
13 | };
14 | export default props;
15 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/footer/type.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/grid-item/grid-item.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "styleIsolation": "apply-shared",
4 | "usingComponents": {
5 | "t-image": "../image/image",
6 | "t-icon": "../icon/icon",
7 | "t-badge": "../badge/badge"
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/grid-item/props.d.ts:
--------------------------------------------------------------------------------
1 | import { TdGridItemProps } from './type';
2 | declare const props: TdGridItemProps;
3 | export default props;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/grid-item/type.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/grid/grid.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "styleIsolation": "apply-shared",
4 | "usingComponents": {}
5 | }
6 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/grid/grid.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/grid/props.d.ts:
--------------------------------------------------------------------------------
1 | import { TdGridProps } from './type';
2 | declare const props: TdGridProps;
3 | export default props;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/grid/props.js:
--------------------------------------------------------------------------------
1 | const props = {
2 | align: {
3 | type: String,
4 | value: 'center',
5 | },
6 | border: {
7 | type: null,
8 | value: false,
9 | },
10 | column: {
11 | type: Number,
12 | value: 4,
13 | },
14 | gutter: {
15 | type: Number,
16 | },
17 | hover: {
18 | type: Boolean,
19 | value: false,
20 | },
21 | theme: {
22 | type: String,
23 | value: 'default',
24 | },
25 | };
26 | export default props;
27 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/grid/type.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/guide/guide.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "styleIsolation": "apply-shared",
4 | "usingComponents": {
5 | "t-overlay": "../overlay/overlay",
6 | "t-button": "../button/button",
7 | "t-popup": "../popup/popup"
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/guide/props.d.ts:
--------------------------------------------------------------------------------
1 | import { TdGuideProps } from './type';
2 | declare const props: TdGuideProps;
3 | export default props;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/guide/type.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/icon/icon.d.ts:
--------------------------------------------------------------------------------
1 | import { SuperComponent } from '../common/src/index';
2 | export default class Icon extends SuperComponent {
3 | externalClasses: string[];
4 | properties: import("./type").TdIconProps;
5 | data: {
6 | componentPrefix: string;
7 | classPrefix: string;
8 | isImage: boolean;
9 | iconStyle: any;
10 | };
11 | observers: {
12 | 'name, color, size, style'(): void;
13 | };
14 | methods: {
15 | onTap(event: any): void;
16 | setIconStyle(): void;
17 | };
18 | }
19 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/icon/icon.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "styleIsolation": "apply-shared",
4 | "usingComponents": {}
5 | }
6 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/icon/props.d.ts:
--------------------------------------------------------------------------------
1 | import { TdIconProps } from './type';
2 | declare const props: TdIconProps;
3 | export default props;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/icon/props.js:
--------------------------------------------------------------------------------
1 | const props = {
2 | color: {
3 | type: String,
4 | value: '',
5 | },
6 | name: {
7 | type: String,
8 | value: '',
9 | required: true,
10 | },
11 | prefix: {
12 | type: String,
13 | value: '',
14 | },
15 | size: {
16 | type: null,
17 | },
18 | };
19 | export default props;
20 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/icon/type.d.ts:
--------------------------------------------------------------------------------
1 | export interface TdIconProps {
2 | color?: {
3 | type: StringConstructor;
4 | value?: string;
5 | };
6 | name: {
7 | type: StringConstructor;
8 | value?: string;
9 | required?: boolean;
10 | };
11 | prefix?: {
12 | type: StringConstructor;
13 | value?: string;
14 | };
15 | size?: {
16 | type: null;
17 | value?: string | number;
18 | };
19 | }
20 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/icon/type.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/image-viewer/image-viewer.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "styleIsolation": "apply-shared",
4 | "usingComponents": {
5 | "t-image": "../image/image",
6 | "t-icon": "../icon/icon"
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/image-viewer/props.d.ts:
--------------------------------------------------------------------------------
1 | import { TdImageViewerProps } from './type';
2 | declare const props: TdImageViewerProps;
3 | export default props;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/image-viewer/type.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/image/image.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "styleIsolation": "apply-shared",
4 | "usingComponents": {
5 | "t-loading": "../loading/loading",
6 | "t-icon": "../icon/icon"
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/image/index.d.ts:
--------------------------------------------------------------------------------
1 | import { TdImageProps } from './type';
2 | export declare type ImageProps = TdImageProps;
3 | export * from './props';
4 | export * from './image';
5 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/image/index.js:
--------------------------------------------------------------------------------
1 | export * from './props';
2 | export * from './image';
3 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/image/props.d.ts:
--------------------------------------------------------------------------------
1 | import { TdImageProps } from './type';
2 | declare const props: TdImageProps;
3 | export default props;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/image/type.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/index.d.ts:
--------------------------------------------------------------------------------
1 | export { default as ActionSheet, ActionSheetTheme } from './action-sheet/index';
2 | export { default as Dialog } from './dialog/index';
3 | export { default as Message } from './message/index';
4 | export { default as Toast } from './toast/index';
5 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/index.js:
--------------------------------------------------------------------------------
1 | export { default as ActionSheet, ActionSheetTheme } from './action-sheet/index';
2 | export { default as Dialog } from './dialog/index';
3 | export { default as Message } from './message/index';
4 | export { default as Toast } from './toast/index';
5 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/indexes-anchor/README.en-US.md:
--------------------------------------------------------------------------------
1 | :: BASE_DOC ::
2 |
3 | ## API
4 | ### IndexesAnchor Props
5 |
6 | name | type | default | description | required
7 | -- | -- | -- | -- | --
8 | external-classes | Array | - | `['t-class']` | N
9 | index | String / Number | - | \- | N
10 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/indexes-anchor/README.md:
--------------------------------------------------------------------------------
1 | :: BASE_DOC ::
2 |
3 | ## API
4 | ### IndexesAnchor Props
5 |
6 | 名称 | 类型 | 默认值 | 说明 | 必传
7 | -- | -- | -- | -- | --
8 | index | String / Number | - | 索引字符 | N
9 |
10 | ### IndexesAnchor 外部样式类
11 | 类名 | 说明
12 | -- | --
13 | t-class | 根节点样式类
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/indexes-anchor/indexes-anchor.d.ts:
--------------------------------------------------------------------------------
1 | import { RelationsOptions, SuperComponent } from '../common/src/index';
2 | export default class IndexesAnchor extends SuperComponent {
3 | externalClasses: string[];
4 | properties: import("./type").TdIndexesAnchorProps;
5 | data: {
6 | prefix: string;
7 | classPrefix: string;
8 | anchorStyle: string;
9 | sticky: boolean;
10 | active: boolean;
11 | };
12 | relations: RelationsOptions;
13 | }
14 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/indexes-anchor/indexes-anchor.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "styleIsolation": "apply-shared"
4 | }
5 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/indexes-anchor/indexes-anchor.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/indexes-anchor/props.d.ts:
--------------------------------------------------------------------------------
1 | import { TdIndexesAnchorProps } from './type';
2 | declare const props: TdIndexesAnchorProps;
3 | export default props;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/indexes-anchor/props.js:
--------------------------------------------------------------------------------
1 | const props = {
2 | index: {
3 | type: null,
4 | },
5 | };
6 | export default props;
7 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/indexes-anchor/type.d.ts:
--------------------------------------------------------------------------------
1 | export interface TdIndexesAnchorProps {
2 | index?: {
3 | type: null;
4 | value?: string | number;
5 | };
6 | }
7 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/indexes-anchor/type.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/indexes/indexes.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "styleIsolation": "apply-shared",
4 | "usingComponents": {
5 | "t-icon": "../icon/icon",
6 | "t-cell": "../cell/cell",
7 | "t-cell-group": "../cell-group/cell-group"
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/indexes/props.d.ts:
--------------------------------------------------------------------------------
1 | import { TdIndexesProps } from './type';
2 | declare const props: TdIndexesProps;
3 | export default props;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/indexes/props.js:
--------------------------------------------------------------------------------
1 | const props = {
2 | indexList: {
3 | type: null,
4 | },
5 | sticky: {
6 | type: Boolean,
7 | value: true,
8 | },
9 | stickyOffset: {
10 | type: Number,
11 | value: 0,
12 | },
13 | };
14 | export default props;
15 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/indexes/type.d.ts:
--------------------------------------------------------------------------------
1 | export interface TdIndexesProps {
2 | indexList?: {
3 | type: null;
4 | value?: string[] | number[];
5 | };
6 | sticky?: {
7 | type: BooleanConstructor;
8 | value?: Boolean;
9 | };
10 | stickyOffset?: {
11 | type: NumberConstructor;
12 | value?: number;
13 | };
14 | }
15 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/indexes/type.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/input/input.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "styleIsolation": "apply-shared",
4 | "usingComponents": {
5 | "t-icon": "../icon/icon"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/input/input.wxs:
--------------------------------------------------------------------------------
1 | function getInputClass(classPrefix, suffix, align, disabled) {
2 | var className = [classPrefix + '__control'];
3 |
4 | if (align) {
5 | className.push(classPrefix + '--' + align);
6 | }
7 |
8 | if (disabled) {
9 | className.push(classPrefix + '__control--disabled');
10 | }
11 | return className.join(' ');
12 | }
13 |
14 | module.exports = {
15 | getInputClass: getInputClass,
16 | };
17 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/input/props.d.ts:
--------------------------------------------------------------------------------
1 | import { TdInputProps } from './type';
2 | declare const props: TdInputProps;
3 | export default props;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/input/type.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/link/link.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "styleIsolation": "apply-shared",
4 | "usingComponents": {
5 | "t-icon": "../icon/icon"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/link/props.d.ts:
--------------------------------------------------------------------------------
1 | import { TdLinkProps } from './type';
2 | declare const props: TdLinkProps;
3 | export default props;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/link/type.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/loading/index.d.ts:
--------------------------------------------------------------------------------
1 | export * from './props';
2 | export * from './type';
3 | export * from './loading';
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/loading/index.js:
--------------------------------------------------------------------------------
1 | export * from './props';
2 | export * from './type';
3 | export * from './loading';
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/loading/loading.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "styleIsolation": "apply-shared",
4 | "usingComponents": {}
5 | }
6 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/loading/props.d.ts:
--------------------------------------------------------------------------------
1 | import { TdLoadingProps } from './type';
2 | declare const props: TdLoadingProps;
3 | export default props;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/loading/type.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/message-item/message-item.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "styleIsolation": "apply-shared",
4 | "usingComponents": {
5 | "t-icon": "../icon/icon",
6 | "t-link": "../link/link"
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/message/message.interface.js:
--------------------------------------------------------------------------------
1 | export var MessageType;
2 | (function (MessageType) {
3 | MessageType["info"] = "info";
4 | MessageType["success"] = "success";
5 | MessageType["warning"] = "warning";
6 | MessageType["error"] = "error";
7 | })(MessageType || (MessageType = {}));
8 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/message/message.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "styleIsolation": "apply-shared",
4 | "usingComponents": {
5 | "t-message-item": "../message-item/message-item"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/message/message.wxml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/message/message.wxss:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gray878/wx_clinic/4374090e12bbc2f4cfcb45900b66ae0cebba9d9c/miniprogram_npm/tdesign-miniprogram/message/message.wxss
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/message/props.d.ts:
--------------------------------------------------------------------------------
1 | import { TdMessageProps } from './type';
2 | declare const props: TdMessageProps;
3 | export default props;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/message/type.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/miniprogram_npm/dayjs/locale/en.js:
--------------------------------------------------------------------------------
1 | !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_en=n()}(this,(function(){"use strict";return{name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var n=["th","st","nd","rd"],t=e%100;return"["+e+(n[(t-20)%10]||n[t]||n[0])+"]"}}}));
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/mixins/page-scroll.d.ts:
--------------------------------------------------------------------------------
1 | declare const _default: (funcName?: string) => string;
2 | export default _default;
3 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/mixins/theme-change.d.ts:
--------------------------------------------------------------------------------
1 | declare const themeChangeBehavior: string;
2 | export default themeChangeBehavior;
3 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/mixins/touch.d.ts:
--------------------------------------------------------------------------------
1 | declare const _default: string;
2 | export default _default;
3 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/mixins/transition.d.ts:
--------------------------------------------------------------------------------
1 | export default function transition(): string;
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/mixins/using-custom-navbar.d.ts:
--------------------------------------------------------------------------------
1 | declare const useCustomNavbarBehavior: string;
2 | export default useCustomNavbarBehavior;
3 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/navbar/navbar.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "styleIsolation": "apply-shared",
4 | "usingComponents": {
5 | "t-icon": "../icon/icon"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/navbar/props.d.ts:
--------------------------------------------------------------------------------
1 | import { TdNavbarProps } from './type';
2 | declare const props: TdNavbarProps;
3 | export default props;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/navbar/props.js:
--------------------------------------------------------------------------------
1 | const props = {
2 | animation: {
3 | type: Boolean,
4 | value: true,
5 | },
6 | delta: {
7 | type: Number,
8 | value: 1,
9 | },
10 | fixed: {
11 | type: Boolean,
12 | value: true,
13 | },
14 | leftArrow: {
15 | type: Boolean,
16 | value: false,
17 | },
18 | title: {
19 | type: String,
20 | },
21 | titleMaxLength: {
22 | type: Number,
23 | },
24 | visible: {
25 | type: Boolean,
26 | value: true,
27 | },
28 | };
29 | export default props;
30 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/navbar/type.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/notice-bar/notice-bar.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "styleIsolation": "apply-shared",
4 | "usingComponents": {
5 | "t-icon": "../icon/icon"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/notice-bar/props.d.ts:
--------------------------------------------------------------------------------
1 | import { TdNoticeBarProps } from './type';
2 | declare const props: TdNoticeBarProps;
3 | export default props;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/notice-bar/type.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/overlay/index.d.ts:
--------------------------------------------------------------------------------
1 | export * from './props';
2 | export * from './type';
3 | export * from './overlay';
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/overlay/index.js:
--------------------------------------------------------------------------------
1 | export * from './props';
2 | export * from './type';
3 | export * from './overlay';
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/overlay/overlay.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "styleIsolation": "apply-shared"
4 | }
5 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/overlay/props.d.ts:
--------------------------------------------------------------------------------
1 | import { TdOverlayProps } from './type';
2 | declare const props: TdOverlayProps;
3 | export default props;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/overlay/props.js:
--------------------------------------------------------------------------------
1 | const props = {
2 | backgroundColor: {
3 | type: String,
4 | value: '',
5 | },
6 | duration: {
7 | type: Number,
8 | value: 300,
9 | },
10 | preventScrollThrough: {
11 | type: Boolean,
12 | value: true,
13 | },
14 | zIndex: {
15 | type: Number,
16 | value: 11000,
17 | },
18 | };
19 | export default props;
20 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/overlay/type.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/picker-item/picker-item.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "styleIsolation": "apply-shared",
4 | "usingComponents": {}
5 | }
6 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/picker-item/props.d.ts:
--------------------------------------------------------------------------------
1 | import { TdPickerItemProps } from './type';
2 | declare const props: TdPickerItemProps;
3 | export default props;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/picker-item/props.js:
--------------------------------------------------------------------------------
1 | const props = {
2 | format: {
3 | type: null,
4 | },
5 | options: {
6 | type: Array,
7 | value: [],
8 | },
9 | };
10 | export default props;
11 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/picker-item/type.d.ts:
--------------------------------------------------------------------------------
1 | export interface TdPickerItemProps {
2 | format?: {
3 | type: undefined;
4 | value?: (option: PickerItemOption) => string;
5 | };
6 | options?: {
7 | type: ArrayConstructor;
8 | value?: PickerItemOption[];
9 | };
10 | }
11 | export interface PickerItemOption {
12 | label: string;
13 | value: string | number;
14 | }
15 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/picker-item/type.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/picker/picker.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "styleIsolation": "apply-shared",
4 | "usingComponents": {
5 | "t-popup": "../popup/popup"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/picker/picker.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/picker/props.d.ts:
--------------------------------------------------------------------------------
1 | import { TdPickerProps } from './type';
2 | declare const props: TdPickerProps;
3 | export default props;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/picker/type.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/popup/index.d.ts:
--------------------------------------------------------------------------------
1 | export * from './props';
2 | export * from './type';
3 | export * from './popup';
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/popup/index.js:
--------------------------------------------------------------------------------
1 | export * from './props';
2 | export * from './type';
3 | export * from './popup';
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/popup/popup.d.ts:
--------------------------------------------------------------------------------
1 | import { TdPopupProps } from './type';
2 | import { SuperComponent } from '../common/src/index';
3 | export declare type PopupProps = TdPopupProps;
4 | export default class Popup extends SuperComponent {
5 | externalClasses: string[];
6 | behaviors: string[];
7 | options: {
8 | multipleSlots: boolean;
9 | };
10 | properties: TdPopupProps;
11 | data: {
12 | prefix: string;
13 | classPrefix: string;
14 | };
15 | methods: {
16 | handleOverlayClick(): void;
17 | handleClose(): void;
18 | };
19 | }
20 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/popup/popup.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "styleIsolation": "apply-shared",
4 | "usingComponents": {
5 | "t-overlay": "../overlay/overlay",
6 | "t-icon": "../icon/icon"
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/popup/popup.wxs:
--------------------------------------------------------------------------------
1 | function getPopupStyles(zIndex, distanceTop, placement) {
2 | var zIndexStyle = zIndex ? 'z-index:' + zIndex + ';' : '';
3 | if ((placement === 'top' || placement === 'left' || placement === 'right') && distanceTop) {
4 | zIndexStyle = zIndexStyle + 'top:' + distanceTop + 'px;';
5 | }
6 | return zIndexStyle;
7 | }
8 |
9 | function onContentTouchMove(e) {
10 | if (e.target && e.target.dataset.prevention) {
11 | return false;
12 | }
13 | }
14 |
15 | module.exports = {
16 | getPopupStyles: getPopupStyles,
17 | onContentTouchMove: onContentTouchMove,
18 | };
19 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/popup/props.d.ts:
--------------------------------------------------------------------------------
1 | import { TdPopupProps } from './type';
2 | declare const props: TdPopupProps;
3 | export default props;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/popup/type.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/progress/progress.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "styleIsolation": "apply-shared",
4 | "usingComponents": {
5 | "t-icon": "../icon/icon"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/progress/props.d.ts:
--------------------------------------------------------------------------------
1 | import { TdProgressProps } from './type';
2 | declare const props: TdProgressProps;
3 | export default props;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/progress/type.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/progress/utils.d.ts:
--------------------------------------------------------------------------------
1 | export declare type Gradients = {
2 | [percent: string]: string;
3 | };
4 | export declare type FromTo = {
5 | from: string;
6 | to: string;
7 | };
8 | export declare type LinearGradient = {
9 | direction?: string;
10 | } & (Gradients | FromTo);
11 | export declare function getBackgroundColor(color: string | string[] | LinearGradient): string;
12 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/pull-down-refresh/props.d.ts:
--------------------------------------------------------------------------------
1 | import { TdPullDownRefreshProps } from './type';
2 | declare const props: TdPullDownRefreshProps;
3 | export default props;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/pull-down-refresh/pull-down-refresh.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "styleIsolation": "apply-shared",
4 | "usingComponents": {
5 | "t-loading": "../loading/loading"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/pull-down-refresh/type.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/radio-group/props.d.ts:
--------------------------------------------------------------------------------
1 | import { TdRadioGroupProps } from './type';
2 | declare const props: TdRadioGroupProps;
3 | export default props;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/radio-group/radio-group.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "styleIsolation": "apply-shared",
4 | "usingComponents": {
5 | "t-radio": "../radio/radio"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/radio-group/radio-group.wxss:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gray878/wx_clinic/4374090e12bbc2f4cfcb45900b66ae0cebba9d9c/miniprogram_npm/tdesign-miniprogram/radio-group/radio-group.wxss
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/radio-group/type.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/radio/props.d.ts:
--------------------------------------------------------------------------------
1 | import { TdRadioProps } from './type';
2 | declare const props: TdRadioProps;
3 | export default props;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/radio/radio.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "styleIsolation": "apply-shared",
4 | "usingComponents": {
5 | "t-icon": "../icon/icon"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/radio/type.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/rate/props.d.ts:
--------------------------------------------------------------------------------
1 | import { TdRateProps } from './type';
2 | declare const props: TdRateProps;
3 | export default props;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/rate/rate.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "styleIsolation": "apply-shared",
4 | "usingComponents": {
5 | "t-icon": "../icon/icon"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/rate/type.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/result/index.d.ts:
--------------------------------------------------------------------------------
1 | export * from './type';
2 | export * from './props';
3 | export * from './result';
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/result/index.js:
--------------------------------------------------------------------------------
1 | export * from './type';
2 | export * from './props';
3 | export * from './result';
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/result/props.d.ts:
--------------------------------------------------------------------------------
1 | import { TdResultProps } from './type';
2 | declare const props: TdResultProps;
3 | export default props;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/result/props.js:
--------------------------------------------------------------------------------
1 | const props = {
2 | description: {
3 | type: String,
4 | },
5 | icon: {
6 | type: null,
7 | value: true,
8 | },
9 | image: {
10 | type: String,
11 | },
12 | theme: {
13 | type: String,
14 | value: 'default',
15 | },
16 | title: {
17 | type: String,
18 | value: '',
19 | },
20 | };
21 | export default props;
22 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/result/result.d.ts:
--------------------------------------------------------------------------------
1 | import { SuperComponent } from '../common/src/index';
2 | export default class extends SuperComponent {
3 | options: {
4 | multipleSlots: boolean;
5 | };
6 | externalClasses: string[];
7 | properties: import("./type").TdResultProps;
8 | data: {
9 | prefix: string;
10 | classPrefix: string;
11 | };
12 | lifetimes: {
13 | ready(): void;
14 | };
15 | observers: {
16 | 'icon, theme'(): void;
17 | };
18 | methods: {
19 | initIcon(): void;
20 | };
21 | }
22 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/result/result.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "styleIsolation": "apply-shared",
4 | "usingComponents": {
5 | "t-icon": "../icon/icon",
6 | "t-image": "../image/image"
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/result/type.d.ts:
--------------------------------------------------------------------------------
1 | export interface TdResultProps {
2 | description?: {
3 | type: StringConstructor;
4 | value?: string;
5 | };
6 | icon?: {
7 | type: null;
8 | value?: string | boolean | object;
9 | };
10 | image?: {
11 | type: StringConstructor;
12 | value?: string;
13 | };
14 | theme?: {
15 | type: StringConstructor;
16 | value?: 'default' | 'success' | 'warning' | 'error';
17 | };
18 | title?: {
19 | type: StringConstructor;
20 | value?: string;
21 | };
22 | }
23 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/result/type.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/row/README.md:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gray878/wx_clinic/4374090e12bbc2f4cfcb45900b66ae0cebba9d9c/miniprogram_npm/tdesign-miniprogram/row/README.md
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/row/props.d.ts:
--------------------------------------------------------------------------------
1 | import { TdRowProps } from './type';
2 | declare const props: TdRowProps;
3 | export default props;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/row/props.js:
--------------------------------------------------------------------------------
1 | const props = {
2 | gutter: {
3 | type: null,
4 | },
5 | };
6 | export default props;
7 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/row/row.d.ts:
--------------------------------------------------------------------------------
1 | import { SuperComponent, RelationsOptions } from '../common/src/index';
2 | export default class Row extends SuperComponent {
3 | externalClasses: any[];
4 | properties: import("./type").TdRowProps;
5 | data: {
6 | prefix: string;
7 | };
8 | relations: RelationsOptions;
9 | observers: {
10 | gutter(): void;
11 | };
12 | methods: {
13 | setGutter(): void;
14 | };
15 | }
16 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/row/row.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "styleIsolation": "apply-shared",
4 | "usingComponents": {}
5 | }
6 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/row/row.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/row/row.wxs:
--------------------------------------------------------------------------------
1 | var utils = require('../common/utils.wxs');
2 |
3 | function getRowStyles(gutter, style, customStyle) {
4 | var _style = '';
5 | if (gutter) {
6 | _style = utils._style({
7 | 'margin-right': utils.addUnit(-gutter / 2),
8 | 'margin-left': utils.addUnit(-gutter / 2),
9 | });
10 | }
11 |
12 | return utils._style([style, customStyle]) + _style;
13 | }
14 |
15 | module.exports = {
16 | getRowStyles: getRowStyles,
17 | };
18 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/row/row.wxss:
--------------------------------------------------------------------------------
1 | .t-row {
2 | display: flex;
3 | flex-direction: row;
4 | flex-wrap: wrap;
5 | box-sizing: border-box;
6 | }
7 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/row/type.d.ts:
--------------------------------------------------------------------------------
1 | export interface TdRowProps {
2 | gutter?: {
3 | type: null;
4 | value?: string | number;
5 | };
6 | }
7 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/row/type.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/search/props.d.ts:
--------------------------------------------------------------------------------
1 | import { TdSearchProps } from './type';
2 | declare const props: TdSearchProps;
3 | export default props;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/search/search.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "styleIsolation": "apply-shared",
4 | "usingComponents": {
5 | "t-icon": "../icon/icon",
6 | "t-cell": "../cell/cell"
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/search/search.wxs:
--------------------------------------------------------------------------------
1 | var highLight = function (label, keyword) {
2 | return label.replace(keyword, '' + keyword + '');
3 | };
4 | module.exports = {
5 | highLight: highLight,
6 | };
7 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/search/type.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/side-bar-item/props.d.ts:
--------------------------------------------------------------------------------
1 | import { TdSideBarItemProps } from './type';
2 | declare const props: TdSideBarItemProps;
3 | export default props;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/side-bar-item/props.js:
--------------------------------------------------------------------------------
1 | const props = {
2 | badgeProps: {
3 | type: Object,
4 | },
5 | disabled: {
6 | type: Boolean,
7 | value: false,
8 | },
9 | icon: {
10 | type: null,
11 | },
12 | label: {
13 | type: String,
14 | value: '',
15 | },
16 | value: {
17 | type: null,
18 | },
19 | };
20 | export default props;
21 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/side-bar-item/side-bar-item.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "styleIsolation": "apply-shared",
4 | "usingComponents": {
5 | "t-badge": "../badge/badge",
6 | "t-icon": "../icon/icon"
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/side-bar-item/type.d.ts:
--------------------------------------------------------------------------------
1 | import { BadgeProps } from '../badge/index';
2 | export interface TdSideBarItemProps {
3 | badgeProps?: {
4 | type: ObjectConstructor;
5 | value?: BadgeProps;
6 | };
7 | disabled?: {
8 | type: BooleanConstructor;
9 | value?: boolean;
10 | };
11 | icon?: {
12 | type: null;
13 | value?: string | object;
14 | };
15 | label?: {
16 | type: StringConstructor;
17 | value?: string;
18 | };
19 | value?: {
20 | type: null;
21 | value?: string | number;
22 | };
23 | }
24 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/side-bar-item/type.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/side-bar/props.d.ts:
--------------------------------------------------------------------------------
1 | import { TdSideBarProps } from './type';
2 | declare const props: TdSideBarProps;
3 | export default props;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/side-bar/props.js:
--------------------------------------------------------------------------------
1 | const props = {
2 | value: {
3 | type: null,
4 | value: null,
5 | },
6 | defaultValue: {
7 | type: null,
8 | },
9 | };
10 | export default props;
11 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/side-bar/side-bar.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "styleIsolation": "apply-shared",
4 | "usingComponents": {
5 | "t-side-bar-item": "../side-bar-item/side-bar-item"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/side-bar/side-bar.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/side-bar/type.d.ts:
--------------------------------------------------------------------------------
1 | export interface TdSideBarProps {
2 | value?: {
3 | type: null;
4 | value?: string | number;
5 | };
6 | defaultValue?: {
7 | type: null;
8 | value?: string | number;
9 | };
10 | }
11 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/side-bar/type.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/skeleton/props.d.ts:
--------------------------------------------------------------------------------
1 | import { TdSkeletonProps } from './type';
2 | declare const props: TdSkeletonProps;
3 | export default props;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/skeleton/props.js:
--------------------------------------------------------------------------------
1 | const props = {
2 | animation: {
3 | type: String,
4 | value: 'none',
5 | },
6 | delay: {
7 | type: Number,
8 | value: 0,
9 | },
10 | loading: {
11 | type: Boolean,
12 | value: true,
13 | },
14 | rowCol: {
15 | type: Array,
16 | },
17 | theme: {
18 | type: String,
19 | value: 'text',
20 | },
21 | };
22 | export default props;
23 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/skeleton/skeleton.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "styleIsolation": "apply-shared",
4 | "usingComponents": {}
5 | }
6 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/skeleton/type.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/slider/props.d.ts:
--------------------------------------------------------------------------------
1 | import { TdSliderProps } from './type';
2 | declare const props: TdSliderProps;
3 | export default props;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/slider/slider.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "styleIsolation": "apply-shared",
4 | "usingComponents": {}
5 | }
6 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/slider/slider.wxs:
--------------------------------------------------------------------------------
1 | var REGEXP = getRegExp('[$][{value}]{7}');
2 |
3 | function getValue(label, value) {
4 | if (label && label === 'true') return value;
5 | if (REGEXP.test(label)) return label.replace(REGEXP, value);
6 | }
7 |
8 | module.exports = {
9 | getValue: getValue,
10 | };
11 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/slider/tool.d.ts:
--------------------------------------------------------------------------------
1 | export declare const trimSingleValue: (value: any, min: number, max: number) => number;
2 | export declare const trimValue: (value: number | number[], props: any) => number | number[];
3 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/slider/type.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/step-item/props.d.ts:
--------------------------------------------------------------------------------
1 | import { TdStepItemProps } from './type';
2 | declare const props: TdStepItemProps;
3 | export default props;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/step-item/props.js:
--------------------------------------------------------------------------------
1 | const props = {
2 | content: {
3 | type: String,
4 | value: '',
5 | },
6 | icon: {
7 | type: String,
8 | },
9 | status: {
10 | type: String,
11 | value: 'default',
12 | },
13 | title: {
14 | type: String,
15 | value: '',
16 | },
17 | };
18 | export default props;
19 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/step-item/step-item.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "styleIsolation": "apply-shared",
4 | "usingComponents": {
5 | "t-icon": "../icon/icon"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/step-item/step-item.wxs:
--------------------------------------------------------------------------------
1 | function getAriaLabel(index, title, content) {
2 | return '第' + (index + 1) + '步,' + title + ',' + content;
3 | }
4 |
5 | module.exports = {
6 | getAriaLabel: getAriaLabel,
7 | };
8 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/step-item/type.d.ts:
--------------------------------------------------------------------------------
1 | export interface TdStepItemProps {
2 | content?: {
3 | type: StringConstructor;
4 | value?: string;
5 | };
6 | icon?: {
7 | type: StringConstructor;
8 | value?: string;
9 | };
10 | status?: {
11 | type: StringConstructor;
12 | value?: StepStatus;
13 | };
14 | title?: {
15 | type: StringConstructor;
16 | value?: string;
17 | };
18 | }
19 | export declare type StepStatus = 'default' | 'process' | 'finish' | 'error';
20 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/step-item/type.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/stepper/props.d.ts:
--------------------------------------------------------------------------------
1 | import { TdStepperProps } from './type';
2 | declare const props: TdStepperProps;
3 | export default props;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/stepper/stepper.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "styleIsolation": "apply-shared",
4 | "usingComponents": {
5 | "t-cell": "../cell/cell",
6 | "t-icon": "../icon/icon"
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/stepper/type.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/steps/props.d.ts:
--------------------------------------------------------------------------------
1 | import { TdStepsProps } from './type';
2 | declare const props: TdStepsProps;
3 | export default props;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/steps/steps.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "styleIsolation": "apply-shared",
4 | "usingComponents": {
5 | "t-step": "../step-item/step-item"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/steps/steps.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/steps/type.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/sticky/index.d.ts:
--------------------------------------------------------------------------------
1 | export * from './props';
2 | export * from './type';
3 | export * from './sticky';
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/sticky/index.js:
--------------------------------------------------------------------------------
1 | export * from './props';
2 | export * from './type';
3 | export * from './sticky';
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/sticky/props.d.ts:
--------------------------------------------------------------------------------
1 | import { TdStickyProps } from './type';
2 | declare const props: TdStickyProps;
3 | export default props;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/sticky/props.js:
--------------------------------------------------------------------------------
1 | const props = {
2 | container: {
3 | type: null,
4 | },
5 | disabled: {
6 | type: Boolean,
7 | value: false,
8 | },
9 | offsetTop: {
10 | type: null,
11 | value: 0,
12 | },
13 | zIndex: {
14 | type: Number,
15 | value: 99,
16 | },
17 | };
18 | export default props;
19 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/sticky/sticky.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "styleIsolation": "apply-shared",
4 | "usingComponents": {}
5 | }
6 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/sticky/sticky.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/sticky/sticky.wxss:
--------------------------------------------------------------------------------
1 | .t-float-left {
2 | float: left;
3 | }
4 | .t-float-right {
5 | float: right;
6 | }
7 | @keyframes tdesign-fade-out {
8 | from {
9 | opacity: 1;
10 | }
11 | to {
12 | opacity: 0;
13 | }
14 | }
15 | .hotspot-expanded.relative {
16 | position: relative;
17 | }
18 | .hotspot-expanded::after {
19 | content: '';
20 | display: block;
21 | position: absolute;
22 | left: 0;
23 | top: 0;
24 | right: 0;
25 | bottom: 0;
26 | transform: scale(1.5);
27 | }
28 | .t-sticky {
29 | position: relative;
30 | }
31 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/sticky/type.d.ts:
--------------------------------------------------------------------------------
1 | export interface TdStickyProps {
2 | container?: {
3 | type: undefined;
4 | value?: null;
5 | };
6 | disabled?: {
7 | type: BooleanConstructor;
8 | value?: boolean;
9 | };
10 | offsetTop?: {
11 | type: null;
12 | value?: string | number;
13 | };
14 | zIndex?: {
15 | type: NumberConstructor;
16 | value?: number;
17 | };
18 | }
19 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/sticky/type.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/swipe-cell/props.d.ts:
--------------------------------------------------------------------------------
1 | import { TdSwipeCellProps } from './type';
2 | declare const props: TdSwipeCellProps;
3 | export default props;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/swipe-cell/props.js:
--------------------------------------------------------------------------------
1 | const props = {
2 | disabled: {
3 | type: Boolean,
4 | },
5 | left: {
6 | type: Array,
7 | },
8 | opened: {
9 | type: null,
10 | value: false,
11 | },
12 | right: {
13 | type: Array,
14 | },
15 | style: {
16 | type: String,
17 | value: '',
18 | },
19 | };
20 | export default props;
21 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/swipe-cell/swipe-cell.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "styleIsolation": "apply-shared",
4 | "usingComponents": {
5 | "t-icon": "../icon/icon"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/swipe-cell/type.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/swiper-nav/index.d.ts:
--------------------------------------------------------------------------------
1 | export * from './type';
2 | export * from './props';
3 | export * from './swiper-nav';
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/swiper-nav/index.js:
--------------------------------------------------------------------------------
1 | export * from './type';
2 | export * from './props';
3 | export * from './swiper-nav';
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/swiper-nav/props.d.ts:
--------------------------------------------------------------------------------
1 | import { TdSwiperNavProps } from './type';
2 | declare const props: TdSwiperNavProps;
3 | export default props;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/swiper-nav/swiper-nav.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "styleIsolation": "apply-shared"
4 | }
5 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/swiper-nav/type.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/swiper/props.d.ts:
--------------------------------------------------------------------------------
1 | import { TdSwiperProps } from './type';
2 | declare const props: TdSwiperProps;
3 | export default props;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/swiper/swiper.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "styleIsolation": "apply-shared",
4 | "usingComponents": {
5 | "t-swiper-nav": "../swiper-nav/swiper-nav",
6 | "t-image": "../image/image"
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/swiper/type.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/switch/props.d.ts:
--------------------------------------------------------------------------------
1 | import { TdSwitchProps } from './type';
2 | declare const props: TdSwitchProps;
3 | export default props;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/switch/switch.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "styleIsolation": "apply-shared",
4 | "usingComponents": {
5 | "t-icon": "../icon/icon",
6 | "t-loading": "../loading/loading"
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/switch/type.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/tab-bar-item/props.d.ts:
--------------------------------------------------------------------------------
1 | import { TdTabBarItemProps } from './type';
2 | declare const props: TdTabBarItemProps;
3 | export default props;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/tab-bar-item/props.js:
--------------------------------------------------------------------------------
1 | const props = {
2 | badgeProps: {
3 | type: Object,
4 | },
5 | icon: {
6 | type: null,
7 | },
8 | subTabBar: {
9 | type: Array,
10 | },
11 | value: {
12 | type: null,
13 | },
14 | };
15 | export default props;
16 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/tab-bar-item/tab-bar-item.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "styleIsolation": "apply-shared",
4 | "usingComponents": {
5 | "t-icon": "../icon/icon",
6 | "t-badge": "../badge/badge"
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/tab-bar-item/type.d.ts:
--------------------------------------------------------------------------------
1 | import { BadgeProps } from '../badge/index';
2 | export interface TdTabBarItemProps {
3 | badgeProps?: {
4 | type: ObjectConstructor;
5 | value?: BadgeProps;
6 | };
7 | icon?: {
8 | type: null;
9 | value?: string | object;
10 | };
11 | subTabBar?: {
12 | type: ArrayConstructor;
13 | value?: SubTabBarItem[];
14 | };
15 | value?: {
16 | type: null;
17 | value?: string | number;
18 | };
19 | }
20 | export interface SubTabBarItem {
21 | value: string;
22 | label: string;
23 | }
24 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/tab-bar-item/type.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/tab-bar/props.d.ts:
--------------------------------------------------------------------------------
1 | import { TdTabBarProps } from './type';
2 | declare const props: TdTabBarProps;
3 | export default props;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/tab-bar/tab-bar.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "styleIsolation": "apply-shared",
4 | "usingComponents": {}
5 | }
6 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/tab-bar/tab-bar.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/tab-bar/type.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/tab-panel/props.d.ts:
--------------------------------------------------------------------------------
1 | import { TdTabPanelProps } from './type';
2 | declare const props: TdTabPanelProps;
3 | export default props;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/tab-panel/props.js:
--------------------------------------------------------------------------------
1 | const props = {
2 | badgeProps: {
3 | type: Object,
4 | },
5 | disabled: {
6 | type: Boolean,
7 | value: false,
8 | },
9 | icon: {
10 | type: null,
11 | },
12 | label: {
13 | type: String,
14 | value: '',
15 | },
16 | panel: {
17 | type: String,
18 | },
19 | value: {
20 | type: null,
21 | },
22 | };
23 | export default props;
24 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/tab-panel/tab-panel.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "styleIsolation": "apply-shared",
4 | "usingComponents": {}
5 | }
6 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/tab-panel/tab-panel.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
9 | {{panel}}
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/tab-panel/type.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/tabs/index.d.ts:
--------------------------------------------------------------------------------
1 | export * from './tabs';
2 | export * from './type';
3 | export * from './props';
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/tabs/index.js:
--------------------------------------------------------------------------------
1 | export * from './tabs';
2 | export * from './type';
3 | export * from './props';
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/tabs/props.d.ts:
--------------------------------------------------------------------------------
1 | import { TdTabsProps } from './type';
2 | declare const props: TdTabsProps;
3 | export default props;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/tabs/tabs.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "styleIsolation": "apply-shared",
4 | "usingComponents": {
5 | "t-sticky": "../sticky/sticky",
6 | "t-badge": "../badge/badge",
7 | "t-icon": "../icon/icon"
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/tabs/tabs.wxs:
--------------------------------------------------------------------------------
1 | /* eslint-disable */
2 |
3 | function animate(options) {
4 | var result = [];
5 |
6 | if (options.duration) {
7 | result.push('transition-duration: ' + options.duration + 's');
8 | result.push('transform: translate3d( ' + -100 * options.currentIndex + '%,0, 0)');
9 | }
10 |
11 | return result.join(';');
12 | }
13 |
14 | module.exports = {
15 | animate: animate,
16 | };
17 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/tabs/type.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/tag/props.d.ts:
--------------------------------------------------------------------------------
1 | import { TdTagProps } from './type';
2 | declare const props: TdTagProps;
3 | export default props;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/tag/tag.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "styleIsolation": "apply-shared",
4 | "usingComponents": {
5 | "t-icon": ".././icon/icon"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/tag/type.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/textarea/props.d.ts:
--------------------------------------------------------------------------------
1 | import { TdTextareaProps } from './type';
2 | declare const props: TdTextareaProps;
3 | export default props;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/textarea/textarea.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "styleIsolation": "apply-shared",
4 | "usingComponents": {}
5 | }
6 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/textarea/textarea.wxs:
--------------------------------------------------------------------------------
1 | /* eslint-disable */
2 | var utils = require('../common/utils.wxs');
3 |
4 | function textareaStyle(autosize) {
5 | if (autosize && autosize.constructor === 'Object') {
6 | return utils._style({
7 | 'min-height': utils.addUnit(autosize.minHeight),
8 | 'max-height': utils.addUnit(autosize.maxHeight),
9 | });
10 | }
11 | return '';
12 | }
13 |
14 | module.exports = {
15 | textareaStyle: textareaStyle,
16 | };
17 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/textarea/type.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/toast/props.d.ts:
--------------------------------------------------------------------------------
1 | import { TdToastProps } from './type';
2 | declare const props: TdToastProps;
3 | export default props;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/toast/toast.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "styleIsolation": "apply-shared",
4 | "usingComponents": {
5 | "t-icon": "../icon/icon",
6 | "t-loading": "../loading/loading",
7 | "t-overlay": "../overlay/overlay"
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/toast/type.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/transition/index.d.ts:
--------------------------------------------------------------------------------
1 | export * from './props';
2 | export * from './type';
3 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/transition/index.js:
--------------------------------------------------------------------------------
1 | export * from './props';
2 | export * from './type';
3 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/transition/props.d.ts:
--------------------------------------------------------------------------------
1 | import { TdTransitionProps } from './type';
2 | declare const props: TdTransitionProps;
3 | export default props;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/transition/props.js:
--------------------------------------------------------------------------------
1 | const props = {
2 | appear: {
3 | type: Boolean,
4 | value: false,
5 | },
6 | destoryOnHide: {
7 | type: Boolean,
8 | value: false,
9 | },
10 | durations: {
11 | type: null,
12 | },
13 | name: {
14 | type: String,
15 | value: 't-transition',
16 | },
17 | visible: {
18 | type: Boolean,
19 | value: false,
20 | },
21 | };
22 | export default props;
23 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/transition/transition.d.ts:
--------------------------------------------------------------------------------
1 | import { SuperComponent } from '../common/src/index';
2 | export default class Transition extends SuperComponent {
3 | externalClasses: string[];
4 | behaviors: string[];
5 | data: {
6 | classPrefix: string;
7 | };
8 | }
9 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/transition/transition.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "styleIsolation": "apply-shared",
4 | "usingComponents": {}
5 | }
6 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/transition/transition.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/transition/transition.wxss:
--------------------------------------------------------------------------------
1 | .t-transition-enter {
2 | opacity: 0;
3 | }
4 | .t-transition-enter-to {
5 | opacity: 1;
6 | transition: opacity 1s;
7 | }
8 | .t-transition-leave {
9 | opacity: 1;
10 | }
11 | .t-transition-leave-to {
12 | opacity: 0;
13 | transition: opacity 1s;
14 | }
15 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/transition/type.d.ts:
--------------------------------------------------------------------------------
1 | export interface TdTransitionProps {
2 | appear?: {
3 | type: BooleanConstructor;
4 | value?: boolean;
5 | };
6 | destoryOnHide?: {
7 | type: BooleanConstructor;
8 | value?: boolean;
9 | };
10 | durations?: {
11 | type: null;
12 | value?: number | number[];
13 | };
14 | name?: {
15 | type: StringConstructor;
16 | value?: string;
17 | };
18 | visible?: {
19 | type: BooleanConstructor;
20 | value?: boolean;
21 | };
22 | }
23 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/transition/type.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/tree-select/index.wxs:
--------------------------------------------------------------------------------
1 | var getTreeClass = function (level, total) {
2 | if (level === 0) return 'right';
3 | if (level === 1 && level !== total - 1) return 'middle';
4 | return 'left';
5 | };
6 |
7 | module.exports.getTreeClass = getTreeClass;
8 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/tree-select/props.d.ts:
--------------------------------------------------------------------------------
1 | import { TdTreeSelectProps } from './type';
2 | declare const props: TdTreeSelectProps;
3 | export default props;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/tree-select/props.js:
--------------------------------------------------------------------------------
1 | const props = {
2 | height: {
3 | type: null,
4 | value: 336,
5 | },
6 | keys: {
7 | type: Object,
8 | },
9 | multiple: {
10 | type: Boolean,
11 | value: false,
12 | },
13 | options: {
14 | type: Array,
15 | value: [],
16 | },
17 | value: {
18 | type: null,
19 | value: null,
20 | },
21 | defaultValue: {
22 | type: null,
23 | },
24 | };
25 | export default props;
26 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/tree-select/tree-select.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "styleIsolation": "apply-shared",
4 | "usingComponents": {
5 | "t-radio": "../radio/radio",
6 | "t-radio-group": "../radio-group/radio-group",
7 | "t-checkbox": "../checkbox/checkbox",
8 | "t-checkbox-group": "../checkbox-group/checkbox-group",
9 | "t-side-bar": "../side-bar/side-bar",
10 | "t-side-bar-item": "../side-bar-item/side-bar-item",
11 | "t-scroll-view": "../scroll-view/scroll-view"
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/tree-select/type.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/upload/props.d.ts:
--------------------------------------------------------------------------------
1 | import { TdUploadProps } from './type';
2 | declare const props: TdUploadProps;
3 | export default props;
4 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/upload/type.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/upload/upload.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "styleIsolation": "apply-shared",
4 | "usingComponents": {
5 | "t-grid": "../grid/grid",
6 | "t-grid-item": "../grid-item/grid-item",
7 | "t-icon": "../icon/icon",
8 | "t-image": "../image/image"
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/miniprogram_npm/tdesign-miniprogram/upload/upload.wxs:
--------------------------------------------------------------------------------
1 | module.exports.getWrapperAriaRole = function (file) {
2 | return file.status && file.status != 'done' ? 'text' : 'button';
3 | };
4 |
5 | module.exports.getWrapperAriaLabel = function (file) {
6 | if (file.status && file.status != 'done') {
7 | if (file.status == 'loading') {
8 | return file.percent ? '上传中:' + file.percent + '%' : '上传中';
9 | } else {
10 | return file.status == 'reload' ? '重新上传' : '上传失败';
11 | }
12 | } else {
13 | return file.type === 'video' ? '视频' : '图像';
14 | }
15 | };
16 |
--------------------------------------------------------------------------------
/model/activities.js:
--------------------------------------------------------------------------------
1 | import { getActivity } from './activity';
2 |
3 | export function getActivityList(baseID = 0, length = 10) {
4 | return new Array(length).fill(0).map((_, idx) => getActivity(idx + baseID));
5 | }
6 |
7 | export const activityList = getActivityList();
8 |
--------------------------------------------------------------------------------
/model/activity.js:
--------------------------------------------------------------------------------
1 | /**
2 | * @param {string|number} key 唯一值
3 | */
4 | export function getActivity(key) {
5 | return {
6 | promotionId: `${key}`,
7 | title: `满减满折回归${key}`,
8 | description: null,
9 | promotionCode: 'MERCHANT',
10 | promotionSubCode: key % 2 === 0 ? 'MYJ' : 'MYG',
11 | tag: '满减',
12 | timeType: 1,
13 | startTime: '1588737710000',
14 | endTime: '1601467070000',
15 | teasingStartTime: null,
16 | activityLadder: [{ label: '满100元减99.9元' }],
17 | };
18 | }
19 |
--------------------------------------------------------------------------------
/model/comments/queryDetail.js:
--------------------------------------------------------------------------------
1 | const queryDetail = {
2 | commentInfos: [],
3 | logisticsScore: null,
4 | serviceScore: null,
5 | };
6 |
7 | /**
8 | * @param {string} skuId
9 | * @param {string} spuId
10 | * @param {string} orderNo
11 | */
12 | export function queryCommentDetail() {
13 | return queryDetail;
14 | }
15 |
--------------------------------------------------------------------------------
/model/goods.js:
--------------------------------------------------------------------------------
1 | import { genGood } from './good';
2 |
3 | export function getGoodsList(baseID = 0, length = 10) {
4 | return new Array(length).fill(0).map((_, idx) => genGood(idx + baseID));
5 | }
6 |
7 | export const goodsList = getGoodsList();
8 |
--------------------------------------------------------------------------------
/packageCoupon/pages/coupon/components/coupon-card/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "ui-coupon-card": "../ui-coupon-card/index",
5 | "t-button": "tdesign-miniprogram/button/button"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/packageCoupon/pages/coupon/components/coupon-card/index.wxss:
--------------------------------------------------------------------------------
1 | .coupon-btn-default {
2 | display: none;
3 | }
4 |
5 | .coupon-btn-primary {
6 | --td-button-extra-small-padding-horizontal: 26rpx;
7 | --td-button-primary-outline-color: #fa4126;
8 | --td-button-primary-outline-border-color: #fa4126;
9 | }
10 |
--------------------------------------------------------------------------------
/packageCoupon/pages/coupon/components/floating-button/index.js:
--------------------------------------------------------------------------------
1 | Component({
2 | data: { icon: 'cart' },
3 |
4 | properties: {
5 | count: {
6 | type: Number,
7 | },
8 | },
9 |
10 | methods: {
11 | goToCart() {
12 | wx.switchTab({
13 | url: '/pages/cart/index',
14 | });
15 | },
16 | },
17 | });
18 |
--------------------------------------------------------------------------------
/packageCoupon/pages/coupon/components/floating-button/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "t-icon": "tdesign-miniprogram/icon/icon"
5 | }
6 | }
--------------------------------------------------------------------------------
/packageCoupon/pages/coupon/components/floating-button/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
9 |
10 |
11 | {{count}}
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/packageCoupon/pages/coupon/components/ui-coupon-card/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "t-icon": "tdesign-miniprogram/icon/icon",
5 | "t-image": "/components/webp-image/index"
6 | }
7 | }
--------------------------------------------------------------------------------
/packageCoupon/pages/coupon/coupon-activity-goods/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "活动商品",
3 | "usingComponents": {
4 | "t-icon": "tdesign-miniprogram/icon/icon",
5 | "t-popup": "tdesign-miniprogram/popup/popup",
6 | "t-toast": "tdesign-miniprogram/toast/toast",
7 | "goods-list": "/components/goods-list/index",
8 | "floating-button": "../components/floating-button/index"
9 | }
10 | }
--------------------------------------------------------------------------------
/packageCoupon/pages/coupon/coupon-detail/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "优惠券详情",
3 | "usingComponents": {
4 | "coupon-card": "../components/coupon-card/index",
5 | "t-cell": "tdesign-miniprogram/cell/cell",
6 | "t-cell-group": "tdesign-miniprogram/cell-group/cell-group",
7 | "t-button": "tdesign-miniprogram/button/button",
8 | "t-icon": "tdesign-miniprogram/icon/icon"
9 | }
10 | }
--------------------------------------------------------------------------------
/packageCoupon/pages/coupon/coupon-list/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "优惠券",
3 | "usingComponents": {
4 | "t-pull-down-refresh": "tdesign-miniprogram/pull-down-refresh/pull-down-refresh",
5 | "t-tabs": "tdesign-miniprogram/tabs/tabs",
6 | "t-tab-panel": "tdesign-miniprogram/tab-panel/tab-panel",
7 | "t-icon": "tdesign-miniprogram/icon/icon",
8 | "coupon-card": "../components/coupon-card/index"
9 | }
10 | }
--------------------------------------------------------------------------------
/packageCoupon/pages/coupon/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {}
3 | }
--------------------------------------------------------------------------------
/packagePromotion/pages/promotion-detail/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "营销详情",
3 | "usingComponents": {
4 | "t-toast": "tdesign-miniprogram/toast/toast",
5 | "t-image": "/components/webp-image/index",
6 | "t-icon": "tdesign-miniprogram/icon/icon",
7 | "count-down": "tdesign-miniprogram/count-down/count-down",
8 | "goods-list": "/components/goods-list/index"
9 | }
10 | }
--------------------------------------------------------------------------------
/packageUser/pages/components/ui-address-item/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "t-icon": "tdesign-miniprogram/icon/icon",
5 | "t-tag": "tdesign-miniprogram/tag/tag",
6 | "t-swipe-cell": "tdesign-miniprogram/swipe-cell/swipe-cell"
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/packageUser/pages/name-edit/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {}
3 | }
--------------------------------------------------------------------------------
/packageUser/pages/name-edit/index.wxml:
--------------------------------------------------------------------------------
1 |
2 | pages/usercenter/name-edit/index.wxml
--------------------------------------------------------------------------------
/packageUser/pages/name-edit/index.wxss:
--------------------------------------------------------------------------------
1 | /* pages/usercenter/name-edit/index.wxss */
--------------------------------------------------------------------------------
/packageUser/pages/person-info/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {}
3 | }
--------------------------------------------------------------------------------
/pages/cart/components/cart-bar/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "price": "/components/price/index",
5 | "t-icon": "tdesign-miniprogram/icon/icon"
6 | }
7 | }
--------------------------------------------------------------------------------
/pages/cart/components/cart-empty/index.js:
--------------------------------------------------------------------------------
1 | Component({
2 | properties: {
3 | imgUrl: {
4 | type: String,
5 | value:
6 | 'https://cdn-we-retail.ym.tencent.com/miniapp/template/empty-cart.png',
7 | },
8 | tip: {
9 | type: String,
10 | value: '购物车是空的',
11 | },
12 | btnText: {
13 | type: String,
14 | value: '去首页',
15 | },
16 | },
17 | data: {},
18 | methods: {
19 | handleClick() {
20 | this.triggerEvent('handleClick');
21 | },
22 | },
23 | });
24 |
--------------------------------------------------------------------------------
/pages/cart/components/cart-empty/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "t-image": "/components/webp-image/index"
5 | }
6 | }
--------------------------------------------------------------------------------
/pages/cart/components/cart-empty/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 | {{tip}}
4 | {{btnText}}
5 |
6 |
7 |
--------------------------------------------------------------------------------
/pages/cart/components/cart-group/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "t-toast": "tdesign-miniprogram/toast/toast",
5 | "t-icon": "tdesign-miniprogram/icon/icon",
6 | "t-stepper": "tdesign-miniprogram/stepper/stepper",
7 | "swipeout": "/components/swipeout/index",
8 | "goods-card": "../../components/goods-card/index",
9 | "specs-popup": "../../components/specs-popup/index"
10 | }
11 | }
--------------------------------------------------------------------------------
/pages/cart/components/cart-group/index.wxs:
--------------------------------------------------------------------------------
1 | var hasPromotion = function (code) {
2 | return code && code !== 'EMPTY_PROMOTION';
3 | };
4 |
5 | module.exports.hasPromotion = hasPromotion;
6 |
--------------------------------------------------------------------------------
/pages/cart/components/goods-card/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "price": "/components/price/index",
5 | "t-tag": "tdesign-miniprogram/tag/tag",
6 | "t-image": "/components/webp-image/index",
7 | "t-icon": "tdesign-miniprogram/icon/icon"
8 | }
9 | }
--------------------------------------------------------------------------------
/pages/cart/components/specs-popup/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "t-popup": "tdesign-miniprogram/popup/popup",
5 | "goods-card": "../../components/goods-card/index"
6 | }
7 | }
--------------------------------------------------------------------------------
/pages/cart/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "购物车",
3 | "usingComponents": {
4 | "cart-group": "./components/cart-group/index",
5 | "cart-empty": "./components/cart-empty/index",
6 | "cart-bar": "./components/cart-bar/index",
7 | "loading-dialog": "../../components/loading-dialog/index",
8 | "t-toast": "tdesign-miniprogram/toast/toast",
9 | "t-dialog": "tdesign-miniprogram/dialog/dialog"
10 | }
11 | }
--------------------------------------------------------------------------------
/pages/cart/index.wxss:
--------------------------------------------------------------------------------
1 | :host {
2 | padding-bottom: 100rpx;
3 | }
4 |
5 | .gap {
6 | height: 100rpx;
7 | width: 100%;
8 | }
9 |
10 | .t-button {
11 | --td-button-default-color: #000;
12 | --td-button-primary-text-color: #fa4126;
13 | }
14 |
--------------------------------------------------------------------------------
/pages/coupon/components/coupon-card/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "ui-coupon-card": "../ui-coupon-card/index",
5 | "t-button": "tdesign-miniprogram/button/button"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/pages/coupon/components/coupon-card/index.wxss:
--------------------------------------------------------------------------------
1 | .coupon-btn-default {
2 | display: none;
3 | }
4 |
5 | .coupon-btn-primary {
6 | --td-button-extra-small-padding-horizontal: 26rpx;
7 | --td-button-primary-outline-color: #fa4126;
8 | --td-button-primary-outline-border-color: #fa4126;
9 | }
10 |
--------------------------------------------------------------------------------
/pages/coupon/components/floating-button/index.js:
--------------------------------------------------------------------------------
1 | Component({
2 | data: { icon: 'cart' },
3 |
4 | properties: {
5 | count: {
6 | type: Number,
7 | },
8 | },
9 |
10 | methods: {
11 | goToCart() {
12 | wx.switchTab({
13 | url: '/pages/cart/index',
14 | });
15 | },
16 | },
17 | });
18 |
--------------------------------------------------------------------------------
/pages/coupon/components/floating-button/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "t-icon": "tdesign-miniprogram/icon/icon"
5 | }
6 | }
--------------------------------------------------------------------------------
/pages/coupon/components/floating-button/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
9 |
10 |
11 | {{count}}
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/pages/coupon/components/ui-coupon-card/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "t-icon": "tdesign-miniprogram/icon/icon",
5 | "t-image": "/components/webp-image/index"
6 | }
7 | }
--------------------------------------------------------------------------------
/pages/goods/category/components/goods-category/components/c-sidebar/c-sidebar-item/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {}
4 | }
--------------------------------------------------------------------------------
/pages/goods/category/components/goods-category/components/c-sidebar/c-sidebar-item/index.wxml:
--------------------------------------------------------------------------------
1 |
11 |
--------------------------------------------------------------------------------
/pages/goods/category/components/goods-category/components/c-sidebar/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true
3 | }
4 |
--------------------------------------------------------------------------------
/pages/goods/category/components/goods-category/components/c-sidebar/index.wxml:
--------------------------------------------------------------------------------
1 |
4 |
--------------------------------------------------------------------------------
/pages/goods/category/components/goods-category/components/c-sidebar/index.wxss:
--------------------------------------------------------------------------------
1 | .c-sidebar {
2 | width: 176rpx;
3 | height: 100vh;
4 | }
5 | .c-sidebar::-webkit-scrollbar {
6 | width: 0;
7 | height: 0;
8 | color: transparent;
9 | }
10 |
--------------------------------------------------------------------------------
/pages/goods/category/components/goods-category/components/c-tabbar/c-tabbar-more/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {}
4 | }
5 |
--------------------------------------------------------------------------------
/pages/goods/category/components/goods-category/components/c-tabbar/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "c-tabbar-more": "./c-tabbar-more/index"
5 | }
6 | }
--------------------------------------------------------------------------------
/pages/goods/category/components/goods-category/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "c-tabbar": "./components/c-tabbar/index",
5 | "c-sidebar": "./components/c-sidebar/index",
6 | "c-sidebar-item": "./components/c-sidebar/c-sidebar-item/index",
7 | "t-image": "/components/webp-image/index"
8 | }
9 | }
--------------------------------------------------------------------------------
/pages/goods/category/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "分类",
3 | "usingComponents": {
4 | "t-search": "tdesign-miniprogram/search/search",
5 | "t-icon": "tdesign-miniprogram/icon/icon",
6 | "t-toast": "tdesign-miniprogram/toast/toast",
7 | "goods-category": "./components/goods-category/index"
8 | }
9 | }
--------------------------------------------------------------------------------
/pages/goods/category/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/pages/goods/comments/components/comments-card/components/images-videos/assets/play.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gray878/wx_clinic/4374090e12bbc2f4cfcb45900b66ae0cebba9d9c/pages/goods/comments/components/comments-card/components/images-videos/assets/play.png
--------------------------------------------------------------------------------
/pages/goods/comments/components/comments-card/components/images-videos/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "my-video": "../my-video/index",
5 | "t-image": "/components/webp-image/index"
6 | }
7 | }
--------------------------------------------------------------------------------
/pages/goods/comments/components/comments-card/components/my-video/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {}
4 | }
--------------------------------------------------------------------------------
/pages/goods/comments/components/comments-card/components/my-video/index.wxss:
--------------------------------------------------------------------------------
1 | .video .video_cover {
2 | width: 100%;
3 | height: 100%;
4 | position: relative;
5 | }
6 |
7 | .video .video_play_icon {
8 | position: absolute;
9 | left: 50%;
10 | top: 50%;
11 | transform: translate(-50%, -50%);
12 | z-index: 5;
13 | }
14 |
15 | .video .video_txt {
16 | margin: 10rpx auto;
17 | }
18 |
19 | .video {
20 | display: flex;
21 | }
22 |
--------------------------------------------------------------------------------
/pages/goods/comments/components/comments-card/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "t-rate": "tdesign-miniprogram/rate/rate",
5 | "images-videos": "./components/images-videos",
6 | "t-image": "/components/webp-image/index"
7 | }
8 | }
--------------------------------------------------------------------------------
/pages/goods/comments/create-list/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "选择评价商品",
3 | "usingComponents": {
4 | "order-card": "../../../order/components/order-card",
5 | "specs-goods-card": "../../../order/components/specs-goods-card/index",
6 | "t-button": "tdesign-miniprogram/button/button",
7 | "t-toast": "tdesign-miniprogram/toast/toast"
8 | }
9 | }
--------------------------------------------------------------------------------
/pages/goods/comments/create/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "评价商品",
3 | "usingComponents": {
4 | "t-image": "/components/webp-image/index",
5 | "t-rate": "tdesign-miniprogram/rate/rate",
6 | "t-textarea": "tdesign-miniprogram/textarea/textarea",
7 | "t-checkbox": "tdesign-miniprogram/checkbox/checkbox",
8 | "t-button": "tdesign-miniprogram/button/button",
9 | "t-upload": "tdesign-miniprogram/upload/upload",
10 | "t-icon": "tdesign-miniprogram/icon/icon",
11 | "t-toast": "tdesign-miniprogram/toast/toast"
12 | }
13 | }
--------------------------------------------------------------------------------
/pages/goods/comments/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "全部评价",
3 | "usingComponents": {
4 | "t-tag": "tdesign-miniprogram/tag/tag",
5 | "comments-card": "./components/comments-card/index",
6 | "t-load-more": "/components/load-more/index"
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/pages/goods/comments/index.wxml:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/pages/goods/details/components/buy-bar/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "t-icon": "tdesign-miniprogram/icon/icon"
5 | }
6 | }
--------------------------------------------------------------------------------
/pages/goods/details/components/goods-specs-popup/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "t-popup": "tdesign-miniprogram/popup/popup",
5 | "t-icon": "tdesign-miniprogram/icon/icon",
6 | "t-image": "/components/webp-image/index",
7 | "t-stepper": "tdesign-miniprogram/stepper/stepper",
8 | "t-toast": "tdesign-miniprogram/toast/toast",
9 | "price": "/components/price/index"
10 | }
11 | }
--------------------------------------------------------------------------------
/pages/goods/details/components/promotion-popup/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "t-popup": "tdesign-miniprogram/popup/popup",
5 | "t-icon": "tdesign-miniprogram/icon/icon"
6 | }
7 | }
--------------------------------------------------------------------------------
/pages/goods/list/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "商品列表",
3 | "usingComponents": {
4 | "t-input": "tdesign-miniprogram/input/input",
5 | "t-empty": "tdesign-miniprogram/empty/empty",
6 | "t-toast": "tdesign-miniprogram/toast/toast",
7 | "goods-list": "/components/goods-list/index",
8 | "filter": "/components/filter/index",
9 | "filter-popup": "/components/filter-popup/index",
10 | "load-more": "/components/load-more/index"
11 | }
12 | }
--------------------------------------------------------------------------------
/pages/goods/list/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/pages/goods/result/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "搜索",
3 | "usingComponents": {
4 | "t-search": "tdesign-miniprogram/search/search",
5 | "t-input": "tdesign-miniprogram/input/input",
6 | "t-empty": "tdesign-miniprogram/empty/empty",
7 | "t-toast": "tdesign-miniprogram/toast/toast",
8 | "goods-list": "/components/goods-list/index",
9 | "filter": "/components/filter/index",
10 | "filter-popup": "/components/filter-popup/index",
11 | "load-more": "/components/load-more/index",
12 | "t-icon": "tdesign-miniprogram/icon/icon"
13 | },
14 | "onReachBottomDistance": 50
15 | }
--------------------------------------------------------------------------------
/pages/goods/search/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "搜索",
3 | "usingComponents": {
4 | "t-search": "tdesign-miniprogram/search/search",
5 | "t-icon": "tdesign-miniprogram/icon/icon",
6 | "t-dialog": "tdesign-miniprogram/dialog/dialog"
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/pages/goods/search/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/pages/hospital/detail/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "医院详情",
3 | "usingComponents": {
4 | "t-loading": "tdesign-miniprogram/loading/loading",
5 | "t-icon": "tdesign-miniprogram/icon/icon",
6 | "t-toast": "tdesign-miniprogram/toast/toast"
7 | }
8 | }
--------------------------------------------------------------------------------
/pages/hospital/list/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "三甲医院",
3 | "usingComponents": {
4 | "t-loading": "tdesign-miniprogram/loading/loading",
5 | "t-icon": "tdesign-miniprogram/icon/icon",
6 | "t-toast": "tdesign-miniprogram/toast/toast"
7 | }
8 | }
--------------------------------------------------------------------------------
/pages/order/components/after-service-button-bar/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "t-button": "tdesign-miniprogram/button/button"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/pages/order/components/customer-service/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "t-popup": "tdesign-miniprogram/popup/popup"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/pages/order/components/goods-card/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "price": "/components/price/index",
5 | "t-image": "/components/webp-image/index",
6 | "t-icon": "tdesign-miniprogram/icon/icon"
7 | }
8 | }
--------------------------------------------------------------------------------
/pages/order/components/noGoods/noGood.wxs:
--------------------------------------------------------------------------------
1 | var isOnlyBack = function (data) {
2 | return data.limitGoodsList || (data.inValidGoodsList && !data.storeGoodsList);
3 | };
4 |
5 | var isShowChangeAddress = function (data) {
6 | return data.abnormalDeliveryGoodsList;
7 | };
8 |
9 | var isShowKeepPay = function (data) {
10 | return data.outOfStockGoodsList || (data.storeGoodsList && data.inValidGoodsList);
11 | };
12 |
13 | module.exports = {
14 | isOnlyBack: isOnlyBack,
15 | isShowChangeAddress: isShowChangeAddress,
16 | isShowKeepPay: isShowKeepPay,
17 | };
18 |
--------------------------------------------------------------------------------
/pages/order/components/noGoods/noGoods.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "wr-order-card": "/pages/order/components/order-card/index",
5 | "wr-goods-card": "/components/goods-card/index",
6 | "wr-order-goods-card": "/pages/order/components/order-goods-card/index"
7 | }
8 | }
--------------------------------------------------------------------------------
/pages/order/components/order-button-bar/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "t-button": "tdesign-miniprogram/button/button",
5 | "t-toast": "tdesign-miniprogram/toast/toast",
6 | "t-dialog": "tdesign-miniprogram/dialog/dialog"
7 | }
8 | }
--------------------------------------------------------------------------------
/pages/order/components/order-card/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "t-image": "/components/webp-image/index",
5 | "t-icon": "tdesign-miniprogram/icon/icon"
6 | }
7 | }
--------------------------------------------------------------------------------
/pages/order/components/order-goods-card/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "t-stepper": "tdesign-miniprogram/stepper/stepper",
5 | "goods-card": "../specs-goods-card/index"
6 | }
7 | }
--------------------------------------------------------------------------------
/pages/order/components/reason-sheet/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "t-icon": "tdesign-miniprogram/icon/icon",
5 | "t-popup": "tdesign-miniprogram/popup/popup",
6 | "t-cell": "tdesign-miniprogram/cell/cell",
7 | "t-toast": "tdesign-miniprogram/toast/toast",
8 | "t-button": "tdesign-miniprogram/button/button"
9 | }
10 | }
--------------------------------------------------------------------------------
/pages/order/components/selectCoupons/mock.js:
--------------------------------------------------------------------------------
1 | export const couponsData = {
2 | couponResultList: [
3 | {
4 | couponVO: {
5 | condition: '满200元可用',
6 | couponId: 11,
7 | endTime: 1584530282686,
8 | name: '折扣券',
9 | profit: '5.5折',
10 | promotionCode: 90,
11 | promotionSubCode: 1,
12 | scopeText: '部分商品可用',
13 | startTime: 1584530282686,
14 | storeId: 90,
15 | value: 550,
16 | type: 2,
17 | },
18 | status: 0, // 0:未勾选。1:勾选。-1:置灰
19 | },
20 | ],
21 | reduce: 1000,
22 | };
23 |
--------------------------------------------------------------------------------
/pages/order/components/selectCoupons/selectCoupon.wxs:
--------------------------------------------------------------------------------
1 | function formatDays(value) {
2 | if (value < 10) {
3 | return '0' + value;
4 | }
5 | return value;
6 | }
7 | var dateFormat = function (d) {
8 | var date = getDate(+d);
9 | return (
10 | date.getFullYear() +
11 | '-' +
12 | formatDays(date.getMonth() + 1) +
13 | formatDays(date.getDate())
14 | );
15 | };
16 | module.exports.dateFormat = dateFormat;
17 |
--------------------------------------------------------------------------------
/pages/order/components/selectCoupons/selectCoupons.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "t-popup": "tdesign-miniprogram/popup/popup",
5 | "t-icon": "tdesign-miniprogram/icon/icon",
6 | "t-image": "/components/webp-image/index",
7 | "wr-price": "/components/price/index",
8 | "coupon-card": "/pages/coupon/components/ui-coupon-card/index"
9 | }
10 | }
--------------------------------------------------------------------------------
/pages/order/components/specs-goods-card/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "goods-card": "../goods-card/index"
5 | }
6 | }
--------------------------------------------------------------------------------
/pages/order/components/specs-goods-card/index.wxss:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gray878/wx_clinic/4374090e12bbc2f4cfcb45900b66ae0cebba9d9c/pages/order/components/specs-goods-card/index.wxss
--------------------------------------------------------------------------------
/pages/order/delivery-detail/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "物流信息",
3 | "usingComponents": {
4 | "t-cell": "tdesign-miniprogram/cell/cell",
5 | "t-cell-group": "tdesign-miniprogram/cell-group/cell-group",
6 | "t-image": "/components/webp-image/index",
7 | "t-icon": "tdesign-miniprogram/icon/icon",
8 | "t-steps": "tdesign-miniprogram/steps/steps",
9 | "t-step": "tdesign-miniprogram/step-item/step-item"
10 | }
11 | }
--------------------------------------------------------------------------------
/pages/order/fill-tracking-no/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "填写运单号",
3 | "usingComponents": {
4 | "t-icon": "tdesign-miniprogram/icon/icon",
5 | "t-cell": "tdesign-miniprogram/cell/cell",
6 | "t-cell-group": "tdesign-miniprogram/cell-group/cell-group",
7 | "t-textarea": "tdesign-miniprogram/textarea/textarea",
8 | "t-input": "tdesign-miniprogram/input/input",
9 | "t-toast": "tdesign-miniprogram/toast/toast",
10 | "t-dialog": "tdesign-miniprogram/dialog/dialog",
11 | "t-button": "tdesign-miniprogram/button/button",
12 | "ui-reason-sheet": "../components/reason-sheet/index"
13 | }
14 | }
--------------------------------------------------------------------------------
/pages/order/invoice/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "发票详情",
3 | "usingComponents": {
4 | "t-cell": "tdesign-miniprogram/cell/cell",
5 | "t-button": "tdesign-miniprogram/button/button",
6 | "t-cell-group": "tdesign-miniprogram/cell-group/cell-group"
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/pages/order/invoice/index.wxss:
--------------------------------------------------------------------------------
1 | :host {
2 | background-color: #f5f5f5;
3 | }
4 |
5 | .invoice-detail .invoice-detail-box {
6 | background-color: #fff;
7 | padding: 24rpx 32rpx;
8 | margin-top: 24rpx;
9 | }
10 |
11 | .invoice-detail-title {
12 | font-size: 14px;
13 | font-weight: 600;
14 | }
15 |
16 | .invoice-detail-box-row {
17 | display: flex;
18 | margin-top: 44rpx;
19 | }
20 |
21 | .invoice-detail-box-title {
22 | font-size: 13px;
23 | color: #666666;
24 | width: 156rpx;
25 | margin-right: 32rpx;
26 | }
27 |
28 | .invoice-detail-box-value {
29 | font-size: 13px;
30 | color: #333333;
31 | }
32 |
--------------------------------------------------------------------------------
/pages/order/order-confirm/components/address-card/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "t-cell": "tdesign-miniprogram/cell/cell",
5 | "t-icon": "tdesign-miniprogram/icon/icon"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/pages/order/order-confirm/getNotes.wxs:
--------------------------------------------------------------------------------
1 | var getNotes = function (storeInfoList, storeIndex) {
2 | if (!storeInfoList) {
3 | return '';
4 | }
5 | var storeInfo = storeInfoList[storeIndex];
6 | if (!storeInfo) {
7 | return '';
8 | }
9 | return storeInfoList[storeIndex].remark;
10 | };
11 | module.exports = getNotes;
12 |
--------------------------------------------------------------------------------
/pages/order/order-confirm/handleInvoice.wxs:
--------------------------------------------------------------------------------
1 | var handleInvoice = function (invoiceData) {
2 | if (!invoiceData || invoiceData.invoiceType == 0) {
3 | return '暂不开发票';
4 | }
5 | var title = invoiceData.titleType == 2 ? '公司' : '个人';
6 | var content = invoiceData.contentType == 2 ? '商品类别' : '商品明细';
7 | return invoiceData.email
8 | ? '电子普通发票 (' + content + ' - ' + title + ')'
9 | : '暂不开发票';
10 | };
11 | module.exports = handleInvoice;
12 |
--------------------------------------------------------------------------------
/pages/order/order-confirm/order.wxs:
--------------------------------------------------------------------------------
1 | var toHide = function (array) {
2 | if (!array) return;
3 | var mphone = array.substring(0, 3) + '****' + array.substring(7);
4 | return mphone;
5 | };
6 | module.exports = {
7 | toHide: toHide,
8 | };
9 |
--------------------------------------------------------------------------------
/pages/order/pay-result/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "支付结果",
3 | "navigationStyle": "custom",
4 | "usingComponents": {
5 | "t-navbar": "tdesign-miniprogram/navbar/navbar",
6 | "t-icon": "tdesign-miniprogram/icon/icon",
7 | "price": "/components/price/index"
8 | }
9 | }
--------------------------------------------------------------------------------
/pages/order/receipt/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "发票",
3 | "usingComponents": {
4 | "t-cell": "tdesign-miniprogram/cell/cell",
5 | "t-dialog": "tdesign-miniprogram/dialog/dialog",
6 | "t-toast": "tdesign-miniprogram/toast/toast",
7 | "t-icon": "tdesign-miniprogram/icon/icon",
8 | "t-input": "tdesign-miniprogram/input/input",
9 | "t-button": "tdesign-miniprogram/button/button"
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/pages/usercenter/address/list/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "收货地址",
3 | "usingComponents": {
4 | "t-icon": "tdesign-miniprogram/icon/icon",
5 | "t-image": "/components/webp-image/index",
6 | "t-toast": "tdesign-miniprogram/toast/toast",
7 | "t-address-item": "../../components/ui-address-item/index",
8 | "t-empty": "tdesign-miniprogram/empty/empty",
9 | "loading-dialog": "../../../../components/loading-dialog/index"
10 | }
11 | }
--------------------------------------------------------------------------------
/pages/usercenter/components/order-group/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "t-cell": "tdesign-miniprogram/cell/cell",
5 | "t-cell-group": "tdesign-miniprogram/cell-group/cell-group",
6 | "t-badge": "tdesign-miniprogram/badge/badge",
7 | "t-icon": "tdesign-miniprogram/icon/icon"
8 | }
9 | }
--------------------------------------------------------------------------------
/pages/usercenter/components/ui-address-item/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "t-icon": "tdesign-miniprogram/icon/icon",
5 | "t-tag": "tdesign-miniprogram/tag/tag",
6 | "t-swipe-cell": "tdesign-miniprogram/swipe-cell/swipe-cell"
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/pages/usercenter/components/ui-select-picker/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "t-popup": "tdesign-miniprogram/popup/popup"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/pages/usercenter/components/user-center-card/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "t-icon": "tdesign-miniprogram/icon/icon",
5 | "t-avatar": "tdesign-miniprogram/avatar/avatar"
6 | }
7 | }
--------------------------------------------------------------------------------
/pages/usercenter/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "我的",
3 | "navigationStyle": "default",
4 | "usingComponents": {
5 | "t-user-center-card": "./components/user-center-card/index",
6 | "t-cell": "tdesign-miniprogram/cell/cell",
7 | "t-cell-group": "tdesign-miniprogram/cell-group/cell-group",
8 | "t-icon": "tdesign-miniprogram/icon/icon",
9 | "t-toast": "tdesign-miniprogram/toast/toast"
10 | },
11 | "enablePullDownRefresh": true
12 | }
--------------------------------------------------------------------------------
/pages/webview/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "网页浏览",
3 | "usingComponents": {
4 | "t-loading": "tdesign-miniprogram/loading/loading"
5 | }
6 | }
--------------------------------------------------------------------------------
/pages/webview/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/pages/webview/index.wxss:
--------------------------------------------------------------------------------
1 | .webview-container {
2 | width: 100%;
3 | height: 100vh;
4 | position: relative;
5 | }
6 |
7 | .loading {
8 | display: flex;
9 | justify-content: center;
10 | align-items: center;
11 | position: absolute;
12 | top: 0;
13 | left: 0;
14 | width: 100%;
15 | height: 100%;
16 | background-color: #f5f5f5;
17 | z-index: 10;
18 | }
--------------------------------------------------------------------------------
/project.private.config.json:
--------------------------------------------------------------------------------
1 | {
2 | "description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
3 | "projectname": "%E6%B6%A6%E6%B0%91%E9%99%AA%E8%AF%8A",
4 | "libVersion": "3.7.10",
5 | "setting": {
6 | "compileHotReLoad": true
7 | }
8 | }
--------------------------------------------------------------------------------
/services/_utils/delay.js:
--------------------------------------------------------------------------------
1 | export function delay(ms = 200) {
2 | return new Promise((resolve) => setTimeout(resolve, ms));
3 | }
4 |
--------------------------------------------------------------------------------
/services/_utils/timeout.js:
--------------------------------------------------------------------------------
1 | export function timeout(ms = 1000) {
2 | return new Promise((_, reject) => setTimeout(reject, ms));
3 | }
4 |
--------------------------------------------------------------------------------
/services/activity/fetchActivity.js:
--------------------------------------------------------------------------------
1 | import { config } from '../../config/index';
2 |
3 | /** 获取活动列表 */
4 | function mockFetchActivity(ID = 0) {
5 | const { delay } = require('../_utils/delay');
6 | const { getActivity } = require('../../model/activity');
7 |
8 | return delay().then(() => getActivity(ID));
9 | }
10 |
11 | /** 获取活动列表 */
12 | export function fetchActivity(ID = 0) {
13 | if (config.useMock) {
14 | return mockFetchActivity(ID);
15 | }
16 |
17 | return new Promise((resolve) => {
18 | resolve('real api');
19 | });
20 | }
21 |
--------------------------------------------------------------------------------
/services/comments/fetchComments.js:
--------------------------------------------------------------------------------
1 | import { config } from '../../config/index';
2 |
3 | /** 获取商品评论 */
4 | function mockFetchComments(parmas) {
5 | const { delay } = require('../_utils/delay');
6 | const { getGoodsAllComments } = require('../../model/comments');
7 | return delay().then(() => getGoodsAllComments(parmas));
8 | }
9 |
10 | /** 获取商品评论 */
11 | export function fetchComments(parmas) {
12 | if (config.useMock) {
13 | return mockFetchComments(parmas);
14 | }
15 | return new Promise((resolve) => {
16 | resolve('real api');
17 | });
18 | }
19 |
--------------------------------------------------------------------------------
/services/comments/fetchCommentsCount.js:
--------------------------------------------------------------------------------
1 | import { config } from '../../config/index';
2 |
3 | /** 获取商品评论数 */
4 | function mockFetchCommentsCount(ID = 0) {
5 | const { delay } = require('../_utils/delay');
6 | const { getGoodsCommentsCount } = require('../../model/comments');
7 | return delay().then(() => getGoodsCommentsCount(ID));
8 | }
9 |
10 | /** 获取商品评论数 */
11 | export function fetchCommentsCount(ID = 0) {
12 | if (config.useMock) {
13 | return mockFetchCommentsCount(ID);
14 | }
15 | return new Promise((resolve) => {
16 | resolve('real api');
17 | });
18 | }
19 |
--------------------------------------------------------------------------------
/services/good/comments/fetchCommentDetail.js:
--------------------------------------------------------------------------------
1 | import { config } from '../../../config/index';
2 | import { queryCommentDetail } from '../../../model/comments/queryDetail';
3 | /** 获取商品评价数据 */
4 | function mockQueryCommentDetail(params) {
5 | const { delay } = require('../../_utils/delay');
6 | const data = queryCommentDetail(params);
7 | return delay().then(() => {
8 | return data;
9 | });
10 | }
11 |
12 | /** 获取评价详情 */
13 | export function getCommentDetail(params) {
14 | if (config.useMock) {
15 | return mockQueryCommentDetail(params);
16 | }
17 | return new Promise((resolve) => {
18 | resolve('real api');
19 | });
20 | }
21 |
--------------------------------------------------------------------------------
/services/good/fetchCategoryList.js:
--------------------------------------------------------------------------------
1 | import { config } from '../../config/index';
2 |
3 | /** 获取商品列表 */
4 | function mockFetchGoodCategory() {
5 | const { delay } = require('../_utils/delay');
6 | const { getCategoryList } = require('../../model/category');
7 | return delay().then(() => getCategoryList());
8 | }
9 |
10 | /** 获取商品列表 */
11 | export function getCategoryList() {
12 | if (config.useMock) {
13 | return mockFetchGoodCategory();
14 | }
15 | return new Promise((resolve) => {
16 | resolve('real api');
17 | });
18 | }
19 |
--------------------------------------------------------------------------------
/services/good/fetchGood.js:
--------------------------------------------------------------------------------
1 | import { config } from '../../config/index';
2 |
3 | /** 获取商品列表 */
4 | function mockFetchGood(ID = 0) {
5 |
6 | const { delay } = require('../_utils/delay');
7 | const { genGood } = require('../../model/good');
8 |
9 | return delay().then(() => {
10 | const res = genGood(ID);
11 | console.log("mock fetch goood return res", res);
12 | return res;
13 | });
14 | }
15 |
16 | /** 获取商品列表 */
17 | export function fetchGood(ID = 0) {
18 | if (config.useMock) {
19 | return mockFetchGood(ID);
20 | }
21 | return new Promise((resolve) => {
22 | resolve('real api');
23 | });
24 | }
25 |
--------------------------------------------------------------------------------
/services/order/orderSubmitComment.js:
--------------------------------------------------------------------------------
1 | import { config } from '../../config/index';
2 |
3 | /** 获取评价商品 */
4 | function mockGetGoods(parameter) {
5 | const { delay } = require('../_utils/delay');
6 | const { getGoods } = require('../../model/submitComment');
7 | const data = getGoods(parameter);
8 |
9 | return delay().then(() => {
10 | return data;
11 | });
12 | }
13 |
14 | /** 获取评价商品 */
15 | export function getGoods(parameter) {
16 | if (config.useMock) {
17 | return mockGetGoods(parameter);
18 | }
19 | return new Promise((resolve) => {
20 | resolve('real api');
21 | });
22 | }
23 |
--------------------------------------------------------------------------------
/services/promotion/detail.js:
--------------------------------------------------------------------------------
1 | import { config } from '../../config/index';
2 |
3 | /** 获取商品列表 */
4 | function mockFetchPromotion(ID = 0) {
5 | const { delay } = require('../_utils/delay');
6 | const { getPromotion } = require('../../model/promotion');
7 | return delay().then(() => getPromotion(ID));
8 | }
9 |
10 | /** 获取商品列表 */
11 | export function fetchPromotion(ID = 0) {
12 | if (config.useMock) {
13 | return mockFetchPromotion(ID);
14 | }
15 | return new Promise((resolve) => {
16 | resolve('real api');
17 | });
18 | }
19 |
--------------------------------------------------------------------------------
/sitemap.json:
--------------------------------------------------------------------------------
1 | {
2 | "desc": "关于本文件的更多信息,请参考文档 https://developers.weixin.qq.com/miniprogram/dev/framework/sitemap.html",
3 | "rules": [{
4 | "action": "allow",
5 | "page": "*"
6 | }]
7 | }
--------------------------------------------------------------------------------
/utils/addressListFresh.js:
--------------------------------------------------------------------------------
1 | export let shouldFresh = false;
2 | export const addressListShouldFresh = () => (shouldFresh = true);
3 | export const addressListFinishFresh = () => (shouldFresh = false);
4 |
--------------------------------------------------------------------------------
/utils/cartFresh.js:
--------------------------------------------------------------------------------
1 | export let shouldFresh = false;
2 | export const cartShouldFresh = () => (shouldFresh = true);
3 | export const cartFinishFresh = () => (shouldFresh = false);
4 |
--------------------------------------------------------------------------------
/utils/listLoading.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Should be used with `components/load-more`.
3 | */
4 | export const LIST_LOADING_STATUS = {
5 | READY: 0,
6 | LOADING: 1,
7 | NO_MORE: 2,
8 | FAILED: 3,
9 | };
10 |
--------------------------------------------------------------------------------
/utils/orderListFresh.js:
--------------------------------------------------------------------------------
1 | export let shouldFresh = false;
2 | export const orderListShouldFresh = () => (shouldFresh = true);
3 | export const orderListFinishFresh = () => (shouldFresh = false);
4 |
--------------------------------------------------------------------------------
/utils/orderOperation.js:
--------------------------------------------------------------------------------
1 | export const OPERATION_TYPE = {
2 | CANCEL: 'cancel',
3 | CONFIRM: 'confirm',
4 | PAY: 'pay',
5 | };
6 |
--------------------------------------------------------------------------------
/utils/spuStatus.js:
--------------------------------------------------------------------------------
1 | export const SPU_SELLING_STATUS = 'ENABLED';
2 |
--------------------------------------------------------------------------------