├── miniprogram
├── components
│ ├── homepage
│ │ └── image_swiper.wxml
│ ├── proList
│ │ ├── proList.json
│ │ ├── proList.js
│ │ └── proList.wxml
│ ├── newsList
│ │ ├── newsList.json
│ │ ├── newsList.wxml
│ │ └── newsList.js
│ ├── userInfo
│ │ └── userInfo.json
│ ├── detail
│ │ ├── header.wxml
│ │ ├── tab_content
│ │ │ ├── tab_two_content.wxml
│ │ │ └── tab_three_content.wxml
│ │ └── tab_list.wxml
│ └── commodity
│ │ └── search.wxml
├── miniprogram_npm
│ └── @vant
│ │ └── weapp
│ │ ├── common
│ │ ├── style
│ │ │ ├── theme.wxss
│ │ │ ├── var.wxss
│ │ │ ├── mixins
│ │ │ │ ├── clearfix.wxss
│ │ │ │ ├── ellipsis.wxss
│ │ │ │ └── hairline.wxss
│ │ │ ├── clearfix.wxss
│ │ │ ├── ellipsis.wxss
│ │ │ └── hairline.wxss
│ │ ├── color.js
│ │ ├── index.wxss
│ │ ├── version.js
│ │ └── validator.js
│ │ ├── checkbox-group
│ │ ├── index.wxml
│ │ ├── index.wxss
│ │ ├── index.json
│ │ └── index.js
│ │ ├── radio-group
│ │ ├── index.wxml
│ │ ├── index.wxss
│ │ ├── index.json
│ │ └── index.js
│ │ ├── area
│ │ ├── index.wxss
│ │ ├── index.json
│ │ ├── index.wxs
│ │ └── index.wxml
│ │ ├── circle
│ │ ├── index.json
│ │ ├── index.wxss
│ │ ├── index.wxml
│ │ └── canvas.js
│ │ ├── col
│ │ ├── index.json
│ │ ├── index.wxml
│ │ └── index.js
│ │ ├── collapse
│ │ ├── index.wxss
│ │ ├── index.json
│ │ ├── index.wxml
│ │ └── index.js
│ │ ├── grid
│ │ ├── index.json
│ │ ├── index.wxss
│ │ ├── index.wxml
│ │ └── index.js
│ │ ├── info
│ │ ├── index.json
│ │ ├── index.wxml
│ │ ├── index.js
│ │ └── index.wxss
│ │ ├── row
│ │ ├── index.json
│ │ ├── index.wxss
│ │ ├── index.wxml
│ │ └── index.js
│ │ ├── slider
│ │ ├── index.json
│ │ ├── index.wxs
│ │ ├── index.wxml
│ │ └── index.wxss
│ │ ├── sticky
│ │ ├── index.json
│ │ ├── index.wxss
│ │ ├── index.wxml
│ │ └── index.wxs
│ │ ├── tab
│ │ ├── index.json
│ │ ├── index.wxml
│ │ ├── index.wxss
│ │ └── index.js
│ │ ├── tabbar
│ │ ├── index.json
│ │ ├── index.wxss
│ │ └── index.wxml
│ │ ├── cell-group
│ │ ├── index.json
│ │ ├── index.wxml
│ │ ├── index.js
│ │ └── index.wxss
│ │ ├── count-down
│ │ ├── index.json
│ │ ├── index.wxml
│ │ └── index.wxss
│ │ ├── datetime-picker
│ │ ├── index.wxss
│ │ ├── index.json
│ │ └── index.wxml
│ │ ├── index-bar
│ │ ├── index.json
│ │ ├── index.wxss
│ │ └── index.wxml
│ │ ├── loading
│ │ ├── index.json
│ │ ├── index.js
│ │ └── index.wxml
│ │ ├── progress
│ │ ├── index.json
│ │ ├── index.wxml
│ │ ├── index.wxss
│ │ ├── index.wxs
│ │ └── index.js
│ │ ├── sidebar
│ │ ├── index.json
│ │ ├── index.wxml
│ │ ├── index.wxss
│ │ └── index.js
│ │ ├── stepper
│ │ ├── index.json
│ │ └── index.wxml
│ │ ├── swipe-cell
│ │ ├── index.json
│ │ ├── index.wxss
│ │ └── index.wxml
│ │ ├── transition
│ │ ├── index.json
│ │ ├── index.wxml
│ │ └── index.js
│ │ ├── dropdown-menu
│ │ ├── index.json
│ │ ├── index.wxs
│ │ ├── index.wxml
│ │ └── index.wxss
│ │ ├── goods-action
│ │ ├── index.json
│ │ ├── index.wxml
│ │ ├── index.wxss
│ │ └── index.js
│ │ ├── index-anchor
│ │ ├── index.json
│ │ ├── index.wxml
│ │ ├── index.wxss
│ │ └── index.js
│ │ ├── picker-column
│ │ ├── index.json
│ │ ├── index.wxs
│ │ ├── index.wxss
│ │ └── index.wxml
│ │ ├── share-sheet
│ │ ├── options.json
│ │ ├── index.json
│ │ ├── index.wxs
│ │ ├── options.wxs
│ │ ├── options.wxml
│ │ ├── index.wxss
│ │ ├── options.js
│ │ ├── options.wxss
│ │ ├── index.js
│ │ └── index.wxml
│ │ ├── calendar
│ │ ├── components
│ │ │ ├── header
│ │ │ │ ├── index.json
│ │ │ │ ├── index.js
│ │ │ │ ├── index.wxml
│ │ │ │ └── index.wxss
│ │ │ └── month
│ │ │ │ ├── index.json
│ │ │ │ └── index.wxml
│ │ ├── index.json
│ │ ├── utils.wxs
│ │ ├── index.wxs
│ │ ├── index.wxss
│ │ └── index.wxml
│ │ ├── empty
│ │ ├── index.json
│ │ ├── index.wxml
│ │ ├── index.wxss
│ │ └── index.js
│ │ ├── divider
│ │ ├── index.json
│ │ ├── index.wxml
│ │ ├── index.js
│ │ └── index.wxss
│ │ ├── skeleton
│ │ ├── index.json
│ │ ├── index.wxml
│ │ ├── index.wxss
│ │ └── index.js
│ │ ├── definitions
│ │ ├── index.js
│ │ └── weapp.js
│ │ ├── dropdown-item
│ │ ├── shared.js
│ │ ├── index.json
│ │ ├── index.wxss
│ │ └── index.wxml
│ │ ├── card
│ │ ├── index.json
│ │ └── index.js
│ │ ├── cell
│ │ ├── index.json
│ │ ├── index.js
│ │ └── index.wxml
│ │ ├── icon
│ │ ├── index.json
│ │ ├── index.js
│ │ ├── index.wxml
│ │ └── computed.wxs
│ │ ├── rate
│ │ ├── index.json
│ │ ├── index.wxss
│ │ └── index.wxml
│ │ ├── tag
│ │ ├── index.json
│ │ ├── index.wxml
│ │ └── index.js
│ │ ├── checkbox
│ │ ├── index.json
│ │ ├── index.wxs
│ │ └── index.wxml
│ │ ├── grid-item
│ │ ├── index.json
│ │ ├── index.wxml
│ │ └── index.wxss
│ │ ├── nav-bar
│ │ ├── index.json
│ │ ├── index.wxs
│ │ ├── index.wxss
│ │ └── index.wxml
│ │ ├── panel
│ │ ├── index.json
│ │ ├── index.wxss
│ │ ├── index.js
│ │ └── index.wxml
│ │ ├── radio
│ │ ├── index.json
│ │ ├── index.wxml
│ │ ├── index.js
│ │ └── index.wxss
│ │ ├── search
│ │ ├── index.json
│ │ └── index.wxss
│ │ ├── steps
│ │ ├── index.json
│ │ └── index.js
│ │ ├── collapse-item
│ │ ├── index.json
│ │ ├── index.wxml
│ │ └── index.wxss
│ │ ├── notice-bar
│ │ ├── index.json
│ │ ├── index.wxml
│ │ └── index.wxss
│ │ ├── sidebar-item
│ │ ├── index.json
│ │ ├── index.wxml
│ │ ├── index.js
│ │ └── index.wxss
│ │ ├── switch
│ │ ├── index.json
│ │ └── index.wxml
│ │ ├── notify
│ │ ├── index.json
│ │ ├── index.wxml
│ │ └── index.wxss
│ │ ├── overlay
│ │ ├── index.json
│ │ ├── index.wxss
│ │ ├── index.wxml
│ │ └── index.js
│ │ ├── goods-action-button
│ │ ├── index.json
│ │ ├── index.wxml
│ │ ├── index.js
│ │ └── index.wxss
│ │ ├── wxs
│ │ ├── array.wxs
│ │ ├── utils.wxs
│ │ ├── add-unit.wxs
│ │ ├── object.wxs
│ │ ├── style.wxs
│ │ ├── bem.wxs
│ │ └── memoize.wxs
│ │ ├── field
│ │ ├── index.json
│ │ ├── index.wxs
│ │ └── props.js
│ │ ├── button
│ │ └── index.json
│ │ ├── image
│ │ ├── index.json
│ │ ├── index.wxml
│ │ └── index.wxss
│ │ ├── popup
│ │ ├── index.json
│ │ ├── index.wxs
│ │ └── index.wxml
│ │ ├── tabbar-item
│ │ ├── index.json
│ │ ├── index.wxss
│ │ └── index.wxml
│ │ ├── tabs
│ │ └── index.json
│ │ ├── submit-bar
│ │ ├── index.json
│ │ └── index.wxml
│ │ ├── uploader
│ │ ├── index.json
│ │ └── shared.js
│ │ ├── goods-action-icon
│ │ ├── index.json
│ │ ├── index.js
│ │ ├── index.wxss
│ │ └── index.wxml
│ │ ├── picker
│ │ ├── index.json
│ │ ├── shared.js
│ │ ├── toolbar.wxml
│ │ └── index.wxml
│ │ ├── action-sheet
│ │ ├── index.json
│ │ └── index.js
│ │ ├── tree-select
│ │ ├── index.json
│ │ ├── index.wxs
│ │ ├── index.wxss
│ │ └── index.wxml
│ │ ├── toast
│ │ ├── index.json
│ │ ├── index.js
│ │ ├── index.wxml
│ │ └── index.wxss
│ │ ├── dialog
│ │ └── index.json
│ │ └── mixins
│ │ ├── basic.js
│ │ ├── button.js
│ │ ├── link.js
│ │ ├── open-type.js
│ │ ├── touch.js
│ │ └── page-scroll.js
├── pages
│ ├── news_detail
│ │ ├── news_detail.json
│ │ ├── news_detail.wxml
│ │ ├── news_detail.wxss
│ │ └── news_detail.js
│ ├── introduction
│ │ ├── introduction.json
│ │ └── introduction.js
│ ├── index
│ │ └── index.json
│ ├── homepage
│ │ └── homepage.json
│ ├── commodity
│ │ ├── commodity.json
│ │ └── commodity.wxml
│ └── detail
│ │ ├── detail.json
│ │ └── detail.wxml
├── images
│ ├── icons
│ │ ├── alert.png
│ │ ├── info.png
│ │ ├── likes.png
│ │ ├── market.png
│ │ ├── phone.png
│ │ ├── history.png
│ │ ├── setting.png
│ │ └── arrow_right.png
│ ├── mine
│ │ ├── home_bg.png
│ │ ├── home_bg2.png
│ │ ├── home_bg4.png
│ │ └── home_bg5.png
│ ├── homepage
│ │ ├── email.png
│ │ ├── phone.png
│ │ ├── wave.png
│ │ ├── info@3x.png
│ │ ├── news@3x.png
│ │ ├── search.png
│ │ ├── wechat.png
│ │ ├── contact@3x.png
│ │ └── hot_commodity@3x.png
│ ├── tabBar
│ │ ├── com_off.png
│ │ ├── com_on.png
│ │ ├── home_on.png
│ │ ├── mine_on.png
│ │ ├── home_off.png
│ │ ├── intro_off.png
│ │ ├── intro_on.png
│ │ └── mine_off.png
│ ├── common
│ │ ├── favo_title.png
│ │ ├── news_title.png
│ │ └── history_title.png
│ └── userInfo
│ │ └── choose.png
├── sitemap.json
├── style
│ └── guide.wxss
├── config_model.js
├── package.json
├── package-lock.json
└── app.js
├── .gitignore
└── cloudfunctions
└── login
├── config.json
├── package.json
└── index.js
/miniprogram/components/homepage/image_swiper.wxml:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/common/style/theme.wxss:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/common/style/var.wxss:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | miniprogram/config.js
2 | miniprogram/node_modules
3 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/common/style/mixins/clearfix.wxss:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/common/style/mixins/ellipsis.wxss:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/common/style/mixins/hairline.wxss:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/checkbox-group/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/radio-group/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/miniprogram/pages/news_detail/news_detail.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {}
3 | }
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/area/index.wxss:
--------------------------------------------------------------------------------
1 | @import '../common/index.wxss';
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/circle/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true
3 | }
4 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/col/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true
3 | }
4 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/collapse/index.wxss:
--------------------------------------------------------------------------------
1 | @import '../common/index.wxss';
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/grid/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true
3 | }
4 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/info/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true
3 | }
4 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/radio-group/index.wxss:
--------------------------------------------------------------------------------
1 | @import '../common/index.wxss';
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/row/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true
3 | }
4 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/slider/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true
3 | }
4 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/sticky/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true
3 | }
4 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/tab/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true
3 | }
4 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/tabbar/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true
3 | }
4 |
--------------------------------------------------------------------------------
/cloudfunctions/login/config.json:
--------------------------------------------------------------------------------
1 | {
2 | "permissions": {
3 | "openapi": []
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/cell-group/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true
3 | }
4 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/checkbox-group/index.wxss:
--------------------------------------------------------------------------------
1 | @import '../common/index.wxss';
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/collapse/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true
3 | }
4 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/count-down/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true
3 | }
4 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/datetime-picker/index.wxss:
--------------------------------------------------------------------------------
1 | @import '../common/index.wxss';
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/index-bar/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true
3 | }
4 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/loading/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true
3 | }
4 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/progress/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true
3 | }
4 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/radio-group/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true
3 | }
4 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/sidebar/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true
3 | }
4 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/stepper/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true
3 | }
4 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/swipe-cell/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true
3 | }
4 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/transition/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true
3 | }
4 |
--------------------------------------------------------------------------------
/miniprogram/components/proList/proList.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {}
4 | }
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/checkbox-group/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true
3 | }
4 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/dropdown-menu/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true
3 | }
4 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/goods-action/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true
3 | }
4 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/index-anchor/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true
3 | }
4 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/picker-column/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true
3 | }
4 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/share-sheet/options.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true
3 | }
4 |
--------------------------------------------------------------------------------
/miniprogram/components/newsList/newsList.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {}
4 | }
--------------------------------------------------------------------------------
/miniprogram/components/userInfo/userInfo.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {}
4 | }
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/calendar/components/header/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true
3 | }
4 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/calendar/components/month/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true
3 | }
4 |
--------------------------------------------------------------------------------
/miniprogram/pages/introduction/introduction.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {},
3 | "disableScroll": true
4 | }
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/empty/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {}
4 | }
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/common/style/clearfix.wxss:
--------------------------------------------------------------------------------
1 | .van-clearfix:after{display:table;clear:both;content:""}
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/divider/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {}
4 | }
5 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/skeleton/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {}
4 | }
5 |
--------------------------------------------------------------------------------
/miniprogram/images/icons/alert.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Voyzz/MyCompany-miniProgram/HEAD/miniprogram/images/icons/alert.png
--------------------------------------------------------------------------------
/miniprogram/images/icons/info.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Voyzz/MyCompany-miniProgram/HEAD/miniprogram/images/icons/info.png
--------------------------------------------------------------------------------
/miniprogram/images/icons/likes.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Voyzz/MyCompany-miniProgram/HEAD/miniprogram/images/icons/likes.png
--------------------------------------------------------------------------------
/miniprogram/images/icons/market.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Voyzz/MyCompany-miniProgram/HEAD/miniprogram/images/icons/market.png
--------------------------------------------------------------------------------
/miniprogram/images/icons/phone.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Voyzz/MyCompany-miniProgram/HEAD/miniprogram/images/icons/phone.png
--------------------------------------------------------------------------------
/miniprogram/images/mine/home_bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Voyzz/MyCompany-miniProgram/HEAD/miniprogram/images/mine/home_bg.png
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/sidebar/index.wxml:
--------------------------------------------------------------------------------
1 |
4 |
--------------------------------------------------------------------------------
/miniprogram/images/homepage/email.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Voyzz/MyCompany-miniProgram/HEAD/miniprogram/images/homepage/email.png
--------------------------------------------------------------------------------
/miniprogram/images/homepage/phone.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Voyzz/MyCompany-miniProgram/HEAD/miniprogram/images/homepage/phone.png
--------------------------------------------------------------------------------
/miniprogram/images/homepage/wave.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Voyzz/MyCompany-miniProgram/HEAD/miniprogram/images/homepage/wave.png
--------------------------------------------------------------------------------
/miniprogram/images/icons/history.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Voyzz/MyCompany-miniProgram/HEAD/miniprogram/images/icons/history.png
--------------------------------------------------------------------------------
/miniprogram/images/icons/setting.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Voyzz/MyCompany-miniProgram/HEAD/miniprogram/images/icons/setting.png
--------------------------------------------------------------------------------
/miniprogram/images/mine/home_bg2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Voyzz/MyCompany-miniProgram/HEAD/miniprogram/images/mine/home_bg2.png
--------------------------------------------------------------------------------
/miniprogram/images/mine/home_bg4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Voyzz/MyCompany-miniProgram/HEAD/miniprogram/images/mine/home_bg4.png
--------------------------------------------------------------------------------
/miniprogram/images/mine/home_bg5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Voyzz/MyCompany-miniProgram/HEAD/miniprogram/images/mine/home_bg5.png
--------------------------------------------------------------------------------
/miniprogram/images/tabBar/com_off.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Voyzz/MyCompany-miniProgram/HEAD/miniprogram/images/tabBar/com_off.png
--------------------------------------------------------------------------------
/miniprogram/images/tabBar/com_on.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Voyzz/MyCompany-miniProgram/HEAD/miniprogram/images/tabBar/com_on.png
--------------------------------------------------------------------------------
/miniprogram/images/tabBar/home_on.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Voyzz/MyCompany-miniProgram/HEAD/miniprogram/images/tabBar/home_on.png
--------------------------------------------------------------------------------
/miniprogram/images/tabBar/mine_on.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Voyzz/MyCompany-miniProgram/HEAD/miniprogram/images/tabBar/mine_on.png
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/row/index.wxss:
--------------------------------------------------------------------------------
1 | @import '../common/index.wxss';.van-row:after{display:table;clear:both;content:""}
--------------------------------------------------------------------------------
/miniprogram/sitemap.json:
--------------------------------------------------------------------------------
1 | {
2 | "desc": "Power by Voyz Shen",
3 | "rules": [{
4 | "action": "allow",
5 | "page": "*"
6 | }]
7 | }
--------------------------------------------------------------------------------
/miniprogram/images/common/favo_title.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Voyzz/MyCompany-miniProgram/HEAD/miniprogram/images/common/favo_title.png
--------------------------------------------------------------------------------
/miniprogram/images/common/news_title.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Voyzz/MyCompany-miniProgram/HEAD/miniprogram/images/common/news_title.png
--------------------------------------------------------------------------------
/miniprogram/images/homepage/info@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Voyzz/MyCompany-miniProgram/HEAD/miniprogram/images/homepage/info@3x.png
--------------------------------------------------------------------------------
/miniprogram/images/homepage/news@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Voyzz/MyCompany-miniProgram/HEAD/miniprogram/images/homepage/news@3x.png
--------------------------------------------------------------------------------
/miniprogram/images/homepage/search.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Voyzz/MyCompany-miniProgram/HEAD/miniprogram/images/homepage/search.png
--------------------------------------------------------------------------------
/miniprogram/images/homepage/wechat.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Voyzz/MyCompany-miniProgram/HEAD/miniprogram/images/homepage/wechat.png
--------------------------------------------------------------------------------
/miniprogram/images/icons/arrow_right.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Voyzz/MyCompany-miniProgram/HEAD/miniprogram/images/icons/arrow_right.png
--------------------------------------------------------------------------------
/miniprogram/images/tabBar/home_off.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Voyzz/MyCompany-miniProgram/HEAD/miniprogram/images/tabBar/home_off.png
--------------------------------------------------------------------------------
/miniprogram/images/tabBar/intro_off.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Voyzz/MyCompany-miniProgram/HEAD/miniprogram/images/tabBar/intro_off.png
--------------------------------------------------------------------------------
/miniprogram/images/tabBar/intro_on.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Voyzz/MyCompany-miniProgram/HEAD/miniprogram/images/tabBar/intro_on.png
--------------------------------------------------------------------------------
/miniprogram/images/tabBar/mine_off.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Voyzz/MyCompany-miniProgram/HEAD/miniprogram/images/tabBar/mine_off.png
--------------------------------------------------------------------------------
/miniprogram/images/userInfo/choose.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Voyzz/MyCompany-miniProgram/HEAD/miniprogram/images/userInfo/choose.png
--------------------------------------------------------------------------------
/miniprogram/images/homepage/contact@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Voyzz/MyCompany-miniProgram/HEAD/miniprogram/images/homepage/contact@3x.png
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/definitions/index.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | Object.defineProperty(exports, "__esModule", { value: true });
3 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/definitions/weapp.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | Object.defineProperty(exports, "__esModule", { value: true });
3 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/dropdown-item/shared.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | Object.defineProperty(exports, '__esModule', { value: true });
3 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/row/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/sidebar/index.wxss:
--------------------------------------------------------------------------------
1 | @import '../common/index.wxss';.van-sidebar{width:80px;width:var(--sidebar-width,80px)}
--------------------------------------------------------------------------------
/miniprogram/images/common/history_title.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Voyzz/MyCompany-miniProgram/HEAD/miniprogram/images/common/history_title.png
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/grid/index.wxss:
--------------------------------------------------------------------------------
1 | @import '../common/index.wxss';.van-grid{position:relative;box-sizing:border-box;overflow:hidden}
--------------------------------------------------------------------------------
/miniprogram/style/guide.wxss:
--------------------------------------------------------------------------------
1 | page {
2 | background: #f6f6f6;
3 | display: flex;
4 | flex-direction: column;
5 | justify-content: flex-start;
6 | }
7 |
--------------------------------------------------------------------------------
/miniprogram/images/homepage/hot_commodity@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Voyzz/MyCompany-miniProgram/HEAD/miniprogram/images/homepage/hot_commodity@3x.png
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/card/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "van-tag": "../tag/index"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/cell/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "van-icon": "../icon/index"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/icon/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "van-info": "../info/index"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/rate/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "van-icon": "../icon/index"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/tag/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "van-icon": "../icon/index"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/area/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "van-picker": "../picker/index"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/checkbox/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "van-icon": "../icon/index"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/grid-item/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "van-icon": "../icon/index"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/nav-bar/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "van-icon": "../icon/index"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/panel/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "van-cell": "../cell/index"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/radio/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "van-icon": "../icon/index"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/search/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "van-field": "../field/index"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/steps/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "van-icon": "../icon/index"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/collapse-item/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "van-cell": "../cell/index"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/notice-bar/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "van-icon": "../icon/index"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/sidebar-item/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "van-info": "../info/index"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/sticky/index.wxss:
--------------------------------------------------------------------------------
1 | @import '../common/index.wxss';.van-sticky{position:relative}.van-sticky-wrap--fixed{position:fixed;right:0;left:0}
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/switch/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "van-loading": "../loading/index"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/collapse/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/datetime-picker/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "van-picker": "../picker/index"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/notify/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "van-transition": "../transition/index"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/overlay/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "van-transition": "../transition/index"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/goods-action-button/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "van-button": "../button/index"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/wxs/array.wxs:
--------------------------------------------------------------------------------
1 | function isArray(array) {
2 | return array && array.constructor === 'Array';
3 | }
4 |
5 | module.exports.isArray = isArray;
6 |
--------------------------------------------------------------------------------
/miniprogram/pages/index/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {
3 | "van-button": "@vant/weapp/button",
4 | "van-icon": "@vant/weapp/icon"
5 | },
6 | "disableScroll": true
7 | }
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/count-down/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 | {{ formattedTime }}
4 |
5 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/grid/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/field/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "van-cell": "../cell/index",
5 | "van-icon": "../icon/index"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/button/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "van-icon": "../icon/index",
5 | "van-loading": "../loading/index"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/image/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "van-icon": "../icon/index",
5 | "van-loading": "../loading/index"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/popup/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "van-icon": "../icon/index",
5 | "van-overlay": "../overlay/index"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/share-sheet/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "van-popup": "../popup/index",
5 | "options": "./options"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/tabbar-item/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "van-icon": "../icon/index",
5 | "van-info": "../info/index"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/tabs/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "van-info": "../info/index",
5 | "van-sticky": "../sticky/index"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/submit-bar/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "van-button": "../button/index",
5 | "van-icon": "../icon/index"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/uploader/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "van-icon": "../icon/index",
5 | "van-loading": "../loading/index"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/miniprogram/pages/homepage/homepage.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {
3 | "van-popup": "@vant/weapp/popup/index",
4 | "van-loading": "@vant/weapp/loading/index"
5 | },
6 | "disableScroll": true
7 | }
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/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/miniprogram_npm/@vant/weapp/picker/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "picker-column": "../picker-column/index",
5 | "loading": "../loading/index"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/miniprogram/config_model.js:
--------------------------------------------------------------------------------
1 | const config = {
2 | baseUrl:'http://localhost:3000',
3 | contact:{
4 | phone:'13800000000',
5 | email:'13800000000@163.com'
6 | }
7 | }
8 |
9 | export default config;
--------------------------------------------------------------------------------
/miniprogram/components/detail/header.wxml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/goods-action/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/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/miniprogram_npm/@vant/weapp/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/miniprogram_npm/@vant/weapp/area/index.wxs:
--------------------------------------------------------------------------------
1 | /* eslint-disable */
2 | function displayColumns(columns, columnsNum) {
3 | return columns.slice(0, +columnsNum);
4 | }
5 |
6 | module.exports = {
7 | displayColumns: displayColumns,
8 | };
9 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/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/miniprogram_npm/@vant/weapp/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/miniprogram_npm/@vant/weapp/col/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/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/pages/commodity/commodity.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {
3 | "van-icon": "@vant/weapp/icon",
4 | "van-sidebar": "@vant/weapp/sidebar",
5 | "van-sidebar-item": "@vant/weapp/sidebar-item",
6 | "van-tag": "@vant/weapp/tag/index"
7 | },
8 | "disableScroll": true
9 | }
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/cell-group/index.wxml:
--------------------------------------------------------------------------------
1 |
5 | {{ title }}
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/info/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 | {{ dot ? '' : info }}
8 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/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/miniprogram_npm/@vant/weapp/tab/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/wxs/utils.wxs:
--------------------------------------------------------------------------------
1 | /* eslint-disable */
2 | var bem = require('./bem.wxs');
3 | var memoize = require('./memoize.wxs');
4 | var addUnit = require('./add-unit.wxs');
5 |
6 | module.exports = {
7 | bem: memoize(bem),
8 | memoize: memoize,
9 | addUnit: addUnit
10 | };
11 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/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/miniprogram_npm/@vant/weapp/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/miniprogram_npm/@vant/weapp/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/miniprogram_npm/@vant/weapp/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/miniprogram_npm/@vant/weapp/info/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | Object.defineProperty(exports, '__esModule', { value: true });
3 | var component_1 = require('../common/component');
4 | component_1.VantComponent({
5 | props: {
6 | dot: Boolean,
7 | info: null,
8 | customStyle: String,
9 | },
10 | });
11 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/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/miniprogram_npm/@vant/weapp/overlay/index.wxml:
--------------------------------------------------------------------------------
1 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/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 = addUnit;
13 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/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 |
--------------------------------------------------------------------------------
/cloudfunctions/login/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "login",
3 | "version": "1.0.0",
4 | "description": "",
5 | "main": "index.js",
6 | "scripts": {
7 | "test": "echo \"Error: no test specified\" && exit 1"
8 | },
9 | "author": "",
10 | "license": "ISC",
11 | "dependencies": {
12 | "wx-server-sdk": "latest"
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/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/miniprogram_npm/@vant/weapp/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/miniprogram_npm/@vant/weapp/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/miniprogram_npm/@vant/weapp/cell-group/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | Object.defineProperty(exports, '__esModule', { value: true });
3 | var component_1 = require('../common/component');
4 | component_1.VantComponent({
5 | props: {
6 | title: String,
7 | border: {
8 | type: Boolean,
9 | value: true,
10 | },
11 | },
12 | });
13 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/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/miniprogram_npm/@vant/weapp/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/miniprogram_npm/@vant/weapp/nav-bar/index.wxs:
--------------------------------------------------------------------------------
1 | /* eslint-disable */
2 | var style = require('../wxs/style.wxs');
3 |
4 | function barStyle(data) {
5 | return style({
6 | 'z-index': data.zIndex,
7 | 'padding-top': data.safeAreaInsetTop ? data.statusBarHeight + 'px' : 0,
8 | });
9 | }
10 |
11 | module.exports = {
12 | barStyle: barStyle,
13 | };
14 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/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/miniprogram_npm/@vant/weapp/transition/index.wxml:
--------------------------------------------------------------------------------
1 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/miniprogram/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "miniprogram",
3 | "version": "1.0.0",
4 | "description": "",
5 | "main": "app.js",
6 | "dependencies": {
7 | "@vant/weapp": "^1.6.3"
8 | },
9 | "devDependencies": {},
10 | "scripts": {
11 | "test": "echo \"Error: no test specified\" && exit 1"
12 | },
13 | "keywords": [],
14 | "author": "",
15 | "license": "ISC"
16 | }
17 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/panel/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | Object.defineProperty(exports, '__esModule', { value: true });
3 | var component_1 = require('../common/component');
4 | component_1.VantComponent({
5 | classes: ['header-class', 'footer-class'],
6 | props: {
7 | desc: String,
8 | title: String,
9 | status: String,
10 | useFooterSlot: Boolean,
11 | },
12 | });
13 |
--------------------------------------------------------------------------------
/miniprogram/pages/news_detail/news_detail.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | {{title}}
5 | {{data}}
6 | {{content}}
7 |
8 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/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/miniprogram_npm/@vant/weapp/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/miniprogram_npm/@vant/weapp/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 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/sticky/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/divider/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/tabbar/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/index-anchor/index.wxml:
--------------------------------------------------------------------------------
1 |
5 |
9 |
10 |
11 | {{ index }}
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/miniprogram/package-lock.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "miniprogram",
3 | "version": "1.0.0",
4 | "lockfileVersion": 1,
5 | "requires": true,
6 | "dependencies": {
7 | "@vant/weapp": {
8 | "version": "1.6.3",
9 | "resolved": "https://registry.npmjs.org/@vant/weapp/-/weapp-1.6.3.tgz",
10 | "integrity": "sha512-XlyaJNrYXqnhGthF5lm3xnrDRj/u8PtyJ9zZZE1P/lOEt8oTqgGXOqXt2C6sojXe56fHYLOzZX5a4Vr4s3M+9g=="
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/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/miniprogram_npm/@vant/weapp/common/color.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | Object.defineProperty(exports, '__esModule', { value: true });
3 | exports.GRAY_DARK = exports.GRAY = exports.ORANGE = exports.GREEN = exports.WHITE = exports.BLUE = exports.RED = void 0;
4 | exports.RED = '#ee0a24';
5 | exports.BLUE = '#1989fa';
6 | exports.WHITE = '#fff';
7 | exports.GREEN = '#07c160';
8 | exports.ORANGE = '#ff976a';
9 | exports.GRAY = '#323233';
10 | exports.GRAY_DARK = '#969799';
11 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/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/miniprogram_npm/@vant/weapp/circle/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | {{ text }}
9 |
10 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/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/miniprogram_npm/@vant/weapp/loading/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | Object.defineProperty(exports, '__esModule', { value: true });
3 | var component_1 = require('../common/component');
4 | component_1.VantComponent({
5 | props: {
6 | color: String,
7 | vertical: Boolean,
8 | type: {
9 | type: String,
10 | value: 'circular',
11 | },
12 | size: String,
13 | textSize: String,
14 | },
15 | data: {
16 | array12: Array.from({ length: 12 }),
17 | },
18 | });
19 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/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/miniprogram_npm/@vant/weapp/popup/index.wxs:
--------------------------------------------------------------------------------
1 | /* eslint-disable */
2 | var style = require('../wxs/style.wxs');
3 |
4 | function popupClass(data) {
5 | return style([
6 | {
7 | 'z-index': data.zIndex,
8 | '-webkit-transition-duration': data.currentDuration + 'ms',
9 | 'transition-duration': data.currentDuration + 'ms',
10 | },
11 | data.display ? null : 'display: none',
12 | data.customStyle,
13 | ]);
14 | }
15 |
16 | module.exports = {
17 | popupClass: popupClass,
18 | };
19 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/transition/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | Object.defineProperty(exports, '__esModule', { value: true });
3 | var component_1 = require('../common/component');
4 | var transition_1 = require('../mixins/transition');
5 | component_1.VantComponent({
6 | classes: [
7 | 'enter-class',
8 | 'enter-active-class',
9 | 'enter-to-class',
10 | 'leave-class',
11 | 'leave-active-class',
12 | 'leave-to-class',
13 | ],
14 | mixins: [transition_1.transition(true)],
15 | });
16 |
--------------------------------------------------------------------------------
/miniprogram/pages/detail/detail.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {
3 | "van-icon": "@vant/weapp/icon",
4 | "van-tab": "@vant/weapp/tab/index",
5 | "van-tabs": "@vant/weapp/tabs/index",
6 | "van-empty": "@vant/weapp/empty/index",
7 | "van-button": "@vant/weapp/button/index",
8 | "van-cell": "@vant/weapp/cell/index",
9 | "van-cell-group": "@vant/weapp/cell-group/index",
10 | "van-image": "@vant/weapp/image/index",
11 | "van-tag": "@vant/weapp/tag/index"
12 | },
13 | "disableScroll": true
14 | }
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/tag/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
14 |
15 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/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/miniprogram_npm/@vant/weapp/calendar/components/header/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | Object.defineProperty(exports, '__esModule', { value: true });
3 | var component_1 = require('../../../common/component');
4 | component_1.VantComponent({
5 | props: {
6 | title: {
7 | type: String,
8 | value: '日期选择',
9 | },
10 | subtitle: String,
11 | showTitle: Boolean,
12 | showSubtitle: Boolean,
13 | },
14 | data: {
15 | weekdays: ['日', '一', '二', '三', '四', '五', '六'],
16 | },
17 | methods: {},
18 | });
19 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/mixins/basic.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | Object.defineProperty(exports, '__esModule', { value: true });
3 | exports.basic = void 0;
4 | exports.basic = Behavior({
5 | methods: {
6 | $emit: function (name, detail, options) {
7 | this.triggerEvent(name, detail, options);
8 | },
9 | set: function (data, callback) {
10 | this.setData(data, callback);
11 | return new Promise(function (resolve) {
12 | return wx.nextTick(resolve);
13 | });
14 | },
15 | },
16 | });
17 |
--------------------------------------------------------------------------------
/miniprogram/components/detail/tab_content/tab_two_content.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/miniprogram/app.js:
--------------------------------------------------------------------------------
1 | //app.js
2 | import config from './config.js';
3 | const {baseUrl} = config
4 |
5 | App({
6 | // 全局变量
7 | baseUrl,
8 | openid:'',
9 | appid:'',
10 | onLaunch: function () {
11 | wx.cloud.init({
12 | traceUser: true,
13 | })
14 |
15 | wx.cloud.callFunction({
16 | name: 'login',
17 | complete: res => {
18 | const { openid,appid } = res.result;
19 | if(!!openid){
20 | this.openid = openid;
21 | this.appid = appid;
22 | }
23 | }
24 | })
25 | },
26 | })
27 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/mixins/button.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | Object.defineProperty(exports, '__esModule', { value: true });
3 | exports.button = void 0;
4 | exports.button = Behavior({
5 | externalClasses: ['hover-class'],
6 | properties: {
7 | id: String,
8 | lang: String,
9 | businessId: Number,
10 | sessionFrom: String,
11 | sendMessageTitle: String,
12 | sendMessagePath: String,
13 | sendMessageImg: String,
14 | showMessageCard: Boolean,
15 | appParameter: String,
16 | ariaLabel: String,
17 | },
18 | });
19 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/switch/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/icon/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | Object.defineProperty(exports, '__esModule', { value: true });
3 | var component_1 = require('../common/component');
4 | component_1.VantComponent({
5 | props: {
6 | dot: Boolean,
7 | info: null,
8 | size: null,
9 | color: String,
10 | customStyle: String,
11 | classPrefix: {
12 | type: String,
13 | value: 'van-icon',
14 | },
15 | name: String,
16 | },
17 | methods: {
18 | onClick: function () {
19 | this.$emit('click');
20 | },
21 | },
22 | });
23 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/picker/shared.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | Object.defineProperty(exports, '__esModule', { value: true });
3 | exports.pickerProps = void 0;
4 | exports.pickerProps = {
5 | title: String,
6 | loading: Boolean,
7 | showToolbar: Boolean,
8 | cancelButtonText: {
9 | type: String,
10 | value: '取消',
11 | },
12 | confirmButtonText: {
13 | type: String,
14 | value: '确认',
15 | },
16 | visibleItemCount: {
17 | type: Number,
18 | value: 6,
19 | },
20 | itemHeight: {
21 | type: Number,
22 | value: 44,
23 | },
24 | };
25 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/datetime-picker/index.wxml:
--------------------------------------------------------------------------------
1 |
17 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/tag/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | Object.defineProperty(exports, '__esModule', { value: true });
3 | var component_1 = require('../common/component');
4 | component_1.VantComponent({
5 | props: {
6 | size: String,
7 | mark: Boolean,
8 | color: String,
9 | plain: Boolean,
10 | round: Boolean,
11 | textColor: String,
12 | type: {
13 | type: String,
14 | value: 'default',
15 | },
16 | closeable: Boolean,
17 | },
18 | methods: {
19 | onClose: function () {
20 | this.$emit('close');
21 | },
22 | },
23 | });
24 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/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/miniprogram_npm/@vant/weapp/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/commodity/search.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/overlay/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | Object.defineProperty(exports, '__esModule', { value: true });
3 | var component_1 = require('../common/component');
4 | component_1.VantComponent({
5 | props: {
6 | show: Boolean,
7 | customStyle: String,
8 | duration: {
9 | type: null,
10 | value: 300,
11 | },
12 | zIndex: {
13 | type: Number,
14 | value: 1,
15 | },
16 | },
17 | methods: {
18 | onClick: function () {
19 | this.$emit('click');
20 | },
21 | // for prevent touchmove
22 | noop: function () {},
23 | },
24 | });
25 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/calendar/components/header/index.wxml:
--------------------------------------------------------------------------------
1 |
17 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/panel/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
19 |
20 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/notify/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
10 |
14 |
18 | {{ message }}
19 |
20 |
21 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/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/miniprogram_npm/@vant/weapp/icon/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
21 |
22 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/sticky/index.wxs:
--------------------------------------------------------------------------------
1 | /* eslint-disable */
2 | var style = require('../wxs/style.wxs');
3 |
4 | function wrapStyle(data) {
5 | return style({
6 | transform: data.transform
7 | ? 'translate3d(0, ' + data.transform + 'px, 0)'
8 | : '',
9 | top: data.fixed ? data.offsetTop + 'px' : '',
10 | 'z-index': data.zIndex,
11 | });
12 | }
13 |
14 | function containerStyle(data) {
15 | return style({
16 | height: data.fixed ? data.height + 'px' : '',
17 | 'z-index': data.zIndex,
18 | });
19 | }
20 |
21 | module.exports = {
22 | wrapStyle: wrapStyle,
23 | containerStyle: containerStyle,
24 | };
25 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/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/miniprogram_npm/@vant/weapp/index-bar/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
22 |
23 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/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/miniprogram_npm/@vant/weapp/loading/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
8 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/area/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
21 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/sidebar-item/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
19 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/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/miniprogram_npm/@vant/weapp/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/miniprogram_npm/@vant/weapp/swipe-cell/index.wxml:
--------------------------------------------------------------------------------
1 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/empty/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | Object.defineProperty(exports, '__esModule', { value: true });
3 | var component_1 = require('../common/component');
4 | var PRESETS = ['error', 'search', 'default', 'network'];
5 | component_1.VantComponent({
6 | props: {
7 | description: String,
8 | image: {
9 | type: String,
10 | value: 'default',
11 | },
12 | },
13 | created: function () {
14 | if (PRESETS.indexOf(this.data.image) !== -1) {
15 | this.setData({
16 | imageUrl:
17 | 'https://img.yzcdn.cn/vant/empty-image-' + this.data.image + '.png',
18 | });
19 | } else {
20 | this.setData({ imageUrl: this.data.image });
21 | }
22 | },
23 | });
24 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/progress/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
8 |
12 |
17 | {{ computed.pivotText(pivotText, percentage) }}
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/toast/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | Object.defineProperty(exports, '__esModule', { value: true });
3 | var component_1 = require('../common/component');
4 | component_1.VantComponent({
5 | props: {
6 | show: Boolean,
7 | mask: Boolean,
8 | message: String,
9 | forbidClick: Boolean,
10 | zIndex: {
11 | type: Number,
12 | value: 1000,
13 | },
14 | type: {
15 | type: String,
16 | value: 'text',
17 | },
18 | loadingType: {
19 | type: String,
20 | value: 'circular',
21 | },
22 | position: {
23 | type: String,
24 | value: 'middle',
25 | },
26 | },
27 | methods: {
28 | // for prevent touchmove
29 | noop: function () {},
30 | },
31 | });
32 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/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;left: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/miniprogram_npm/@vant/weapp/col/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | Object.defineProperty(exports, '__esModule', { value: true });
3 | var component_1 = require('../common/component');
4 | component_1.VantComponent({
5 | relation: {
6 | name: 'row',
7 | type: 'ancestor',
8 | current: 'col',
9 | },
10 | props: {
11 | span: Number,
12 | offset: Number,
13 | },
14 | data: {
15 | viewStyle: '',
16 | },
17 | methods: {
18 | setGutter: function (gutter) {
19 | var padding = gutter / 2 + 'px';
20 | var viewStyle = gutter
21 | ? 'padding-left: ' + padding + '; padding-right: ' + padding + ';'
22 | : '';
23 | if (viewStyle !== this.data.viewStyle) {
24 | this.setData({ viewStyle: viewStyle });
25 | }
26 | },
27 | },
28 | });
29 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/goods-action-icon/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | Object.defineProperty(exports, '__esModule', { value: true });
3 | var component_1 = require('../common/component');
4 | var button_1 = require('../mixins/button');
5 | var link_1 = require('../mixins/link');
6 | var open_type_1 = require('../mixins/open-type');
7 | component_1.VantComponent({
8 | classes: ['icon-class', 'text-class'],
9 | mixins: [link_1.link, button_1.button, open_type_1.openType],
10 | props: {
11 | text: String,
12 | dot: Boolean,
13 | info: String,
14 | icon: String,
15 | disabled: Boolean,
16 | loading: Boolean,
17 | },
18 | methods: {
19 | onClick: function (event) {
20 | this.$emit('click', event.detail);
21 | this.jumpLink();
22 | },
23 | },
24 | });
25 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/divider/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | Object.defineProperty(exports, '__esModule', { value: true });
3 | var component_1 = require('../common/component');
4 | component_1.VantComponent({
5 | props: {
6 | dashed: {
7 | type: Boolean,
8 | value: false,
9 | },
10 | hairline: {
11 | type: Boolean,
12 | value: false,
13 | },
14 | contentPosition: {
15 | type: String,
16 | value: '',
17 | },
18 | fontSize: {
19 | type: Number,
20 | value: '',
21 | },
22 | borderColor: {
23 | type: String,
24 | value: '',
25 | },
26 | textColor: {
27 | type: String,
28 | value: '',
29 | },
30 | customStyle: {
31 | type: String,
32 | value: '',
33 | },
34 | },
35 | });
36 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/mixins/link.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | Object.defineProperty(exports, '__esModule', { value: true });
3 | exports.link = void 0;
4 | exports.link = Behavior({
5 | properties: {
6 | url: String,
7 | linkType: {
8 | type: String,
9 | value: 'navigateTo',
10 | },
11 | },
12 | methods: {
13 | jumpLink: function (urlKey) {
14 | if (urlKey === void 0) {
15 | urlKey = 'url';
16 | }
17 | var url = this.data[urlKey];
18 | if (url) {
19 | if (
20 | this.data.linkType === 'navigateTo' &&
21 | getCurrentPages().length > 9
22 | ) {
23 | wx.redirectTo({ url: url });
24 | } else {
25 | wx[this.data.linkType]({ url: url });
26 | }
27 | }
28 | },
29 | },
30 | });
31 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/wxs/style.wxs:
--------------------------------------------------------------------------------
1 | /* eslint-disable */
2 | var object = require('./object.wxs');
3 | var array = require('./array.wxs');
4 |
5 | function style(styles) {
6 | if (array.isArray(styles)) {
7 | return styles
8 | .filter(function (item) {
9 | return item != null;
10 | })
11 | .map(function (item) {
12 | return style(item);
13 | })
14 | .join(';');
15 | }
16 |
17 | if ('Object' === styles.constructor) {
18 | return object
19 | .keys(styles)
20 | .filter(function (key) {
21 | return styles[key] != null;
22 | })
23 | .map(function (key) {
24 | return [key, [styles[key]]].join(':');
25 | })
26 | .join(';');
27 | }
28 |
29 | return styles;
30 | }
31 |
32 | module.exports = style;
33 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/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/miniprogram_npm/@vant/weapp/picker/toolbar.wxml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
13 | {{ cancelButtonText }}
14 |
15 | {{
16 | title
17 | }}
18 |
25 | {{ confirmButtonText }}
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/uploader/shared.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | Object.defineProperty(exports, '__esModule', { value: true });
3 | exports.chooseVideoProps = exports.chooseImageProps = void 0;
4 | // props for choose image
5 | exports.chooseImageProps = {
6 | sizeType: {
7 | type: Array,
8 | value: ['original', 'compressed'],
9 | },
10 | capture: {
11 | type: Array,
12 | value: ['album', 'camera'],
13 | },
14 | };
15 | // props for choose video
16 | exports.chooseVideoProps = {
17 | capture: {
18 | type: Array,
19 | value: ['album', 'camera'],
20 | },
21 | compressed: {
22 | type: Boolean,
23 | value: true,
24 | },
25 | maxDuration: {
26 | type: Number,
27 | value: 60,
28 | },
29 | camera: {
30 | type: String,
31 | value: 'back',
32 | },
33 | };
34 |
--------------------------------------------------------------------------------
/cloudfunctions/login/index.js:
--------------------------------------------------------------------------------
1 | // 云函数模板
2 | // 部署:在 cloud-functions/login 文件夹右击选择 “上传并部署”
3 |
4 | const cloud = require('wx-server-sdk')
5 |
6 | // 初始化 cloud
7 | cloud.init({
8 | // API 调用都保持和云函数当前所在环境一致
9 | env: cloud.DYNAMIC_CURRENT_ENV
10 | })
11 |
12 | /**
13 | * 这个示例将经自动鉴权过的小程序用户 openid 返回给小程序端
14 | *
15 | * event 参数包含小程序端调用传入的 data
16 | *
17 | */
18 | exports.main = (event, context) => {
19 | // console.log(event)
20 | // console.log(context)
21 |
22 | // 可执行其他自定义逻辑
23 | // console.log 的内容可以在云开发云函数调用日志查看
24 |
25 | // 获取 WX Context (微信调用上下文),包括 OPENID、APPID、及 UNIONID(需满足 UNIONID 获取条件)等信息
26 | const wxContext = cloud.getWXContext()
27 |
28 | return {
29 | openid: wxContext.OPENID,
30 | appid: wxContext.APPID,
31 | unionid: wxContext.UNIONID,
32 | env: wxContext.ENV,
33 | }
34 | }
35 |
36 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/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/miniprogram_npm/@vant/weapp/dropdown-menu/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
24 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/share-sheet/options.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
12 |
15 | {{ item.name }}
16 |
17 | {{ item.description }}
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/tabbar-item/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 |
15 |
16 |
17 |
18 |
19 |
24 |
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/miniprogram/pages/news_detail/news_detail.wxss:
--------------------------------------------------------------------------------
1 | .outer_box {
2 | width: 100vw;
3 | height: 100vh;
4 | }
5 | .container {
6 | display: flex;
7 | flex-direction: column;
8 | justify-content: flex-start;
9 | align-items: center;
10 | }
11 | .bg_img {
12 | width: 750rpx;
13 | height: 420rpx;
14 | border-bottom-right-radius: 50rpx;
15 | overflow: hidden;
16 | margin-bottom: 50rpx;
17 | }
18 | .news_title {
19 | width: 650rpx;
20 | font-size: 40rpx;
21 | color:#666;
22 | font-weight: bold;
23 | margin-bottom: 10rpx;
24 | }
25 | .news_date {
26 | width: 650rpx;
27 | font-size: 25rpx;
28 | color:#999;
29 | font-weight: light;
30 | text-align: right;
31 | margin-bottom: 30rpx;
32 | }
33 | .news_content {
34 | box-sizing: border-box;
35 | width: 700rpx;
36 | padding:25rpx;
37 | color: #999;
38 | line-height: 50rpx;
39 | font-size: 30rpx;
40 | border-radius: 15rpx;
41 | }
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/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/miniprogram_npm/@vant/weapp/checkbox/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/miniprogram/pages/commodity/commodity.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
18 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/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/miniprogram_npm/@vant/weapp/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/miniprogram_npm/@vant/weapp/slider/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
13 |
20 |
24 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/mixins/open-type.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | // @ts-nocheck
3 | Object.defineProperty(exports, '__esModule', { value: true });
4 | exports.openType = void 0;
5 | exports.openType = Behavior({
6 | properties: {
7 | openType: String,
8 | },
9 | methods: {
10 | bindGetUserInfo: function (event) {
11 | this.$emit('getuserinfo', event.detail);
12 | },
13 | bindContact: function (event) {
14 | this.$emit('contact', event.detail);
15 | },
16 | bindGetPhoneNumber: function (event) {
17 | this.$emit('getphonenumber', event.detail);
18 | },
19 | bindError: function (event) {
20 | this.$emit('error', event.detail);
21 | },
22 | bindLaunchApp: function (event) {
23 | this.$emit('launchapp', event.detail);
24 | },
25 | bindOpenSetting: function (event) {
26 | this.$emit('opensetting', event.detail);
27 | },
28 | },
29 | });
30 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/popup/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
12 |
26 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/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%;box-sizing:border-box;min-width:3.6em;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/miniprogram_npm/@vant/weapp/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/miniprogram_npm/@vant/weapp/goods-action/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | Object.defineProperty(exports, '__esModule', { value: true });
3 | var component_1 = require('../common/component');
4 | component_1.VantComponent({
5 | relation: {
6 | type: 'descendant',
7 | name: 'goods-action-button',
8 | current: 'goods-action',
9 | linked: function () {
10 | this.updateStyle();
11 | },
12 | unlinked: function () {
13 | this.updateStyle();
14 | },
15 | linkChanged: function () {
16 | this.updateStyle();
17 | },
18 | },
19 | props: {
20 | safeAreaInsetBottom: {
21 | type: Boolean,
22 | value: true,
23 | },
24 | },
25 | methods: {
26 | updateStyle: function () {
27 | var _this = this;
28 | wx.nextTick(function () {
29 | _this.children.forEach(function (child) {
30 | child.updateStyle();
31 | });
32 | });
33 | },
34 | },
35 | });
36 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/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/miniprogram_npm/@vant/weapp/steps/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | Object.defineProperty(exports, '__esModule', { value: true });
3 | var component_1 = require('../common/component');
4 | var color_1 = require('../common/color');
5 | component_1.VantComponent({
6 | classes: ['desc-class'],
7 | props: {
8 | icon: String,
9 | steps: Array,
10 | active: Number,
11 | direction: {
12 | type: String,
13 | value: 'horizontal',
14 | },
15 | activeColor: {
16 | type: String,
17 | value: color_1.GREEN,
18 | },
19 | inactiveColor: {
20 | type: String,
21 | value: color_1.GRAY_DARK,
22 | },
23 | activeIcon: {
24 | type: String,
25 | value: 'checked',
26 | },
27 | inactiveIcon: String,
28 | },
29 | methods: {
30 | onClick: function (event) {
31 | var index = event.currentTarget.dataset.index;
32 | this.$emit('click-step', index);
33 | },
34 | },
35 | });
36 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/index-anchor/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | Object.defineProperty(exports, '__esModule', { value: true });
3 | var utils_1 = require('../common/utils');
4 | var component_1 = require('../common/component');
5 | component_1.VantComponent({
6 | relation: {
7 | name: 'index-bar',
8 | type: 'ancestor',
9 | current: 'index-anchor',
10 | },
11 | props: {
12 | useSlot: Boolean,
13 | index: null,
14 | },
15 | data: {
16 | active: false,
17 | wrapperStyle: '',
18 | anchorStyle: '',
19 | },
20 | methods: {
21 | scrollIntoView: function (scrollTop) {
22 | var _this = this;
23 | utils_1.getRect
24 | .call(this, '.van-index-anchor-wrapper')
25 | .then(function (rect) {
26 | wx.pageScrollTo({
27 | duration: 0,
28 | scrollTop: scrollTop + rect.top - _this.parent.data.stickyOffsetTop,
29 | });
30 | });
31 | },
32 | },
33 | });
34 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/skeleton/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
12 |
13 |
18 |
25 |
26 |
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/wxs/bem.wxs:
--------------------------------------------------------------------------------
1 | /* eslint-disable */
2 | var array = require('./array.wxs');
3 | var object = require('./object.wxs');
4 | var PREFIX = 'van-';
5 |
6 | function join(name, mods) {
7 | name = PREFIX + name;
8 | mods = mods.map(function(mod) {
9 | return name + '--' + mod;
10 | });
11 | mods.unshift(name);
12 | return mods.join(' ');
13 | }
14 |
15 | function traversing(mods, conf) {
16 | if (!conf) {
17 | return;
18 | }
19 |
20 | if (typeof conf === 'string' || typeof conf === 'number') {
21 | mods.push(conf);
22 | } else if (array.isArray(conf)) {
23 | conf.forEach(function(item) {
24 | traversing(mods, item);
25 | });
26 | } else if (typeof conf === 'object') {
27 | object.keys(conf).forEach(function(key) {
28 | conf[key] && mods.push(key);
29 | });
30 | }
31 | }
32 |
33 | function bem(name, conf) {
34 | var mods = [];
35 | traversing(mods, conf);
36 | return join(name, mods);
37 | }
38 |
39 | module.exports = bem;
40 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/share-sheet/options.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | var __assign =
3 | (this && this.__assign) ||
4 | function () {
5 | __assign =
6 | Object.assign ||
7 | function (t) {
8 | for (var s, i = 1, n = arguments.length; i < n; i++) {
9 | s = arguments[i];
10 | for (var p in s)
11 | if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
12 | }
13 | return t;
14 | };
15 | return __assign.apply(this, arguments);
16 | };
17 | Object.defineProperty(exports, '__esModule', { value: true });
18 | var component_1 = require('../common/component');
19 | component_1.VantComponent({
20 | props: {
21 | options: Array,
22 | showBorder: Boolean,
23 | },
24 | methods: {
25 | onSelect: function (event) {
26 | var index = event.currentTarget.dataset.index;
27 | var option = this.data.options[index];
28 | this.$emit('select', __assign(__assign({}, option), { index: index }));
29 | },
30 | },
31 | });
32 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/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/miniprogram_npm/@vant/weapp/progress/index.wxs:
--------------------------------------------------------------------------------
1 | /* eslint-disable */
2 | var utils = require('../wxs/utils.wxs');
3 | var style = require('../wxs/style.wxs');
4 |
5 | function pivotText(pivotText, percentage) {
6 | return pivotText || percentage + '%';
7 | }
8 |
9 | function rootStyle(data) {
10 | return style({
11 | 'height': data.strokeWidth ? utils.addUnit(data.strokeWidth) : '',
12 | 'background': data.trackColor,
13 | });
14 | }
15 |
16 | function portionStyle(data) {
17 | return style({
18 | background: data.inactive ? '#cacaca' : data.color,
19 | width: data.percentage ? data.percentage + '%' : '',
20 | });
21 | }
22 |
23 | function pivotStyle(data) {
24 | return style({
25 | color: data.textColor,
26 | right: data.right + 'px',
27 | background: data.pivotColor ? data.pivotColor : data.inactive ? '#cacaca' : data.color,
28 | });
29 | }
30 |
31 | module.exports = {
32 | pivotText: pivotText,
33 | rootStyle: rootStyle,
34 | portionStyle: portionStyle,
35 | pivotStyle: pivotStyle,
36 | };
37 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/sidebar-item/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | Object.defineProperty(exports, '__esModule', { value: true });
3 | var component_1 = require('../common/component');
4 | component_1.VantComponent({
5 | classes: ['active-class', 'disabled-class'],
6 | relation: {
7 | type: 'ancestor',
8 | name: 'sidebar',
9 | current: 'sidebar-item',
10 | },
11 | props: {
12 | dot: Boolean,
13 | badge: null,
14 | info: null,
15 | title: String,
16 | disabled: Boolean,
17 | },
18 | methods: {
19 | onClick: function () {
20 | var _this = this;
21 | var parent = this.parent;
22 | if (!parent || this.data.disabled) {
23 | return;
24 | }
25 | var index = parent.children.indexOf(this);
26 | parent.setActive(index).then(function () {
27 | _this.$emit('click', index);
28 | parent.$emit('change', index);
29 | });
30 | },
31 | setActive: function (selected) {
32 | return this.setData({ selected: selected });
33 | },
34 | },
35 | });
36 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/cell/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | Object.defineProperty(exports, '__esModule', { value: true });
3 | var link_1 = require('../mixins/link');
4 | var component_1 = require('../common/component');
5 | component_1.VantComponent({
6 | classes: [
7 | 'title-class',
8 | 'label-class',
9 | 'value-class',
10 | 'right-icon-class',
11 | 'hover-class',
12 | ],
13 | mixins: [link_1.link],
14 | props: {
15 | title: null,
16 | value: null,
17 | icon: String,
18 | size: String,
19 | label: String,
20 | center: Boolean,
21 | isLink: Boolean,
22 | required: Boolean,
23 | clickable: Boolean,
24 | titleWidth: String,
25 | customStyle: String,
26 | arrowDirection: String,
27 | useLabelSlot: Boolean,
28 | border: {
29 | type: Boolean,
30 | value: true,
31 | },
32 | titleStyle: String,
33 | },
34 | methods: {
35 | onClick: function (event) {
36 | this.$emit('click', event.detail);
37 | this.jumpLink();
38 | },
39 | },
40 | });
41 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/picker-column/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
11 |
12 | {{ getOptionText(option, valueKey) }}
21 |
22 |
23 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/image/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
18 |
19 |
23 |
24 |
25 |
26 |
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/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/miniprogram_npm/@vant/weapp/toast/index.wxml:
--------------------------------------------------------------------------------
1 |
7 |
12 |
16 |
17 | {{ message }}
18 |
19 |
20 |
21 |
27 |
28 | {{ message }}
29 |
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/miniprogram/components/newsList/newsList.wxml:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/goods-action-button/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
28 | {{ text }}
29 |
30 |
31 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/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/pages/detail/detail.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/radio-group/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | Object.defineProperty(exports, '__esModule', { value: true });
3 | var component_1 = require('../common/component');
4 | component_1.VantComponent({
5 | field: true,
6 | relation: {
7 | name: 'radio',
8 | type: 'descendant',
9 | current: 'radio-group',
10 | linked: function (target) {
11 | this.updateChild(target);
12 | },
13 | },
14 | props: {
15 | value: {
16 | type: null,
17 | observer: 'updateChildren',
18 | },
19 | disabled: {
20 | type: Boolean,
21 | observer: 'updateChildren',
22 | },
23 | },
24 | methods: {
25 | updateChildren: function () {
26 | var _this = this;
27 | (this.children || []).forEach(function (child) {
28 | return _this.updateChild(child);
29 | });
30 | },
31 | updateChild: function (child) {
32 | var _a = this.data,
33 | value = _a.value,
34 | disabled = _a.disabled;
35 | child.setData({
36 | value: value,
37 | disabled: disabled || child.data.disabled,
38 | });
39 | },
40 | },
41 | });
42 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/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/miniprogram_npm/@vant/weapp/goods-action-icon/index.wxml:
--------------------------------------------------------------------------------
1 |
25 |
33 |
34 | {{ text }}
35 |
36 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/icon/computed.wxs:
--------------------------------------------------------------------------------
1 | /* eslint-disable */
2 | var utils = require('../wxs/utils.wxs');
3 |
4 | function isImage(name) {
5 | return name.indexOf('/') !== -1;
6 | }
7 |
8 | function rootClass(data) {
9 | var classes = ['custom-class'];
10 |
11 | if (data.classPrefix != null) {
12 | classes.push(data.classPrefix);
13 | }
14 |
15 | if (isImage(data.name)) {
16 | classes.push('van-icon--image');
17 | } else if (data.classPrefix != null) {
18 | classes.push(data.classPrefix + '-' + data.name);
19 | }
20 |
21 | return classes.join(' ');
22 | }
23 |
24 | function rootStyle(data) {
25 | var styles = [];
26 |
27 | if (data.color) {
28 | styles.push(['color', data.color]);
29 | }
30 |
31 | if (data.size) {
32 | styles.push(['font-size', utils.addUnit(data.size)]);
33 | }
34 |
35 | if (data.customStyle) {
36 | styles.push([data.customStyle]);
37 | }
38 |
39 | return styles
40 | .map(function (pair) {
41 | return pair.join(':');
42 | })
43 | .join(';');
44 | }
45 |
46 | module.exports = {
47 | isImage: isImage,
48 | rootClass: rootClass,
49 | rootStyle: rootStyle,
50 | };
51 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/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/miniprogram_npm/@vant/weapp/checkbox-group/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | Object.defineProperty(exports, '__esModule', { value: true });
3 | var component_1 = require('../common/component');
4 | component_1.VantComponent({
5 | field: true,
6 | relation: {
7 | name: 'checkbox',
8 | type: 'descendant',
9 | current: 'checkbox-group',
10 | linked: function (target) {
11 | this.updateChild(target);
12 | },
13 | },
14 | props: {
15 | max: Number,
16 | value: {
17 | type: Array,
18 | observer: 'updateChildren',
19 | },
20 | disabled: {
21 | type: Boolean,
22 | observer: 'updateChildren',
23 | },
24 | },
25 | methods: {
26 | updateChildren: function () {
27 | var _this = this;
28 | (this.children || []).forEach(function (child) {
29 | return _this.updateChild(child);
30 | });
31 | },
32 | updateChild: function (child) {
33 | var _a = this.data,
34 | value = _a.value,
35 | disabled = _a.disabled;
36 | child.setData({
37 | value: value.indexOf(child.data.name) !== -1,
38 | parentDisabled: disabled,
39 | });
40 | },
41 | },
42 | });
43 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/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/detail/tab_content/tab_three_content.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | {{index === 0 ? '最新价格' : item.date}}
8 |
9 |
10 |
11 | {{item.price}}
12 |
13 | {{item.currency}}
14 | /
15 | {{item.unit}}
16 |
17 |
18 |
19 |
20 |
21 | {{item.date}}
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/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/pages/introduction/introduction.js:
--------------------------------------------------------------------------------
1 | // miniprogram/pages/introduction/introduction.js
2 | Page({
3 | data: {
4 | modules_data:[],
5 | is_loading:true
6 | },
7 | onLoad: function (options) {
8 | const { baseUrl } = getApp();
9 | const _this = this;
10 |
11 | wx.request({
12 | url: `${baseUrl}/introductionModules`,
13 | method: "POST",
14 | data:{
15 | // moduleType:'header',
16 | // pType:'update',
17 | // moduleData:JSON.stringify(_data),
18 | // position:5,
19 | onShow:1,
20 | },
21 | success(res){
22 | console.log(res);
23 | if(res.statusCode == 200){
24 | _this.setData({
25 | modules_data:res.data,
26 | is_loading:false
27 | })
28 | }
29 | }
30 | })
31 | },
32 |
33 | onShareAppMessage: function () {
34 | return {
35 | path: 'pages/homepage/homepage' ,
36 | imageUrl:'https://lg-7pc5j6x4-1257302752.cos.ap-shanghai.myqcloud.com/logo3.jpg',
37 | success: function (res) {
38 | console.log('转发成功')
39 | },
40 | fail: function (res) {
41 | console.log('转发失败')
42 | }
43 | }
44 | },
45 | })
--------------------------------------------------------------------------------
/miniprogram/components/newsList/newsList.js:
--------------------------------------------------------------------------------
1 | // components/newsList/newsList.js
2 | Component({
3 | properties: {
4 |
5 | },
6 |
7 | data: {
8 | news_list:null,
9 | is_loading:true
10 | },
11 |
12 | lifetimes: {
13 | // 生命周期函数
14 | attached: function () {
15 | const _this = this;
16 | const { baseUrl } = getApp();
17 |
18 | // 模块列表
19 | wx.request({
20 | url: `${baseUrl}/homepageModules`,
21 | method: "POST",
22 | data:{
23 | onShow:1,
24 | },
25 | success(res){
26 | console.log(res);
27 | !!res.data && res.data.forEach((r) => {
28 | if(r.module_type === 'news'){
29 | _this.setData({
30 | news_list:r.module_data.news_list,
31 | is_loading:false
32 | })
33 | }
34 | })
35 | }
36 | })
37 | },
38 | },
39 |
40 | methods: {
41 | // 点击新闻卡片
42 | click_news_card : function (params) {
43 | const {news_data} = params.currentTarget.dataset;
44 | wx.navigateTo({
45 | url: '/pages/news_detail/news_detail?news_data='+JSON.stringify(news_data),
46 | })
47 | },
48 | }
49 | })
50 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/skeleton/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | Object.defineProperty(exports, '__esModule', { value: true });
3 | var component_1 = require('../common/component');
4 | component_1.VantComponent({
5 | classes: ['avatar-class', 'title-class', 'row-class'],
6 | props: {
7 | row: {
8 | type: Number,
9 | value: 0,
10 | observer: function (value) {
11 | this.setData({ rowArray: Array.from({ length: value }) });
12 | },
13 | },
14 | title: Boolean,
15 | avatar: Boolean,
16 | loading: {
17 | type: Boolean,
18 | value: true,
19 | },
20 | animate: {
21 | type: Boolean,
22 | value: true,
23 | },
24 | avatarSize: {
25 | type: String,
26 | value: '32px',
27 | },
28 | avatarShape: {
29 | type: String,
30 | value: 'round',
31 | },
32 | titleWidth: {
33 | type: String,
34 | value: '40%',
35 | },
36 | rowWidth: {
37 | type: null,
38 | value: '100%',
39 | observer: function (val) {
40 | this.setData({ isArray: val instanceof Array });
41 | },
42 | },
43 | },
44 | data: {
45 | isArray: false,
46 | rowArray: [],
47 | },
48 | });
49 |
--------------------------------------------------------------------------------
/miniprogram/components/proList/proList.js:
--------------------------------------------------------------------------------
1 | // components/proList/proList.js
2 | Component({
3 | /**
4 | * 组件的属性列表
5 | */
6 | properties: {
7 | type:{
8 | type:String,
9 | value:''
10 | },
11 | },
12 |
13 | data: {
14 | pro_list:null,
15 | is_loading:true
16 | },
17 |
18 | lifetimes: {
19 | // 生命周期函数
20 | attached: function () {
21 | const _this = this;
22 | const { baseUrl,openid } = getApp();
23 | const { type } = _this.data;
24 |
25 | // 收藏产品列表
26 | wx.request({
27 | url: `${baseUrl}/`+ (type == 'favo' ? 'getUserFavoList' : 'getUserHistoryList'),
28 | method: "POST",
29 | data:{
30 | openid
31 | },
32 | success(res){
33 | if(res.statusCode == 200){
34 | _this.setData({
35 | pro_list:res.data,
36 | is_loading:false
37 | })
38 | }
39 | }
40 | })
41 | },
42 | },
43 |
44 | methods:{
45 | // 点击收藏产品
46 | click_favo_pro: function (params) {
47 | const {pro_id} = params.currentTarget.dataset;
48 | wx.navigateTo({
49 | url: '/pages/detail/detail?pro_id='+pro_id,
50 | })
51 | },
52 | },
53 | })
54 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/calendar/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
19 |
23 |
24 |
25 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/row/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | Object.defineProperty(exports, '__esModule', { value: true });
3 | var component_1 = require('../common/component');
4 | component_1.VantComponent({
5 | relation: {
6 | name: 'col',
7 | type: 'descendant',
8 | current: 'row',
9 | linked: function (target) {
10 | if (this.data.gutter) {
11 | target.setGutter(this.data.gutter);
12 | }
13 | },
14 | },
15 | props: {
16 | gutter: {
17 | type: Number,
18 | observer: 'setGutter',
19 | },
20 | },
21 | data: {
22 | viewStyle: '',
23 | },
24 | mounted: function () {
25 | if (this.data.gutter) {
26 | this.setGutter();
27 | }
28 | },
29 | methods: {
30 | setGutter: function () {
31 | var _this = this;
32 | var gutter = this.data.gutter;
33 | var margin = '-' + Number(gutter) / 2 + 'px';
34 | var viewStyle = gutter
35 | ? 'margin-right: ' + margin + '; margin-left: ' + margin + ';'
36 | : '';
37 | this.setData({ viewStyle: viewStyle });
38 | this.getRelationNodes('../col/index').forEach(function (col) {
39 | col.setGutter(_this.data.gutter);
40 | });
41 | },
42 | },
43 | });
44 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/info/index.wxss:
--------------------------------------------------------------------------------
1 | @import '../common/index.wxss';.van-info{position:absolute;top:0;right:0;display:-webkit-inline-flex;display:inline-flex;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center;box-sizing:border-box;white-space:nowrap;-webkit-transform:translate(50%,-50%);transform:translate(50%,-50%);-webkit-transform-origin:100%;transform-origin:100%;height:16px;height:var(--info-size,16px);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/miniprogram_npm/@vant/weapp/rate/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
13 |
22 |
23 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/common/index.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}.van-clearfix:after{display:table;clear:both;content:""}.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/miniprogram_npm/@vant/weapp/divider/index.wxss:
--------------------------------------------------------------------------------
1 | @import '../common/index.wxss';.van-divider{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;margin:16px 0;margin:var(--divider-margin,16px 0);color:#969799;color:var(--divider-text-color,#969799);font-size:14px;font-size:var(--divider-font-size,14px);line-height:24px;line-height:var(--divider-line-height,24px);border:0 solid #ebedf0;border-color:var(--divider-border-color,#ebedf0)}.van-divider:after,.van-divider:before{display:block;-webkit-flex:1;flex:1;box-sizing:border-box;height:1px;border-color:inherit;border-style:inherit;border-width:1px 0 0}.van-divider:before{content:""}.van-divider--hairline:after,.van-divider--hairline:before{-webkit-transform:scaleY(.5);transform:scaleY(.5)}.van-divider--dashed{border-style:dashed}.van-divider--center:before,.van-divider--left:before,.van-divider--right:before{margin-right:16px;margin-right:var(--divider-content-padding,16px)}.van-divider--center:after,.van-divider--left:after,.van-divider--right:after{content:"";margin-left:16px;margin-left:var(--divider-content-padding,16px)}.van-divider--left:before{max-width:10%;max-width:var(--divider-content-left-width,10%)}.van-divider--right:after{max-width:10%;max-width:var(--divider-content-right-width,10%)}
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/mixins/touch.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | Object.defineProperty(exports, '__esModule', { value: true });
3 | exports.touch = void 0;
4 | // @ts-nocheck
5 | var MIN_DISTANCE = 10;
6 | function getDirection(x, y) {
7 | if (x > y && x > MIN_DISTANCE) {
8 | return 'horizontal';
9 | }
10 | if (y > x && y > MIN_DISTANCE) {
11 | return 'vertical';
12 | }
13 | return '';
14 | }
15 | exports.touch = Behavior({
16 | methods: {
17 | resetTouchStatus: function () {
18 | this.direction = '';
19 | this.deltaX = 0;
20 | this.deltaY = 0;
21 | this.offsetX = 0;
22 | this.offsetY = 0;
23 | },
24 | touchStart: function (event) {
25 | this.resetTouchStatus();
26 | var touch = event.touches[0];
27 | this.startX = touch.clientX;
28 | this.startY = touch.clientY;
29 | },
30 | touchMove: function (event) {
31 | var touch = event.touches[0];
32 | this.deltaX = touch.clientX - this.startX;
33 | this.deltaY = touch.clientY - this.startY;
34 | this.offsetX = Math.abs(this.deltaX);
35 | this.offsetY = Math.abs(this.deltaY);
36 | this.direction =
37 | this.direction || getDirection(this.offsetX, this.offsetY);
38 | },
39 | },
40 | });
41 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/radio/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
10 |
11 |
12 |
13 |
21 |
22 |
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/collapse-item/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
19 |
23 |
27 |
28 |
32 |
33 |
38 |
41 |
42 |
43 |
44 |
45 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/wxs/memoize.wxs:
--------------------------------------------------------------------------------
1 | /**
2 | * Simple memoize
3 | * wxs doesn't support fn.apply, so this memoize only support up to 2 args
4 | */
5 | /* eslint-disable */
6 |
7 | function isPrimitive(value) {
8 | var type = typeof value;
9 | return (
10 | type === 'boolean' ||
11 | type === 'number' ||
12 | type === 'string' ||
13 | type === 'undefined' ||
14 | value === null
15 | );
16 | }
17 |
18 | // mock simple fn.call in wxs
19 | function call(fn, args) {
20 | if (args.length === 2) {
21 | return fn(args[0], args[1]);
22 | }
23 |
24 | if (args.length === 1) {
25 | return fn(args[0]);
26 | }
27 |
28 | return fn();
29 | }
30 |
31 | function serializer(args) {
32 | if (args.length === 1 && isPrimitive(args[0])) {
33 | return args[0];
34 | }
35 | var obj = {};
36 | for (var i = 0; i < args.length; i++) {
37 | obj['key' + i] = args[i];
38 | }
39 | return JSON.stringify(obj);
40 | }
41 |
42 | function memoize(fn) {
43 | var cache = {};
44 |
45 | return function() {
46 | var key = serializer(arguments);
47 | if (cache[key] === undefined) {
48 | cache[key] = call(fn, arguments);
49 | }
50 |
51 | return cache[key];
52 | };
53 | }
54 |
55 | module.exports = memoize;
56 |
--------------------------------------------------------------------------------
/miniprogram/components/detail/tab_list.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/sidebar-item/index.wxss:
--------------------------------------------------------------------------------
1 | @import '../common/index.wxss';.van-sidebar-item{display:block;box-sizing:border-box;overflow:hidden;border-left:3px solid transparent;-webkit-user-select:none;user-select:none;padding:20px 12px 20px 8px;padding:var(--sidebar-padding,20px 12px 20px 8px);font-size:14px;font-size:var(--sidebar-font-size,14px);line-height:20px;line-height:var(--sidebar-line-height,20px);color:#323233;color:var(--sidebar-text-color,#323233);background-color:#f7f8fa;background-color:var(--sidebar-background-color,#f7f8fa)}.van-sidebar-item__text{position:relative;display:inline-block;word-break:break-all}.van-sidebar-item--hover:not(.van-sidebar-item--disabled){background-color:#f2f3f5;background-color:var(--sidebar-active-color,#f2f3f5)}.van-sidebar-item:after{border-bottom-width:1px}.van-sidebar-item--selected{color:#323233;color:var(--sidebar-selected-text-color,#323233);font-weight:500;font-weight:var(--sidebar-selected-font-weight,500);border-color:#ee0a24;border-color:var(--sidebar-selected-border-color,#ee0a24)}.van-sidebar-item--selected:after{border-right-width:1px}.van-sidebar-item--selected,.van-sidebar-item--selected.van-sidebar-item--hover{background-color:#fff;background-color:var(--sidebar-selected-background-color,#fff)}.van-sidebar-item--disabled{color:#c8c9cc;color:var(--sidebar-disabled-text-color,#c8c9cc)}
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/goods-action-button/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | Object.defineProperty(exports, '__esModule', { value: true });
3 | var component_1 = require('../common/component');
4 | var link_1 = require('../mixins/link');
5 | var button_1 = require('../mixins/button');
6 | var open_type_1 = require('../mixins/open-type');
7 | component_1.VantComponent({
8 | mixins: [link_1.link, button_1.button, open_type_1.openType],
9 | relation: {
10 | type: 'ancestor',
11 | name: 'goods-action',
12 | current: 'goods-action-button',
13 | },
14 | props: {
15 | text: String,
16 | color: String,
17 | loading: Boolean,
18 | disabled: Boolean,
19 | plain: Boolean,
20 | type: {
21 | type: String,
22 | value: 'danger',
23 | },
24 | },
25 | methods: {
26 | onClick: function (event) {
27 | this.$emit('click', event.detail);
28 | this.jumpLink();
29 | },
30 | updateStyle: function () {
31 | if (this.parent == null) {
32 | return;
33 | }
34 | var _a = this.parent.children,
35 | children = _a === void 0 ? [] : _a;
36 | var length = children.length;
37 | var index = children.indexOf(this);
38 | this.setData({
39 | isFirst: index === 0,
40 | isLast: index === length - 1,
41 | });
42 | },
43 | },
44 | });
45 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/card/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | Object.defineProperty(exports, '__esModule', { value: true });
3 | var link_1 = require('../mixins/link');
4 | var component_1 = require('../common/component');
5 | component_1.VantComponent({
6 | classes: [
7 | 'num-class',
8 | 'desc-class',
9 | 'thumb-class',
10 | 'title-class',
11 | 'price-class',
12 | 'origin-price-class',
13 | ],
14 | mixins: [link_1.link],
15 | props: {
16 | tag: String,
17 | num: String,
18 | desc: String,
19 | thumb: String,
20 | title: String,
21 | price: {
22 | type: String,
23 | observer: 'updatePrice',
24 | },
25 | centered: Boolean,
26 | lazyLoad: Boolean,
27 | thumbLink: String,
28 | originPrice: String,
29 | thumbMode: {
30 | type: String,
31 | value: 'aspectFit',
32 | },
33 | currency: {
34 | type: String,
35 | value: '¥',
36 | },
37 | },
38 | methods: {
39 | updatePrice: function () {
40 | var price = this.data.price;
41 | var priceArr = price.toString().split('.');
42 | this.setData({
43 | integerStr: priceArr[0],
44 | decimalStr: priceArr[1] ? '.' + priceArr[1] : '',
45 | });
46 | },
47 | onClickThumb: function () {
48 | this.jumpLink('thumbLink');
49 | },
50 | },
51 | });
52 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/search/index.wxss:
--------------------------------------------------------------------------------
1 | @import '../common/index.wxss';.van-search{-webkit-align-items:center;align-items:center;box-sizing:border-box;padding:10px 12px;padding:var(--search-padding,10px 12px)}.van-search,.van-search__content{display:-webkit-flex;display:flex}.van-search__content{-webkit-flex:1;flex:1;padding-left:12px;padding-left:var(--padding-sm,12px);border-radius:2px;border-radius:var(--border-radius-sm,2px);background-color:#f7f8fa;background-color:var(--search-background-color,#f7f8fa)}.van-search__content--round{border-radius:17px;border-radius:calc(var(--search-input-height, 34px)/2)}.van-search__label{padding:0 5px;padding:var(--search-label-padding,0 5px);font-size:14px;font-size:var(--search-label-font-size,14px);line-height:34px;line-height:var(--search-input-height,34px);color:#323233;color:var(--search-label-color,#323233)}.van-search__field{-webkit-flex:1;flex:1}.van-search__field__left-icon{color:#969799;color:var(--search-left-icon-color,#969799)}.van-search--withaction{padding-right:0}.van-search__action{padding:0 8px;padding:var(--search-action-padding,0 8px);font-size:14px;font-size:var(--search-action-font-size,14px);line-height:34px;line-height:var(--search-input-height,34px);color:#323233;color:var(--search-action-text-color,#323233)}.van-search__action--hover{background-color:#f2f3f5;background-color:var(--active-color,#f2f3f5)}
--------------------------------------------------------------------------------
/miniprogram/components/proList/proList.wxml:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/sidebar/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | Object.defineProperty(exports, '__esModule', { value: true });
3 | var component_1 = require('../common/component');
4 | component_1.VantComponent({
5 | relation: {
6 | name: 'sidebar-item',
7 | type: 'descendant',
8 | current: 'sidebar',
9 | linked: function () {
10 | this.setActive(this.data.activeKey);
11 | },
12 | unlinked: function () {
13 | this.setActive(this.data.activeKey);
14 | },
15 | },
16 | props: {
17 | activeKey: {
18 | type: Number,
19 | value: 0,
20 | observer: 'setActive',
21 | },
22 | },
23 | beforeCreate: function () {
24 | this.currentActive = -1;
25 | },
26 | methods: {
27 | setActive: function (activeKey) {
28 | var _a = this,
29 | children = _a.children,
30 | currentActive = _a.currentActive;
31 | if (!children.length) {
32 | return Promise.resolve();
33 | }
34 | this.currentActive = activeKey;
35 | var stack = [];
36 | if (currentActive !== activeKey && children[currentActive]) {
37 | stack.push(children[currentActive].setActive(false));
38 | }
39 | if (children[activeKey]) {
40 | stack.push(children[activeKey].setActive(true));
41 | }
42 | return Promise.all(stack);
43 | },
44 | },
45 | });
46 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/common/version.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | Object.defineProperty(exports, '__esModule', { value: true });
3 | exports.canIUseAnimate = exports.canIUseFormFieldButton = exports.canIUseModel = void 0;
4 | var utils_1 = require('./utils');
5 | function compareVersion(v1, v2) {
6 | v1 = v1.split('.');
7 | v2 = v2.split('.');
8 | var len = Math.max(v1.length, v2.length);
9 | while (v1.length < len) {
10 | v1.push('0');
11 | }
12 | while (v2.length < len) {
13 | v2.push('0');
14 | }
15 | for (var i = 0; i < len; i++) {
16 | var num1 = parseInt(v1[i], 10);
17 | var num2 = parseInt(v2[i], 10);
18 | if (num1 > num2) {
19 | return 1;
20 | }
21 | if (num1 < num2) {
22 | return -1;
23 | }
24 | }
25 | return 0;
26 | }
27 | function canIUseModel() {
28 | var system = utils_1.getSystemInfoSync();
29 | return compareVersion(system.SDKVersion, '2.9.3') >= 0;
30 | }
31 | exports.canIUseModel = canIUseModel;
32 | function canIUseFormFieldButton() {
33 | var system = utils_1.getSystemInfoSync();
34 | return compareVersion(system.SDKVersion, '2.10.3') >= 0;
35 | }
36 | exports.canIUseFormFieldButton = canIUseFormFieldButton;
37 | function canIUseAnimate() {
38 | var system = utils_1.getSystemInfoSync();
39 | return compareVersion(system.SDKVersion, '2.9.0') >= 0;
40 | }
41 | exports.canIUseAnimate = canIUseAnimate;
42 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/collapse-item/index.wxss:
--------------------------------------------------------------------------------
1 | @import '../common/index.wxss';.van-collapse-item__title .van-cell__right-icon{-webkit-transform:rotate(90deg);transform:rotate(90deg);transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s;transition:-webkit-transform var(--collapse-item-transition-duration,.3s);transition:transform var(--collapse-item-transition-duration,.3s);transition:transform var(--collapse-item-transition-duration,.3s),-webkit-transform var(--collapse-item-transition-duration,.3s)}.van-collapse-item__title--expanded .van-cell__right-icon{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.van-collapse-item__title--disabled .van-cell,.van-collapse-item__title--disabled .van-cell__right-icon{color:#c8c9cc!important;color:var(--collapse-item-title-disabled-color,#c8c9cc)!important}.van-collapse-item__title--disabled .van-cell--hover{background-color:#fff!important;background-color:var(--white,#fff)!important}.van-collapse-item__wrapper{overflow:hidden}.van-collapse-item__content{padding:15px;padding:var(--collapse-item-content-padding,15px);color:#969799;color:var(--collapse-item-content-text-color,#969799);font-size:13px;font-size:var(--collapse-item-content-font-size,13px);line-height:1.5;line-height:var(--collapse-item-content-line-height,1.5);background-color:#fff;background-color:var(--collapse-item-content-background-color,#fff)}
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/share-sheet/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | Object.defineProperty(exports, '__esModule', { value: true });
3 | var component_1 = require('../common/component');
4 | component_1.VantComponent({
5 | props: {
6 | // whether to show popup
7 | show: Boolean,
8 | // overlay custom style
9 | overlayStyle: Object,
10 | // z-index
11 | zIndex: {
12 | type: Number,
13 | value: 100,
14 | },
15 | title: String,
16 | cancelText: {
17 | type: String,
18 | value: '取消',
19 | },
20 | description: String,
21 | options: {
22 | type: Array,
23 | value: [],
24 | },
25 | overlay: {
26 | type: Boolean,
27 | value: true,
28 | },
29 | safeAreaInsetBottom: {
30 | type: Boolean,
31 | value: true,
32 | },
33 | closeOnClickOverlay: {
34 | type: Boolean,
35 | value: true,
36 | },
37 | duration: {
38 | type: null,
39 | value: 300,
40 | },
41 | },
42 | methods: {
43 | onClickOverlay: function () {
44 | this.$emit('click-overlay');
45 | },
46 | onCancel: function () {
47 | this.onClose();
48 | this.$emit('cancel');
49 | },
50 | onSelect: function (event) {
51 | this.$emit('select', event.detail);
52 | },
53 | onClose: function () {
54 | this.$emit('close');
55 | },
56 | },
57 | });
58 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/mixins/page-scroll.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | Object.defineProperty(exports, '__esModule', { value: true });
3 | exports.pageScrollMixin = void 0;
4 | function getCurrentPage() {
5 | var pages = getCurrentPages();
6 | return pages[pages.length - 1] || {};
7 | }
8 | function onPageScroll(event) {
9 | var _a = getCurrentPage().vanPageScroller,
10 | vanPageScroller = _a === void 0 ? [] : _a;
11 | vanPageScroller.forEach(function (scroller) {
12 | if (typeof scroller === 'function') {
13 | // @ts-ignore
14 | scroller(event);
15 | }
16 | });
17 | }
18 | exports.pageScrollMixin = function (scroller) {
19 | return Behavior({
20 | attached: function () {
21 | var page = getCurrentPage();
22 | if (Array.isArray(page.vanPageScroller)) {
23 | page.vanPageScroller.push(scroller.bind(this));
24 | } else {
25 | page.vanPageScroller =
26 | typeof page.onPageScroll === 'function'
27 | ? [page.onPageScroll.bind(page), scroller.bind(this)]
28 | : [scroller.bind(this)];
29 | }
30 | page.onPageScroll = onPageScroll;
31 | },
32 | detached: function () {
33 | var page = getCurrentPage();
34 | page.vanPageScroller = (page.vanPageScroller || []).filter(function (
35 | item
36 | ) {
37 | return item !== scroller;
38 | });
39 | },
40 | });
41 | };
42 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/circle/canvas.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | Object.defineProperty(exports, '__esModule', { value: true });
3 | exports.adaptor = void 0;
4 | function adaptor(ctx) {
5 | // @ts-ignore
6 | return Object.assign(ctx, {
7 | setStrokeStyle: function (val) {
8 | ctx.strokeStyle = val;
9 | },
10 | setLineWidth: function (val) {
11 | ctx.lineWidth = val;
12 | },
13 | setLineCap: function (val) {
14 | ctx.lineCap = val;
15 | },
16 | setFillStyle: function (val) {
17 | ctx.fillStyle = val;
18 | },
19 | setFontSize: function (val) {
20 | ctx.font = String(val);
21 | },
22 | setGlobalAlpha: function (val) {
23 | ctx.globalAlpha = val;
24 | },
25 | setLineJoin: function (val) {
26 | ctx.lineJoin = val;
27 | },
28 | setTextAlign: function (val) {
29 | ctx.textAlign = val;
30 | },
31 | setMiterLimit: function (val) {
32 | ctx.miterLimit = val;
33 | },
34 | setShadow: function (offsetX, offsetY, blur, color) {
35 | ctx.shadowOffsetX = offsetX;
36 | ctx.shadowOffsetY = offsetY;
37 | ctx.shadowBlur = blur;
38 | ctx.shadowColor = color;
39 | },
40 | setTextBaseline: function (val) {
41 | ctx.textBaseline = val;
42 | },
43 | createCircularGradient: function () {},
44 | draw: function () {},
45 | });
46 | }
47 | exports.adaptor = adaptor;
48 |
--------------------------------------------------------------------------------
/miniprogram/pages/news_detail/news_detail.js:
--------------------------------------------------------------------------------
1 | // miniprogram/pages/news_detail.js
2 | Page({
3 |
4 | /**
5 | * 页面的初始数据
6 | */
7 | data: {
8 | coverImg:'',
9 | title:'',
10 | data:'',
11 | content:''
12 | },
13 |
14 | /**
15 | * 生命周期函数--监听页面加载
16 | */
17 | onLoad: function (options) {
18 | !!options.news_data && this.setData({
19 | ...JSON.parse(options.news_data)
20 | })
21 | },
22 |
23 | /**
24 | * 生命周期函数--监听页面初次渲染完成
25 | */
26 | onReady: function () {
27 |
28 | },
29 |
30 | /**
31 | * 生命周期函数--监听页面显示
32 | */
33 | onShow: function () {
34 |
35 | },
36 |
37 | /**
38 | * 生命周期函数--监听页面隐藏
39 | */
40 | onHide: function () {
41 |
42 | },
43 |
44 | /**
45 | * 生命周期函数--监听页面卸载
46 | */
47 | onUnload: function () {
48 |
49 | },
50 |
51 | /**
52 | * 页面相关事件处理函数--监听用户下拉动作
53 | */
54 | onPullDownRefresh: function () {
55 |
56 | },
57 |
58 | /**
59 | * 页面上拉触底事件的处理函数
60 | */
61 | onReachBottom: function () {
62 |
63 | },
64 |
65 | /**
66 | * 用户点击右上角分享
67 | */
68 | onShareAppMessage: function () {
69 | return {
70 | path: 'pages/homepage/homepage' ,
71 | imageUrl:'https://lg-7pc5j6x4-1257302752.cos.ap-shanghai.myqcloud.com/logo3.jpg',
72 | success: function (res) {
73 | console.log('转发成功')
74 | },
75 | fail: function (res) {
76 | console.log('转发失败')
77 | }
78 | }
79 | },
80 | })
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/radio/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | Object.defineProperty(exports, '__esModule', { value: true });
3 | var component_1 = require('../common/component');
4 | component_1.VantComponent({
5 | field: true,
6 | relation: {
7 | name: 'radio-group',
8 | type: 'ancestor',
9 | current: 'radio',
10 | },
11 | classes: ['icon-class', 'label-class'],
12 | props: {
13 | name: null,
14 | value: null,
15 | disabled: Boolean,
16 | useIconSlot: Boolean,
17 | checkedColor: String,
18 | labelPosition: {
19 | type: String,
20 | value: 'right',
21 | },
22 | labelDisabled: Boolean,
23 | shape: {
24 | type: String,
25 | value: 'round',
26 | },
27 | iconSize: {
28 | type: null,
29 | value: 20,
30 | },
31 | },
32 | methods: {
33 | emitChange: function (value) {
34 | var instance = this.parent || this;
35 | instance.$emit('input', value);
36 | instance.$emit('change', value);
37 | },
38 | onChange: function () {
39 | if (!this.data.disabled) {
40 | this.emitChange(this.data.name);
41 | }
42 | },
43 | onClickLabel: function () {
44 | var _a = this.data,
45 | disabled = _a.disabled,
46 | labelDisabled = _a.labelDisabled,
47 | name = _a.name;
48 | if (!disabled && !labelDisabled) {
49 | this.emitChange(name);
50 | }
51 | },
52 | },
53 | });
54 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/notice-bar/index.wxss:
--------------------------------------------------------------------------------
1 | @import '../common/index.wxss';.van-notice-bar{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;height:40px;height:var(--notice-bar-height,40px);padding:0 16px;padding:var(--notice-bar-padding,0 16px);font-size:14px;font-size:var(--notice-bar-font-size,14px);color:#ed6a0c;color:var(--notice-bar-text-color,#ed6a0c);line-height:24px;line-height:var(--notice-bar-line-height,24px);background-color:#fffbe8;background-color:var(--notice-bar-background-color,#fffbe8)}.van-notice-bar--withicon{position:relative;padding-right:40px}.van-notice-bar--wrapable{height:auto;padding:8px 16px;padding:var(--notice-bar-wrapable-padding,8px 16px)}.van-notice-bar--wrapable .van-notice-bar__wrap{height:auto}.van-notice-bar--wrapable .van-notice-bar__content{position:relative;white-space:normal}.van-notice-bar__left-icon{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;margin-right:4px;vertical-align:middle}.van-notice-bar__left-icon,.van-notice-bar__right-icon{font-size:16px;font-size:var(--notice-bar-icon-size,16px);min-width:22px;min-width:var(--notice-bar-icon-min-width,22px)}.van-notice-bar__right-icon{position:absolute;top:10px;right:15px}.van-notice-bar__wrap{position:relative;-webkit-flex:1;flex:1;overflow:hidden;height:24px;height:var(--notice-bar-line-height,24px)}.van-notice-bar__content{position:absolute;white-space:nowrap}.van-notice-bar__content.van-ellipsis{max-width:100%}
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/toast/index.wxss:
--------------------------------------------------------------------------------
1 | @import '../common/index.wxss';.van-toast{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:initial;color:#fff;color:var(--toast-text-color,#fff);font-size:14px;font-size:var(--toast-font-size,14px);line-height:20px;line-height:var(--toast-line-height,20px);white-space:pre-wrap;word-wrap:break-word;background-color:rgba(0,0,0,.7);background-color:var(--toast-background-color,rgba(0,0,0,.7));border-radius:8px;border-radius:var(--toast-border-radius,8px)}.van-toast__container{position:fixed;top:50%;left:50%;width:-webkit-fit-content;width:fit-content;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);max-width:70%;max-width:var(--toast-max-width,70%)}.van-toast--text{min-width:96px;min-width:var(--toast-text-min-width,96px);padding:8px 12px;padding:var(--toast-text-padding,8px 12px)}.van-toast--icon{width:88px;width:var(--toast-default-width,88px);min-height:88px;min-height:var(--toast-default-min-height,88px);padding:16px;padding:var(--toast-default-padding,16px)}.van-toast--icon .van-toast__icon{font-size:36px;font-size:var(--toast-icon-size,36px)}.van-toast--icon .van-toast__text{padding-top:8px}.van-toast__loading{margin:10px 0}.van-toast--top{-webkit-transform:translateY(-30vh);transform:translateY(-30vh)}.van-toast--bottom{-webkit-transform:translateY(30vh);transform:translateY(30vh)}
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/share-sheet/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
17 |
30 |
31 |
32 |
39 |
40 |
41 |
42 |
43 |
46 |
47 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/progress/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | Object.defineProperty(exports, '__esModule', { value: true });
3 | var component_1 = require('../common/component');
4 | var color_1 = require('../common/color');
5 | var utils_1 = require('../common/utils');
6 | component_1.VantComponent({
7 | props: {
8 | inactive: Boolean,
9 | percentage: {
10 | type: Number,
11 | observer: 'setLeft',
12 | },
13 | pivotText: String,
14 | pivotColor: String,
15 | trackColor: String,
16 | showPivot: {
17 | type: Boolean,
18 | value: true,
19 | },
20 | color: {
21 | type: String,
22 | value: color_1.BLUE,
23 | },
24 | textColor: {
25 | type: String,
26 | value: '#fff',
27 | },
28 | strokeWidth: {
29 | type: null,
30 | value: 4,
31 | },
32 | },
33 | data: {
34 | right: 0,
35 | },
36 | mounted: function () {
37 | this.setLeft();
38 | },
39 | methods: {
40 | setLeft: function () {
41 | var _this = this;
42 | Promise.all([
43 | utils_1.getRect.call(this, '.van-progress'),
44 | utils_1.getRect.call(this, '.van-progress__pivot'),
45 | ]).then(function (_a) {
46 | var portion = _a[0],
47 | pivot = _a[1];
48 | if (portion && pivot) {
49 | _this.setData({
50 | right: (pivot.width * (_this.data.percentage - 100)) / 100,
51 | });
52 | }
53 | });
54 | },
55 | },
56 | });
57 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/collapse/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | Object.defineProperty(exports, '__esModule', { value: true });
3 | var component_1 = require('../common/component');
4 | component_1.VantComponent({
5 | relation: {
6 | name: 'collapse-item',
7 | type: 'descendant',
8 | current: 'collapse',
9 | },
10 | props: {
11 | value: {
12 | type: null,
13 | observer: 'updateExpanded',
14 | },
15 | accordion: {
16 | type: Boolean,
17 | observer: 'updateExpanded',
18 | },
19 | border: {
20 | type: Boolean,
21 | value: true,
22 | },
23 | },
24 | methods: {
25 | updateExpanded: function () {
26 | this.children.forEach(function (child) {
27 | child.updateExpanded();
28 | });
29 | },
30 | switch: function (name, expanded) {
31 | var _a = this.data,
32 | accordion = _a.accordion,
33 | value = _a.value;
34 | var changeItem = name;
35 | if (!accordion) {
36 | name = expanded
37 | ? (value || []).concat(name)
38 | : (value || []).filter(function (activeName) {
39 | return activeName !== name;
40 | });
41 | } else {
42 | name = expanded ? name : '';
43 | }
44 | if (expanded) {
45 | this.$emit('open', changeItem);
46 | } else {
47 | this.$emit('close', changeItem);
48 | }
49 | this.$emit('change', name);
50 | this.$emit('input', name);
51 | },
52 | },
53 | });
54 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/nav-bar/index.wxss:
--------------------------------------------------------------------------------
1 | @import '../common/index.wxss';.van-nav-bar{position:relative;text-align:center;-webkit-user-select:none;user-select:none;height:46px;height:var(--nav-bar-height,46px);line-height:46px;line-height:var(--nav-bar-height,46px);background-color:#fff;background-color:var(--nav-bar-background-color,#fff)}.van-nav-bar__content{position:relative;height:100%}.van-nav-bar__text{display:inline-block;vertical-align:middle;margin:0 -16px;margin:0 -var(--padding-md,16px);padding:0 16px;padding:0 var(--padding-md,16px);color:#1989fa;color:var(--nav-bar-text-color,#1989fa)}.van-nav-bar__text--hover{background-color:#f2f3f5;background-color:var(--active-color,#f2f3f5)}.van-nav-bar__arrow{vertical-align:middle;font-size:16px!important;font-size:var(--nav-bar-arrow-size,16px)!important;color:#1989fa!important;color:var(--nav-bar-icon-color,#1989fa)!important}.van-nav-bar__arrow+.van-nav-bar__text{margin-left:-20px;padding-left:25px}.van-nav-bar--fixed{position:fixed;top:0;left:0;width:100%}.van-nav-bar__title{max-width:60%;margin:0 auto;color:#323233;color:var(--nav-bar-title-text-color,#323233);font-weight:500;font-weight:var(--font-weight-bold,500);font-size:16px;font-size:var(--nav-bar-title-font-size,16px)}.van-nav-bar__left,.van-nav-bar__right{position:absolute;top:0;bottom:0;display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;font-size:14px;font-size:var(--font-size-md,14px)}.van-nav-bar__left{left:16px;left:var(--padding-md,16px)}.van-nav-bar__right{right:16px;right:var(--padding-md,16px)}
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/field/props.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | Object.defineProperty(exports, '__esModule', { value: true });
3 | exports.textareaProps = exports.inputProps = exports.commonProps = void 0;
4 | exports.commonProps = {
5 | value: {
6 | type: String,
7 | observer: function (value) {
8 | if (value !== this.value) {
9 | this.setData({ innerValue: value });
10 | this.value = value;
11 | }
12 | },
13 | },
14 | placeholder: String,
15 | placeholderStyle: String,
16 | placeholderClass: String,
17 | disabled: Boolean,
18 | maxlength: {
19 | type: Number,
20 | value: -1,
21 | },
22 | cursorSpacing: {
23 | type: Number,
24 | value: 50,
25 | },
26 | autoFocus: Boolean,
27 | focus: Boolean,
28 | cursor: {
29 | type: Number,
30 | value: -1,
31 | },
32 | selectionStart: {
33 | type: Number,
34 | value: -1,
35 | },
36 | selectionEnd: {
37 | type: Number,
38 | value: -1,
39 | },
40 | adjustPosition: {
41 | type: Boolean,
42 | value: true,
43 | },
44 | holdKeyboard: Boolean,
45 | };
46 | exports.inputProps = {
47 | type: {
48 | type: String,
49 | value: 'text',
50 | },
51 | password: Boolean,
52 | confirmType: String,
53 | confirmHold: Boolean,
54 | };
55 | exports.textareaProps = {
56 | autoHeight: Boolean,
57 | fixed: Boolean,
58 | showConfirmBar: {
59 | type: Boolean,
60 | value: true,
61 | },
62 | disableDefaultPadding: {
63 | type: Boolean,
64 | value: true,
65 | },
66 | };
67 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/submit-bar/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
13 |
14 | {{ tip }}
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 | {{ label || '合计:' }}
23 |
24 | {{ currency }}
25 | {{ integerStr }}{{decimalStr}}
26 |
27 | {{ suffixLabel }}
28 |
29 |
39 | {{ loading ? '' : buttonText }}
40 |
41 |
42 |
43 |
44 |
45 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/tab/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | Object.defineProperty(exports, '__esModule', { value: true });
3 | var component_1 = require('../common/component');
4 | component_1.VantComponent({
5 | relation: {
6 | name: 'tabs',
7 | type: 'ancestor',
8 | current: 'tab',
9 | },
10 | props: {
11 | dot: {
12 | type: Boolean,
13 | observer: 'update',
14 | },
15 | info: {
16 | type: null,
17 | observer: 'update',
18 | },
19 | title: {
20 | type: String,
21 | observer: 'update',
22 | },
23 | disabled: {
24 | type: Boolean,
25 | observer: 'update',
26 | },
27 | titleStyle: {
28 | type: String,
29 | observer: 'update',
30 | },
31 | name: {
32 | type: [Number, String],
33 | value: '',
34 | },
35 | },
36 | data: {
37 | active: false,
38 | },
39 | methods: {
40 | getComputedName: function () {
41 | if (this.data.name !== '') {
42 | return this.data.name;
43 | }
44 | return this.index;
45 | },
46 | updateRender: function (active, parent) {
47 | var parentData = parent.data;
48 | this.inited = this.inited || active;
49 | this.setData({
50 | active: active,
51 | shouldRender: this.inited || !parentData.lazyRender,
52 | shouldShow: active || parentData.animated,
53 | });
54 | },
55 | update: function () {
56 | if (this.parent) {
57 | this.parent.updateTabs();
58 | }
59 | },
60 | },
61 | });
62 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/dropdown-item/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
22 |
31 |
36 | {{ item.text }}
37 |
38 |
44 |
45 |
46 |
47 |
48 |
49 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/stepper/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
15 |
26 |
37 |
38 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/dropdown-menu/index.wxss:
--------------------------------------------------------------------------------
1 | @import '../common/index.wxss';.van-dropdown-menu{display:-webkit-flex;display:flex;box-shadow:0 2px 12px rgba(100,101,102,.12);-webkit-user-select:none;user-select:none;height:50px;height:var(--dropdown-menu-height,50px);background-color:#fff;background-color:var(--dropdown-menu-background-color,#fff)}.van-dropdown-menu__item{display:-webkit-flex;display:flex;-webkit-flex:1;flex:1;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center;min-width:0}.van-dropdown-menu__item:active{opacity:.7}.van-dropdown-menu__item--disabled:active{opacity:1}.van-dropdown-menu__item--disabled .van-dropdown-menu__title{color:#969799;color:var(--dropdown-menu-title-disabled-text-color,#969799)}.van-dropdown-menu__title{position:relative;box-sizing:border-box;max-width:100%;padding:0 8px;padding:var(--dropdown-menu-title-padding,0 8px);color:#323233;color:var(--dropdown-menu-title-text-color,#323233);font-size:15px;font-size:var(--dropdown-menu-title-font-size,15px);line-height:18px;line-height:var(--dropdown-menu-title-line-height,18px)}.van-dropdown-menu__title:after{position:absolute;top:50%;right:-4px;margin-top:-5px;border-color:transparent transparent currentcolor currentcolor;border-style:solid;border-width:3px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);opacity:.8;content:""}.van-dropdown-menu__title--active{color:#ee0a24;color:var(--dropdown-menu-title-active-text-color,#ee0a24)}.van-dropdown-menu__title--down:after{margin-top:-1px;-webkit-transform:rotate(135deg);transform:rotate(135deg)}
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/cell/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
10 |
16 |
17 |
18 |
22 | {{ title }}
23 |
24 |
25 |
26 |
27 | {{ label }}
28 |
29 |
30 |
31 |
32 | {{ value }}
33 |
34 |
35 |
36 |
42 |
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/common/validator.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | Object.defineProperty(exports, '__esModule', { value: true });
3 | exports.isVideoUrl = exports.isImageUrl = exports.isBoolean = exports.isNumber = exports.isObj = exports.isDef = exports.isPromise = exports.isPlainObject = exports.isFunction = void 0;
4 | function isFunction(val) {
5 | return typeof val === 'function';
6 | }
7 | exports.isFunction = isFunction;
8 | function isPlainObject(val) {
9 | return val !== null && typeof val === 'object' && !Array.isArray(val);
10 | }
11 | exports.isPlainObject = isPlainObject;
12 | function isPromise(val) {
13 | return isPlainObject(val) && isFunction(val.then) && isFunction(val.catch);
14 | }
15 | exports.isPromise = isPromise;
16 | function isDef(value) {
17 | return value !== undefined && value !== null;
18 | }
19 | exports.isDef = isDef;
20 | function isObj(x) {
21 | var type = typeof x;
22 | return x !== null && (type === 'object' || type === 'function');
23 | }
24 | exports.isObj = isObj;
25 | function isNumber(value) {
26 | return /^\d+(\.\d+)?$/.test(value);
27 | }
28 | exports.isNumber = isNumber;
29 | function isBoolean(value) {
30 | return typeof value === 'boolean';
31 | }
32 | exports.isBoolean = isBoolean;
33 | var IMAGE_REGEXP = /\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;
34 | var VIDEO_REGEXP = /\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv)/i;
35 | function isImageUrl(url) {
36 | return IMAGE_REGEXP.test(url);
37 | }
38 | exports.isImageUrl = isImageUrl;
39 | function isVideoUrl(url) {
40 | return VIDEO_REGEXP.test(url);
41 | }
42 | exports.isVideoUrl = isVideoUrl;
43 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/goods-action-button/index.wxss:
--------------------------------------------------------------------------------
1 | @import '../common/index.wxss';:host{-webkit-flex:1;flex:1}.van-goods-action-button{--button-warning-background-color:linear-gradient(90deg,#ffd01e,#ff8917);--button-warning-background-color:var(--goods-action-button-warning-color,linear-gradient(90deg,#ffd01e,#ff8917));--button-danger-background-color:linear-gradient(90deg,#ff6034,#ee0a24);--button-danger-background-color:var(--goods-action-button-danger-color,linear-gradient(90deg,#ff6034,#ee0a24));--button-default-height:40px;--button-default-height:var(--goods-action-button-height,40px);--button-line-height:20px;--button-line-height:var(--goods-action-button-line-height,20px);--button-plain-background-color:#fff;--button-plain-background-color:var(--goods-action-button-plain-color,#fff);display:block;--button-border-width:0}.van-goods-action-button--first{margin-left:5px;--button-border-radius:20px 0 0 20px;--button-border-radius:var(--goods-action-button-border-radius,20px) 0 0 var(--goods-action-button-border-radius,20px)}.van-goods-action-button--last{margin-right:5px;--button-border-radius:0 20px 20px 0;--button-border-radius:0 var(--goods-action-button-border-radius,20px) var(--goods-action-button-border-radius,20px) 0}.van-goods-action-button--first.van-goods-action-button--last{--button-border-radius:20px;--button-border-radius:var(--goods-action-button-border-radius,20px)}.van-goods-action-button--plain{--button-border-width:1px}.van-goods-action-button__inner{width:100%;font-weight:500!important;font-weight:var(--font-weight-bold,500)!important}@media (max-width:321px){.van-goods-action-button{font-size:13px}}
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/nav-bar/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
10 |
11 |
12 |
13 |
19 | {{ leftText }}
25 |
26 |
27 |
28 |
29 | {{ title }}
30 |
31 |
32 |
33 | {{ rightText }}
39 |
40 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/tree-select/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
8 |
9 |
10 |
21 |
22 |
23 |
24 |
25 |
32 | {{ item.text }}
33 |
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/grid-item/index.wxss:
--------------------------------------------------------------------------------
1 | @import '../common/index.wxss';.van-grid-item{position:relative;float:left;box-sizing:border-box}.van-grid-item--square{height:0}.van-grid-item__content{display:-webkit-flex;display:flex;-webkit-flex-direction:column;flex-direction:column;box-sizing:border-box;height:100%;padding:16px 8px;padding:var(--grid-item-content-padding,16px 8px);background-color:#fff;background-color:var(--grid-item-content-background-color,#fff)}.van-grid-item__content:after{z-index:1;border-width:0 1px 1px 0;border-bottom-width:var(--border-width-base,1px);border-right-width:var(--border-width-base,1px);border-top-width:0}.van-grid-item__content--surround:after{border-width:1px;border-width:var(--border-width-base,1px)}.van-grid-item__content--center{-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center}.van-grid-item__content--square{position:absolute;top:0;right:0;left:0}.van-grid-item__content--horizontal{-webkit-flex-direction:row;flex-direction:row}.van-grid-item__content--horizontal .van-grid-item__icon+.van-grid-item__text{margin-top:0;margin-left:8px}.van-grid-item__content--clickable:active{background-color:#f2f3f5;background-color:var(--grid-item-content-active-color,#f2f3f5)}.van-grid-item__icon{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;font-size:26px;font-size:var(--grid-item-icon-size,26px);height:26px;height:var(--grid-item-icon-size,26px)}.van-grid-item__text{word-wrap:break-word;color:#646566;color:var(--grid-item-text-color,#646566);font-size:12px;font-size:var(--grid-item-text-font-size,12px)}.van-grid-item__icon+.van-grid-item__text{margin-top:8px}
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/calendar/components/month/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | {{ computed.formatMonthTitle(date) }}
7 |
8 |
9 |
10 |
11 | {{ computed.getMark(date) }}
12 |
13 |
14 |
22 |
23 | {{ item.topInfo }}
24 | {{ item.text }}
25 |
26 | {{ item.bottomInfo }}
27 |
28 |
29 |
30 |
31 | {{ item.topInfo }}
32 | {{ item.text }}
33 |
34 | {{ item.bottomInfo }}
35 |
36 |
37 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/grid/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | Object.defineProperty(exports, '__esModule', { value: true });
3 | var component_1 = require('../common/component');
4 | var utils_1 = require('../common/utils');
5 | component_1.VantComponent({
6 | relation: {
7 | name: 'grid-item',
8 | type: 'descendant',
9 | current: 'grid',
10 | },
11 | props: {
12 | square: {
13 | type: Boolean,
14 | observer: 'updateChildren',
15 | },
16 | gutter: {
17 | type: [Number, String],
18 | value: 0,
19 | observer: 'updateChildren',
20 | },
21 | clickable: {
22 | type: Boolean,
23 | observer: 'updateChildren',
24 | },
25 | columnNum: {
26 | type: Number,
27 | value: 4,
28 | observer: 'updateChildren',
29 | },
30 | center: {
31 | type: Boolean,
32 | value: true,
33 | observer: 'updateChildren',
34 | },
35 | border: {
36 | type: Boolean,
37 | value: true,
38 | observer: 'updateChildren',
39 | },
40 | direction: {
41 | type: String,
42 | observer: 'updateChildren',
43 | },
44 | iconSize: {
45 | type: String,
46 | observer: 'updateChildren',
47 | },
48 | },
49 | data: {
50 | viewStyle: '',
51 | },
52 | created: function () {
53 | var gutter = this.data.gutter;
54 | if (gutter) {
55 | this.setData({
56 | viewStyle: 'padding-left: ' + utils_1.addUnit(gutter),
57 | });
58 | }
59 | },
60 | methods: {
61 | updateChildren: function () {
62 | this.children.forEach(function (child) {
63 | child.updateStyle();
64 | });
65 | },
66 | },
67 | });
68 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/radio/index.wxss:
--------------------------------------------------------------------------------
1 | @import '../common/index.wxss';.van-radio{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;overflow:hidden;-webkit-user-select:none;user-select:none}.van-radio__icon-wrap{-webkit-flex:none;flex:none}.van-radio__icon{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center;box-sizing:border-box;width:1em;height:1em;color:transparent;text-align:center;transition-property:color,border-color,background-color;border:1px solid #c8c9cc;border:1px solid var(--radio-border-color,#c8c9cc);font-size:20px;font-size:var(--radio-size,20px);transition-duration:.2s;transition-duration:var(--radio-transition-duration,.2s)}.van-radio__icon--round{border-radius:100%}.van-radio__icon--checked{color:#fff;color:var(--white,#fff);background-color:#1989fa;background-color:var(--radio-checked-icon-color,#1989fa);border-color:#1989fa;border-color:var(--radio-checked-icon-color,#1989fa)}.van-radio__icon--disabled{background-color:#ebedf0;background-color:var(--radio-disabled-background-color,#ebedf0);border-color:#c8c9cc;border-color:var(--radio-disabled-icon-color,#c8c9cc)}.van-radio__icon--disabled.van-radio__icon--checked{color:#c8c9cc;color:var(--radio-disabled-icon-color,#c8c9cc)}.van-radio__label{word-wrap:break-word;margin-left:10px;margin-left:var(--radio-label-margin,10px);color:#323233;color:var(--radio-label-color,#323233);line-height:20px;line-height:var(--radio-size,20px)}.van-radio__label--left{float:left;margin:0 10px 0 0;margin:0 var(--radio-label-margin,10px) 0 0}.van-radio__label--disabled{color:#c8c9cc;color:var(--radio-disabled-label-color,#c8c9cc)}.van-radio__label:empty{margin:0}
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/picker/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
13 |
27 |
28 |
32 |
33 |
34 |
35 |
36 |
37 | function isSimple(columns) {
38 | return columns.length && !columns[0].values;
39 | }
40 | module.exports = isSimple;
41 |
42 |
--------------------------------------------------------------------------------
/miniprogram/miniprogram_npm/@vant/weapp/action-sheet/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | Object.defineProperty(exports, '__esModule', { value: true });
3 | var component_1 = require('../common/component');
4 | var button_1 = require('../mixins/button');
5 | var open_type_1 = require('../mixins/open-type');
6 | component_1.VantComponent({
7 | mixins: [button_1.button, open_type_1.openType],
8 | props: {
9 | show: Boolean,
10 | title: String,
11 | cancelText: String,
12 | description: String,
13 | round: {
14 | type: Boolean,
15 | value: true,
16 | },
17 | zIndex: {
18 | type: Number,
19 | value: 100,
20 | },
21 | actions: {
22 | type: Array,
23 | value: [],
24 | },
25 | overlay: {
26 | type: Boolean,
27 | value: true,
28 | },
29 | closeOnClickOverlay: {
30 | type: Boolean,
31 | value: true,
32 | },
33 | closeOnClickAction: {
34 | type: Boolean,
35 | value: true,
36 | },
37 | safeAreaInsetBottom: {
38 | type: Boolean,
39 | value: true,
40 | },
41 | },
42 | methods: {
43 | onSelect: function (event) {
44 | var index = event.currentTarget.dataset.index;
45 | var item = this.data.actions[index];
46 | if (item && !item.disabled && !item.loading) {
47 | this.$emit('select', item);
48 | if (this.data.closeOnClickAction) {
49 | this.onClose();
50 | }
51 | }
52 | },
53 | onCancel: function () {
54 | this.$emit('cancel');
55 | },
56 | onClose: function () {
57 | this.$emit('close');
58 | },
59 | onClickOverlay: function () {
60 | this.$emit('click-overlay');
61 | this.onClose();
62 | },
63 | },
64 | });
65 |
--------------------------------------------------------------------------------