├── miniprogram ├── app.wxss ├── components │ ├── dist │ │ ├── common │ │ │ ├── style │ │ │ │ ├── theme.wxss │ │ │ │ ├── var.wxss │ │ │ │ ├── mixins │ │ │ │ │ ├── clearfix.wxss │ │ │ │ │ ├── ellipsis.wxss │ │ │ │ │ └── hairline.wxss │ │ │ │ ├── clearfix.wxss │ │ │ │ ├── ellipsis.wxss │ │ │ │ └── hairline.wxss │ │ │ ├── version.d.ts │ │ │ ├── color.js │ │ │ ├── component.d.ts │ │ │ ├── color.d.ts │ │ │ ├── validator.d.ts │ │ │ ├── version.js │ │ │ ├── utils.d.ts │ │ │ ├── validator.js │ │ │ └── index.wxss │ │ ├── area │ │ │ ├── index.d.ts │ │ │ ├── index.wxss │ │ │ ├── index.json │ │ │ └── index.wxml │ │ ├── card │ │ │ ├── index.d.ts │ │ │ ├── index.json │ │ │ └── index.js │ │ ├── cell │ │ │ ├── index.d.ts │ │ │ ├── index.json │ │ │ ├── index.js │ │ │ └── index.wxml │ │ ├── col │ │ │ ├── index.d.ts │ │ │ ├── index.json │ │ │ ├── index.wxml │ │ │ └── index.js │ │ ├── grid │ │ │ ├── index.d.ts │ │ │ ├── index.json │ │ │ ├── index.wxss │ │ │ ├── index.wxml │ │ │ └── index.js │ │ ├── icon │ │ │ ├── index.d.ts │ │ │ ├── index.json │ │ │ ├── index.js │ │ │ └── index.wxml │ │ ├── info │ │ │ ├── index.d.ts │ │ │ ├── index.json │ │ │ ├── index.js │ │ │ ├── index.wxml │ │ │ └── index.wxss │ │ ├── rate │ │ │ ├── index.d.ts │ │ │ ├── index.json │ │ │ ├── index.wxss │ │ │ └── index.wxml │ │ ├── row │ │ │ ├── index.d.ts │ │ │ ├── index.json │ │ │ ├── index.wxss │ │ │ ├── index.wxml │ │ │ └── index.js │ │ ├── tab │ │ │ ├── index.d.ts │ │ │ ├── index.json │ │ │ ├── index.wxml │ │ │ ├── index.wxss │ │ │ └── index.js │ │ ├── tabs │ │ │ ├── index.d.ts │ │ │ └── index.json │ │ ├── tag │ │ │ ├── index.d.ts │ │ │ ├── index.json │ │ │ ├── index.js │ │ │ └── index.wxml │ │ ├── button │ │ │ ├── index.d.ts │ │ │ └── index.json │ │ ├── calendar │ │ │ ├── index.d.ts │ │ │ ├── components │ │ │ │ ├── header │ │ │ │ │ ├── index.d.ts │ │ │ │ │ ├── index.json │ │ │ │ │ ├── index.js │ │ │ │ │ ├── index.wxml │ │ │ │ │ └── index.wxss │ │ │ │ └── month │ │ │ │ │ ├── index.d.ts │ │ │ │ │ └── index.json │ │ │ ├── index.json │ │ │ ├── utils.wxs │ │ │ ├── utils.d.ts │ │ │ ├── index.wxs │ │ │ ├── index.wxss │ │ │ └── index.wxml │ │ ├── checkbox │ │ │ ├── index.d.ts │ │ │ ├── index.json │ │ │ ├── index.wxs │ │ │ └── index.wxml │ │ ├── circle │ │ │ ├── index.d.ts │ │ │ ├── index.json │ │ │ ├── canvas.d.ts │ │ │ ├── index.wxss │ │ │ ├── index.wxml │ │ │ └── canvas.js │ │ ├── collapse │ │ │ ├── index.d.ts │ │ │ ├── index.wxss │ │ │ ├── index.json │ │ │ ├── index.wxml │ │ │ └── index.js │ │ ├── definitions │ │ │ ├── index.js │ │ │ ├── weapp.js │ │ │ └── index.d.ts │ │ ├── dialog │ │ │ ├── index.d.ts │ │ │ └── index.json │ │ ├── divider │ │ │ ├── index.d.ts │ │ │ ├── index.json │ │ │ ├── index.wxml │ │ │ ├── index.js │ │ │ └── index.wxss │ │ ├── empty │ │ │ ├── index.d.ts │ │ │ ├── index.json │ │ │ ├── index.js │ │ │ ├── index.wxml │ │ │ └── index.wxss │ │ ├── field │ │ │ ├── index.d.ts │ │ │ ├── index.json │ │ │ ├── index.wxs │ │ │ ├── props.js │ │ │ └── props.d.ts │ │ ├── grid-item │ │ │ ├── index.d.ts │ │ │ ├── index.json │ │ │ ├── index.wxml │ │ │ └── index.wxss │ │ ├── image │ │ │ ├── index.d.ts │ │ │ ├── index.json │ │ │ ├── index.wxml │ │ │ └── index.wxss │ │ ├── index-bar │ │ │ ├── index.d.ts │ │ │ ├── index.json │ │ │ ├── index.wxss │ │ │ └── index.wxml │ │ ├── loading │ │ │ ├── index.d.ts │ │ │ ├── index.json │ │ │ ├── index.js │ │ │ └── index.wxml │ │ ├── nav-bar │ │ │ ├── index.d.ts │ │ │ ├── index.json │ │ │ ├── index.wxs │ │ │ ├── index.wxss │ │ │ ├── index.js │ │ │ └── index.wxml │ │ ├── notify │ │ │ ├── index.d.ts │ │ │ ├── index.json │ │ │ ├── index.wxml │ │ │ ├── notify.d.ts │ │ │ ├── index.wxss │ │ │ ├── notify.js │ │ │ └── index.js │ │ ├── overlay │ │ │ ├── index.d.ts │ │ │ ├── index.json │ │ │ ├── index.wxss │ │ │ ├── index.wxml │ │ │ └── index.js │ │ ├── panel │ │ │ ├── index.d.ts │ │ │ ├── index.json │ │ │ ├── index.js │ │ │ ├── index.wxss │ │ │ └── index.wxml │ │ ├── picker │ │ │ ├── index.d.ts │ │ │ ├── index.json │ │ │ ├── shared.js │ │ │ ├── shared.d.ts │ │ │ └── toolbar.wxml │ │ ├── popup │ │ │ ├── index.d.ts │ │ │ ├── index.json │ │ │ └── index.wxml │ │ ├── progress │ │ │ ├── index.d.ts │ │ │ ├── index.json │ │ │ ├── index.wxs │ │ │ ├── index.js │ │ │ ├── index.wxml │ │ │ └── index.wxss │ │ ├── radio-group │ │ │ ├── index.wxml │ │ │ ├── index.d.ts │ │ │ ├── index.wxss │ │ │ ├── index.json │ │ │ └── index.js │ │ ├── radio │ │ │ ├── index.d.ts │ │ │ ├── index.json │ │ │ ├── index.js │ │ │ └── index.wxml │ │ ├── search │ │ │ ├── index.d.ts │ │ │ ├── index.json │ │ │ └── index.wxss │ │ ├── sidebar │ │ │ ├── index.d.ts │ │ │ ├── index.json │ │ │ ├── index.wxml │ │ │ ├── index.wxss │ │ │ └── index.js │ │ ├── skeleton │ │ │ ├── index.d.ts │ │ │ ├── index.json │ │ │ ├── index.wxml │ │ │ ├── index.js │ │ │ └── index.wxss │ │ ├── slider │ │ │ ├── index.d.ts │ │ │ ├── index.json │ │ │ ├── index.wxs │ │ │ ├── index.wxml │ │ │ └── index.wxss │ │ ├── stepper │ │ │ ├── index.d.ts │ │ │ ├── index.json │ │ │ └── index.wxml │ │ ├── steps │ │ │ ├── index.d.ts │ │ │ ├── index.json │ │ │ └── index.js │ │ ├── sticky │ │ │ ├── index.d.ts │ │ │ ├── index.json │ │ │ ├── index.wxss │ │ │ ├── index.wxml │ │ │ └── index.wxs │ │ ├── switch │ │ │ ├── index.d.ts │ │ │ ├── index.json │ │ │ ├── index.wxml │ │ │ └── index.js │ │ ├── tabbar │ │ │ ├── index.d.ts │ │ │ ├── index.json │ │ │ ├── index.wxml │ │ │ ├── index.wxss │ │ │ └── index.js │ │ ├── toast │ │ │ ├── index.d.ts │ │ │ ├── index.json │ │ │ ├── index.js │ │ │ ├── index.wxml │ │ │ └── index.wxss │ │ ├── uploader │ │ │ ├── index.d.ts │ │ │ ├── index.json │ │ │ ├── shared.js │ │ │ ├── shared.d.ts │ │ │ └── utils.d.ts │ │ ├── action-sheet │ │ │ ├── index.d.ts │ │ │ ├── index.json │ │ │ └── index.js │ │ ├── cell-group │ │ │ ├── index.d.ts │ │ │ ├── index.json │ │ │ ├── index.js │ │ │ ├── index.wxml │ │ │ └── index.wxss │ │ ├── checkbox-group │ │ │ ├── index.d.ts │ │ │ ├── index.wxml │ │ │ ├── index.wxss │ │ │ ├── index.json │ │ │ └── index.js │ │ ├── collapse-item │ │ │ ├── index.d.ts │ │ │ ├── index.json │ │ │ ├── index.wxml │ │ │ └── index.wxss │ │ ├── count-down │ │ │ ├── index.d.ts │ │ │ ├── index.json │ │ │ ├── index.wxml │ │ │ ├── index.wxss │ │ │ └── utils.d.ts │ │ ├── dropdown-item │ │ │ ├── index.d.ts │ │ │ ├── shared.js │ │ │ ├── shared.d.ts │ │ │ ├── index.json │ │ │ ├── index.wxss │ │ │ └── index.wxml │ │ ├── dropdown-menu │ │ │ ├── index.d.ts │ │ │ ├── index.json │ │ │ ├── index.wxs │ │ │ ├── index.wxml │ │ │ └── index.wxss │ │ ├── goods-action │ │ │ ├── index.d.ts │ │ │ ├── index.json │ │ │ ├── index.wxml │ │ │ ├── index.wxss │ │ │ └── index.js │ │ ├── index-anchor │ │ │ ├── index.d.ts │ │ │ ├── index.json │ │ │ ├── index.wxml │ │ │ ├── index.wxss │ │ │ └── index.js │ │ ├── notice-bar │ │ │ ├── index.d.ts │ │ │ ├── index.json │ │ │ ├── index.wxml │ │ │ └── index.wxss │ │ ├── picker-column │ │ │ ├── index.d.ts │ │ │ ├── index.json │ │ │ ├── index.wxs │ │ │ ├── index.wxss │ │ │ └── index.wxml │ │ ├── share-sheet │ │ │ ├── index.d.ts │ │ │ ├── options.d.ts │ │ │ ├── options.json │ │ │ ├── index.json │ │ │ ├── index.wxs │ │ │ ├── options.wxs │ │ │ ├── options.js │ │ │ ├── options.wxml │ │ │ ├── index.wxss │ │ │ ├── options.wxss │ │ │ ├── index.js │ │ │ └── index.wxml │ │ ├── sidebar-item │ │ │ ├── index.d.ts │ │ │ ├── index.json │ │ │ ├── index.wxml │ │ │ ├── index.js │ │ │ └── index.wxss │ │ ├── submit-bar │ │ │ ├── index.d.ts │ │ │ ├── index.json │ │ │ ├── index.wxml │ │ │ └── index.js │ │ ├── swipe-cell │ │ │ ├── index.d.ts │ │ │ ├── index.json │ │ │ ├── index.wxss │ │ │ └── index.wxml │ │ ├── tabbar-item │ │ │ ├── index.d.ts │ │ │ ├── index.json │ │ │ ├── index.wxss │ │ │ ├── index.wxml │ │ │ └── index.js │ │ ├── transition │ │ │ ├── index.d.ts │ │ │ ├── index.json │ │ │ ├── index.wxml │ │ │ └── index.js │ │ ├── tree-select │ │ │ ├── index.d.ts │ │ │ ├── index.json │ │ │ ├── index.wxs │ │ │ ├── index.wxss │ │ │ └── index.wxml │ │ ├── datetime-picker │ │ │ ├── index.d.ts │ │ │ ├── index.wxss │ │ │ ├── index.json │ │ │ └── index.wxml │ │ ├── goods-action-button │ │ │ ├── index.d.ts │ │ │ ├── index.json │ │ │ ├── index.wxml │ │ │ ├── index.js │ │ │ └── index.wxss │ │ ├── goods-action-icon │ │ │ ├── index.d.ts │ │ │ ├── index.json │ │ │ ├── index.js │ │ │ ├── index.wxss │ │ │ └── index.wxml │ │ ├── mixins │ │ │ ├── link.d.ts │ │ │ ├── basic.d.ts │ │ │ ├── button.d.ts │ │ │ ├── touch.d.ts │ │ │ ├── open-type.d.ts │ │ │ ├── transition.d.ts │ │ │ ├── page-scroll.d.ts │ │ │ ├── link.js │ │ │ ├── button.js │ │ │ ├── open-type.js │ │ │ ├── basic.js │ │ │ ├── touch.js │ │ │ └── page-scroll.js │ │ └── wxs │ │ │ ├── array.wxs │ │ │ ├── utils.wxs │ │ │ ├── add-unit.wxs │ │ │ ├── object.wxs │ │ │ ├── bem.wxs │ │ │ └── memoize.wxs │ └── add-tips │ │ ├── index.json │ │ ├── assets │ │ └── fav-1.jpg │ │ ├── index.wxml │ │ └── index.js ├── .DS_Store ├── images │ ├── demo.png │ ├── .DS_Store │ ├── icon │ │ ├── 11.png │ │ ├── jd.png │ │ ├── wx.png │ │ ├── all.png │ │ ├── didi.jpg │ │ ├── ele.png │ │ ├── vip.png │ │ ├── .DS_Store │ │ └── meituan.png │ └── coupon-banner │ │ ├── 11.jpg │ │ ├── ele.png │ │ ├── jd.png │ │ ├── vip.png │ │ ├── meituan.png │ │ ├── ele_banner.png │ │ ├── ele_guosu.png │ │ ├── vip_banner.png │ │ ├── sanzhisongshu.png │ │ └── meituan_banner.png ├── sitemap.json ├── package.json ├── app.json ├── pages │ └── index │ │ └── index.json └── app.js ├── .gitignore ├── .DS_Store ├── IMG_7326.PNG ├── IMG_7327.JPG └── db ├── notice.json └── share-message.json /miniprogram/app.wxss: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | vant-weapp 2 | node_modules -------------------------------------------------------------------------------- /miniprogram/components/dist/common/style/theme.wxss: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /miniprogram/components/dist/common/style/var.wxss: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /miniprogram/components/dist/area/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/card/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/cell/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/col/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/grid/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/icon/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/info/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/rate/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/row/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/tab/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/tabs/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/tag/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/button/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/calendar/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/checkbox/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/circle/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/collapse/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/common/style/mixins/clearfix.wxss: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /miniprogram/components/dist/common/style/mixins/ellipsis.wxss: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /miniprogram/components/dist/common/style/mixins/hairline.wxss: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /miniprogram/components/dist/definitions/index.js: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/definitions/weapp.js: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/dialog/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/divider/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/empty/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/field/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/grid-item/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/image/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/index-bar/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/loading/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/nav-bar/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/notify/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/overlay/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/panel/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/picker/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/popup/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/progress/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/radio-group/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/radio/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/search/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/sidebar/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/skeleton/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/slider/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/stepper/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/steps/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/sticky/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/switch/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/tabbar/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/toast/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/uploader/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/action-sheet/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/cell-group/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/checkbox-group/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/checkbox-group/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/collapse-item/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/count-down/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/dropdown-item/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/dropdown-item/shared.js: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/dropdown-menu/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/goods-action/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/index-anchor/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/notice-bar/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/picker-column/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/radio-group/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/share-sheet/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/share-sheet/options.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/sidebar-item/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/submit-bar/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/swipe-cell/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/tabbar-item/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/transition/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/tree-select/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/datetime-picker/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/goods-action-button/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/goods-action-icon/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hotuns/miniapp-coupons/HEAD/.DS_Store -------------------------------------------------------------------------------- /miniprogram/components/dist/area/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss'; -------------------------------------------------------------------------------- /miniprogram/components/dist/col/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } 4 | -------------------------------------------------------------------------------- /miniprogram/components/dist/collapse/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss'; -------------------------------------------------------------------------------- /miniprogram/components/dist/row/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } 4 | -------------------------------------------------------------------------------- /miniprogram/components/dist/tab/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } 4 | -------------------------------------------------------------------------------- /IMG_7326.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hotuns/miniapp-coupons/HEAD/IMG_7326.PNG -------------------------------------------------------------------------------- /IMG_7327.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hotuns/miniapp-coupons/HEAD/IMG_7327.JPG -------------------------------------------------------------------------------- /miniprogram/components/dist/calendar/components/header/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/calendar/components/month/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/circle/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } 4 | -------------------------------------------------------------------------------- /miniprogram/components/dist/collapse/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } 4 | -------------------------------------------------------------------------------- /miniprogram/components/dist/grid/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } 4 | -------------------------------------------------------------------------------- /miniprogram/components/dist/info/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } 4 | -------------------------------------------------------------------------------- /miniprogram/components/dist/loading/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } 4 | -------------------------------------------------------------------------------- /miniprogram/components/dist/mixins/link.d.ts: -------------------------------------------------------------------------------- 1 | export declare const link: string; 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/progress/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } 4 | -------------------------------------------------------------------------------- /miniprogram/components/dist/radio-group/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss'; -------------------------------------------------------------------------------- /miniprogram/components/dist/sidebar/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } 4 | -------------------------------------------------------------------------------- /miniprogram/components/dist/slider/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } 4 | -------------------------------------------------------------------------------- /miniprogram/components/dist/stepper/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } 4 | -------------------------------------------------------------------------------- /miniprogram/components/dist/sticky/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } 4 | -------------------------------------------------------------------------------- /miniprogram/components/dist/tabbar/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } 4 | -------------------------------------------------------------------------------- /miniprogram/components/dist/cell-group/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } 4 | -------------------------------------------------------------------------------- /miniprogram/components/dist/checkbox-group/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss'; -------------------------------------------------------------------------------- /miniprogram/components/dist/count-down/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } 4 | -------------------------------------------------------------------------------- /miniprogram/components/dist/datetime-picker/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss'; -------------------------------------------------------------------------------- /miniprogram/components/dist/dropdown-menu/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } 4 | -------------------------------------------------------------------------------- /miniprogram/components/dist/goods-action/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } 4 | -------------------------------------------------------------------------------- /miniprogram/components/dist/index-anchor/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } 4 | -------------------------------------------------------------------------------- /miniprogram/components/dist/index-bar/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } 4 | -------------------------------------------------------------------------------- /miniprogram/components/dist/mixins/basic.d.ts: -------------------------------------------------------------------------------- 1 | export declare const basic: string; 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/mixins/button.d.ts: -------------------------------------------------------------------------------- 1 | export declare const button: string; 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/mixins/touch.d.ts: -------------------------------------------------------------------------------- 1 | export declare const touch: string; 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/picker-column/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } 4 | -------------------------------------------------------------------------------- /miniprogram/components/dist/radio-group/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } 4 | -------------------------------------------------------------------------------- /miniprogram/components/dist/share-sheet/options.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } 4 | -------------------------------------------------------------------------------- /miniprogram/components/dist/swipe-cell/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } 4 | -------------------------------------------------------------------------------- /miniprogram/components/dist/transition/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } 4 | -------------------------------------------------------------------------------- /db/notice.json: -------------------------------------------------------------------------------- 1 | {"_id":"2a7b532a5fc07e1a006dd39159d35aa0","notice":"不止有外卖优惠券哦,多看看,有惊喜~"} 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/checkbox-group/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } 4 | -------------------------------------------------------------------------------- /miniprogram/components/dist/mixins/open-type.d.ts: -------------------------------------------------------------------------------- 1 | export declare const openType: string; 2 | -------------------------------------------------------------------------------- /miniprogram/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hotuns/miniapp-coupons/HEAD/miniprogram/.DS_Store -------------------------------------------------------------------------------- /miniprogram/components/add-tips/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": {} 4 | } -------------------------------------------------------------------------------- /miniprogram/components/dist/calendar/components/header/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } 4 | -------------------------------------------------------------------------------- /miniprogram/components/dist/calendar/components/month/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } 4 | -------------------------------------------------------------------------------- /miniprogram/components/dist/empty/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": {} 4 | } -------------------------------------------------------------------------------- /miniprogram/components/dist/common/style/clearfix.wxss: -------------------------------------------------------------------------------- 1 | .van-clearfix:after{display:table;clear:both;content:""} -------------------------------------------------------------------------------- /miniprogram/components/dist/divider/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": {} 4 | } 5 | -------------------------------------------------------------------------------- /miniprogram/components/dist/skeleton/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": {} 4 | } 5 | -------------------------------------------------------------------------------- /miniprogram/images/demo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hotuns/miniapp-coupons/HEAD/miniprogram/images/demo.png -------------------------------------------------------------------------------- /miniprogram/components/dist/sidebar/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /miniprogram/images/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hotuns/miniapp-coupons/HEAD/miniprogram/images/.DS_Store -------------------------------------------------------------------------------- /miniprogram/images/icon/11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hotuns/miniapp-coupons/HEAD/miniprogram/images/icon/11.png -------------------------------------------------------------------------------- /miniprogram/images/icon/jd.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hotuns/miniapp-coupons/HEAD/miniprogram/images/icon/jd.png -------------------------------------------------------------------------------- /miniprogram/images/icon/wx.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hotuns/miniapp-coupons/HEAD/miniprogram/images/icon/wx.png -------------------------------------------------------------------------------- /miniprogram/images/icon/all.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hotuns/miniapp-coupons/HEAD/miniprogram/images/icon/all.png -------------------------------------------------------------------------------- /miniprogram/images/icon/didi.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hotuns/miniapp-coupons/HEAD/miniprogram/images/icon/didi.jpg -------------------------------------------------------------------------------- /miniprogram/images/icon/ele.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hotuns/miniapp-coupons/HEAD/miniprogram/images/icon/ele.png -------------------------------------------------------------------------------- /miniprogram/images/icon/vip.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hotuns/miniapp-coupons/HEAD/miniprogram/images/icon/vip.png -------------------------------------------------------------------------------- /miniprogram/components/dist/mixins/transition.d.ts: -------------------------------------------------------------------------------- 1 | export declare function transition(showDefaultValue: boolean): string; 2 | -------------------------------------------------------------------------------- /miniprogram/components/dist/row/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-row:after{display:table;clear:both;content:""} -------------------------------------------------------------------------------- /miniprogram/images/icon/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hotuns/miniapp-coupons/HEAD/miniprogram/images/icon/.DS_Store -------------------------------------------------------------------------------- /miniprogram/images/icon/meituan.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hotuns/miniapp-coupons/HEAD/miniprogram/images/icon/meituan.png -------------------------------------------------------------------------------- /miniprogram/components/dist/row/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /miniprogram/components/dist/sidebar/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-sidebar{width:80px;width:var(--sidebar-width,80px)} -------------------------------------------------------------------------------- /miniprogram/images/coupon-banner/11.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hotuns/miniapp-coupons/HEAD/miniprogram/images/coupon-banner/11.jpg -------------------------------------------------------------------------------- /miniprogram/images/coupon-banner/ele.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hotuns/miniapp-coupons/HEAD/miniprogram/images/coupon-banner/ele.png -------------------------------------------------------------------------------- /miniprogram/images/coupon-banner/jd.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hotuns/miniapp-coupons/HEAD/miniprogram/images/coupon-banner/jd.png -------------------------------------------------------------------------------- /miniprogram/images/coupon-banner/vip.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hotuns/miniapp-coupons/HEAD/miniprogram/images/coupon-banner/vip.png -------------------------------------------------------------------------------- /miniprogram/components/dist/grid/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-grid{position:relative;box-sizing:border-box;overflow:hidden} -------------------------------------------------------------------------------- /miniprogram/images/coupon-banner/meituan.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hotuns/miniapp-coupons/HEAD/miniprogram/images/coupon-banner/meituan.png -------------------------------------------------------------------------------- /miniprogram/components/dist/card/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-tag": "../tag/index" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /miniprogram/components/dist/cell/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-icon": "../icon/index" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /miniprogram/components/dist/icon/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-info": "../info/index" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /miniprogram/components/dist/panel/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-cell": "../cell/index" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /miniprogram/components/dist/radio/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-icon": "../icon/index" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /miniprogram/components/dist/rate/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-icon": "../icon/index" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /miniprogram/components/dist/steps/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-icon": "../icon/index" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /miniprogram/components/dist/tag/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-icon": "../icon/index" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /miniprogram/images/coupon-banner/ele_banner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hotuns/miniapp-coupons/HEAD/miniprogram/images/coupon-banner/ele_banner.png -------------------------------------------------------------------------------- /miniprogram/images/coupon-banner/ele_guosu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hotuns/miniapp-coupons/HEAD/miniprogram/images/coupon-banner/ele_guosu.png -------------------------------------------------------------------------------- /miniprogram/images/coupon-banner/vip_banner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hotuns/miniapp-coupons/HEAD/miniprogram/images/coupon-banner/vip_banner.png -------------------------------------------------------------------------------- /miniprogram/components/add-tips/assets/fav-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hotuns/miniapp-coupons/HEAD/miniprogram/components/add-tips/assets/fav-1.jpg -------------------------------------------------------------------------------- /miniprogram/components/dist/area/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-picker": "../picker/index" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /miniprogram/components/dist/checkbox/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-icon": "../icon/index" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /miniprogram/components/dist/grid-item/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-icon": "../icon/index" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /miniprogram/components/dist/nav-bar/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-icon": "../icon/index" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /miniprogram/components/dist/notice-bar/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-icon": "../icon/index" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /miniprogram/components/dist/search/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-field": "../field/index" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /miniprogram/images/coupon-banner/sanzhisongshu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hotuns/miniapp-coupons/HEAD/miniprogram/images/coupon-banner/sanzhisongshu.png -------------------------------------------------------------------------------- /miniprogram/components/dist/collapse-item/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-cell": "../cell/index" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /miniprogram/components/dist/common/version.d.ts: -------------------------------------------------------------------------------- 1 | export declare function canIUseModel(): boolean; 2 | export declare function canIUseFormFieldButton(): boolean; 3 | -------------------------------------------------------------------------------- /miniprogram/components/dist/dropdown-item/shared.d.ts: -------------------------------------------------------------------------------- 1 | export interface Option { 2 | text: string; 3 | value: string | number; 4 | icon: string; 5 | } 6 | -------------------------------------------------------------------------------- /miniprogram/components/dist/sidebar-item/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-info": "../info/index" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /miniprogram/components/dist/sticky/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-sticky{position:relative}.van-sticky-wrap--fixed{position:fixed;right:0;left:0} -------------------------------------------------------------------------------- /miniprogram/components/dist/switch/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-loading": "../loading/index" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /miniprogram/images/coupon-banner/meituan_banner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hotuns/miniapp-coupons/HEAD/miniprogram/images/coupon-banner/meituan_banner.png -------------------------------------------------------------------------------- /miniprogram/components/dist/collapse/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /miniprogram/components/dist/datetime-picker/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-picker": "../picker/index" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /miniprogram/components/dist/notify/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-transition": "../transition/index" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /miniprogram/components/dist/overlay/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-transition": "../transition/index" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /miniprogram/components/dist/goods-action-button/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-button": "../button/index" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /miniprogram/components/dist/wxs/array.wxs: -------------------------------------------------------------------------------- 1 | function isArray(array) { 2 | return array && array.constructor === 'Array'; 3 | } 4 | 5 | module.exports.isArray = isArray; 6 | -------------------------------------------------------------------------------- /miniprogram/components/dist/progress/index.wxs: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | text: function(pivotText, percentage) { 3 | return pivotText || percentage + '%'; 4 | } 5 | }; 6 | -------------------------------------------------------------------------------- /miniprogram/components/dist/count-down/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | {{ formattedTime }} 4 | 5 | -------------------------------------------------------------------------------- /miniprogram/components/dist/grid/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /miniprogram/components/dist/field/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-cell": "../cell/index", 5 | "van-icon": "../icon/index" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /miniprogram/components/dist/share-sheet/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-popup": "../popup/index", 5 | "options": "./options" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /miniprogram/components/dist/tabs/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-info": "../info/index", 5 | "van-sticky": "../sticky/index" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /miniprogram/components/dist/button/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-icon": "../icon/index", 5 | "van-loading": "../loading/index" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /miniprogram/components/dist/image/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-icon": "../icon/index", 5 | "van-loading": "../loading/index" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /miniprogram/components/dist/popup/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-icon": "../icon/index", 5 | "van-overlay": "../overlay/index" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /miniprogram/components/dist/submit-bar/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-button": "../button/index", 5 | "van-icon": "../icon/index" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /miniprogram/components/dist/tabbar-item/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-icon": "../icon/index", 5 | "van-info": "../info/index" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /miniprogram/components/dist/uploader/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-icon": "../icon/index", 5 | "van-loading": "../loading/index" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /miniprogram/components/dist/goods-action-icon/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-icon": "../icon/index", 5 | "van-button": "../button/index" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /miniprogram/components/dist/picker/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "picker-column": "../picker-column/index", 5 | "loading": "../loading/index" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /miniprogram/sitemap.json: -------------------------------------------------------------------------------- 1 | { 2 | "desc": "关于本文件的更多信息,请参考文档 https://developers.weixin.qq.com/miniprogram/dev/framework/sitemap.html", 3 | "rules": [{ 4 | "action": "allow", 5 | "page": "*" 6 | }] 7 | } -------------------------------------------------------------------------------- /miniprogram/components/dist/info/index.js: -------------------------------------------------------------------------------- 1 | import { VantComponent } from '../common/component'; 2 | VantComponent({ 3 | props: { 4 | dot: Boolean, 5 | info: null, 6 | customStyle: String, 7 | }, 8 | }); 9 | -------------------------------------------------------------------------------- /miniprogram/components/dist/goods-action/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /miniprogram/components/dist/dropdown-item/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-popup": "../popup/index", 5 | "van-cell": "../cell/index", 6 | "van-icon": "../icon/index" 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /miniprogram/components/dist/overlay/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.7);background-color:var(--overlay-background-color,rgba(0,0,0,.7))} -------------------------------------------------------------------------------- /miniprogram/components/dist/action-sheet/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-icon": "../icon/index", 5 | "van-popup": "../popup/index", 6 | "van-loading": "../loading/index" 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /miniprogram/components/dist/tree-select/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-icon": "../icon/index", 5 | "van-sidebar": "../sidebar/index", 6 | "van-sidebar-item": "../sidebar-item/index" 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /miniprogram/components/dist/cell-group/index.js: -------------------------------------------------------------------------------- 1 | import { VantComponent } from '../common/component'; 2 | VantComponent({ 3 | props: { 4 | title: String, 5 | border: { 6 | type: Boolean, 7 | value: true, 8 | }, 9 | }, 10 | }); 11 | -------------------------------------------------------------------------------- /miniprogram/components/dist/col/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /miniprogram/components/dist/count-down/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-count-down{color:#323233;color:var(--count-down-text-color,#323233);font-size:14px;font-size:var(--count-down-font-size,14px);line-height:20px;line-height:var(--count-down-line-height,20px)} -------------------------------------------------------------------------------- /miniprogram/components/dist/cell-group/index.wxml: -------------------------------------------------------------------------------- 1 | 5 | {{ title }} 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /miniprogram/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "miniprogram", 3 | "version": "1.0.0", 4 | "description": "", 5 | "main": "app.js", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1" 8 | }, 9 | "author": "", 10 | "license": "ISC" 11 | } 12 | -------------------------------------------------------------------------------- /miniprogram/components/dist/circle/canvas.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | declare type CanvasContext = WechatMiniprogram.CanvasContext; 3 | export declare function adaptor( 4 | ctx: CanvasContext & Record 5 | ): CanvasContext; 6 | export {}; 7 | -------------------------------------------------------------------------------- /miniprogram/components/dist/common/color.js: -------------------------------------------------------------------------------- 1 | export const RED = '#ee0a24'; 2 | export const BLUE = '#1989fa'; 3 | export const WHITE = '#fff'; 4 | export const GREEN = '#07c160'; 5 | export const ORANGE = '#ff976a'; 6 | export const GRAY = '#323233'; 7 | export const GRAY_DARK = '#969799'; 8 | -------------------------------------------------------------------------------- /miniprogram/components/dist/toast/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-icon": "../icon/index", 5 | "van-loading": "../loading/index", 6 | "van-overlay": "../overlay/index", 7 | "van-transition": "../transition/index" 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /miniprogram/components/dist/info/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | {{ dot ? '' : info }} 8 | -------------------------------------------------------------------------------- /miniprogram/components/dist/panel/index.js: -------------------------------------------------------------------------------- 1 | import { VantComponent } from '../common/component'; 2 | VantComponent({ 3 | classes: ['header-class', 'footer-class'], 4 | props: { 5 | desc: String, 6 | title: String, 7 | status: String, 8 | useFooterSlot: Boolean, 9 | }, 10 | }); 11 | -------------------------------------------------------------------------------- /miniprogram/components/dist/tab/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /miniprogram/components/dist/panel/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-panel{background:#fff;background:var(--panel-background-color,#fff)}.van-panel__header-value{color:#ee0a24;color:var(--panel-header-value-color,#ee0a24)}.van-panel__footer{padding:8px 16px;padding:var(--panel-footer-padding,8px 16px)} -------------------------------------------------------------------------------- /miniprogram/components/dist/circle/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-circle{position:relative;display:inline-block;text-align:center}.van-circle__text{position:absolute;top:50%;left:0;width:100%;-webkit-transform:translateY(-50%);transform:translateY(-50%);color:#323233;color:var(--circle-text-color,#323233)} -------------------------------------------------------------------------------- /miniprogram/components/dist/tab/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';:host{-webkit-flex-shrink:0;flex-shrink:0;width:100%}.van-tab__pane,:host{box-sizing:border-box}.van-tab__pane{overflow-y:auto;-webkit-overflow-scrolling:touch}.van-tab__pane--active{height:auto}.van-tab__pane--inactive{height:0;overflow:visible} -------------------------------------------------------------------------------- /miniprogram/components/dist/dialog/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-popup": "../popup/index", 5 | "van-button": "../button/index", 6 | "van-goods-action": "../goods-action//index", 7 | "van-goods-action-button": "../goods-action-button/index" 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /miniprogram/components/dist/picker-column/index.wxs: -------------------------------------------------------------------------------- 1 | function isObj(x) { 2 | var type = typeof x; 3 | return x !== null && (type === 'object' || type === 'function'); 4 | } 5 | 6 | module.exports = function (option, valueKey) { 7 | return isObj(option) && option[valueKey] != null ? option[valueKey] : option; 8 | } 9 | -------------------------------------------------------------------------------- /miniprogram/components/dist/overlay/index.wxml: -------------------------------------------------------------------------------- 1 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /miniprogram/components/dist/wxs/utils.wxs: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | var bem = require('./bem.wxs').bem; 3 | var memoize = require('./memoize.wxs').memoize; 4 | var addUnit = require('./add-unit.wxs').addUnit; 5 | 6 | module.exports = { 7 | bem: memoize(bem), 8 | memoize: memoize, 9 | addUnit: addUnit 10 | }; 11 | -------------------------------------------------------------------------------- /miniprogram/components/dist/tabbar/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /miniprogram/components/dist/calendar/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "header": "./components/header/index", 5 | "month": "./components/month/index", 6 | "van-button": "../button/index", 7 | "van-popup": "../popup/index", 8 | "van-toast": "../toast/index" 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /miniprogram/components/dist/common/component.d.ts: -------------------------------------------------------------------------------- 1 | import { VantComponentOptions, CombinedComponentInstance } from '../definitions/index'; 2 | declare function VantComponent(vantOptions?: VantComponentOptions>): void; 3 | export { VantComponent }; 4 | -------------------------------------------------------------------------------- /miniprogram/components/dist/common/color.d.ts: -------------------------------------------------------------------------------- 1 | export declare const RED = "#ee0a24"; 2 | export declare const BLUE = "#1989fa"; 3 | export declare const WHITE = "#fff"; 4 | export declare const GREEN = "#07c160"; 5 | export declare const ORANGE = "#ff976a"; 6 | export declare const GRAY = "#323233"; 7 | export declare const GRAY_DARK = "#969799"; 8 | -------------------------------------------------------------------------------- /miniprogram/components/dist/common/style/ellipsis.wxss: -------------------------------------------------------------------------------- 1 | .van-ellipsis{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.van-multi-ellipsis--l2{-webkit-line-clamp:2}.van-multi-ellipsis--l2,.van-multi-ellipsis--l3{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-box-orient:vertical}.van-multi-ellipsis--l3{-webkit-line-clamp:3} -------------------------------------------------------------------------------- /miniprogram/components/dist/share-sheet/index.wxs: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | function isMulti(options) { 3 | if (options == null || options[0] == null) { 4 | return false; 5 | } 6 | 7 | return "Array" === options.constructor && "Array" === options[0].constructor; 8 | } 9 | 10 | module.exports = { 11 | isMulti: isMulti 12 | }; 13 | -------------------------------------------------------------------------------- /miniprogram/components/dist/wxs/add-unit.wxs: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | var REGEXP = getRegExp('^\d+(\.\d+)?$'); 3 | 4 | function addUnit(value) { 5 | if (value == null) { 6 | return undefined; 7 | } 8 | 9 | return REGEXP.test('' + value) ? value + 'px' : value; 10 | } 11 | 12 | module.exports = { 13 | addUnit: addUnit 14 | }; 15 | -------------------------------------------------------------------------------- /miniprogram/components/dist/wxs/object.wxs: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | var REGEXP = getRegExp('{|}|"', 'g'); 3 | 4 | function keys(obj) { 5 | return JSON.stringify(obj) 6 | .replace(REGEXP, '') 7 | .split(',') 8 | .map(function(item) { 9 | return item.split(':')[0]; 10 | }); 11 | } 12 | 13 | module.exports.keys = keys; 14 | -------------------------------------------------------------------------------- /miniprogram/app.json: -------------------------------------------------------------------------------- 1 | { 2 | "pages": [ 3 | "pages/index/index" 4 | ], 5 | "window": { 6 | "navigationBarTextStyle": "white", 7 | "navigationBarTitleText": "小程序名", 8 | "navigationBarBackgroundColor": "#0bb9b6", 9 | "backgroundColor": "#FFFFFF", 10 | "titleView": false 11 | }, 12 | "sitemapLocation": "sitemap.json" 13 | } -------------------------------------------------------------------------------- /miniprogram/components/dist/cell-group/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-cell-group__title{padding:16px 16px 8px;padding:var(--cell-group-title-padding,16px 16px 8px);font-size:14px;font-size:var(--cell-group-title-font-size,14px);line-height:16px;line-height:var(--cell-group-title-line-height,16px);color:#969799;color:var(--cell-group-title-color,#969799)} -------------------------------------------------------------------------------- /miniprogram/components/dist/tree-select/index.wxs: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | var array = require('../wxs/array.wxs'); 3 | 4 | function isActive (activeList, itemId) { 5 | if (array.isArray(activeList)) { 6 | return activeList.indexOf(itemId) > -1; 7 | } 8 | 9 | return activeList === itemId; 10 | } 11 | 12 | module.exports.isActive = isActive; 13 | -------------------------------------------------------------------------------- /miniprogram/components/dist/tabbar/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-tabbar{display:-webkit-flex;display:flex;box-sizing:initial;width:100%;height:50px;height:var(--tabbar-height,50px);background-color:#fff;background-color:var(--tabbar-background-color,#fff)}.van-tabbar--fixed{position:fixed;bottom:0;left:0}.van-tabbar--safe{padding-bottom:env(safe-area-inset-bottom)} -------------------------------------------------------------------------------- /miniprogram/components/dist/transition/index.wxml: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /miniprogram/pages/index/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": { 3 | "van-tab": "../../components/dist/tab/index", 4 | "van-tabs": "../../components/dist/tabs/index", 5 | "van-notice-bar": "../../components/dist/notice-bar/index", 6 | "van-loading": "../../components/dist/loading/index", 7 | "add-tips": "../../components/add-tips" 8 | } 9 | } -------------------------------------------------------------------------------- /miniprogram/components/dist/mixins/page-scroll.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | declare type IPageScrollOption = WechatMiniprogram.Page.IPageScrollOption; 3 | declare type Scroller = ( 4 | this: WechatMiniprogram.Component.TrivialInstance, 5 | event?: IPageScrollOption 6 | ) => void; 7 | export declare const pageScrollMixin: (scroller: Scroller) => string; 8 | export {}; 9 | -------------------------------------------------------------------------------- /miniprogram/components/dist/goods-action/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-goods-action{position:fixed;right:0;bottom:0;left:0;display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;height:50px;height:var(--goods-action-height,50px);background-color:#fff;background-color:var(--goods-action-background-color,#fff)}.van-goods-action--safe{padding-bottom:env(safe-area-inset-bottom)} -------------------------------------------------------------------------------- /miniprogram/components/dist/loading/index.js: -------------------------------------------------------------------------------- 1 | import { VantComponent } from '../common/component'; 2 | VantComponent({ 3 | props: { 4 | color: String, 5 | vertical: Boolean, 6 | type: { 7 | type: String, 8 | value: 'circular', 9 | }, 10 | size: String, 11 | textSize: String, 12 | }, 13 | data: { 14 | array12: Array.from({ length: 12 }), 15 | }, 16 | }); 17 | -------------------------------------------------------------------------------- /miniprogram/components/dist/swipe-cell/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-swipe-cell{position:relative;overflow:hidden}.van-swipe-cell__left,.van-swipe-cell__right{position:absolute;top:0;height:100%}.van-swipe-cell__left{left:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}.van-swipe-cell__right{right:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)} -------------------------------------------------------------------------------- /miniprogram/components/dist/transition/index.js: -------------------------------------------------------------------------------- 1 | import { VantComponent } from '../common/component'; 2 | import { transition } from '../mixins/transition'; 3 | VantComponent({ 4 | classes: [ 5 | 'enter-class', 6 | 'enter-active-class', 7 | 'enter-to-class', 8 | 'leave-class', 9 | 'leave-active-class', 10 | 'leave-to-class', 11 | ], 12 | mixins: [transition(true)], 13 | }); 14 | -------------------------------------------------------------------------------- /miniprogram/components/dist/share-sheet/options.wxs: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | var PRESET_ICONS = ['qq', 'weibo', 'wechat', 'link', 'qrcode', 'poster']; 3 | 4 | function getIconURL(icon) { 5 | if (PRESET_ICONS.indexOf(icon) !== -1) { 6 | return 'https://img.yzcdn.cn/vant/share-icon-' + icon + '.png'; 7 | } 8 | 9 | return icon; 10 | } 11 | 12 | module.exports = { 13 | getIconURL: getIconURL, 14 | }; 15 | -------------------------------------------------------------------------------- /db/share-message.json: -------------------------------------------------------------------------------- 1 | {"_id":"2a7b532a5fbce118005238b161a1edd0","imageUrl":"cloud://test-b602t.7465-test-b602t-1253275554/coupon-banenr/20201124215133.jpg","path":"/pages/index/index","title":"【无门槛】美团、饿了么大额满减"} 2 | {"_id":"2a7b532a5fbda5840057a0dd68f6fbfc","path":"/pages/index/index","title":"【每日可领】先领券,再下单,立省一半!","imageUrl":"cloud://test-b602t.7465-test-b602t-1253275554/coupon-banenr/a89637f2c503ea874117429dc6768e4c.jpg"} 3 | -------------------------------------------------------------------------------- /miniprogram/components/dist/mixins/link.js: -------------------------------------------------------------------------------- 1 | export const link = Behavior({ 2 | properties: { 3 | url: String, 4 | linkType: { 5 | type: String, 6 | value: 'navigateTo', 7 | }, 8 | }, 9 | methods: { 10 | jumpLink(urlKey = 'url') { 11 | const url = this.data[urlKey]; 12 | if (url) { 13 | wx[this.data.linkType]({ url }); 14 | } 15 | }, 16 | }, 17 | }); 18 | -------------------------------------------------------------------------------- /miniprogram/components/dist/divider/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /miniprogram/components/dist/sticky/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /miniprogram/components/dist/index-anchor/index.wxml: -------------------------------------------------------------------------------- 1 | 5 | 9 | 10 | 11 | {{ index }} 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /miniprogram/components/dist/nav-bar/index.wxs: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | function barStyle(data) { 3 | var styles = [ 4 | ['z-index', data.zIndex], 5 | ['padding-top', data.safeAreaInsetTop ? data.statusBarHeight + 'px' : 0], 6 | ]; 7 | 8 | return styles 9 | .map(function (item) { 10 | return item.join(':'); 11 | }) 12 | .join(';'); 13 | } 14 | 15 | module.exports = { 16 | barStyle: barStyle, 17 | }; 18 | -------------------------------------------------------------------------------- /miniprogram/components/dist/calendar/components/header/index.js: -------------------------------------------------------------------------------- 1 | import { VantComponent } from '../../../common/component'; 2 | VantComponent({ 3 | props: { 4 | title: { 5 | type: String, 6 | value: '日期选择', 7 | }, 8 | subtitle: String, 9 | showTitle: Boolean, 10 | showSubtitle: Boolean, 11 | }, 12 | data: { 13 | weekdays: ['日', '一', '二', '三', '四', '五', '六'], 14 | }, 15 | methods: {}, 16 | }); 17 | -------------------------------------------------------------------------------- /miniprogram/components/dist/count-down/utils.d.ts: -------------------------------------------------------------------------------- 1 | export declare type TimeData = { 2 | days: number; 3 | hours: number; 4 | minutes: number; 5 | seconds: number; 6 | milliseconds: number; 7 | }; 8 | export declare function parseTimeData(time: number): TimeData; 9 | export declare function parseFormat(format: string, timeData: TimeData): string; 10 | export declare function isSameSecond(time1: number, time2: number): boolean; 11 | -------------------------------------------------------------------------------- /miniprogram/components/dist/dropdown-menu/index.wxs: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | function displayTitle(item) { 3 | if (item.title) { 4 | return item.title; 5 | } 6 | 7 | var match = item.options.filter(function(option) { 8 | return option.value === item.value; 9 | }); 10 | var displayTitle = match.length ? match[0].text : ''; 11 | return displayTitle; 12 | } 13 | 14 | module.exports = { 15 | displayTitle: displayTitle 16 | }; 17 | -------------------------------------------------------------------------------- /miniprogram/components/dist/mixins/button.js: -------------------------------------------------------------------------------- 1 | export const button = Behavior({ 2 | externalClasses: ['hover-class'], 3 | properties: { 4 | id: String, 5 | lang: String, 6 | businessId: Number, 7 | sessionFrom: String, 8 | sendMessageTitle: String, 9 | sendMessagePath: String, 10 | sendMessageImg: String, 11 | showMessageCard: Boolean, 12 | appParameter: String, 13 | ariaLabel: String, 14 | }, 15 | }); 16 | -------------------------------------------------------------------------------- /miniprogram/components/dist/picker/shared.js: -------------------------------------------------------------------------------- 1 | export const pickerProps = { 2 | title: String, 3 | loading: Boolean, 4 | showToolbar: Boolean, 5 | cancelButtonText: { 6 | type: String, 7 | value: '取消', 8 | }, 9 | confirmButtonText: { 10 | type: String, 11 | value: '确认', 12 | }, 13 | visibleItemCount: { 14 | type: Number, 15 | value: 6, 16 | }, 17 | itemHeight: { 18 | type: Number, 19 | value: 44, 20 | }, 21 | }; 22 | -------------------------------------------------------------------------------- /miniprogram/components/dist/rate/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-rate{display:-webkit-inline-flex;display:inline-flex;-webkit-user-select:none;user-select:none}.van-rate__item{position:relative;padding:0 2px;padding:0 var(--rate-horizontal-padding,2px)}.van-rate__icon{display:block;height:1em;font-size:20px;font-size:var(--rate-icon-size,20px)}.van-rate__icon--half{position:absolute;top:0;width:.5em;overflow:hidden;left:2px;left:var(--rate-horizontal-padding,2px)} -------------------------------------------------------------------------------- /miniprogram/components/dist/share-sheet/options.js: -------------------------------------------------------------------------------- 1 | import { VantComponent } from '../common/component'; 2 | VantComponent({ 3 | props: { 4 | options: Array, 5 | showBorder: Boolean, 6 | }, 7 | methods: { 8 | onSelect(event) { 9 | const { index } = event.currentTarget.dataset; 10 | const option = this.data.options[index]; 11 | this.$emit('select', Object.assign(Object.assign({}, option), { index })); 12 | }, 13 | }, 14 | }); 15 | -------------------------------------------------------------------------------- /miniprogram/components/dist/circle/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | {{ text }} 9 | 10 | -------------------------------------------------------------------------------- /miniprogram/components/dist/dropdown-item/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-dropdown-item{position:fixed;right:0;left:0;overflow:hidden}.van-dropdown-item__option{text-align:left}.van-dropdown-item__option--active .van-dropdown-item__icon,.van-dropdown-item__option--active .van-dropdown-item__title{color:#ee0a24;color:var(--dropdown-menu-option-active-color,#ee0a24)}.van-dropdown-item--up{top:0}.van-dropdown-item--down{bottom:0}.van-dropdown-item__icon{display:block;line-height:inherit} -------------------------------------------------------------------------------- /miniprogram/components/dist/tag/index.js: -------------------------------------------------------------------------------- 1 | import { VantComponent } from '../common/component'; 2 | VantComponent({ 3 | props: { 4 | size: String, 5 | mark: Boolean, 6 | color: String, 7 | plain: Boolean, 8 | round: Boolean, 9 | textColor: String, 10 | type: { 11 | type: String, 12 | value: 'default', 13 | }, 14 | closeable: Boolean, 15 | }, 16 | methods: { 17 | onClose() { 18 | this.$emit('close'); 19 | }, 20 | }, 21 | }); 22 | -------------------------------------------------------------------------------- /miniprogram/components/dist/overlay/index.js: -------------------------------------------------------------------------------- 1 | import { VantComponent } from '../common/component'; 2 | VantComponent({ 3 | props: { 4 | show: Boolean, 5 | customStyle: String, 6 | duration: { 7 | type: null, 8 | value: 300, 9 | }, 10 | zIndex: { 11 | type: Number, 12 | value: 1, 13 | }, 14 | }, 15 | methods: { 16 | onClick() { 17 | this.$emit('click'); 18 | }, 19 | // for prevent touchmove 20 | noop() {}, 21 | }, 22 | }); 23 | -------------------------------------------------------------------------------- /miniprogram/components/dist/slider/index.wxs: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | var utils = require('../wxs/utils.wxs'); 3 | 4 | function barStyle(barHeight, activeColor) { 5 | var styles = [['height', utils.addUnit(barHeight)]]; 6 | 7 | if (activeColor) { 8 | styles.push(['background', activeColor]); 9 | } 10 | 11 | return styles 12 | .map(function (item) { 13 | return item.join(':'); 14 | }) 15 | .join(';'); 16 | } 17 | 18 | module.exports = { 19 | barStyle: barStyle, 20 | }; 21 | -------------------------------------------------------------------------------- /miniprogram/app.js: -------------------------------------------------------------------------------- 1 | //app.js 2 | App({ 3 | onLaunch: function () { 4 | 5 | if (!wx.cloud) { 6 | console.error('请使用 2.2.3 或以上的基础库以使用云能力') 7 | } else { 8 | wx.cloud.init({ 9 | // env 参数说明: 10 | // env 参数决定接下来小程序发起的云开发调用(wx.cloud.xxx)会默认请求到哪个云环境的资源 11 | // 此处请填入环境 ID, 环境 ID 可打开云控制台查看 12 | // 如不填则使用默认环境(第一个创建的环境) 13 | env: 'test-9gfm8pvcba5c8c79', 14 | traceUser: true, 15 | }) 16 | } 17 | 18 | this.globalData = {} 19 | } 20 | }) 21 | -------------------------------------------------------------------------------- /miniprogram/components/dist/tag/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 8 | 14 | 15 | -------------------------------------------------------------------------------- /miniprogram/components/dist/picker-column/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-picker-column{overflow:hidden;text-align:center;color:#000;color:var(--picker-option-text-color,#000);font-size:16px;font-size:var(--picker-option-font-size,16px)}.van-picker-column__item{padding:0 5px}.van-picker-column__item--selected{font-weight:500;font-weight:var(--font-weight-bold,500);color:#323233;color:var(--picker-option-selected-text-color,#323233)}.van-picker-column__item--disabled{opacity:.3;opacity:var(--picker-option-disabled-opacity,.3)} -------------------------------------------------------------------------------- /miniprogram/components/dist/switch/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /miniprogram/components/dist/datetime-picker/index.wxml: -------------------------------------------------------------------------------- 1 | 17 | -------------------------------------------------------------------------------- /miniprogram/components/dist/field/index.wxs: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | var utils = require('../wxs/utils.wxs'); 3 | 4 | function inputStyle(autosize) { 5 | if (autosize && autosize.constructor === 'Object') { 6 | var style = ''; 7 | if (autosize.minHeight) { 8 | style += 'min-height:' + utils.addUnit(autosize.minHeight) + ';'; 9 | } 10 | if (autosize.maxHeight) { 11 | style += 'max-height:' + utils.addUnit(autosize.maxHeight) + ';'; 12 | } 13 | return style; 14 | } 15 | 16 | return ''; 17 | } 18 | 19 | module.exports = { 20 | inputStyle: inputStyle 21 | }; 22 | -------------------------------------------------------------------------------- /miniprogram/components/dist/index-bar/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-index-bar{position:relative}.van-index-bar__sidebar{position:fixed;top:50%;right:0;display:-webkit-flex;display:flex;-webkit-flex-direction:column;flex-direction:column;text-align:center;-webkit-transform:translateY(-50%);transform:translateY(-50%);-webkit-user-select:none;user-select:none}.van-index-bar__index{font-weight:500;padding:0 4px 0 16px;padding:0 var(--padding-base,4px) 0 var(--padding-md,16px);font-size:10px;font-size:var(--index-bar-index-font-size,10px);line-height:14px;line-height:var(--index-bar-index-line-height,14px)} -------------------------------------------------------------------------------- /miniprogram/components/dist/area/index.wxml: -------------------------------------------------------------------------------- 1 | 19 | -------------------------------------------------------------------------------- /miniprogram/components/dist/empty/index.js: -------------------------------------------------------------------------------- 1 | import { VantComponent } from '../common/component'; 2 | const PRESETS = ['error', 'search', 'default', 'network']; 3 | VantComponent({ 4 | props: { 5 | description: String, 6 | image: { 7 | type: String, 8 | value: 'default', 9 | }, 10 | }, 11 | created() { 12 | if (PRESETS.indexOf(this.data.image) !== -1) { 13 | this.setData({ 14 | imageUrl: `https://img.yzcdn.cn/vant/empty-image-${this.data.image}.png`, 15 | }); 16 | } else { 17 | this.setData({ imageUrl: this.data.image }); 18 | } 19 | }, 20 | }); 21 | -------------------------------------------------------------------------------- /miniprogram/components/dist/picker/shared.d.ts: -------------------------------------------------------------------------------- 1 | export declare const pickerProps: { 2 | title: StringConstructor; 3 | loading: BooleanConstructor; 4 | showToolbar: BooleanConstructor; 5 | cancelButtonText: { 6 | type: StringConstructor; 7 | value: string; 8 | }; 9 | confirmButtonText: { 10 | type: StringConstructor; 11 | value: string; 12 | }; 13 | visibleItemCount: { 14 | type: NumberConstructor; 15 | value: number; 16 | }; 17 | itemHeight: { 18 | type: NumberConstructor; 19 | value: number; 20 | }; 21 | }; 22 | -------------------------------------------------------------------------------- /miniprogram/components/dist/calendar/components/header/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | {{ title }} 5 | 6 | 7 | 8 | {{ subtitle }} 9 | 10 | 11 | 12 | 13 | {{ item }} 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /miniprogram/components/dist/panel/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /miniprogram/components/dist/icon/index.js: -------------------------------------------------------------------------------- 1 | import { VantComponent } from '../common/component'; 2 | VantComponent({ 3 | props: { 4 | dot: Boolean, 5 | info: null, 6 | size: null, 7 | color: String, 8 | customStyle: String, 9 | classPrefix: { 10 | type: String, 11 | value: 'van-icon', 12 | }, 13 | name: { 14 | type: String, 15 | observer(val) { 16 | this.setData({ 17 | isImageName: val.indexOf('/') !== -1, 18 | }); 19 | }, 20 | }, 21 | }, 22 | methods: { 23 | onClick() { 24 | this.$emit('click'); 25 | }, 26 | }, 27 | }); 28 | -------------------------------------------------------------------------------- /miniprogram/components/dist/checkbox/index.wxs: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | var utils = require('../wxs/utils.wxs'); 3 | 4 | function iconStyle(checkedColor, value, disabled, parentDisabled, iconSize) { 5 | var styles = [['font-size', utils.addUnit(iconSize)]]; 6 | if (checkedColor && value && !disabled && !parentDisabled) { 7 | styles.push(['border-color', checkedColor]); 8 | styles.push(['background-color', checkedColor]); 9 | } 10 | 11 | return styles 12 | .map(function(item) { 13 | return item.join(':'); 14 | }) 15 | .join(';'); 16 | } 17 | 18 | module.exports = { 19 | iconStyle: iconStyle 20 | }; 21 | -------------------------------------------------------------------------------- /miniprogram/components/dist/notify/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 10 | 14 | 18 | {{ message }} 19 | 20 | 21 | -------------------------------------------------------------------------------- /miniprogram/components/dist/notify/notify.d.ts: -------------------------------------------------------------------------------- 1 | interface NotifyOptions { 2 | type?: 'primary' | 'success' | 'danger' | 'warning'; 3 | color?: string; 4 | zIndex?: number; 5 | top?: number; 6 | message: string; 7 | context?: any; 8 | duration?: number; 9 | selector?: string; 10 | background?: string; 11 | safeAreaInsetTop?: boolean; 12 | onClick?: () => void; 13 | onOpened?: () => void; 14 | onClose?: () => void; 15 | } 16 | declare function Notify(options: NotifyOptions | string): any; 17 | declare namespace Notify { 18 | var clear: (options?: NotifyOptions | undefined) => void; 19 | } 20 | export default Notify; 21 | -------------------------------------------------------------------------------- /miniprogram/components/dist/icon/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 14 | 20 | 21 | -------------------------------------------------------------------------------- /miniprogram/components/dist/empty/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | {{ description }} 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /miniprogram/components/dist/progress/index.js: -------------------------------------------------------------------------------- 1 | import { VantComponent } from '../common/component'; 2 | import { BLUE } from '../common/color'; 3 | VantComponent({ 4 | props: { 5 | inactive: Boolean, 6 | percentage: Number, 7 | pivotText: String, 8 | pivotColor: String, 9 | trackColor: String, 10 | showPivot: { 11 | type: Boolean, 12 | value: true, 13 | }, 14 | color: { 15 | type: String, 16 | value: BLUE, 17 | }, 18 | textColor: { 19 | type: String, 20 | value: '#fff', 21 | }, 22 | strokeWidth: { 23 | type: null, 24 | value: 4, 25 | }, 26 | }, 27 | }); 28 | -------------------------------------------------------------------------------- /miniprogram/components/dist/toast/index.js: -------------------------------------------------------------------------------- 1 | import { VantComponent } from '../common/component'; 2 | VantComponent({ 3 | props: { 4 | show: Boolean, 5 | mask: Boolean, 6 | message: String, 7 | forbidClick: Boolean, 8 | zIndex: { 9 | type: Number, 10 | value: 1000, 11 | }, 12 | type: { 13 | type: String, 14 | value: 'text', 15 | }, 16 | loadingType: { 17 | type: String, 18 | value: 'circular', 19 | }, 20 | position: { 21 | type: String, 22 | value: 'middle', 23 | }, 24 | }, 25 | methods: { 26 | // for prevent touchmove 27 | noop() {}, 28 | }, 29 | }); 30 | -------------------------------------------------------------------------------- /miniprogram/components/dist/goods-action-icon/index.js: -------------------------------------------------------------------------------- 1 | import { VantComponent } from '../common/component'; 2 | import { button } from '../mixins/button'; 3 | import { link } from '../mixins/link'; 4 | import { openType } from '../mixins/open-type'; 5 | VantComponent({ 6 | classes: ['icon-class', 'text-class'], 7 | mixins: [link, button, openType], 8 | props: { 9 | text: String, 10 | dot: Boolean, 11 | info: String, 12 | icon: String, 13 | disabled: Boolean, 14 | loading: Boolean, 15 | }, 16 | methods: { 17 | onClick(event) { 18 | this.$emit('click', event.detail); 19 | this.jumpLink(); 20 | }, 21 | }, 22 | }); 23 | -------------------------------------------------------------------------------- /miniprogram/components/dist/index-anchor/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-index-anchor{padding:0 16px;padding:var(--index-anchor-padding,0 16px);color:#323233;color:var(--index-anchor-text-color,#323233);font-weight:500;font-weight:var(--index-anchor-font-weight,500);font-size:14px;font-size:var(--index-anchor-font-size,14px);line-height:32px;line-height:var(--index-anchor-line-height,32px);background-color:initial;background-color:var(--index-anchor-background-color,transparent)}.van-index-anchor--active{right:0;left:0;color:#07c160;color:var(--index-anchor-active-text-color,#07c160);background-color:#fff;background-color:var(--index-anchor-active-background-color,#fff)} -------------------------------------------------------------------------------- /miniprogram/components/dist/index-bar/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 12 | 19 | {{ item }} 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /miniprogram/components/dist/uploader/shared.js: -------------------------------------------------------------------------------- 1 | // props for choose image 2 | export const chooseImageProps = { 3 | sizeType: { 4 | type: Array, 5 | value: ['original', 'compressed'], 6 | }, 7 | capture: { 8 | type: Array, 9 | value: ['album', 'camera'], 10 | }, 11 | }; 12 | // props for choose video 13 | export const chooseVideoProps = { 14 | capture: { 15 | type: Array, 16 | value: ['album', 'camera'], 17 | }, 18 | compressed: { 19 | type: Boolean, 20 | value: true, 21 | }, 22 | maxDuration: { 23 | type: Number, 24 | value: 60, 25 | }, 26 | camera: { 27 | type: String, 28 | value: 'back', 29 | }, 30 | }; 31 | -------------------------------------------------------------------------------- /miniprogram/components/dist/col/index.js: -------------------------------------------------------------------------------- 1 | import { VantComponent } from '../common/component'; 2 | VantComponent({ 3 | relation: { 4 | name: 'row', 5 | type: 'ancestor', 6 | current: 'col', 7 | }, 8 | props: { 9 | span: Number, 10 | offset: Number, 11 | }, 12 | data: { 13 | viewStyle: '', 14 | }, 15 | methods: { 16 | setGutter(gutter) { 17 | const padding = `${gutter / 2}px`; 18 | const viewStyle = gutter 19 | ? `padding-left: ${padding}; padding-right: ${padding};` 20 | : ''; 21 | if (viewStyle !== this.data.viewStyle) { 22 | this.setData({ viewStyle }); 23 | } 24 | }, 25 | }, 26 | }); 27 | -------------------------------------------------------------------------------- /miniprogram/components/dist/common/validator.d.ts: -------------------------------------------------------------------------------- 1 | export declare function isFunction(val: unknown): val is Function; 2 | export declare function isPlainObject( 3 | val: unknown 4 | ): val is Record; 5 | export declare function isPromise(val: unknown): val is Promise; 6 | export declare function isDef(value: any): boolean; 7 | export declare function isObj(x: unknown): x is Record; 8 | export declare function isNumber(value: string): boolean; 9 | export declare function isBoolean(value: unknown): value is boolean; 10 | export declare function isImageUrl(url: string): boolean; 11 | export declare function isVideoUrl(url: string): boolean; 12 | -------------------------------------------------------------------------------- /miniprogram/components/dist/loading/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 8 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /miniprogram/components/dist/sidebar-item/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 10 | 15 | {{ title }} 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /miniprogram/components/dist/calendar/utils.wxs: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | function getMonthEndDay(year, month) { 3 | return 32 - getDate(year, month - 1, 32).getDate(); 4 | } 5 | 6 | function compareMonth(date1, date2) { 7 | date1 = getDate(date1); 8 | date2 = getDate(date2); 9 | 10 | var year1 = date1.getFullYear(); 11 | var year2 = date2.getFullYear(); 12 | var month1 = date1.getMonth(); 13 | var month2 = date2.getMonth(); 14 | 15 | if (year1 === year2) { 16 | return month1 === month2 ? 0 : month1 > month2 ? 1 : -1; 17 | } 18 | 19 | return year1 > year2 ? 1 : -1; 20 | } 21 | 22 | module.exports = { 23 | getMonthEndDay: getMonthEndDay, 24 | compareMonth: compareMonth 25 | }; 26 | -------------------------------------------------------------------------------- /miniprogram/components/dist/empty/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-empty{display:-webkit-flex;display:flex;-webkit-flex-direction:column;flex-direction:column;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center;box-sizing:border-box;padding:32px 0}.van-empty__image{width:160px;height:160px}.van-empty__image:empty{display:none}.van-empty__image__img{width:100%;height:100%}.van-empty__image:not(:empty)+.van-empty__image{display:none}.van-empty__description{margin-top:16px;padding:0 60px;color:#969799;font-size:14px;line-height:20px}.van-empty__description:empty,.van-empty__description:not(:empty)+.van-empty__description{display:none}.van-empty__bottom{margin-top:24px} -------------------------------------------------------------------------------- /miniprogram/components/dist/divider/index.js: -------------------------------------------------------------------------------- 1 | import { VantComponent } from '../common/component'; 2 | VantComponent({ 3 | props: { 4 | dashed: { 5 | type: Boolean, 6 | value: false, 7 | }, 8 | hairline: { 9 | type: Boolean, 10 | value: false, 11 | }, 12 | contentPosition: { 13 | type: String, 14 | value: '', 15 | }, 16 | fontSize: { 17 | type: Number, 18 | value: '', 19 | }, 20 | borderColor: { 21 | type: String, 22 | value: '', 23 | }, 24 | textColor: { 25 | type: String, 26 | value: '', 27 | }, 28 | customStyle: { 29 | type: String, 30 | value: '', 31 | }, 32 | }, 33 | }); 34 | -------------------------------------------------------------------------------- /miniprogram/components/dist/swipe-cell/index.wxml: -------------------------------------------------------------------------------- 1 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /miniprogram/components/dist/uploader/shared.d.ts: -------------------------------------------------------------------------------- 1 | export declare const chooseImageProps: { 2 | sizeType: { 3 | type: ArrayConstructor; 4 | value: string[]; 5 | }; 6 | capture: { 7 | type: ArrayConstructor; 8 | value: string[]; 9 | }; 10 | }; 11 | export declare const chooseVideoProps: { 12 | capture: { 13 | type: ArrayConstructor; 14 | value: string[]; 15 | }; 16 | compressed: { 17 | type: BooleanConstructor; 18 | value: boolean; 19 | }; 20 | maxDuration: { 21 | type: NumberConstructor; 22 | value: number; 23 | }; 24 | camera: { 25 | type: StringConstructor; 26 | value: string; 27 | }; 28 | }; 29 | -------------------------------------------------------------------------------- /miniprogram/components/dist/mixins/open-type.js: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | export const openType = Behavior({ 3 | properties: { 4 | openType: String, 5 | }, 6 | methods: { 7 | bindGetUserInfo(event) { 8 | this.$emit('getuserinfo', event.detail); 9 | }, 10 | bindContact(event) { 11 | this.$emit('contact', event.detail); 12 | }, 13 | bindGetPhoneNumber(event) { 14 | this.$emit('getphonenumber', event.detail); 15 | }, 16 | bindError(event) { 17 | this.$emit('error', event.detail); 18 | }, 19 | bindLaunchApp(event) { 20 | this.$emit('launchapp', event.detail); 21 | }, 22 | bindOpenSetting(event) { 23 | this.$emit('opensetting', event.detail); 24 | }, 25 | }, 26 | }); 27 | -------------------------------------------------------------------------------- /miniprogram/components/dist/uploader/utils.d.ts: -------------------------------------------------------------------------------- 1 | export interface File { 2 | url: string; 3 | size?: number; 4 | name?: string; 5 | type: string; 6 | duration?: number; 7 | time?: number; 8 | isImage?: boolean; 9 | isVideo?: boolean; 10 | } 11 | export declare function isImageFile(item: File): boolean; 12 | export declare function isVideoFile(item: File): boolean; 13 | export declare function chooseFile({ 14 | accept, 15 | multiple, 16 | capture, 17 | compressed, 18 | maxDuration, 19 | sizeType, 20 | camera, 21 | maxCount, 22 | }: { 23 | accept: any; 24 | multiple: any; 25 | capture: any; 26 | compressed: any; 27 | maxDuration: any; 28 | sizeType: any; 29 | camera: any; 30 | maxCount: any; 31 | }): Promise; 32 | -------------------------------------------------------------------------------- /miniprogram/components/dist/goods-action/index.js: -------------------------------------------------------------------------------- 1 | import { VantComponent } from '../common/component'; 2 | VantComponent({ 3 | relation: { 4 | type: 'descendant', 5 | name: 'goods-action-button', 6 | current: 'goods-action', 7 | linked() { 8 | this.updateStyle(); 9 | }, 10 | unlinked() { 11 | this.updateStyle(); 12 | }, 13 | linkChanged() { 14 | this.updateStyle(); 15 | }, 16 | }, 17 | props: { 18 | safeAreaInsetBottom: { 19 | type: Boolean, 20 | value: true, 21 | }, 22 | }, 23 | methods: { 24 | updateStyle() { 25 | wx.nextTick(() => { 26 | this.children.forEach((child) => { 27 | child.updateStyle(); 28 | }); 29 | }); 30 | }, 31 | }, 32 | }); 33 | -------------------------------------------------------------------------------- /miniprogram/components/add-tips/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | {{text}} 5 | 6 | 7 | 8 | 9 | 10 | 第1步. 点击 11 | 12 | 13 | 14 | 第2步. 点击页面底部「添加到我的小程序」 15 | 16 | 17 | 第3步. 微信首页下拉,快速进入小程序 18 | 19 | 20 | 21 | 22 | 我知道了 23 | 24 | 25 | -------------------------------------------------------------------------------- /miniprogram/components/dist/notify/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-notify{text-align:center;word-wrap:break-word;padding:6px 15px;padding:var(--notify-padding,6px 15px);font-size:14px;font-size:var(--notify-font-size,14px);line-height:20px;line-height:var(--notify-line-height,20px)}.van-notify__container{position:fixed;top:0;box-sizing:border-box;width:100%}.van-notify--primary{background-color:#1989fa;background-color:var(--notify-primary-background-color,#1989fa)}.van-notify--success{background-color:#07c160;background-color:var(--notify-success-background-color,#07c160)}.van-notify--danger{background-color:#ee0a24;background-color:var(--notify-danger-background-color,#ee0a24)}.van-notify--warning{background-color:#ff976a;background-color:var(--notify-warning-background-color,#ff976a)} -------------------------------------------------------------------------------- /miniprogram/components/dist/progress/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 8 | 12 | 17 | {{ getters.text(pivotText, percentage) }} 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /miniprogram/components/dist/goods-action-icon/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-goods-action-icon{display:-webkit-flex!important;display:flex!important;-webkit-flex-direction:column;flex-direction:column;-webkit-justify-content:center!important;justify-content:center!important;line-height:1!important;border:none!important;font-size:10px!important;font-size:var(--goods-action-icon-font-size,10px)!important;color:#646566!important;color:var(--goods-action-icon-text-color,#646566)!important;min-width:48px;min-width:var(--goods-action-icon-width,48px);height:50px!important;height:var(--goods-action-icon-height,50px)!important}.van-goods-action-icon__icon{display:-webkit-flex;display:flex;margin:0 auto 5px;color:#323233;color:var(--goods-action-icon-color,#323233);font-size:18px;font-size:var(--goods-action-icon-size,18px)} -------------------------------------------------------------------------------- /miniprogram/components/dist/picker/toolbar.wxml: -------------------------------------------------------------------------------- 1 | 29 | -------------------------------------------------------------------------------- /miniprogram/components/dist/index-anchor/index.js: -------------------------------------------------------------------------------- 1 | import { VantComponent } from '../common/component'; 2 | VantComponent({ 3 | relation: { 4 | name: 'index-bar', 5 | type: 'ancestor', 6 | current: 'index-anchor', 7 | }, 8 | props: { 9 | useSlot: Boolean, 10 | index: null, 11 | }, 12 | data: { 13 | active: false, 14 | wrapperStyle: '', 15 | anchorStyle: '', 16 | }, 17 | methods: { 18 | scrollIntoView(scrollTop) { 19 | this.getBoundingClientRect().then((rect) => { 20 | wx.pageScrollTo({ 21 | duration: 0, 22 | scrollTop: scrollTop + rect.top - this.parent.data.stickyOffsetTop, 23 | }); 24 | }); 25 | }, 26 | getBoundingClientRect() { 27 | return this.getRect('.van-index-anchor-wrapper'); 28 | }, 29 | }, 30 | }); 31 | -------------------------------------------------------------------------------- /miniprogram/components/dist/tabbar-item/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';:host{-webkit-flex:1;flex:1}.van-tabbar-item{display:-webkit-flex;display:flex;-webkit-flex-direction:column;flex-direction:column;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center;height:100%;color:#646566;color:var(--tabbar-item-text-color,#646566);font-size:12px;font-size:var(--tabbar-item-font-size,12px);line-height:1;line-height:var(--tabbar-item-line-height,1)}.van-tabbar-item__icon{position:relative;margin-bottom:4px;margin-bottom:var(--tabbar-item-margin-bottom,4px);font-size:22px;font-size:var(--tabbar-item-icon-size,22px)}.van-tabbar-item__icon__inner{display:block;min-width:1em}.van-tabbar-item--active{color:#1989fa;color:var(--tabbar-item-active-color,#1989fa)}.van-tabbar-item__info{margin-top:2px} -------------------------------------------------------------------------------- /miniprogram/components/dist/sticky/index.wxs: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | function wrapStyle(data) { 3 | var style = ''; 4 | 5 | if (data.transform) { 6 | style += 'transform: translate3d(0, ' + data.transform + 'px, 0);'; 7 | } 8 | 9 | if (data.fixed) { 10 | style += 'top: ' + data.offsetTop + 'px;'; 11 | } 12 | 13 | if (data.zIndex) { 14 | style += 'z-index: ' + data.zIndex + ';'; 15 | } 16 | 17 | return style; 18 | } 19 | 20 | function containerStyle(data) { 21 | var style = ''; 22 | 23 | if (data.fixed) { 24 | style += 'height: ' + data.height + 'px;'; 25 | } 26 | 27 | if (data.zIndex) { 28 | style += 'z-index: ' + data.zIndex + ';'; 29 | } 30 | 31 | return style; 32 | } 33 | 34 | module.exports = { 35 | wrapStyle: wrapStyle, 36 | containerStyle: containerStyle 37 | }; 38 | -------------------------------------------------------------------------------- /miniprogram/components/dist/steps/index.js: -------------------------------------------------------------------------------- 1 | import { VantComponent } from '../common/component'; 2 | import { GREEN, GRAY_DARK } from '../common/color'; 3 | VantComponent({ 4 | classes: ['desc-class'], 5 | props: { 6 | icon: String, 7 | steps: Array, 8 | active: Number, 9 | direction: { 10 | type: String, 11 | value: 'horizontal', 12 | }, 13 | activeColor: { 14 | type: String, 15 | value: GREEN, 16 | }, 17 | inactiveColor: { 18 | type: String, 19 | value: GRAY_DARK, 20 | }, 21 | activeIcon: { 22 | type: String, 23 | value: 'checked', 24 | }, 25 | inactiveIcon: String, 26 | }, 27 | methods: { 28 | onClick(event) { 29 | const { index } = event.currentTarget.dataset; 30 | this.$emit('click-step', index); 31 | }, 32 | }, 33 | }); 34 | -------------------------------------------------------------------------------- /miniprogram/components/dist/share-sheet/options.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 12 | 15 | {{ item.name }} 16 | 17 | {{ item.description }} 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /miniprogram/components/dist/dropdown-menu/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 12 | 16 | 17 | {{ computed.displayTitle(item) }} 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /miniprogram/components/dist/mixins/basic.js: -------------------------------------------------------------------------------- 1 | export const basic = Behavior({ 2 | methods: { 3 | $emit(name, detail, options) { 4 | this.triggerEvent(name, detail, options); 5 | }, 6 | set(data, callback) { 7 | this.setData(data, callback); 8 | return new Promise((resolve) => wx.nextTick(resolve)); 9 | }, 10 | getRect(selector, all) { 11 | return new Promise((resolve) => { 12 | wx.createSelectorQuery() 13 | .in(this) 14 | [all ? 'selectAll' : 'select'](selector) 15 | .boundingClientRect((rect) => { 16 | if (all && Array.isArray(rect) && rect.length) { 17 | resolve(rect); 18 | } 19 | if (!all && rect) { 20 | resolve(rect); 21 | } 22 | }) 23 | .exec(); 24 | }); 25 | }, 26 | }, 27 | }); 28 | -------------------------------------------------------------------------------- /miniprogram/components/dist/tabbar-item/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | 14 | 15 | 19 | 20 | 21 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /miniprogram/components/dist/calendar/utils.d.ts: -------------------------------------------------------------------------------- 1 | export declare const ROW_HEIGHT = 64; 2 | export declare function formatMonthTitle(date: Date): string; 3 | export declare function compareMonth( 4 | date1: Date | number, 5 | date2: Date | number 6 | ): 0 | 1 | -1; 7 | export declare function compareDay( 8 | day1: Date | number, 9 | day2: Date | number 10 | ): 0 | 1 | -1; 11 | export declare function getDayByOffset(date: Date, offset: number): Date; 12 | export declare function getPrevDay(date: Date): Date; 13 | export declare function getNextDay(date: Date): Date; 14 | export declare function calcDateNum(date: [Date, Date]): number; 15 | export declare function copyDates(dates: Date | Date[]): Date | Date[]; 16 | export declare function getMonthEndDay(year: number, month: number): number; 17 | export declare function getMonths(minDate: number, maxDate: number): number[]; 18 | -------------------------------------------------------------------------------- /miniprogram/components/dist/radio-group/index.js: -------------------------------------------------------------------------------- 1 | import { VantComponent } from '../common/component'; 2 | VantComponent({ 3 | field: true, 4 | relation: { 5 | name: 'radio', 6 | type: 'descendant', 7 | current: 'radio-group', 8 | linked(target) { 9 | this.updateChild(target); 10 | }, 11 | }, 12 | props: { 13 | value: { 14 | type: null, 15 | observer: 'updateChildren', 16 | }, 17 | disabled: { 18 | type: Boolean, 19 | observer: 'updateChildren', 20 | }, 21 | }, 22 | methods: { 23 | updateChildren() { 24 | (this.children || []).forEach((child) => this.updateChild(child)); 25 | }, 26 | updateChild(child) { 27 | const { value, disabled } = this.data; 28 | child.setData({ 29 | value, 30 | disabled: disabled || child.data.disabled, 31 | }); 32 | }, 33 | }, 34 | }); 35 | -------------------------------------------------------------------------------- /miniprogram/components/dist/sidebar-item/index.js: -------------------------------------------------------------------------------- 1 | import { VantComponent } from '../common/component'; 2 | VantComponent({ 3 | classes: ['active-class', 'disabled-class'], 4 | relation: { 5 | type: 'ancestor', 6 | name: 'sidebar', 7 | current: 'sidebar-item', 8 | }, 9 | props: { 10 | dot: Boolean, 11 | badge: null, 12 | info: null, 13 | title: String, 14 | disabled: Boolean, 15 | }, 16 | methods: { 17 | onClick() { 18 | const { parent } = this; 19 | if (!parent || this.data.disabled) { 20 | return; 21 | } 22 | const index = parent.children.indexOf(this); 23 | parent.setActive(index).then(() => { 24 | this.$emit('click', index); 25 | parent.$emit('change', index); 26 | }); 27 | }, 28 | setActive(selected) { 29 | return this.setData({ selected }); 30 | }, 31 | }, 32 | }); 33 | -------------------------------------------------------------------------------- /miniprogram/components/dist/calendar/index.wxs: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | var utils = require('./utils.wxs'); 3 | 4 | function getMonths(minDate, maxDate) { 5 | var months = []; 6 | var cursor = getDate(minDate); 7 | 8 | cursor.setDate(1); 9 | 10 | do { 11 | months.push(cursor.getTime()); 12 | cursor.setMonth(cursor.getMonth() + 1); 13 | } while (utils.compareMonth(cursor, getDate(maxDate)) !== 1); 14 | 15 | return months; 16 | } 17 | 18 | function getButtonDisabled(type, currentDate) { 19 | if (currentDate == null) { 20 | return true; 21 | } 22 | 23 | if (type === 'range') { 24 | return !currentDate[0] || !currentDate[1]; 25 | } 26 | 27 | if (type === 'multiple') { 28 | return !currentDate.length; 29 | } 30 | 31 | return !currentDate; 32 | } 33 | 34 | module.exports = { 35 | getMonths: getMonths, 36 | getButtonDisabled: getButtonDisabled 37 | }; 38 | -------------------------------------------------------------------------------- /miniprogram/components/dist/checkbox/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /miniprogram/components/dist/common/style/hairline.wxss: -------------------------------------------------------------------------------- 1 | .van-hairline,.van-hairline--bottom,.van-hairline--left,.van-hairline--right,.van-hairline--surround,.van-hairline--top,.van-hairline--top-bottom{position:relative}.van-hairline--bottom:after,.van-hairline--left:after,.van-hairline--right:after,.van-hairline--surround:after,.van-hairline--top-bottom:after,.van-hairline--top:after,.van-hairline:after{position:absolute;box-sizing:border-box;-webkit-transform-origin:center;transform-origin:center;content:" ";pointer-events:none;top:-50%;right:-50%;bottom:-50%;left:-50%;border:0 solid #ebedf0;-webkit-transform:scale(.5);transform:scale(.5)}.van-hairline--top:after{border-top-width:1px}.van-hairline--left:after{border-left-width:1px}.van-hairline--right:after{border-right-width:1px}.van-hairline--bottom:after{border-bottom-width:1px}.van-hairline--top-bottom:after{border-width:1px 0}.van-hairline--surround:after{border-width:1px} -------------------------------------------------------------------------------- /miniprogram/components/dist/share-sheet/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-share-sheet__header{padding:12px 16px 4px;text-align:center}.van-share-sheet__title{margin-top:8px;color:#323233;font-weight:400;font-size:14px;line-height:20px}.van-share-sheet__title:empty,.van-share-sheet__title:not(:empty)+.van-share-sheet__title{display:none}.van-share-sheet__description{display:block;margin-top:8px;color:#969799;font-size:12px;line-height:16px}.van-share-sheet__description:empty,.van-share-sheet__description:not(:empty)+.van-share-sheet__description{display:none}.van-share-sheet__cancel{display:block;box-sizing:initial;width:100%;height:auto;padding:0;font-size:16px;line-height:48px;text-align:center;background:#fff;border:none}.van-share-sheet__cancel:before{display:block;height:8px;background-color:#f7f8fa;content:" "}.van-share-sheet__cancel:after{display:none}.van-share-sheet__cancel:active{background-color:#f2f3f5} -------------------------------------------------------------------------------- /miniprogram/components/dist/slider/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 13 | 20 | 24 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /miniprogram/components/dist/common/version.js: -------------------------------------------------------------------------------- 1 | import { getSystemInfoSync } from './utils'; 2 | function compareVersion(v1, v2) { 3 | v1 = v1.split('.'); 4 | v2 = v2.split('.'); 5 | const len = Math.max(v1.length, v2.length); 6 | while (v1.length < len) { 7 | v1.push('0'); 8 | } 9 | while (v2.length < len) { 10 | v2.push('0'); 11 | } 12 | for (let i = 0; i < len; i++) { 13 | const num1 = parseInt(v1[i], 10); 14 | const num2 = parseInt(v2[i], 10); 15 | if (num1 > num2) { 16 | return 1; 17 | } 18 | if (num1 < num2) { 19 | return -1; 20 | } 21 | } 22 | return 0; 23 | } 24 | export function canIUseModel() { 25 | const system = getSystemInfoSync(); 26 | return compareVersion(system.SDKVersion, '2.9.3') >= 0; 27 | } 28 | export function canIUseFormFieldButton() { 29 | const system = getSystemInfoSync(); 30 | return compareVersion(system.SDKVersion, '2.10.3') >= 0; 31 | } 32 | -------------------------------------------------------------------------------- /miniprogram/components/dist/progress/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-progress{position:relative;height:4px;height:var(--progress-height,4px);border-radius:4px;border-radius:var(--progress-height,4px);background:#ebedf0;background:var(--progress-background-color,#ebedf0)}.van-progress__portion{position:absolute;left:0;height:100%;border-radius:inherit;background:#1989fa;background:var(--progress-color,#1989fa)}.van-progress__pivot{position:absolute;top:50%;right:0;box-sizing:border-box;min-width:2em;text-align:center;word-break:keep-all;border-radius:1em;-webkit-transform:translateY(-50%);transform:translateY(-50%);color:#fff;color:var(--progress-pivot-text-color,#fff);padding:0 5px;padding:var(--progress-pivot-padding,0 5px);font-size:10px;font-size:var(--progress-pivot-font-size,10px);line-height:1.6;line-height:var(--progress-pivot-line-height,1.6);background-color:#1989fa;background-color:var(--progress-pivot-background-color,#1989fa)} -------------------------------------------------------------------------------- /miniprogram/components/dist/cell/index.js: -------------------------------------------------------------------------------- 1 | import { link } from '../mixins/link'; 2 | import { VantComponent } from '../common/component'; 3 | VantComponent({ 4 | classes: [ 5 | 'title-class', 6 | 'label-class', 7 | 'value-class', 8 | 'right-icon-class', 9 | 'hover-class', 10 | ], 11 | mixins: [link], 12 | props: { 13 | title: null, 14 | value: null, 15 | icon: String, 16 | size: String, 17 | label: String, 18 | center: Boolean, 19 | isLink: Boolean, 20 | required: Boolean, 21 | clickable: Boolean, 22 | titleWidth: String, 23 | customStyle: String, 24 | arrowDirection: String, 25 | useLabelSlot: Boolean, 26 | border: { 27 | type: Boolean, 28 | value: true, 29 | }, 30 | titleStyle: String, 31 | }, 32 | methods: { 33 | onClick(event) { 34 | this.$emit('click', event.detail); 35 | this.jumpLink(); 36 | }, 37 | }, 38 | }); 39 | -------------------------------------------------------------------------------- /miniprogram/components/dist/checkbox-group/index.js: -------------------------------------------------------------------------------- 1 | import { VantComponent } from '../common/component'; 2 | VantComponent({ 3 | field: true, 4 | relation: { 5 | name: 'checkbox', 6 | type: 'descendant', 7 | current: 'checkbox-group', 8 | linked(target) { 9 | this.updateChild(target); 10 | }, 11 | }, 12 | props: { 13 | max: Number, 14 | value: { 15 | type: Array, 16 | observer: 'updateChildren', 17 | }, 18 | disabled: { 19 | type: Boolean, 20 | observer: 'updateChildren', 21 | }, 22 | }, 23 | methods: { 24 | updateChildren() { 25 | (this.children || []).forEach((child) => this.updateChild(child)); 26 | }, 27 | updateChild(child) { 28 | const { value, disabled } = this.data; 29 | child.setData({ 30 | value: value.indexOf(child.data.name) !== -1, 31 | parentDisabled: disabled, 32 | }); 33 | }, 34 | }, 35 | }); 36 | -------------------------------------------------------------------------------- /miniprogram/components/dist/slider/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-slider{position:relative;border-radius:999px;border-radius:var(--border-radius-max,999px);background-color:#ebedf0;background-color:var(--slider-inactive-background-color,#ebedf0)}.van-slider:before{position:absolute;right:0;left:0;content:"";top:-8px;top:-var(--padding-xs,8px);bottom:-8px;bottom:-var(--padding-xs,8px)}.van-slider__bar{position:relative;border-radius:inherit;transition:width .2s;transition:width var(--animation-duration-fast,.2s);background-color:#1989fa;background-color:var(--slider-active-background-color,#1989fa)}.van-slider__button{width:24px;height:24px;border-radius:50%;box-shadow:0 1px 2px rgba(0,0,0,.5);background-color:#fff;background-color:var(--slider-button-background-color,#fff)}.van-slider__button-wrapper{position:absolute;top:50%;right:0;-webkit-transform:translate3d(50%,-50%,0);transform:translate3d(50%,-50%,0)}.van-slider--disabled{opacity:.5} -------------------------------------------------------------------------------- /miniprogram/components/dist/calendar/components/header/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../../../common/index.wxss';.van-calendar__header{-webkit-flex-shrink:0;flex-shrink:0;box-shadow:0 2px 10px rgba(125,126,128,.16);box-shadow:var(--calendar-header-box-shadow,0 2px 10px rgba(125,126,128,.16))}.van-calendar__header-subtitle,.van-calendar__header-title{text-align:center;height:44px;height:var(--calendar-header-title-height,44px);font-weight:500;font-weight:var(--font-weight-bold,500);line-height:44px;line-height:var(--calendar-header-title-height,44px)}.van-calendar__header-title+.van-calendar__header-title,.van-calendar__header-title:empty{display:none}.van-calendar__header-title:empty+.van-calendar__header-title{display:block!important}.van-calendar__weekdays{display:-webkit-flex;display:flex}.van-calendar__weekday{-webkit-flex:1;flex:1;text-align:center;font-size:12px;font-size:var(--calendar-weekdays-font-size,12px);line-height:30px;line-height:var(--calendar-weekdays-height,30px)} -------------------------------------------------------------------------------- /miniprogram/components/dist/popup/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 11 | 17 | 18 | 24 | 25 | -------------------------------------------------------------------------------- /miniprogram/components/dist/wxs/bem.wxs: -------------------------------------------------------------------------------- 1 | var array = require('./array.wxs'); 2 | var object = require('./object.wxs'); 3 | var PREFIX = 'van-'; 4 | 5 | function join(name, mods) { 6 | name = PREFIX + name; 7 | mods = mods.map(function(mod) { 8 | return name + '--' + mod; 9 | }); 10 | mods.unshift(name); 11 | return mods.join(' '); 12 | } 13 | 14 | function traversing(mods, conf) { 15 | if (!conf) { 16 | return; 17 | } 18 | 19 | if (typeof conf === 'string' || typeof conf === 'number') { 20 | mods.push(conf); 21 | } else if (array.isArray(conf)) { 22 | conf.forEach(function(item) { 23 | traversing(mods, item); 24 | }); 25 | } else if (typeof conf === 'object') { 26 | object.keys(conf).forEach(function(key) { 27 | conf[key] && mods.push(key); 28 | }); 29 | } 30 | } 31 | 32 | function bem(name, conf) { 33 | var mods = []; 34 | traversing(mods, conf); 35 | return join(name, mods); 36 | } 37 | 38 | module.exports.bem = bem; 39 | -------------------------------------------------------------------------------- /miniprogram/components/dist/skeleton/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 12 | 13 | 18 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /miniprogram/components/dist/grid-item/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | {{ text }} 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /miniprogram/components/dist/row/index.js: -------------------------------------------------------------------------------- 1 | import { VantComponent } from '../common/component'; 2 | VantComponent({ 3 | relation: { 4 | name: 'col', 5 | type: 'descendant', 6 | current: 'row', 7 | linked(target) { 8 | if (this.data.gutter) { 9 | target.setGutter(this.data.gutter); 10 | } 11 | }, 12 | }, 13 | props: { 14 | gutter: { 15 | type: Number, 16 | observer: 'setGutter', 17 | }, 18 | }, 19 | data: { 20 | viewStyle: '', 21 | }, 22 | mounted() { 23 | if (this.data.gutter) { 24 | this.setGutter(); 25 | } 26 | }, 27 | methods: { 28 | setGutter() { 29 | const { gutter } = this.data; 30 | const margin = `-${Number(gutter) / 2}px`; 31 | const viewStyle = gutter 32 | ? `margin-right: ${margin}; margin-left: ${margin};` 33 | : ''; 34 | this.setData({ viewStyle }); 35 | this.getRelationNodes('../col/index').forEach((col) => { 36 | col.setGutter(this.data.gutter); 37 | }); 38 | }, 39 | }, 40 | }); 41 | -------------------------------------------------------------------------------- /miniprogram/components/dist/picker-column/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 11 | 12 | {{ getOptionText(option, valueKey) }} 21 | 22 | 23 | -------------------------------------------------------------------------------- /miniprogram/components/dist/common/utils.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | export declare function isDef(value: any): boolean; 3 | export declare function isObj(x: any): boolean; 4 | export declare function range(num: number, min: number, max: number): number; 5 | export declare function nextTick(fn: Function): void; 6 | export declare function getSystemInfoSync(): WechatMiniprogram.GetSystemInfoSyncResult; 7 | export declare function addUnit(value?: string | number): string | undefined; 8 | export declare function requestAnimationFrame( 9 | cb: Function 10 | ): void | WechatMiniprogram.NodesRef; 11 | export declare function pickExclude(obj: unknown, keys: string[]): {}; 12 | export declare function getRect( 13 | this: WechatMiniprogram.Component.TrivialInstance, 14 | selector: string 15 | ): Promise; 16 | export declare function getAllRect( 17 | this: WechatMiniprogram.Component.TrivialInstance, 18 | selector: string 19 | ): Promise; 20 | -------------------------------------------------------------------------------- /miniprogram/components/dist/image/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 18 | 19 | 23 | 24 | 25 | 26 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /miniprogram/components/dist/info/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-info{position:absolute;top:0;right:0;box-sizing:border-box;line-height:1.2;white-space:nowrap;text-align:center;-webkit-transform:translate(50%,-50%);transform:translate(50%,-50%);-webkit-transform-origin:100%;transform-origin:100%;min-width:16px;min-width:var(--info-size,16px);padding:0 3px;padding:var(--info-padding,0 3px);color:#fff;color:var(--info-color,#fff);font-weight:500;font-weight:var(--info-font-weight,500);font-size:12px;font-size:var(--info-font-size,12px);font-family:-apple-system-font,Helvetica Neue,Arial,sans-serif;font-family:var(--info-font-family,-apple-system-font,Helvetica Neue,Arial,sans-serif);background-color:#ee0a24;background-color:var(--info-background-color,#ee0a24);border:1px solid #fff;border:var(--info-border-width,1px) solid var(--white,#fff);border-radius:16px;border-radius:var(--info-size,16px)}.van-info--dot{min-width:0;border-radius:100%;width:8px;width:var(--info-dot-size,8px);height:8px;height:var(--info-dot-size,8px);background-color:#ee0a24;background-color:var(--info-dot-color,#ee0a24)} -------------------------------------------------------------------------------- /miniprogram/components/dist/image/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-image{position:relative;display:inline-block}.van-image--round{overflow:hidden;border-radius:50%}.van-image--round .van-image__img{border-radius:inherit}.van-image__error,.van-image__img,.van-image__loading{display:block;width:100%;height:100%}.van-image__error,.van-image__loading{position:absolute;top:0;left:0;display:-webkit-flex;display:flex;-webkit-flex-direction:column;flex-direction:column;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center;color:#969799;color:var(--image-placeholder-text-color,#969799);font-size:14px;font-size:var(--image-placeholder-font-size,14px);background-color:#f7f8fa;background-color:var(--image-placeholder-background-color,#f7f8fa)}.van-image__loading-icon{color:#dcdee0;color:var(--image-loading-icon-color,#dcdee0);font-size:32px!important;font-size:var(--image-loading-icon-size,32px)!important}.van-image__error-icon{color:#dcdee0;color:var(--image-error-icon-color,#dcdee0);font-size:32px!important;font-size:var(--image-error-icon-size,32px)!important} -------------------------------------------------------------------------------- /miniprogram/components/dist/toast/index.wxml: -------------------------------------------------------------------------------- 1 | 7 | 12 | 16 | 17 | {{ message }} 18 | 19 | 20 | 21 | 27 | 28 | {{ message }} 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /miniprogram/components/dist/common/validator.js: -------------------------------------------------------------------------------- 1 | export function isFunction(val) { 2 | return typeof val === 'function'; 3 | } 4 | export function isPlainObject(val) { 5 | return val !== null && typeof val === 'object' && !Array.isArray(val); 6 | } 7 | export function isPromise(val) { 8 | return isPlainObject(val) && isFunction(val.then) && isFunction(val.catch); 9 | } 10 | export function isDef(value) { 11 | return value !== undefined && value !== null; 12 | } 13 | export function isObj(x) { 14 | const type = typeof x; 15 | return x !== null && (type === 'object' || type === 'function'); 16 | } 17 | export function isNumber(value) { 18 | return /^\d+(\.\d+)?$/.test(value); 19 | } 20 | export function isBoolean(value) { 21 | return typeof value === 'boolean'; 22 | } 23 | const IMAGE_REGEXP = /\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i; 24 | const VIDEO_REGEXP = /\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv)/i; 25 | export function isImageUrl(url) { 26 | return IMAGE_REGEXP.test(url); 27 | } 28 | export function isVideoUrl(url) { 29 | return VIDEO_REGEXP.test(url); 30 | } 31 | -------------------------------------------------------------------------------- /miniprogram/components/dist/skeleton/index.js: -------------------------------------------------------------------------------- 1 | import { VantComponent } from '../common/component'; 2 | VantComponent({ 3 | classes: ['avatar-class', 'title-class', 'row-class'], 4 | props: { 5 | row: { 6 | type: Number, 7 | value: 0, 8 | observer(value) { 9 | this.setData({ rowArray: Array.from({ length: value }) }); 10 | }, 11 | }, 12 | title: Boolean, 13 | avatar: Boolean, 14 | loading: { 15 | type: Boolean, 16 | value: true, 17 | }, 18 | animate: { 19 | type: Boolean, 20 | value: true, 21 | }, 22 | avatarSize: { 23 | type: String, 24 | value: '32px', 25 | }, 26 | avatarShape: { 27 | type: String, 28 | value: 'round', 29 | }, 30 | titleWidth: { 31 | type: String, 32 | value: '40%', 33 | }, 34 | rowWidth: { 35 | type: null, 36 | value: '100%', 37 | observer(val) { 38 | this.setData({ isArray: val instanceof Array }); 39 | }, 40 | }, 41 | }, 42 | data: { 43 | isArray: false, 44 | rowArray: [], 45 | }, 46 | }); 47 | -------------------------------------------------------------------------------- /miniprogram/components/dist/goods-action-button/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 28 | {{ text }} 29 | 30 | 31 | -------------------------------------------------------------------------------- /miniprogram/components/dist/tree-select/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-tree-select{position:relative;display:-webkit-flex;display:flex;-webkit-user-select:none;user-select:none;font-size:14px;font-size:var(--tree-select-font-size,14px)}.van-tree-select__nav{-webkit-flex:1;flex:1;background-color:#f7f8fa;background-color:var(--tree-select-nav-background-color,#f7f8fa);--sidebar-padding:12px 8px 12px 12px}.van-tree-select__nav__inner{width:100%!important;height:100%}.van-tree-select__content{-webkit-flex:2;flex:2;background-color:#fff;background-color:var(--tree-select-content-background-color,#fff)}.van-tree-select__item{position:relative;font-weight:700;padding:0 32px 0 16px;padding:0 32px 0 var(--padding-md,16px);line-height:44px;line-height:var(--tree-select-item-height,44px)}.van-tree-select__item--active{color:#ee0a24;color:var(--tree-select-item-active-color,#ee0a24)}.van-tree-select__item--disabled{color:#c8c9cc;color:var(--tree-select-item-disabled-color,#c8c9cc)}.van-tree-select__selected{position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);right:16px;right:var(--padding-md,16px)} -------------------------------------------------------------------------------- /miniprogram/components/dist/definitions/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | import { Weapp } from './weapp'; 3 | declare type RecordToAny = { 4 | [K in keyof T]: any; 5 | }; 6 | export declare type CombinedComponentInstance = Methods & 7 | WechatMiniprogram.Component.TrivialInstance & 8 | Weapp.FormField & { 9 | data: Data & RecordToAny; 10 | }; 11 | export interface VantComponentOptions { 12 | data?: Data; 13 | field?: boolean; 14 | classes?: string[]; 15 | mixins?: string[]; 16 | props?: Props & Weapp.PropertyOption; 17 | relation?: Weapp.RelationOption & { 18 | type: 'ancestor' | 'descendant'; 19 | name: string; 20 | current: string; 21 | }; 22 | relations?: { 23 | [componentName: string]: Weapp.RelationOption; 24 | }; 25 | methods?: Methods & Weapp.MethodOption; 26 | beforeCreate?: (this: Instance) => void; 27 | created?: (this: Instance) => void; 28 | mounted?: (this: Instance) => void; 29 | destroyed?: (this: Instance) => void; 30 | } 31 | export {}; 32 | -------------------------------------------------------------------------------- /miniprogram/components/dist/mixins/touch.js: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | const MIN_DISTANCE = 10; 3 | function getDirection(x, y) { 4 | if (x > y && x > MIN_DISTANCE) { 5 | return 'horizontal'; 6 | } 7 | if (y > x && y > MIN_DISTANCE) { 8 | return 'vertical'; 9 | } 10 | return ''; 11 | } 12 | export const touch = Behavior({ 13 | methods: { 14 | resetTouchStatus() { 15 | this.direction = ''; 16 | this.deltaX = 0; 17 | this.deltaY = 0; 18 | this.offsetX = 0; 19 | this.offsetY = 0; 20 | }, 21 | touchStart(event) { 22 | this.resetTouchStatus(); 23 | const touch = event.touches[0]; 24 | this.startX = touch.clientX; 25 | this.startY = touch.clientY; 26 | }, 27 | touchMove(event) { 28 | const touch = event.touches[0]; 29 | this.deltaX = touch.clientX - this.startX; 30 | this.deltaY = touch.clientY - this.startY; 31 | this.offsetX = Math.abs(this.deltaX); 32 | this.offsetY = Math.abs(this.deltaY); 33 | this.direction = 34 | this.direction || getDirection(this.offsetX, this.offsetY); 35 | }, 36 | }, 37 | }); 38 | -------------------------------------------------------------------------------- /miniprogram/components/dist/circle/canvas.js: -------------------------------------------------------------------------------- 1 | export function adaptor(ctx) { 2 | // @ts-ignore 3 | return Object.assign(ctx, { 4 | setStrokeStyle(val) { 5 | ctx.strokeStyle = val; 6 | }, 7 | setLineWidth(val) { 8 | ctx.lineWidth = val; 9 | }, 10 | setLineCap(val) { 11 | ctx.lineCap = val; 12 | }, 13 | setFillStyle(val) { 14 | ctx.fillStyle = val; 15 | }, 16 | setFontSize(val) { 17 | ctx.font = String(val); 18 | }, 19 | setGlobalAlpha(val) { 20 | ctx.globalAlpha = val; 21 | }, 22 | setLineJoin(val) { 23 | ctx.lineJoin = val; 24 | }, 25 | setTextAlign(val) { 26 | ctx.textAlign = val; 27 | }, 28 | setMiterLimit(val) { 29 | ctx.miterLimit = val; 30 | }, 31 | setShadow(offsetX, offsetY, blur, color) { 32 | ctx.shadowOffsetX = offsetX; 33 | ctx.shadowOffsetY = offsetY; 34 | ctx.shadowBlur = blur; 35 | ctx.shadowColor = color; 36 | }, 37 | setTextBaseline(val) { 38 | ctx.textBaseline = val; 39 | }, 40 | createCircularGradient() {}, 41 | draw() {}, 42 | }); 43 | } 44 | -------------------------------------------------------------------------------- /miniprogram/components/dist/share-sheet/options.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-share-sheet__options{position:relative;display:-webkit-flex;display:flex;padding:16px 0 16px 8px;overflow-x:auto;overflow-y:visible;-webkit-overflow-scrolling:touch}.van-share-sheet__options--border:before{position:absolute;box-sizing:border-box;-webkit-transform-origin:center;transform-origin:center;content:" ";pointer-events:none;top:0;right:0;left:16px;border-top:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.van-share-sheet__options::-webkit-scrollbar{height:0}.van-share-sheet__option{display:-webkit-flex;display:flex;-webkit-flex-direction:column;flex-direction:column;-webkit-align-items:center;align-items:center;-webkit-user-select:none;user-select:none}.van-share-sheet__option:active{opacity:.7}.van-share-sheet__button{height:auto;padding:0;line-height:inherit;background-color:initial;border:0}.van-share-sheet__button:after{border:0}.van-share-sheet__icon{width:48px;height:48px;margin:0 16px}.van-share-sheet__name{margin-top:8px;padding:0 4px;color:#646566;font-size:12px}.van-share-sheet__option-description{padding:0 4px;color:#c8c9cc;font-size:12px} -------------------------------------------------------------------------------- /miniprogram/components/dist/goods-action-icon/index.wxml: -------------------------------------------------------------------------------- 1 | 25 | 33 | 34 | {{ text }} 35 | 36 | -------------------------------------------------------------------------------- /miniprogram/components/dist/goods-action-button/index.js: -------------------------------------------------------------------------------- 1 | import { VantComponent } from '../common/component'; 2 | import { link } from '../mixins/link'; 3 | import { button } from '../mixins/button'; 4 | import { openType } from '../mixins/open-type'; 5 | VantComponent({ 6 | mixins: [link, button, openType], 7 | relation: { 8 | type: 'ancestor', 9 | name: 'goods-action', 10 | current: 'goods-action-button', 11 | }, 12 | props: { 13 | text: String, 14 | color: String, 15 | loading: Boolean, 16 | disabled: Boolean, 17 | plain: Boolean, 18 | type: { 19 | type: String, 20 | value: 'danger', 21 | }, 22 | }, 23 | methods: { 24 | onClick(event) { 25 | this.$emit('click', event.detail); 26 | this.jumpLink(); 27 | }, 28 | updateStyle() { 29 | if (this.parent == null) { 30 | return; 31 | } 32 | const { children = [] } = this.parent; 33 | const { length } = children; 34 | const index = children.indexOf(this); 35 | this.setData({ 36 | isFirst: index === 0, 37 | isLast: index === length - 1, 38 | }); 39 | }, 40 | }, 41 | }); 42 | -------------------------------------------------------------------------------- /miniprogram/components/dist/mixins/page-scroll.js: -------------------------------------------------------------------------------- 1 | function getCurrentPage() { 2 | const pages = getCurrentPages(); 3 | return pages[pages.length - 1] || {}; 4 | } 5 | function onPageScroll(event) { 6 | const { vanPageScroller = [] } = getCurrentPage(); 7 | vanPageScroller.forEach((scroller) => { 8 | if (typeof scroller === 'function') { 9 | // @ts-ignore 10 | scroller(event); 11 | } 12 | }); 13 | } 14 | export const pageScrollMixin = (scroller) => 15 | Behavior({ 16 | attached() { 17 | const page = getCurrentPage(); 18 | if (Array.isArray(page.vanPageScroller)) { 19 | page.vanPageScroller.push(scroller.bind(this)); 20 | } else { 21 | page.vanPageScroller = 22 | typeof page.onPageScroll === 'function' 23 | ? [page.onPageScroll.bind(page), scroller.bind(this)] 24 | : [scroller.bind(this)]; 25 | } 26 | page.onPageScroll = onPageScroll; 27 | }, 28 | detached() { 29 | const page = getCurrentPage(); 30 | page.vanPageScroller = (page.vanPageScroller || []).filter( 31 | (item) => item !== scroller 32 | ); 33 | }, 34 | }); 35 | -------------------------------------------------------------------------------- /miniprogram/components/dist/skeleton/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-skeleton{display:-webkit-flex;display:flex;box-sizing:border-box;width:100%;padding:0 16px;padding:var(--skeleton-padding,0 16px)}.van-skeleton__avatar{-webkit-flex-shrink:0;flex-shrink:0;margin-right:16px;margin-right:var(--padding-md,16px);background-color:#f2f3f5;background-color:var(--skeleton-avatar-background-color,#f2f3f5)}.van-skeleton__avatar--round{border-radius:100%}.van-skeleton__content{-webkit-flex:1;flex:1}.van-skeleton__avatar+.van-skeleton__content{padding-top:8px;padding-top:var(--padding-xs,8px)}.van-skeleton__row,.van-skeleton__title{height:16px;height:var(--skeleton-row-height,16px);background-color:#f2f3f5;background-color:var(--skeleton-row-background-color,#f2f3f5)}.van-skeleton__title{margin:0}.van-skeleton__row:not(:first-child){margin-top:12px;margin-top:var(--skeleton-row-margin-top,12px)}.van-skeleton__title+.van-skeleton__row{margin-top:20px}.van-skeleton--animate{-webkit-animation:van-skeleton-blink 1.2s ease-in-out infinite;animation:van-skeleton-blink 1.2s ease-in-out infinite}@-webkit-keyframes van-skeleton-blink{50%{opacity:.6}}@keyframes van-skeleton-blink{50%{opacity:.6}} -------------------------------------------------------------------------------- /miniprogram/components/dist/sidebar/index.js: -------------------------------------------------------------------------------- 1 | import { VantComponent } from '../common/component'; 2 | VantComponent({ 3 | relation: { 4 | name: 'sidebar-item', 5 | type: 'descendant', 6 | current: 'sidebar', 7 | linked() { 8 | this.setActive(this.data.activeKey); 9 | }, 10 | unlinked() { 11 | this.setActive(this.data.activeKey); 12 | }, 13 | }, 14 | props: { 15 | activeKey: { 16 | type: Number, 17 | value: 0, 18 | observer: 'setActive', 19 | }, 20 | }, 21 | beforeCreate() { 22 | this.currentActive = -1; 23 | }, 24 | methods: { 25 | setActive(activeKey) { 26 | const { children, currentActive } = this; 27 | if (!children.length) { 28 | return Promise.resolve(); 29 | } 30 | this.currentActive = activeKey; 31 | const stack = []; 32 | if (currentActive !== activeKey && children[currentActive]) { 33 | stack.push(children[currentActive].setActive(false)); 34 | } 35 | if (children[activeKey]) { 36 | stack.push(children[activeKey].setActive(true)); 37 | } 38 | return Promise.all(stack); 39 | }, 40 | }, 41 | }); 42 | -------------------------------------------------------------------------------- /miniprogram/components/dist/calendar/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-calendar{display:-webkit-flex;display:flex;-webkit-flex-direction:column;flex-direction:column;height:100%;height:var(--calendar-height,100%);background-color:#fff;background-color:var(--calendar-background-color,#fff)}.van-calendar__close-icon{top:11px}.van-calendar__popup--bottom,.van-calendar__popup--top{height:80%;height:var(--calendar-popup-height,80%)}.van-calendar__popup--left,.van-calendar__popup--right{height:100%}.van-calendar__body{-webkit-flex:1;flex:1;overflow:auto;-webkit-overflow-scrolling:touch}.van-calendar__footer{-webkit-flex-shrink:0;flex-shrink:0;padding:0 16px;padding:0 var(--padding-md,16px)}.van-calendar__footer--safe-area-inset-bottom{padding-bottom:env(safe-area-inset-bottom)}.van-calendar__footer+.van-calendar__footer,.van-calendar__footer:empty{display:none}.van-calendar__footer:empty+.van-calendar__footer{display:block!important}.van-calendar__confirm{height:36px!important;height:var(--calendar-confirm-button-height,36px)!important;margin:7px 0!important;margin:var(--calendar-confirm-button-margin,7px 0)!important;line-height:34px!important;line-height:var(--calendar-confirm-button-line-height,34px)!important} -------------------------------------------------------------------------------- /miniprogram/components/dist/notice-bar/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 15 | 16 | 17 | 18 | 19 | {{ text }} 20 | 21 | 22 | 23 | 29 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /miniprogram/components/dist/calendar/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 19 |