@cloudbase/weda-ui-mp 0.2.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/actions/showMessage/index.js +3 -0
- package/actions/showModal/index.js +3 -0
- package/actions/showToast/index.js +3 -0
- package/app.js +0 -0
- package/components/button/index.js +89 -0
- package/components/button/index.json +4 -0
- package/components/button/index.wxml +22 -0
- package/components/button/index.wxss +13 -0
- package/components/calendar/arrowright--line.svg +3 -0
- package/components/calendar/index.js +439 -0
- package/components/calendar/index.json +5 -0
- package/components/calendar/index.wxml +35 -0
- package/components/calendar/index.wxss +203 -0
- package/components/carousel/index.js +91 -0
- package/components/carousel/index.json +7 -0
- package/components/carousel/index.wxml +6 -0
- package/components/chart/bar/index.js +331 -0
- package/components/chart/bar/index.json +6 -0
- package/components/chart/bar/index.wxml +1 -0
- package/components/chart/bar/index.wxss +9 -0
- package/components/chart/common/config/bar.js +50 -0
- package/components/chart/common/config/global.js +16 -0
- package/components/chart/common/config/line.js +48 -0
- package/components/chart/common/config/pie.js +36 -0
- package/components/chart/common/core/eChartBar.js +267 -0
- package/components/chart/common/core/eChartBase.js +450 -0
- package/components/chart/common/core/eChartLine.js +251 -0
- package/components/chart/common/core/eChartPie.js +169 -0
- package/components/chart/common/data-transform.js +284 -0
- package/components/chart/common/lib/echarts.min.js +18 -0
- package/components/chart/ec-canvas/ec-canvas.js +277 -0
- package/components/chart/ec-canvas/ec-canvas.json +4 -0
- package/components/chart/ec-canvas/ec-canvas.wxml +4 -0
- package/components/chart/ec-canvas/ec-canvas.wxss +4 -0
- package/components/chart/ec-canvas/wx-canvas.js +111 -0
- package/components/chart/line/index.js +326 -0
- package/components/chart/line/index.json +6 -0
- package/components/chart/line/index.wxml +1 -0
- package/components/chart/line/index.wxss +9 -0
- package/components/chart/pie/index.js +257 -0
- package/components/chart/pie/index.json +6 -0
- package/components/chart/pie/index.wxml +1 -0
- package/components/chart/pie/index.wxss +9 -0
- package/components/chart/statisticsCard/index.js +255 -0
- package/components/chart/statisticsCard/index.json +4 -0
- package/components/chart/statisticsCard/index.wxml +9 -0
- package/components/chart/statisticsCard/index.wxss +42 -0
- package/components/common/form-item-wrapper/index.js +20 -0
- package/components/common/form-item-wrapper/index.json +5 -0
- package/components/common/form-item-wrapper/index.wxml +3 -0
- package/components/container/index.js +32 -0
- package/components/container/index.json +4 -0
- package/components/container/index.wxml +3 -0
- package/components/customer-service/index.js +37 -0
- package/components/customer-service/index.json +5 -0
- package/components/customer-service/index.wxml +3 -0
- package/components/customer-service/index.wxss +11 -0
- package/components/dataView/index.js +125 -0
- package/components/dataView/index.json +7 -0
- package/components/dataView/index.wxml +28 -0
- package/components/form/checkbox/index.js +145 -0
- package/components/form/checkbox/index.json +7 -0
- package/components/form/checkbox/index.wxml +13 -0
- package/components/form/checkbox/index.wxss +1 -0
- package/components/form/form/index.js +189 -0
- package/components/form/form/index.json +4 -0
- package/components/form/form/index.wxml +5 -0
- package/components/form/form/index.wxss +3 -0
- package/components/form/form/wd-form.wxss +1113 -0
- package/components/form/formcell/index.js +57 -0
- package/components/form/formcell/index.json +4 -0
- package/components/form/formcell/index.wxml +11 -0
- package/components/form/formcell/index.wxss +31 -0
- package/components/form/input/index.js +116 -0
- package/components/form/input/index.json +7 -0
- package/components/form/input/index.wxml +25 -0
- package/components/form/input/index.wxss +22 -0
- package/components/form/location/components/mapChoose/index.js +516 -0
- package/components/form/location/components/mapChoose/index.json +4 -0
- package/components/form/location/components/mapChoose/index.wxml +54 -0
- package/components/form/location/components/mapChoose/index.wxss +301 -0
- package/components/form/location/index.js +520 -0
- package/components/form/location/index.json +10 -0
- package/components/form/location/index.wxml +29 -0
- package/components/form/location/index.wxss +151 -0
- package/components/form/location/location-btn.svg +4 -0
- package/components/form/location/location.svg +4 -0
- package/components/form/radio/index.js +124 -0
- package/components/form/radio/index.json +7 -0
- package/components/form/radio/index.wxml +13 -0
- package/components/form/radio/index.wxss +1 -0
- package/components/form/select/allTimePicker/dataUtils.js +377 -0
- package/components/form/select/allTimePicker/index.js +487 -0
- package/components/form/select/allTimePicker/index.json +7 -0
- package/components/form/select/allTimePicker/index.wxml +35 -0
- package/components/form/select/allTimePicker/index.wxss +118 -0
- package/components/form/select/dropdown-select/index.js +287 -0
- package/components/form/select/dropdown-select/index.json +4 -0
- package/components/form/select/dropdown-select/index.wxml +35 -0
- package/components/form/select/dropdown-select/index.wxss +293 -0
- package/components/form/select/formats-util.js +15 -0
- package/components/form/select/index.js +1032 -0
- package/components/form/select/index.json +10 -0
- package/components/form/select/index.wxml +57 -0
- package/components/form/select/index.wxss +61 -0
- package/components/form/select/region/index.js +120 -0
- package/components/form/selectMultiple/dropdown-select/index.js +231 -0
- package/components/form/selectMultiple/dropdown-select/index.json +4 -0
- package/components/form/selectMultiple/dropdown-select/index.wxml +37 -0
- package/components/form/selectMultiple/dropdown-select/index.wxss +305 -0
- package/components/form/selectMultiple/index.js +366 -0
- package/components/form/selectMultiple/index.json +9 -0
- package/components/form/selectMultiple/index.wxml +34 -0
- package/components/form/selectMultiple/index.wxss +127 -0
- package/components/form/switch/index.js +90 -0
- package/components/form/switch/index.json +7 -0
- package/components/form/switch/index.wxml +11 -0
- package/components/form/switch/index.wxss +1 -0
- package/components/form/textarea/index.js +90 -0
- package/components/form/textarea/index.json +7 -0
- package/components/form/textarea/index.wxml +8 -0
- package/components/form/textarea/index.wxss +10 -0
- package/components/form/tips/index.js +41 -0
- package/components/form/tips/index.json +4 -0
- package/components/form/tips/index.wxml +1 -0
- package/components/form/tips/index.wxss +5 -0
- package/components/form/uploader/compress.js +31 -0
- package/components/form/uploader/index.js +289 -0
- package/components/form/uploader/index.json +10 -0
- package/components/form/uploader/index.wxml +38 -0
- package/components/form/uploader/index.wxss +47 -0
- package/components/form/uploader/weui-uploader.js +305 -0
- package/components/form/uploader/weui-uploader.json +7 -0
- package/components/form/uploader/weui-uploader.wxml +49 -0
- package/components/form/uploader/weui-uploader.wxss +26 -0
- package/components/form/uploaderFile/index.js +489 -0
- package/components/form/uploaderFile/index.json +9 -0
- package/components/form/uploaderFile/index.wxml +52 -0
- package/components/form/uploaderFile/index.wxss +171 -0
- package/components/form-checkbox/index.js +78 -0
- package/components/form-checkbox/index.json +9 -0
- package/components/form-checkbox/index.wxml +6 -0
- package/components/form-date/index.js +72 -0
- package/components/form-date/index.json +9 -0
- package/components/form-date/index.wxml +25 -0
- package/components/form-email/index.js +99 -0
- package/components/form-email/index.json +9 -0
- package/components/form-email/index.wxml +28 -0
- package/components/form-field-behavior/form-field-behavior.js +472 -0
- package/components/form-field-behavior/item-behavior.js +455 -0
- package/components/form-field-behavior/validator.js +137 -0
- package/components/form-image-uploader/index.js +83 -0
- package/components/form-image-uploader/index.json +9 -0
- package/components/form-image-uploader/index.wxml +27 -0
- package/components/form-input/index.js +103 -0
- package/components/form-input/index.json +9 -0
- package/components/form-input/index.wxml +29 -0
- package/components/form-location/index.js +98 -0
- package/components/form-location/index.json +9 -0
- package/components/form-location/index.wxml +28 -0
- package/components/form-multi-region/index.js +62 -0
- package/components/form-multi-region/index.json +9 -0
- package/components/form-multi-region/index.wxml +6 -0
- package/components/form-phone/index.js +95 -0
- package/components/form-phone/index.json +9 -0
- package/components/form-phone/index.wxml +28 -0
- package/components/form-radio/index.js +70 -0
- package/components/form-radio/index.json +9 -0
- package/components/form-radio/index.wxml +6 -0
- package/components/form-region/index.js +59 -0
- package/components/form-region/index.json +9 -0
- package/components/form-region/index.wxml +6 -0
- package/components/form-select/index.js +114 -0
- package/components/form-select/index.json +9 -0
- package/components/form-select/index.wxml +31 -0
- package/components/form-select-multiple/index.js +97 -0
- package/components/form-select-multiple/index.json +9 -0
- package/components/form-select-multiple/index.wxml +29 -0
- package/components/form-switch/index.js +43 -0
- package/components/form-switch/index.json +9 -0
- package/components/form-switch/index.wxml +6 -0
- package/components/form-text-area/index.js +95 -0
- package/components/form-text-area/index.json +9 -0
- package/components/form-text-area/index.wxml +26 -0
- package/components/form-time/index.js +72 -0
- package/components/form-time/index.json +9 -0
- package/components/form-time/index.wxml +6 -0
- package/components/form-upload-file/index.js +73 -0
- package/components/form-upload-file/index.json +9 -0
- package/components/form-upload-file/index.wxml +26 -0
- package/components/form-url/index.js +104 -0
- package/components/form-url/index.json +9 -0
- package/components/form-url/index.wxml +28 -0
- package/components/formdetail/index.js +328 -0
- package/components/formdetail/index.json +7 -0
- package/components/formdetail/index.wxml +7 -0
- package/components/formdetail/index.wxss +277 -0
- package/components/formdetail/wd-form-detail.wxss +250 -0
- package/components/graphicCard/chevron-right.svg +3 -0
- package/components/graphicCard/index.js +205 -0
- package/components/graphicCard/index.json +7 -0
- package/components/graphicCard/index.wxml +27 -0
- package/components/graphicCard/index.wxss +165 -0
- package/components/grid/_util.wxss +67 -0
- package/components/grid/col/index.js +110 -0
- package/components/grid/col/index.json +4 -0
- package/components/grid/col/index.wxml +3 -0
- package/components/grid/index.js +94 -0
- package/components/grid/index.json +4 -0
- package/components/grid/index.wxml +3 -0
- package/components/grid/index.wxss +1206 -0
- package/components/grid/row/index.js +78 -0
- package/components/grid/row/index.json +4 -0
- package/components/grid/row/index.wxml +3 -0
- package/components/image/index.js +203 -0
- package/components/image/index.json +7 -0
- package/components/image/index.wxml +9 -0
- package/components/image/index.wxss +49 -0
- package/components/listView/arrow-right-line.svg +3 -0
- package/components/listView/emptyText.svg +7 -0
- package/components/listView/index.js +710 -0
- package/components/listView/index.json +7 -0
- package/components/listView/index.wxml +82 -0
- package/components/listView/index.wxss +290 -0
- package/components/listView/more-line.svg +3 -0
- package/components/lottery/index.js +303 -0
- package/components/lottery/index.json +4 -0
- package/components/lottery/index.wxml +41 -0
- package/components/lottery/index.wxss +340 -0
- package/components/modal/index.js +66 -0
- package/components/modal/index.json +9 -0
- package/components/modal/index.wxml +18 -0
- package/components/modal/index.wxss +56 -0
- package/components/navLayout/index.js +123 -0
- package/components/navLayout/index.json +8 -0
- package/components/navLayout/index.wxml +22 -0
- package/components/navLayout/index.wxss +135 -0
- package/components/navigationBar/index.js +205 -0
- package/components/navigationBar/index.json +5 -0
- package/components/navigationBar/index.wxml +83 -0
- package/components/navigationBar/index.wxss +205 -0
- package/components/qrcode/index.js +155 -0
- package/components/qrcode/index.json +5 -0
- package/components/qrcode/index.wxml +2 -0
- package/components/qrcode/index.wxss +10 -0
- package/components/richText/index.js +90 -0
- package/components/richText/index.json +7 -0
- package/components/richText/index.wxml +3 -0
- package/components/richText/index.wxss +70 -0
- package/components/richText/mp-html/index.js +2 -0
- package/components/richText/mp-html/index.json +6 -0
- package/components/richText/mp-html/index.wxml +1 -0
- package/components/richText/mp-html/index.wxss +10 -0
- package/components/richText/mp-html/node/node.js +178 -0
- package/components/richText/mp-html/node/node.json +7 -0
- package/components/richText/mp-html/node/node.wxml +60 -0
- package/components/richText/mp-html/node/node.wxss +156 -0
- package/components/richText/mp-html/parser.js +2 -0
- package/components/scrollView/index.js +144 -0
- package/components/scrollView/index.json +4 -0
- package/components/scrollView/index.wxml +38 -0
- package/components/slot/index.js +25 -0
- package/components/slot/index.json +4 -0
- package/components/slot/index.wxml +3 -0
- package/components/status-content/arrow-right.svg +1 -0
- package/components/status-content/close.svg +1 -0
- package/components/status-content/error.svg +6 -0
- package/components/status-content/index.js +51 -0
- package/components/status-content/index.json +4 -0
- package/components/status-content/index.wxml +28 -0
- package/components/status-content/index.wxss +145 -0
- package/components/swiper/index.js +65 -0
- package/components/swiper/index.json +4 -0
- package/components/swiper/index.wxml +3 -0
- package/components/tabs/index.js +67 -0
- package/components/tabs/index.json +4 -0
- package/components/tabs/index.wxml +10 -0
- package/components/tabs/index.wxss +61 -0
- package/components/text/index.js +40 -0
- package/components/text/index.json +4 -0
- package/components/text/index.wxml +7 -0
- package/components/text/index.wxss +27 -0
- package/components/tooltip/index.js +290 -0
- package/components/tooltip/index.json +4 -0
- package/components/tooltip/index.wxml +18 -0
- package/components/tooltip/index.wxss +72 -0
- package/components/tooltip/wd-tooltip.wxss +31 -0
- package/components/wd-ad/index.js +66 -0
- package/components/wd-ad/index.json +5 -0
- package/components/wd-ad/index.wxml +3 -0
- package/components/wd-ad/index.wxss +3 -0
- package/components/wd-audio/index.js +273 -0
- package/components/wd-audio/index.json +5 -0
- package/components/wd-audio/index.wxml +3 -0
- package/components/wd-button/index.js +284 -0
- package/components/wd-button/index.json +7 -0
- package/components/wd-button/index.wxml +32 -0
- package/components/wd-button/index.wxss +2 -0
- package/components/wd-button/wd-button.wxss +513 -0
- package/components/wd-calendar/arrowright--line.svg +3 -0
- package/components/wd-calendar/index.js +157 -0
- package/components/wd-calendar/index.json +5 -0
- package/components/wd-calendar/index.wxml +36 -0
- package/components/wd-calendar/index.wxss +203 -0
- package/components/wd-calendar/weeks.js +41 -0
- package/components/wd-canvas/index.js +250 -0
- package/components/wd-canvas/index.json +5 -0
- package/components/wd-canvas/index.wxml +2 -0
- package/components/wd-canvas/index.wxss +0 -0
- package/components/wd-card/index.js +76 -0
- package/components/wd-card/index.json +5 -0
- package/components/wd-card/index.wxml +11 -0
- package/components/wd-card/index.wxss +6 -0
- package/components/wd-card/wd-card.wxss +120 -0
- package/components/wd-cascader/index.js +201 -0
- package/components/wd-cascader/index.json +12 -0
- package/components/wd-cascader/index.wxml +59 -0
- package/components/wd-cascader/index.wxss +2 -0
- package/components/wd-cascader/utils.js +73 -0
- package/components/wd-cascader/wd-cascader.wxss +284 -0
- package/components/wd-checkbox-list/index.js +170 -0
- package/components/wd-checkbox-list/index.json +7 -0
- package/components/wd-checkbox-list/index.wxml +37 -0
- package/components/wd-checkbox-list/index.wxss +2 -0
- package/components/wd-checkbox-list/wd-checkbox-list.wxss +259 -0
- package/components/wd-date/calendar/index.js +111 -0
- package/components/wd-date/calendar/index.json +7 -0
- package/components/wd-date/calendar/index.wxml +38 -0
- package/components/wd-date/date-picker/index.js +101 -0
- package/components/wd-date/date-picker/index.json +9 -0
- package/components/wd-date/date-picker/index.wxml +41 -0
- package/components/wd-date/date-picker/index.wxss +7 -0
- package/components/wd-date/index.js +129 -0
- package/components/wd-date/index.json +10 -0
- package/components/wd-date/index.wxml +36 -0
- package/components/wd-date/index.wxss +9 -0
- package/components/wd-date/modal/index.js +31 -0
- package/components/wd-date/modal/index.json +5 -0
- package/components/wd-date/modal/index.wxml +14 -0
- package/components/wd-date/modal/index.wxss +3 -0
- package/components/wd-date/time-picker/index.js +202 -0
- package/components/wd-date/time-picker/index.json +5 -0
- package/components/wd-date/time-picker/index.wxml +13 -0
- package/components/wd-date/time-picker/index.wxss +9 -0
- package/components/wd-date/wd-date.wxss +5 -0
- package/components/wd-date/year-month-picker/index.js +128 -0
- package/components/wd-date/year-month-picker/index.json +5 -0
- package/components/wd-date/year-month-picker/index.wxml +8 -0
- package/components/wd-date/year-month-picker/index.wxss +9 -0
- package/components/wd-date-range/index.js +172 -0
- package/components/wd-date-range/index.json +10 -0
- package/components/wd-date-range/index.wxml +41 -0
- package/components/wd-date-range/index.wxss +9 -0
- package/components/wd-date-range/wd-date-range.wxss +5 -0
- package/components/wd-divider/index.js +46 -0
- package/components/wd-divider/index.json +5 -0
- package/components/wd-divider/index.wxml +1 -0
- package/components/wd-divider/index.wxss +2 -0
- package/components/wd-divider/wd-divider.wxss +32 -0
- package/components/wd-form/form-utils.js +59 -0
- package/components/wd-form/index.js +769 -0
- package/components/wd-form/index.json +5 -0
- package/components/wd-form/index.wxml +15 -0
- package/components/wd-form/index.wxss +38 -0
- package/components/wd-form/remote-value.js +76 -0
- package/components/wd-form/wd-form.wxss +1113 -0
- package/components/wd-form-arr/index.js +348 -0
- package/components/wd-form-arr/index.json +7 -0
- package/components/wd-form-arr/index.wxml +5 -0
- package/components/wd-form-arr/index.wxss +2 -0
- package/components/wd-form-arr/wd-form-obj.wxss +104 -0
- package/components/wd-form-item/index.js +106 -0
- package/components/wd-form-item/index.json +7 -0
- package/components/wd-form-item/index.wxml +47 -0
- package/components/wd-form-item/index.wxss +2 -0
- package/components/wd-form-item/wd-form-item.wxss +1113 -0
- package/components/wd-form-item-obj/index.js +113 -0
- package/components/wd-form-item-obj/index.json +8 -0
- package/components/wd-form-item-obj/index.wxml +51 -0
- package/components/wd-form-item-obj/index.wxss +2 -0
- package/components/wd-form-item-obj/wd-form-item.wxss +1113 -0
- package/components/wd-form-item-read-only/index.js +59 -0
- package/components/wd-form-item-read-only/index.json +5 -0
- package/components/wd-form-item-read-only/index.wxml +10 -0
- package/components/wd-form-obj/index.js +305 -0
- package/components/wd-form-obj/index.json +7 -0
- package/components/wd-form-obj/index.wxml +5 -0
- package/components/wd-form-obj/index.wxss +2 -0
- package/components/wd-form-obj/wd-form-obj.wxss +104 -0
- package/components/wd-icon/index.js +148 -0
- package/components/wd-icon/index.json +7 -0
- package/components/wd-icon/index.wxml +4 -0
- package/components/wd-icon/index.wxss +4 -0
- package/components/wd-icon/wd-icon.wxss +154 -0
- package/components/wd-image/index.js +244 -0
- package/components/wd-image/index.json +7 -0
- package/components/wd-image/index.wxml +11 -0
- package/components/wd-image/index.wxss +11 -0
- package/components/wd-image/wd-image.wxss +86 -0
- package/components/wd-input/index.js +62 -0
- package/components/wd-input/index.json +7 -0
- package/components/wd-input/index.wxml +58 -0
- package/components/wd-input/inner-input/index.js +210 -0
- package/components/wd-input/inner-input/index.json +9 -0
- package/components/wd-input/inner-input/index.wxml +79 -0
- package/components/wd-input/inner-input/index.wxss +2 -0
- package/components/wd-input/inner-input/wd-input.wxss +1599 -0
- package/components/wd-input-email/index.js +63 -0
- package/components/wd-input-email/index.json +7 -0
- package/components/wd-input-email/index.wxml +56 -0
- package/components/wd-input-group/index.js +65 -0
- package/components/wd-input-group/index.json +5 -0
- package/components/wd-input-group/index.wxml +16 -0
- package/components/wd-input-group/index.wxss +2 -0
- package/components/wd-input-group/wd-input-group.wxss +105 -0
- package/components/wd-input-number/index.js +595 -0
- package/components/wd-input-number/index.json +10 -0
- package/components/wd-input-number/index.wxml +66 -0
- package/components/wd-input-number/index.wxss +8 -0
- package/components/wd-input-number/number.js +309 -0
- package/components/wd-input-number/wd-input-number.wxss +249 -0
- package/components/wd-input-phone/index.js +83 -0
- package/components/wd-input-phone/index.json +7 -0
- package/components/wd-input-phone/index.wxml +56 -0
- package/components/wd-input-url/index.js +63 -0
- package/components/wd-input-url/index.json +7 -0
- package/components/wd-input-url/index.wxml +56 -0
- package/components/wd-input-wrap/index.js +112 -0
- package/components/wd-input-wrap/index.json +7 -0
- package/components/wd-input-wrap/index.wxml +32 -0
- package/components/wd-input-wrap/index.wxss +2 -0
- package/components/wd-input-wrap/wd-input-wrap.wxss +229 -0
- package/components/wd-layout/index.js +41 -0
- package/components/wd-layout/index.json +5 -0
- package/components/wd-layout/index.wxml +13 -0
- package/components/wd-layout/index.wxss +2 -0
- package/components/wd-layout/wd-layout.wxss +84 -0
- package/components/wd-location/index.js +57 -0
- package/components/wd-location/index.json +10 -0
- package/components/wd-location/index.wxml +49 -0
- package/components/wd-markdown/index.js +99 -0
- package/components/wd-markdown/index.json +7 -0
- package/components/wd-markdown/index.wxml +3 -0
- package/components/wd-markdown/index.wxss +128 -0
- package/components/wd-markdown/utils/highlight.min.js +1 -0
- package/components/wd-markdown/utils/hljs_css.min.js +1 -0
- package/components/wd-markdown/utils/hljs_javascript.min.js +1 -0
- package/components/wd-markdown/utils/markdown-it.min.js +3 -0
- package/components/wd-menu-base-layout/index.js +20 -0
- package/components/wd-menu-base-layout/index.json +5 -0
- package/components/wd-menu-base-layout/index.wxml +3 -0
- package/components/wd-menu-horizontal-layout/index.js +20 -0
- package/components/wd-menu-horizontal-layout/index.json +5 -0
- package/components/wd-menu-horizontal-layout/index.wxml +3 -0
- package/components/wd-menu-layout/index.js +73 -0
- package/components/wd-menu-layout/index.json +8 -0
- package/components/wd-menu-layout/index.wxml +69 -0
- package/components/wd-menu-layout/index.wxss +13 -0
- package/components/wd-menu-layout/utils/index.js +40 -0
- package/components/wd-menu-layout/wd-menu-layout.wxss +647 -0
- package/components/wd-menu-list/index.js +256 -0
- package/components/wd-menu-list/index.json +7 -0
- package/components/wd-menu-list/index.wxml +50 -0
- package/components/wd-menu-list/index.wxss +146 -0
- package/components/wd-menu-list/wd-menu-list.wxss +636 -0
- package/components/wd-menu-nav-layout/index.js +20 -0
- package/components/wd-menu-nav-layout/index.json +5 -0
- package/components/wd-menu-nav-layout/index.wxml +3 -0
- package/components/wd-menu-nav-tab-layout/index.js +20 -0
- package/components/wd-menu-nav-tab-layout/index.json +5 -0
- package/components/wd-menu-nav-tab-layout/index.wxml +3 -0
- package/components/wd-menu-plant-layout/index.js +20 -0
- package/components/wd-menu-plant-layout/index.json +5 -0
- package/components/wd-menu-plant-layout/index.wxml +3 -0
- package/components/wd-menu-tab-layout/index.js +20 -0
- package/components/wd-menu-tab-layout/index.json +5 -0
- package/components/wd-menu-tab-layout/index.wxml +3 -0
- package/components/wd-menu-vertical-layout/index.js +20 -0
- package/components/wd-menu-vertical-layout/index.json +5 -0
- package/components/wd-menu-vertical-layout/index.wxml +3 -0
- package/components/wd-modal/index.js +184 -0
- package/components/wd-modal/index.json +5 -0
- package/components/wd-modal/index.wxml +16 -0
- package/components/wd-modal/index.wxss +2 -0
- package/components/wd-modal/wd-modal.wxss +213 -0
- package/components/wd-official-account/index.js +28 -0
- package/components/wd-official-account/index.json +5 -0
- package/components/wd-official-account/index.wxml +1 -0
- package/components/wd-official-account/index.wxss +4 -0
- package/components/wd-progress/index.js +134 -0
- package/components/wd-progress/index.json +7 -0
- package/components/wd-progress/index.wxml +32 -0
- package/components/wd-progress/index.wxss +2 -0
- package/components/wd-progress/wd-progress.wxss +1148 -0
- package/components/wd-radio-list/index.js +157 -0
- package/components/wd-radio-list/index.json +7 -0
- package/components/wd-radio-list/index.wxml +37 -0
- package/components/wd-radio-list/index.wxss +2 -0
- package/components/wd-radio-list/wd-radio-list.wxss +187 -0
- package/components/wd-rating/index.js +359 -0
- package/components/wd-rating/index.json +9 -0
- package/components/wd-rating/index.wxml +38 -0
- package/components/wd-rating/index.wxss +2 -0
- package/components/wd-rating/wd-rating.wxss +1138 -0
- package/components/wd-region/index.js +38 -0
- package/components/wd-region/index.json +10 -0
- package/components/wd-region/index.wxml +28 -0
- package/components/wd-region/index.wxss +4 -0
- package/components/wd-select/index.js +78 -0
- package/components/wd-select/index.json +10 -0
- package/components/wd-select/index.wxml +52 -0
- package/components/wd-select/select.wxss +749 -0
- package/components/wd-select-multiple/index.js +74 -0
- package/components/wd-select-multiple/index.json +10 -0
- package/components/wd-select-multiple/index.wxml +52 -0
- package/components/wd-side-tab/index.js +121 -0
- package/components/wd-side-tab/index.json +7 -0
- package/components/wd-side-tab/index.wxml +7 -0
- package/components/wd-side-tab/index.wxss +1 -0
- package/components/wd-switch/index.js +67 -0
- package/components/wd-switch/index.json +7 -0
- package/components/wd-switch/index.wxml +28 -0
- package/components/wd-switch/index.wxss +2 -0
- package/components/wd-switch/wd-switch.wxss +1234 -0
- package/components/wd-tabbar/index.js +196 -0
- package/components/wd-tabbar/index.json +7 -0
- package/components/wd-tabbar/index.wxml +10 -0
- package/components/wd-tabbar/index.wxss +2 -0
- package/components/wd-tabbar/wd-tabbar.wxss +96 -0
- package/components/wd-tabs/index.js +62 -0
- package/components/wd-tabs/index.json +5 -0
- package/components/wd-tabs/index.wxml +34 -0
- package/components/wd-tabs/index.wxss +8 -0
- package/components/wd-tabs/wd-tabs.wxss +278 -0
- package/components/wd-tag/index.js +171 -0
- package/components/wd-tag/index.json +7 -0
- package/components/wd-tag/index.wxml +22 -0
- package/components/wd-tag/index.wxss +3 -0
- package/components/wd-tag/tag-behavior.js +57 -0
- package/components/wd-tag/tag-item/index.js +198 -0
- package/components/wd-tag/tag-item/index.json +7 -0
- package/components/wd-tag/tag-item/index.wxml +15 -0
- package/components/wd-tag/wd-tag.wxss +325 -0
- package/components/wd-tag-select/index.js +107 -0
- package/components/wd-tag-select/index.json +8 -0
- package/components/wd-tag-select/index.wxml +42 -0
- package/components/wd-tag-select/index.wxss +4 -0
- package/components/wd-tag-select/wd-tag-select.wxss +1275 -0
- package/components/wd-text/index.js +162 -0
- package/components/wd-text/index.json +5 -0
- package/components/wd-text/index.wxml +8 -0
- package/components/wd-text/index.wxss +2 -0
- package/components/wd-text/wd-text.wxss +261 -0
- package/components/wd-textarea/index.js +97 -0
- package/components/wd-textarea/index.json +7 -0
- package/components/wd-textarea/index.wxml +31 -0
- package/components/wd-textarea/index.wxss +7 -0
- package/components/wd-textarea/wd-textarea.wxss +98 -0
- package/components/wd-time/index.js +124 -0
- package/components/wd-time/index.json +11 -0
- package/components/wd-time/index.wxml +36 -0
- package/components/wd-time/index.wxss +9 -0
- package/components/wd-time/wd-time.wxss +5 -0
- package/components/wd-top-tab/index.js +121 -0
- package/components/wd-top-tab/index.json +7 -0
- package/components/wd-top-tab/index.wxml +6 -0
- package/components/wd-top-tab/index.wxss +5 -0
- package/components/wd-unified-link/index.js +115 -0
- package/components/wd-unified-link/index.json +5 -0
- package/components/wd-unified-link/index.wxml +3 -0
- package/components/wd-unified-link/index.wxss +2 -0
- package/components/wd-unified-link/wd-link.wxss +51 -0
- package/components/wd-upload-file/index.js +54 -0
- package/components/wd-upload-file/index.json +8 -0
- package/components/wd-upload-file/index.wxml +41 -0
- package/components/wd-upload-image/index.js +64 -0
- package/components/wd-upload-image/index.json +8 -0
- package/components/wd-upload-image/index.wxml +45 -0
- package/components/web-view/index.js +69 -0
- package/components/web-view/index.json +5 -0
- package/components/web-view/index.wxml +1 -0
- package/components/web-view/index.wxss +1 -0
- package/components/wedaVideo/index.js +183 -0
- package/components/wedaVideo/index.json +4 -0
- package/components/wedaVideo/index.wxml +29 -0
- package/components/wedaVideo/index.wxss +20 -0
- package/components/wxOpenApi/phone/index.js +122 -0
- package/components/wxOpenApi/phone/index.json +4 -0
- package/components/wxOpenApi/phone/index.wxml +4 -0
- package/components/wxOpenApi/phone/index.wxss +26 -0
- package/components/wxOpenApi/phoneCode/index.js +102 -0
- package/components/wxOpenApi/phoneCode/index.json +4 -0
- package/components/wxOpenApi/phoneCode/index.wxml +4 -0
- package/components/wxOpenApi/phoneCode/index.wxss +26 -0
- package/components/wxOpenApi/share/index.js +134 -0
- package/components/wxOpenApi/share/index.json +4 -0
- package/components/wxOpenApi/share/index.wxml +4 -0
- package/components/wxOpenApi/share/index.wxss +26 -0
- package/components/wxOpenApi/userInfo/index.js +97 -0
- package/components/wxOpenApi/userInfo/index.json +4 -0
- package/components/wxOpenApi/userInfo/index.wxml +4 -0
- package/components/wxOpenApi/userInfo/index.wxss +26 -0
- package/index.json +133 -0
- package/package.json +19 -0
- package/style/utils.wxss +167 -0
- package/style/wd-design.wxss +628 -0
- package/style/wd-font-icon.wxss +4656 -0
- package/style/weda-ui.wxss +475 -0
- package/style/wedatea2td.wxss +56 -0
- package/utils/classnames.js +39 -0
- package/utils/color.js +81 -0
- package/utils/common-behavior.js +1 -0
- package/utils/constant.js +132 -0
- package/utils/date.js +51 -0
- package/utils/dayjs.min.js +1 -0
- package/utils/debounce.js +134 -0
- package/utils/deepEqual.js +42 -0
- package/utils/destr.js +49 -0
- package/utils/dr_square_point.js +29 -0
- package/utils/enum.js +1268 -0
- package/utils/error.js +26 -0
- package/utils/getCustomInfo.js +34 -0
- package/utils/getFormLegacy.js +401 -0
- package/utils/getModelParams.js +149 -0
- package/utils/getWedaApi.js +1 -0
- package/utils/handleEvents.js +34 -0
- package/utils/lodash.js +65 -0
- package/utils/platform.js +162 -0
- package/utils/qqmap-wx-jssdk1.2/qqmap-wx-jssdk.js +1323 -0
- package/utils/qrcode/weapp.qrcode.min.js +911 -0
- package/utils/range.js +82 -0
- package/utils/tcb.js +177 -0
- package/utils/tool.js +74 -0
- package/utils/widget-api.js +28 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
<view class="weda-lottery" style="{{style}}">
|
|
2
|
+
<view class="weda-lottery__wrap">
|
|
3
|
+
<block wx:for="{{dotList}}" wx:key="dotIndex" wx:for-item="dot">
|
|
4
|
+
<view wx-if="{{dot.single}}" class="weda-lottery__dot-single weda-lottery__dot-{{dot.position}}"></view>
|
|
5
|
+
<block wx-if="{{!dot.single}}">
|
|
6
|
+
<view class="weda-lottery__dot-{{dot.position}}">
|
|
7
|
+
<view class="weda-lottery__dot weda-lottery__dot-{{dot.direction}}">
|
|
8
|
+
<block wx:for="{{dot.list}}" wx:key="index" wx:for-item="item">
|
|
9
|
+
<view class="weda-lottery__dot-item"></view>
|
|
10
|
+
</block>
|
|
11
|
+
</view>
|
|
12
|
+
</view>
|
|
13
|
+
</block>
|
|
14
|
+
</block>
|
|
15
|
+
<view class="weda-lottery__inner">
|
|
16
|
+
<view class="weda-lottery__inner-wrap">
|
|
17
|
+
<view class="weda-lottery__list">
|
|
18
|
+
<block wx:for="{{lotteryList}}" wx:key="index" wx:for-item="item">
|
|
19
|
+
<view key="{{index}}" class="weda-lottery__turntable-item {{item.actived ? 'is-actived' : ''}}, {{item.selected ? 'is-selected' : ''}}">
|
|
20
|
+
<view class="weda-lottery__turntable-cell">
|
|
21
|
+
<view class="weda-lottery__turntable-cell-image" wx-if="{{item.src}}">
|
|
22
|
+
<image mode="aspectFit" src="{{item.src}}" alt="{{item.desc}}" class="weda-lottery__turntable-cell-icon"></image>
|
|
23
|
+
</view>
|
|
24
|
+
<view class="weda-lottery__turntable-cell-desc" wx-if="{{item.desc}}"> {{item.desc}} </view>
|
|
25
|
+
</view>
|
|
26
|
+
</view>
|
|
27
|
+
</block>
|
|
28
|
+
</view>
|
|
29
|
+
<view class="weda-lottery__turntable-btn {{btnActived ? 'is-actived' : ''}}">
|
|
30
|
+
<view class="weda-lottery__btn-inner" bindtap="{{clickLotteryEnable ? 'clickLotteryButton' : ''}}">
|
|
31
|
+
<view class="weda-lottery__btn">
|
|
32
|
+
<view class="weda-lottery__btn-image">
|
|
33
|
+
<text class="weda-lottery__btn-text">开始\n抽奖</text>
|
|
34
|
+
</view>
|
|
35
|
+
</view>
|
|
36
|
+
</view>
|
|
37
|
+
</view>
|
|
38
|
+
</view>
|
|
39
|
+
</view>
|
|
40
|
+
</view>
|
|
41
|
+
</view>
|
|
@@ -0,0 +1,340 @@
|
|
|
1
|
+
.weda-lottery {
|
|
2
|
+
width: 100%;
|
|
3
|
+
position: relative;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.weda-lottery::before {
|
|
7
|
+
float: left;
|
|
8
|
+
padding-top: 100%;
|
|
9
|
+
content: '';
|
|
10
|
+
}
|
|
11
|
+
.weda-lottery::after {
|
|
12
|
+
display: block;
|
|
13
|
+
content: '';
|
|
14
|
+
clear: both;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.weda-lottery .weda-lottery__wrap {
|
|
18
|
+
position: absolute;
|
|
19
|
+
top: 0;
|
|
20
|
+
left: 0;
|
|
21
|
+
right: 0;
|
|
22
|
+
bottom: 0;
|
|
23
|
+
width: 100%;
|
|
24
|
+
height: 100%;
|
|
25
|
+
object-fit: cover;
|
|
26
|
+
background: #ff465c;
|
|
27
|
+
border: 1px solid rgba(255, 255, 255, 0.6);
|
|
28
|
+
box-shadow: inset 0px 0px 4px rgba(255, 255, 255, 0.5);
|
|
29
|
+
border-radius: 10px;
|
|
30
|
+
box-sizing: border-box;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.weda-lottery .weda-lottery__dot-top {
|
|
34
|
+
position: absolute;
|
|
35
|
+
top: 4px;
|
|
36
|
+
left: calc((100% - 217px) / 2);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.weda-lottery .weda-lottery__dot-bottom {
|
|
40
|
+
position: absolute;
|
|
41
|
+
bottom: 4px;
|
|
42
|
+
left: calc((100% - 217px) / 2);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.weda-lottery .weda-lottery__dot-left {
|
|
46
|
+
position: absolute;
|
|
47
|
+
left: 4px;
|
|
48
|
+
top: calc((100% - 217px) / 2);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.weda-lottery .weda-lottery__dot-right {
|
|
52
|
+
position: absolute;
|
|
53
|
+
right: 4px;
|
|
54
|
+
top: calc((100% - 217px) / 2);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.weda-lottery .weda-lottery__dot {
|
|
58
|
+
display: flex;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.weda-lottery .weda-lottery__dot-horizontal {
|
|
62
|
+
flex-direction: row;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.weda-lottery .weda-lottery__dot-vertical {
|
|
66
|
+
flex-direction: column;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.weda-lottery .weda-lottery__dot .weda-lottery__dot-item,
|
|
70
|
+
.weda-lottery .weda-lottery__dot-single {
|
|
71
|
+
width: 9px;
|
|
72
|
+
height: 9px;
|
|
73
|
+
box-shadow: 0px 0px 4px rgba(255, 255, 255, 0.3);
|
|
74
|
+
border-radius: 50%;
|
|
75
|
+
background: #ffffff;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.weda-lottery .weda-lottery__dot .weda-lottery__dot-item:nth-child(odd) {
|
|
79
|
+
background: #ffee52;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.weda-lottery .weda-lottery__dot .weda-lottery__dot-item:nth-child(even) {
|
|
83
|
+
background: #ffffff;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.weda-lottery .weda-lottery__dot-horizontal .weda-lottery__dot-item {
|
|
87
|
+
margin-right: 43px;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.weda-lottery .weda-lottery__dot-horizontal .weda-lottery__dot-item:last-child {
|
|
91
|
+
margin-right: 0;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.weda-lottery .weda-lottery__dot-vertical .weda-lottery__dot-item {
|
|
95
|
+
margin-bottom: 43px;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.weda-lottery .weda-lottery__dot-vertical .weda-lottery__dot-item:last-child {
|
|
99
|
+
margin-bottom: 0;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.weda-lottery .weda-lottery__dot-left-top {
|
|
103
|
+
position: absolute;
|
|
104
|
+
top: 9px;
|
|
105
|
+
left: 6px;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.weda-lottery .weda-lottery__dot-right-top {
|
|
109
|
+
position: absolute;
|
|
110
|
+
top: 9px;
|
|
111
|
+
right: 6px;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.weda-lottery .weda-lottery__dot-left-bottom {
|
|
115
|
+
position: absolute;
|
|
116
|
+
left: 6px;
|
|
117
|
+
bottom: 9px;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.weda-lottery .weda-lottery__dot-right-bottom {
|
|
121
|
+
position: absolute;
|
|
122
|
+
right: 6px;
|
|
123
|
+
bottom: 9px;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.weda-lottery .weda-lottery__inner {
|
|
127
|
+
padding: 18px;
|
|
128
|
+
width: 100%;
|
|
129
|
+
height: 100%;
|
|
130
|
+
box-sizing: border-box;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.weda-lottery .weda-lottery__inner .weda-lottery__inner-wrap {
|
|
134
|
+
position: relative;
|
|
135
|
+
width: 100%;
|
|
136
|
+
box-sizing: border-box;
|
|
137
|
+
background: linear-gradient(180deg, #dd0d00 0%, #d80027 100%);
|
|
138
|
+
border: 1px solid rgba(255, 255, 255, 0.25);
|
|
139
|
+
box-shadow: inset 0px 0px 4px rgba(255, 255, 255, 0.5);
|
|
140
|
+
border-radius: 10px;
|
|
141
|
+
height: 100%;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.weda-lottery .weda-lottery__inner .weda-lottery__list {
|
|
145
|
+
position: absolute;
|
|
146
|
+
top: 0;
|
|
147
|
+
left: 0;
|
|
148
|
+
right: 0;
|
|
149
|
+
bottom: 0;
|
|
150
|
+
z-index: 1;
|
|
151
|
+
box-sizing: border-box;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.weda-lottery .weda-lottery__inner .weda-lottery__turntable-item {
|
|
155
|
+
position: absolute;
|
|
156
|
+
width: calc((100% - 32px) / 3);
|
|
157
|
+
height: calc((100% - 32px) / 3);
|
|
158
|
+
font-size: 0;
|
|
159
|
+
text-align: center;
|
|
160
|
+
background: #fff8ee;
|
|
161
|
+
box-shadow: inset 0px -2px 0px #ffddbd;
|
|
162
|
+
border-radius: 8px;
|
|
163
|
+
box-sizing: border-box;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.weda-lottery .weda-lottery__inner .weda-lottery__turntable-item.is-actived {
|
|
167
|
+
background: #fff8ee;
|
|
168
|
+
box-shadow: 0px 0px 6px #ffffff;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.weda-lottery .weda-lottery__inner .weda-lottery__turntable-item.is-selected {
|
|
172
|
+
background: #ff6666;
|
|
173
|
+
box-shadow: inset 0px -2px 0px #ffa4a4;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.weda-lottery .weda-lottery__inner .weda-lottery__turntable-item:first-child {
|
|
177
|
+
top: 8px;
|
|
178
|
+
left: 8px;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.weda-lottery .weda-lottery__inner .weda-lottery__turntable-item:nth-child(2) {
|
|
182
|
+
top: 8px;
|
|
183
|
+
left: calc((100% - 32px) / 3 + 16px);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.weda-lottery .weda-lottery__inner .weda-lottery__turntable-item:nth-child(3) {
|
|
187
|
+
top: 8px;
|
|
188
|
+
right: 8px;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.weda-lottery .weda-lottery__inner .weda-lottery__turntable-item:nth-child(4) {
|
|
192
|
+
top: calc((100% - 32px) / 3 + 16px);
|
|
193
|
+
right: 8px;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.weda-lottery .weda-lottery__inner .weda-lottery__turntable-item:nth-child(5) {
|
|
197
|
+
bottom: 8px;
|
|
198
|
+
right: 8px;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.weda-lottery .weda-lottery__inner .weda-lottery__turntable-item:nth-child(6) {
|
|
202
|
+
bottom: 8px;
|
|
203
|
+
left: calc((100% - 32px) / 3 + 16px);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.weda-lottery .weda-lottery__inner .weda-lottery__turntable-item:nth-child(7) {
|
|
207
|
+
bottom: 8px;
|
|
208
|
+
left: 8px;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.weda-lottery .weda-lottery__inner .weda-lottery__turntable-item:nth-child(8) {
|
|
212
|
+
bottom: calc((100% - 32px) / 3 + 16px);
|
|
213
|
+
left: 8px;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.weda-lottery .weda-lottery__inner .weda-lottery__turntable-cell {
|
|
217
|
+
width: 100%;
|
|
218
|
+
height: 100%;
|
|
219
|
+
max-width: 100%;
|
|
220
|
+
max-height: 100%;
|
|
221
|
+
box-sizing: border-box;
|
|
222
|
+
border-width: 4px;
|
|
223
|
+
border-style: solid;
|
|
224
|
+
border-color: transparent;
|
|
225
|
+
border-radius: 8px;
|
|
226
|
+
display: flex;
|
|
227
|
+
flex-direction: column;
|
|
228
|
+
align-items: center;
|
|
229
|
+
justify-content: center;
|
|
230
|
+
padding: 8px 2.5px 8px 2.5px;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.weda-lottery
|
|
234
|
+
.weda-lottery__inner
|
|
235
|
+
.weda-lottery__turntable-item.is-actived
|
|
236
|
+
.weda-lottery__turntable-cell {
|
|
237
|
+
border-color: #ffe05f;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.weda-lottery .weda-lottery__inner .weda-lottery__turntable-cell-image {
|
|
241
|
+
display: flex;
|
|
242
|
+
align-items: center;
|
|
243
|
+
justify-content: center;
|
|
244
|
+
flex: 1 1 0;
|
|
245
|
+
overflow: hidden;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.weda-lottery .weda-lottery__inner .weda-lottery__turntable-cell-icon {
|
|
249
|
+
display: block;
|
|
250
|
+
width: 40px;
|
|
251
|
+
height: 40px;
|
|
252
|
+
overflow: hidden;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.weda-lottery .weda-lottery__inner .weda-lottery__turntable-cell-desc {
|
|
256
|
+
margin-top: 6px;
|
|
257
|
+
font-weight: 400;
|
|
258
|
+
font-size: 12px;
|
|
259
|
+
line-height: 17px;
|
|
260
|
+
text-align: center;
|
|
261
|
+
color: #ba0000;
|
|
262
|
+
white-space: nowrap;
|
|
263
|
+
text-overflow: ellipsis;
|
|
264
|
+
overflow: hidden;
|
|
265
|
+
width: 100%;
|
|
266
|
+
flex: 0 0 auto;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.weda-lottery
|
|
270
|
+
.weda-lottery__inner
|
|
271
|
+
.weda-lottery__turntable-item.is-selected
|
|
272
|
+
.weda-lottery__turntable-cell-desc {
|
|
273
|
+
color: #ffffff;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.weda-lottery .weda-lottery__turntable-btn {
|
|
277
|
+
z-index: 2;
|
|
278
|
+
position: absolute;
|
|
279
|
+
width: calc((100% - 32px) / 3);
|
|
280
|
+
height: calc((100% - 32px) / 3);
|
|
281
|
+
top: calc((100% - 32px) / 3 + 16px);
|
|
282
|
+
left: calc((100% - 32px) / 3 + 16px);
|
|
283
|
+
background: linear-gradient(180deg, #ffee81 0%, #ffd646 100%);
|
|
284
|
+
box-shadow: inset 0px -2px 0px #ff7a00;
|
|
285
|
+
border-radius: 50%;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.weda-lottery .weda-lottery__turntable-btn.is-actived {
|
|
289
|
+
background: linear-gradient(180deg, #ffee81 0%, #ffd646 100%);
|
|
290
|
+
box-shadow: inset 0px 2px 0px #ffffff;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.weda-lottery .weda-lottery__btn-inner {
|
|
294
|
+
padding: 9px;
|
|
295
|
+
width: 100%;
|
|
296
|
+
height: 100%;
|
|
297
|
+
box-sizing: border-box;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
.weda-lottery .weda-lottery__btn {
|
|
301
|
+
width: 100%;
|
|
302
|
+
height: 100%;
|
|
303
|
+
background: linear-gradient(180deg, #ff922d 0%, #ff3c76 100%);
|
|
304
|
+
box-shadow: inset 0px 0px 8px rgba(234, 27, 53, 0.5);
|
|
305
|
+
border-radius: 50%;
|
|
306
|
+
display: flex;
|
|
307
|
+
align-items: center;
|
|
308
|
+
justify-content: center;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
.weda-lottery .weda-lottery__turntable-btn.is-actived .weda-lottery__btn {
|
|
312
|
+
background: linear-gradient(180deg, #ff922d 0%, #ff3c76 100%);
|
|
313
|
+
box-shadow: inset 0px 0px 8px rgba(234, 27, 53, 0.5);
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
.weda-lottery .weda-lottery__btn-image {
|
|
317
|
+
width: 100%;
|
|
318
|
+
box-sizing: border-box;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
.weda-lottery .weda-lottery__btn-image .weda-lottery__btn-text {
|
|
322
|
+
font-weight: 600;
|
|
323
|
+
font-size: 18px;
|
|
324
|
+
line-height: 22px;
|
|
325
|
+
text-align: center;
|
|
326
|
+
color: #ffffff;
|
|
327
|
+
text-shadow: 0px 0.5px 0px #e42b27;
|
|
328
|
+
max-height: 100%;
|
|
329
|
+
display: -webkit-box;
|
|
330
|
+
overflow: hidden;
|
|
331
|
+
text-overflow: ellipsis;
|
|
332
|
+
-webkit-box-orient: vertical;
|
|
333
|
+
-webkit-line-clamp: 2;
|
|
334
|
+
width: 100%;
|
|
335
|
+
height: 100%;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
.weda-lottery .weda-lottery__turntable-btn.is-actived .weda-lottery__btn-image {
|
|
339
|
+
opacity: 0.6;
|
|
340
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import handleEvents from '../../utils/handleEvents';
|
|
2
|
+
import { commonCompBehavior } from '../../utils/common-behavior';
|
|
3
|
+
|
|
4
|
+
Component({
|
|
5
|
+
behaviors: [commonCompBehavior],
|
|
6
|
+
options: {
|
|
7
|
+
virtualHost: true,
|
|
8
|
+
multipleSlots: true,
|
|
9
|
+
},
|
|
10
|
+
properties: {
|
|
11
|
+
id: {
|
|
12
|
+
type: String,
|
|
13
|
+
value: '',
|
|
14
|
+
},
|
|
15
|
+
className: {
|
|
16
|
+
type: String,
|
|
17
|
+
value: '',
|
|
18
|
+
},
|
|
19
|
+
style: {
|
|
20
|
+
type: String,
|
|
21
|
+
value: '',
|
|
22
|
+
},
|
|
23
|
+
content: {
|
|
24
|
+
type: String,
|
|
25
|
+
value: '',
|
|
26
|
+
},
|
|
27
|
+
visible: {
|
|
28
|
+
type: Boolean,
|
|
29
|
+
value: true,
|
|
30
|
+
},
|
|
31
|
+
isDefaultButton: {
|
|
32
|
+
type: Boolean,
|
|
33
|
+
value: true,
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
methods: {
|
|
37
|
+
...handleEvents([
|
|
38
|
+
{ name: 'close', title: '窗口关闭' },
|
|
39
|
+
{ name: 'confirm', title: '默认按钮点击' },
|
|
40
|
+
]),
|
|
41
|
+
toggle: function (targetValue) {
|
|
42
|
+
if (targetValue === undefined) {
|
|
43
|
+
this.setData({ isVisible: !this.data.isVisible });
|
|
44
|
+
} else {
|
|
45
|
+
this.setData({ isVisible: Boolean(targetValue) });
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
lifetimes: {
|
|
50
|
+
attached() {
|
|
51
|
+
this.setReadonlyAttributes &&
|
|
52
|
+
this.setReadonlyAttributes({
|
|
53
|
+
toggle: this.toggle.bind(this),
|
|
54
|
+
open: this.toggle.bind(this, true),
|
|
55
|
+
close: this.toggle.bind(this, false),
|
|
56
|
+
});
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
observers: {
|
|
60
|
+
visible: function (visible) {
|
|
61
|
+
if (visible !== this.data.isVisible) {
|
|
62
|
+
this.setData({ isVisible: visible });
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<container className="lcap-modal {{className}}" style="{{style}}">
|
|
2
|
+
<container className="container" wx:if="{{isVisible}}">
|
|
3
|
+
<container className="lcap-modal__mask" />
|
|
4
|
+
<container className="lcap-modal__dialog {{isVisible ? 'enter' : ''}}">
|
|
5
|
+
<container className="lcap-modal__close_btn" bindtap="close">
|
|
6
|
+
<container className="lcap-icon-close lcap-icon" style="font-size: 24px" />
|
|
7
|
+
</container>
|
|
8
|
+
<container title="modal-header">
|
|
9
|
+
<weda-text wx:if="{{(content && content.length > 0)}}" level="0" text="{{content}}" maxLines="{{2}}" userSelect="{{true}}" space="{{false}}" contenteditable="false" />
|
|
10
|
+
<slot wx:else name="customContent"></slot>
|
|
11
|
+
</container>
|
|
12
|
+
<container className="lcap-modal__confirm_btn">
|
|
13
|
+
<weda-button wx:if="{{isDefaultButton}}" text="确定" bindtap="confirm" className="lcap-modal__default_btn" />
|
|
14
|
+
<slot wx:else name="customButton"></slot>
|
|
15
|
+
</container>
|
|
16
|
+
</container>
|
|
17
|
+
</container>
|
|
18
|
+
</container>
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
@import '../../style/weda-ui.wxss';
|
|
2
|
+
|
|
3
|
+
.lcap-modal .lcap-modal__mask {
|
|
4
|
+
top: 0px;
|
|
5
|
+
left: 0px;
|
|
6
|
+
width: 100%;
|
|
7
|
+
height: 100%;
|
|
8
|
+
z-index: 1000;
|
|
9
|
+
position: fixed;
|
|
10
|
+
background: rgba(0, 0, 0, 0.5);
|
|
11
|
+
transition: all 300ms ease-out;
|
|
12
|
+
}
|
|
13
|
+
.lcap-modal .lcap-modal__dialog {
|
|
14
|
+
transform: translateY(100%);
|
|
15
|
+
transition: all 300ms ease-out;
|
|
16
|
+
width: 100%;
|
|
17
|
+
max-height: 90%;
|
|
18
|
+
min-height: 235px;
|
|
19
|
+
padding: 7.5px 7.5px 25px;
|
|
20
|
+
z-index: 2000;
|
|
21
|
+
border-top-left-radius: 7.5px;
|
|
22
|
+
border-top-right-radius: 7.5px;
|
|
23
|
+
background: white;
|
|
24
|
+
position: fixed;
|
|
25
|
+
left: 0px;
|
|
26
|
+
right: 0px;
|
|
27
|
+
bottom: 0px;
|
|
28
|
+
}
|
|
29
|
+
.lcap-modal .lcap-modal__dialog.enter {
|
|
30
|
+
padding-top: 32px;
|
|
31
|
+
transform: translateY(0);
|
|
32
|
+
}
|
|
33
|
+
.lcap-modal .lcap-modal__close_btn {
|
|
34
|
+
top: 5px;
|
|
35
|
+
right: 10px;
|
|
36
|
+
position: absolute;
|
|
37
|
+
cursor: pointer;
|
|
38
|
+
}
|
|
39
|
+
.lcap-modal .lcap-modal__confirm_btn {
|
|
40
|
+
padding-bottom: constant(safe-area-inset-bottom);
|
|
41
|
+
/* 兼容 iOS < 11.2 */
|
|
42
|
+
padding-bottom: env(safe-area-inset-bottom);
|
|
43
|
+
/* 兼容 iOS >= 11.2 */
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.lcap-modal .lcap-modal__confirm_btn .lcap-modal__default_btn {
|
|
47
|
+
left: 0px;
|
|
48
|
+
color: rgb(255, 255, 255);
|
|
49
|
+
right: 0px;
|
|
50
|
+
width: 100%;
|
|
51
|
+
bottom: 0px;
|
|
52
|
+
position: fixed;
|
|
53
|
+
background: rgb(50, 129, 248);
|
|
54
|
+
border-width: 0px;
|
|
55
|
+
border-radius: 0px;
|
|
56
|
+
}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { getWedaAPI } from '../../utils/getWedaApi';
|
|
2
|
+
|
|
3
|
+
Component({
|
|
4
|
+
options: {
|
|
5
|
+
virtualHost: true,
|
|
6
|
+
multipleSlots: true,
|
|
7
|
+
},
|
|
8
|
+
properties: {
|
|
9
|
+
className: {
|
|
10
|
+
type: String,
|
|
11
|
+
value: '',
|
|
12
|
+
},
|
|
13
|
+
style: {
|
|
14
|
+
type: String,
|
|
15
|
+
value: '',
|
|
16
|
+
},
|
|
17
|
+
navOption: { type: Array, value: [] },
|
|
18
|
+
mobileCol: {
|
|
19
|
+
type: Number,
|
|
20
|
+
value: 4,
|
|
21
|
+
},
|
|
22
|
+
pcCol: {
|
|
23
|
+
type: Number,
|
|
24
|
+
value: 4,
|
|
25
|
+
},
|
|
26
|
+
iconSize: {
|
|
27
|
+
type: String,
|
|
28
|
+
value: 'default',
|
|
29
|
+
},
|
|
30
|
+
textColor: {
|
|
31
|
+
type: String,
|
|
32
|
+
value: 'rgb(0, 0, 0)"',
|
|
33
|
+
},
|
|
34
|
+
fontWeight: {
|
|
35
|
+
type: String,
|
|
36
|
+
value: 'normal',
|
|
37
|
+
},
|
|
38
|
+
lineHeight: {
|
|
39
|
+
type: String,
|
|
40
|
+
value: 'auto',
|
|
41
|
+
},
|
|
42
|
+
maxLines: {
|
|
43
|
+
type: Number,
|
|
44
|
+
value: 2,
|
|
45
|
+
},
|
|
46
|
+
fontSize: {
|
|
47
|
+
type: Number,
|
|
48
|
+
value: 14,
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
data: {
|
|
52
|
+
cls: '',
|
|
53
|
+
optionList: [],
|
|
54
|
+
titleStyle: '',
|
|
55
|
+
},
|
|
56
|
+
|
|
57
|
+
methods: {
|
|
58
|
+
navigaTo: function (itemInfo) {
|
|
59
|
+
const item = itemInfo?.currentTarget?.dataset?.item;
|
|
60
|
+
if (item.tapStatus == 'inside') {
|
|
61
|
+
const paramObj = {};
|
|
62
|
+
if (item.withParams && item?.params) {
|
|
63
|
+
for (let info of item.params) {
|
|
64
|
+
paramObj[info.key] = info.value;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
item.paramObj = paramObj;
|
|
68
|
+
let { app } = getWedaAPI();
|
|
69
|
+
app.navigateTo({
|
|
70
|
+
mode: 'weDa',
|
|
71
|
+
pageId: item?.insideUrl,
|
|
72
|
+
packageName: item?.packageName || '',
|
|
73
|
+
params:
|
|
74
|
+
item?.withParams && item?.params.length > 0 ? item.paramObj : null,
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
observers: {
|
|
80
|
+
'navOption,mobileCol': function (navOption, mobileCol) {
|
|
81
|
+
let list = [];
|
|
82
|
+
list.length = Math.floor(navOption.length / mobileCol);
|
|
83
|
+
list.forEach((item, index) => {
|
|
84
|
+
list[index] = [];
|
|
85
|
+
});
|
|
86
|
+
navOption.forEach((item, index) => {
|
|
87
|
+
if (item.icon.includes('td:')) {
|
|
88
|
+
item['tdicon'] = item.icon.split(':')[1];
|
|
89
|
+
}
|
|
90
|
+
const _index = Math.floor(index / mobileCol);
|
|
91
|
+
if (!list[_index] || list[_index].length <= 0) {
|
|
92
|
+
// 保证每个col 的数据都是有的,列入总共7个数据,那么第二行的3, 4,5数据是undefined, 占位
|
|
93
|
+
list[_index] = Array.apply(null, Array(mobileCol));
|
|
94
|
+
}
|
|
95
|
+
list[_index][index - _index * mobileCol] = item;
|
|
96
|
+
});
|
|
97
|
+
const optionList = list;
|
|
98
|
+
this.setData({
|
|
99
|
+
optionList,
|
|
100
|
+
});
|
|
101
|
+
},
|
|
102
|
+
'textColor,fontWeight,fontSize,lineHeight': function (
|
|
103
|
+
textColor,
|
|
104
|
+
fontWeight,
|
|
105
|
+
fontSize,
|
|
106
|
+
lineHeight
|
|
107
|
+
) {
|
|
108
|
+
let titleStyle;
|
|
109
|
+
// 添加文本颜色属性
|
|
110
|
+
if (textColor !== '') {
|
|
111
|
+
titleStyle = `color:${textColor}`;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
// 添加对齐属性
|
|
115
|
+
if (fontWeight !== '') {
|
|
116
|
+
titleStyle = `${titleStyle};font-weight: ${fontWeight};font-size:${fontSize}px;line-height:${
|
|
117
|
+
lineHeight == 'auto' ? 'normal' : lineHeight
|
|
118
|
+
}`;
|
|
119
|
+
}
|
|
120
|
+
this.setData({ titleStyle });
|
|
121
|
+
},
|
|
122
|
+
},
|
|
123
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<view class="weda-grid-navigation" style="{{style}}">
|
|
2
|
+
<view class="weda-grid-navigation__wrapper">
|
|
3
|
+
<block wx:for="{{optionList}}" wx:key="colIndex" wx:for-item="row">
|
|
4
|
+
<view class="weda-grid weda-grid-navigation__row">
|
|
5
|
+
<block wx:for="{{row}}" wx:key="colIndex" wx:for-item="col">
|
|
6
|
+
<view class="weda-col weda-grid__item weda-grid-navigation__col weda-grid-navigation__col--{{iconSize}}" style="width: {{(1 / mobileCol)*100}}%" data-item="{{col}}" bindtap="navigaTo">
|
|
7
|
+
<view class="weda-grid__box">
|
|
8
|
+
<view class="weda-grid-navigation__col">
|
|
9
|
+
<view wx:if="{{col.icon!='自定义图片'}}" class="weda-grid-navigation__icon">
|
|
10
|
+
<view wx:if="{{col.tdicon}}" class="weda-icon t-icon t-icon-{{col.tdicon}}"></view>
|
|
11
|
+
<view wx:if="{{!col.tdicon}}" class="weda-icon lcap-icon-padding lcap-icon lcap-icon-{{col.icon}}"> </view>
|
|
12
|
+
</view>
|
|
13
|
+
<img wx:if="{{col.icon=='自定义图片'&&col.iconSrc}}" src="{{col.iconSrc}}" className="weda-grid-navigation__img" />
|
|
14
|
+
</view>
|
|
15
|
+
<view class="weda-grid-navigation__text" wx-if="{{col.title}}" style="-webkit-line-clamp:{{maxLines?maxLines:'revert'}};{{titleStyle}}">{{col.title}}</view>
|
|
16
|
+
</view>
|
|
17
|
+
</view>
|
|
18
|
+
</block>
|
|
19
|
+
</view>
|
|
20
|
+
</block>
|
|
21
|
+
</view>
|
|
22
|
+
</view>
|