From 1b4278010eb6b42c710a5623a44221b933e83939 Mon Sep 17 00:00:00 2001 From: yyy <2605810609@qq.com> Date: Sat, 7 Dec 2024 16:50:20 +0800 Subject: [PATCH] crm --- App.vue | 26 - pages.json | 13 - .../pages/business/selectProduct.vue | 82 +- pages/components/pages/clues/cluesDetails.vue | 13 +- pages/components/pages/contract/add.vue | 77 +- pages/components/pages/invoice/add.vue | 8 +- pages/msg/index.vue | 81 -- static/iconfont/iconfont.css | 23 - static/iconfont/iconfont.scss | 270 ---- static/iconfont/iconfont.ttf | Bin 2832 -> 0 bytes static/iconfont/iconfont.woff | Bin 1864 -> 0 bytes static/iconfont/iconfont.woff2 | Bin 1416 -> 0 bytes static/images/tabBar/msg-select.png | Bin 2682 -> 0 bytes static/images/tabBar/msg.png | Bin 2620 -> 0 bytes static/style/style.css | 1114 --------------- static/style/style.less | 1006 -------------- uni.scss | 8 +- uni_modules/uv-back-top/changelog.md | 8 - .../components/uv-back-top/props.js | 58 - .../components/uv-back-top/uv-back-top.vue | 116 -- uni_modules/uv-back-top/package.json | 89 -- uni_modules/uv-back-top/readme.md | 11 - uni_modules/uv-checkbox/changelog.md | 32 - .../components/uv-checkbox-group/props.js | 84 -- .../uv-checkbox-group/uv-checkbox-group.vue | 119 -- .../components/uv-checkbox/props.js | 70 - .../components/uv-checkbox/uv-checkbox.vue | 369 ----- uni_modules/uv-checkbox/package.json | 88 -- uni_modules/uv-checkbox/readme.md | 19 - uni_modules/uv-no-network/changelog.md | 5 - .../components/uv-no-network/props.js | 20 - .../uv-no-network/uv-no-network.vue | 222 --- uni_modules/uv-no-network/package.json | 90 -- uni_modules/uv-no-network/readme.md | 11 - uni_modules/uv-qrcode/changelog.md | 11 - .../uv-qrcode/components/uv-qrcode/cache.js | 1 - .../uv-qrcode/gcanvas/bridge/bridge-weex.js | 241 ---- .../context-2d/FillStyleLinearGradient.js | 18 - .../gcanvas/context-2d/FillStylePattern.js | 8 - .../context-2d/FillStyleRadialGradient.js | 17 - .../gcanvas/context-2d/RenderingContext.js | 666 --------- .../gcanvas/context-webgl/ActiveInfo.js | 11 - .../uv-qrcode/gcanvas/context-webgl/Buffer.js | 21 - .../gcanvas/context-webgl/Framebuffer.js | 21 - .../uv-qrcode/gcanvas/context-webgl/GLenum.js | 298 ----- .../gcanvas/context-webgl/GLmethod.js | 142 -- .../uv-qrcode/gcanvas/context-webgl/GLtype.js | 23 - .../gcanvas/context-webgl/Program.js | 21 - .../gcanvas/context-webgl/Renderbuffer.js | 21 - .../gcanvas/context-webgl/RenderingContext.js | 1191 ----------------- .../uv-qrcode/gcanvas/context-webgl/Shader.js | 22 - .../context-webgl/ShaderPrecisionFormat.js | 11 - .../gcanvas/context-webgl/Texture.js | 22 - .../gcanvas/context-webgl/UniformLocation.js | 22 - .../gcanvas/context-webgl/classUtils.js | 3 - .../uv-qrcode/gcanvas/env/canvas.js | 74 - .../components/uv-qrcode/gcanvas/env/image.js | 96 -- .../components/uv-qrcode/gcanvas/env/tool.js | 24 - .../components/uv-qrcode/gcanvas/index.js | 39 - .../uv-qrcode/components/uv-qrcode/props.js | 85 -- .../uv-qrcode/components/uv-qrcode/qrcode.js | 34 - .../uv-qrcode/components/uv-qrcode/queue.js | 41 - .../components/uv-qrcode/uv-qrcode.vue | 1036 -------------- uni_modules/uv-qrcode/package.json | 87 -- uni_modules/uv-qrcode/readme.md | 21 - uni_modules/uv-steps/changelog.md | 10 - .../components/uv-steps-item/props.js | 25 - .../uv-steps-item/uv-steps-item.vue | 347 ----- .../uv-steps/components/uv-steps/props.js | 40 - .../uv-steps/components/uv-steps/uv-steps.vue | 83 -- uni_modules/uv-steps/package.json | 89 -- uni_modules/uv-steps/readme.md | 11 - uni_modules/uv-swipe-action/changelog.md | 11 - .../uv-swipe-action-item/index - backup.wxs | 256 ---- .../components/uv-swipe-action-item/index.wxs | 225 ---- .../uv-swipe-action-item/nvue - backup.js | 264 ---- .../components/uv-swipe-action-item/nvue.js | 182 --- .../components/uv-swipe-action-item/props.js | 40 - .../uv-swipe-action-item.vue | 200 --- .../components/uv-swipe-action-item/wxs.js | 15 - .../components/uv-swipe-action/props.js | 10 - .../uv-swipe-action/uv-swipe-action.vue | 65 - uni_modules/uv-swipe-action/package.json | 88 -- uni_modules/uv-swipe-action/readme.md | 11 - uni_modules/uv-swiper/changelog.md | 14 - .../components/uv-swiper-indicator/props.js | 30 - .../uv-swiper-indicator.vue | 112 -- .../uv-swiper/components/uv-swiper/props.js | 136 -- .../components/uv-swiper/uv-swiper.vue | 263 ---- uni_modules/uv-swiper/package.json | 88 -- uni_modules/uv-swiper/readme.md | 19 - 91 files changed, 55 insertions(+), 11039 deletions(-) delete mode 100644 pages/msg/index.vue delete mode 100644 static/iconfont/iconfont.css delete mode 100644 static/iconfont/iconfont.scss delete mode 100644 static/iconfont/iconfont.ttf delete mode 100644 static/iconfont/iconfont.woff delete mode 100644 static/iconfont/iconfont.woff2 delete mode 100644 static/images/tabBar/msg-select.png delete mode 100644 static/images/tabBar/msg.png delete mode 100644 static/style/style.css delete mode 100644 static/style/style.less delete mode 100644 uni_modules/uv-back-top/changelog.md delete mode 100644 uni_modules/uv-back-top/components/uv-back-top/props.js delete mode 100644 uni_modules/uv-back-top/components/uv-back-top/uv-back-top.vue delete mode 100644 uni_modules/uv-back-top/package.json delete mode 100644 uni_modules/uv-back-top/readme.md delete mode 100644 uni_modules/uv-checkbox/changelog.md delete mode 100644 uni_modules/uv-checkbox/components/uv-checkbox-group/props.js delete mode 100644 uni_modules/uv-checkbox/components/uv-checkbox-group/uv-checkbox-group.vue delete mode 100644 uni_modules/uv-checkbox/components/uv-checkbox/props.js delete mode 100644 uni_modules/uv-checkbox/components/uv-checkbox/uv-checkbox.vue delete mode 100644 uni_modules/uv-checkbox/package.json delete mode 100644 uni_modules/uv-checkbox/readme.md delete mode 100644 uni_modules/uv-no-network/changelog.md delete mode 100644 uni_modules/uv-no-network/components/uv-no-network/props.js delete mode 100644 uni_modules/uv-no-network/components/uv-no-network/uv-no-network.vue delete mode 100644 uni_modules/uv-no-network/package.json delete mode 100644 uni_modules/uv-no-network/readme.md delete mode 100644 uni_modules/uv-qrcode/changelog.md delete mode 100644 uni_modules/uv-qrcode/components/uv-qrcode/cache.js delete mode 100644 uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/bridge/bridge-weex.js delete mode 100644 uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-2d/FillStyleLinearGradient.js delete mode 100644 uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-2d/FillStylePattern.js delete mode 100644 uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-2d/FillStyleRadialGradient.js delete mode 100644 uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-2d/RenderingContext.js delete mode 100644 uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-webgl/ActiveInfo.js delete mode 100644 uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-webgl/Buffer.js delete mode 100644 uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-webgl/Framebuffer.js delete mode 100644 uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-webgl/GLenum.js delete mode 100644 uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-webgl/GLmethod.js delete mode 100644 uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-webgl/GLtype.js delete mode 100644 uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-webgl/Program.js delete mode 100644 uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-webgl/Renderbuffer.js delete mode 100644 uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-webgl/RenderingContext.js delete mode 100644 uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-webgl/Shader.js delete mode 100644 uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-webgl/ShaderPrecisionFormat.js delete mode 100644 uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-webgl/Texture.js delete mode 100644 uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-webgl/UniformLocation.js delete mode 100644 uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-webgl/classUtils.js delete mode 100644 uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/env/canvas.js delete mode 100644 uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/env/image.js delete mode 100644 uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/env/tool.js delete mode 100644 uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/index.js delete mode 100644 uni_modules/uv-qrcode/components/uv-qrcode/props.js delete mode 100644 uni_modules/uv-qrcode/components/uv-qrcode/qrcode.js delete mode 100644 uni_modules/uv-qrcode/components/uv-qrcode/queue.js delete mode 100644 uni_modules/uv-qrcode/components/uv-qrcode/uv-qrcode.vue delete mode 100644 uni_modules/uv-qrcode/package.json delete mode 100644 uni_modules/uv-qrcode/readme.md delete mode 100644 uni_modules/uv-steps/changelog.md delete mode 100644 uni_modules/uv-steps/components/uv-steps-item/props.js delete mode 100644 uni_modules/uv-steps/components/uv-steps-item/uv-steps-item.vue delete mode 100644 uni_modules/uv-steps/components/uv-steps/props.js delete mode 100644 uni_modules/uv-steps/components/uv-steps/uv-steps.vue delete mode 100644 uni_modules/uv-steps/package.json delete mode 100644 uni_modules/uv-steps/readme.md delete mode 100644 uni_modules/uv-swipe-action/changelog.md delete mode 100644 uni_modules/uv-swipe-action/components/uv-swipe-action-item/index - backup.wxs delete mode 100644 uni_modules/uv-swipe-action/components/uv-swipe-action-item/index.wxs delete mode 100644 uni_modules/uv-swipe-action/components/uv-swipe-action-item/nvue - backup.js delete mode 100644 uni_modules/uv-swipe-action/components/uv-swipe-action-item/nvue.js delete mode 100644 uni_modules/uv-swipe-action/components/uv-swipe-action-item/props.js delete mode 100644 uni_modules/uv-swipe-action/components/uv-swipe-action-item/uv-swipe-action-item.vue delete mode 100644 uni_modules/uv-swipe-action/components/uv-swipe-action-item/wxs.js delete mode 100644 uni_modules/uv-swipe-action/components/uv-swipe-action/props.js delete mode 100644 uni_modules/uv-swipe-action/components/uv-swipe-action/uv-swipe-action.vue delete mode 100644 uni_modules/uv-swipe-action/package.json delete mode 100644 uni_modules/uv-swipe-action/readme.md delete mode 100644 uni_modules/uv-swiper/changelog.md delete mode 100644 uni_modules/uv-swiper/components/uv-swiper-indicator/props.js delete mode 100644 uni_modules/uv-swiper/components/uv-swiper-indicator/uv-swiper-indicator.vue delete mode 100644 uni_modules/uv-swiper/components/uv-swiper/props.js delete mode 100644 uni_modules/uv-swiper/components/uv-swiper/uv-swiper.vue delete mode 100644 uni_modules/uv-swiper/package.json delete mode 100644 uni_modules/uv-swiper/readme.md diff --git a/App.vue b/App.vue index c44e39d..8a7892e 100644 --- a/App.vue +++ b/App.vue @@ -32,35 +32,9 @@ main.SET_TOKEN(opt.accessToken); } }) - - onShow(() => { - // 检查用户登录情况 - // #ifdef H5 - if (isWeixin()) { - // H5编译的代码 - // 判断是否是微信浏览器 - //oAuth() - //return; - } - // #endif - // #ifdef MP-WEIXIN - //wechatMiniLogin(); - // #endif - }) - - onHide(() => { - console.log('App Hide') - }) \ No newline at end of file diff --git a/pages.json b/pages.json index 49e0d76..8422a35 100644 --- a/pages.json +++ b/pages.json @@ -20,13 +20,6 @@ "enablePullDownRefresh": true } - }, { - "path": "pages/msg/index", - "style": { - "navigationBarTitleText": "消息", - "enablePullDownRefresh": false - } - } ], "subPackages": [{ @@ -363,12 +356,6 @@ "iconPath": "static/images/tabBar/customer.png", "selectedIconPath": "static/images/tabBar/customer-selected.png" }, - //{ - // "pagePath": "pages/msg/index", - // "text": "消息", - // "iconPath": "static/images/tabBar/msg.png", - // "selectedIconPath": "static/images/tabBar/msg-select.png" - // }, { "pagePath": "pages/mine/mine", "text": "我的", diff --git a/pages/components/pages/business/selectProduct.vue b/pages/components/pages/business/selectProduct.vue index 23ccba4..1364033 100644 --- a/pages/components/pages/business/selectProduct.vue +++ b/pages/components/pages/business/selectProduct.vue @@ -17,35 +17,32 @@ @scrolltolower="reachBottom"> - - - - - - {{item.storeName}} - - + + + + + {{item.storeName}} + - - - 规格:{{item.sku}} - - - 库存:{{item.stock}} - 价格:{{item.price}} + + + 规格:{{item.sku}} + + 库存:{{item.stock}} + 价格:{{item.price}} + - - 添加时间: {{formatDateTime(item.createTime)}} - - {{item.checked ? '取消':'选择'}} - + + 添加时间: {{formatDateTime(item.createTime)}} + + {{item.checked ? '取消':'选择'}} - + @@ -150,6 +147,9 @@ storeToRefs } from 'pinia' const main = useMainStore() + const { + selectProductList + } = storeToRefs(main) const title = ref('选择产品') const keyword = ref('') const selected = ref(false) @@ -157,10 +157,6 @@ const oldScrollTop = ref(0) const scrollTop = ref(-1) const skuList = ref([]) - - // search: { - // fontSise: '18px' - // }, const list = ref([]) const selectList = ref([]) const consentShow = ref(false) @@ -178,7 +174,6 @@ const thisIndex = ref(0) - onReady(() => { uni.getSystemInfo({ success(res) { @@ -192,15 +187,11 @@ }) }) - onLoad((e) => { - //getBusinessList(); - }) - - onShow(() => { + onLoad((opt) => { + selectList.value = selectProductList.value || [] getProductList() }) - // 选中一个 const selectShowRef = ref() const onSelect = (val, i) => { @@ -210,7 +201,6 @@ icon: 'error', duration: 2000 }) - return } list.value.forEach((item, index) => { @@ -230,7 +220,6 @@ } }) } - } const selectSku = async (val, index) => { @@ -284,9 +273,9 @@ }) selectList.value.splice(index, 1) } + // 选好了 const chosen = () => { - // 储存 main.SET_SELECT_PRODUCT(selectList.value) uni.navigateBack(); } @@ -301,7 +290,6 @@ }).then(res => { if (res) { res.list.forEach((item, index) => { - //item.create_time = this.timeFormats(item.create_time) item.checked = false // 设置默认数据 item.nums = 1 @@ -327,12 +315,11 @@ } }) } - // scroll 滚动记录 + const scroll = (e) => { oldScrollTop.value = e.detail.scrollTop } - // 滚动到底部 const reachBottom = () => { if (lastPage.value || listStatus.value == 'loading') return; @@ -375,16 +362,13 @@ .top { display: flex; - justify-content: space-between; + align-items: center; + justify-content: flex-start; - .left { - display: flex; - align-items: center; - - .store { - font-size: 28rpx; - font-weight: bold; - } + .sku-name { + font-size: 30rpx; + margin-left: 10rpx; + color: #333; } .right { diff --git a/pages/components/pages/clues/cluesDetails.vue b/pages/components/pages/clues/cluesDetails.vue index aaf6b20..b389ac7 100644 --- a/pages/components/pages/clues/cluesDetails.vue +++ b/pages/components/pages/clues/cluesDetails.vue @@ -88,7 +88,7 @@ - 更多 + 更多 跟进 @@ -662,11 +662,21 @@ border-radius: 5px; font-size: 28rpx; text-align: center; + box-sizing: border-box; } .entity { color: #fff; background-color: #09b4f1; + z-index: 999; + } + + .more-btn { + padding: 15rpx 60rpx; + background-color: #5ecc62; + color: #fff; + margin-right: 12rpx; + z-index: 999; } } @@ -686,6 +696,7 @@ .grid-text { font-size: 28rpx; margin-top: 4rpx; + margin-bottom: 16rpx; } } \ No newline at end of file diff --git a/pages/components/pages/contract/add.vue b/pages/components/pages/contract/add.vue index b41794f..1470a93 100644 --- a/pages/components/pages/contract/add.vue +++ b/pages/components/pages/contract/add.vue @@ -70,12 +70,6 @@ - - @@ -129,8 +123,8 @@ - + - + @@ -160,33 +154,8 @@ 确定提交 - - - - - - - 输入驳回理由 - - - - - - - - - 确定 - - - + @@ -450,11 +419,6 @@ const keyword3 = ref('') const businessList = ref([]) const isCheck = ref(false) - const form2 = ref({ - id: 0, - agreeType: 1, - remark: '' - }) onLoad((e) => { type.value = e.type @@ -862,13 +826,6 @@ selectShowClose4() } - const selectShowRef5 = ref() - const selectShow5 = async () => { - unref(selectShowRef5).open() - } - const selectShowClose5 = () => { - unref(selectShowRef5).close() - } //公司 const selectShowRef6 = ref() @@ -939,30 +896,6 @@ } } - const submitCheck = async (type) => { - if (type == 2 && form2.value.remark == '') { - uni.showToast({ - icon: 'error', - title: '请填写驳回理由' - }) - - return - } - form2.value.id = contractId.value - form2.value.type - await check(form2.value) - - uni.showToast({ - title: '审核成功', - icon: 'success', - duration: 2000 - }) - prePage().$vm.isRefresh = true - setTimeout(() => { - uni.navigateBack(); - }, 1000); - } - // 提交跟进 const uForm = ref() const submit = () => { diff --git a/pages/components/pages/invoice/add.vue b/pages/components/pages/invoice/add.vue index 7282a9b..58cdf8c 100644 --- a/pages/components/pages/invoice/add.vue +++ b/pages/components/pages/invoice/add.vue @@ -71,8 +71,8 @@ - + - + diff --git a/pages/msg/index.vue b/pages/msg/index.vue deleted file mode 100644 index 101b3a4..0000000 --- a/pages/msg/index.vue +++ /dev/null @@ -1,81 +0,0 @@ - - - - - \ No newline at end of file diff --git a/static/iconfont/iconfont.css b/static/iconfont/iconfont.css deleted file mode 100644 index dc27c31..0000000 --- a/static/iconfont/iconfont.css +++ /dev/null @@ -1,23 +0,0 @@ -@font-face { - font-family: "iconfont"; /* Project id 4205200 */ - src: url('~@/static/iconfont/iconfont.woff2?t=1691643169117') format('woff2'), - url('~@/static/iconfont/iconfont.woff?t=1691643169117') format('woff'), - url('~@/static/iconfont/iconfont.ttf?t=1691643169117') format('truetype'); -} - -.iconfont { - font-family: "iconfont" !important; - font-size: 16px; - font-style: normal; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -.icon-waimai-:before { - content: "\e607"; -} - -.icon-tangshi:before { - content: "\e645"; -} - diff --git a/static/iconfont/iconfont.scss b/static/iconfont/iconfont.scss deleted file mode 100644 index cd75d80..0000000 --- a/static/iconfont/iconfont.scss +++ /dev/null @@ -1,270 +0,0 @@ - -@font-face { - font-family: 'iconfont-yshop'; - src: url('//at.alicdn.com/t/font_2012069_r7oux4ay0ls.eot'); - src: url('//at.alicdn.com/t/font_2012069_r7oux4ay0ls.eot?#iefix') format('embedded-opentype'), - url('//at.alicdn.com/t/font_2012069_r7oux4ay0ls.woff2') format('woff2'), - url('//at.alicdn.com/t/font_2012069_r7oux4ay0ls.woff') format('woff'), - url('//at.alicdn.com/t/font_2012069_r7oux4ay0ls.ttf') format('truetype'), - url('//at.alicdn.com/t/font_2012069_r7oux4ay0ls.svg#iconfont-yshop') format('svg'); - -} - -.iconfont-yshop { - font-family: 'iconfont-yshop' !important; - font-size: 16px; - font-style: normal; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - color: #09b4f1; -} -.icon-alipay:before { - content: '\e60a'; -} -.icon-shop:before { - content: '\e664'; -} -.icon-takein:before { - content: '\e666'; -} -.icon-takeout:before { - content: '\e667'; -} -.icon-location:before { - content: '\e633'; -} -.icon-mobile:before { - content: '\e602'; -} -.icon-box:before { - content: '\e665'; -} -.icon-lamp:before { - content: '\e668'; -} -.icon-doorbell:before { - content: '\e662'; -} -.icon-daojishi:before { - content: '\e625'; -} - -@font-face { - font-family: 'iconfont'; - src: url('//at.alicdn.com/t/font_1789197_z1gzlwq7idq.ttf?t=1589441233693') format('truetype'); -} - -.iconfont { - font-family: 'iconfont' !important; - font-size: 16px; - font-style: normal; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -.iconshoucang:before { - content: '\e667'; -} - -.iconshoucangfill:before { - content: '\e6c9'; -} - -.iconjifen:before { - content: '\e642'; -} - -.iconradio-button-off:before { - content: '\e688'; -} - -.iconradio-button-on:before { - content: '\e689'; -} - -.iconhelp:before { - content: '\e752'; -} - -.iconwxpay:before { - content: '\e611'; -} - -.iconbalance:before { - content: '\e619'; -} - -.iconadd-select:before { - content: '\e7b0'; -} - -.iconsami-select:before { - content: '\e7b1'; -} - -.iconmap:before { - content: '\e758'; -} - -.iconsuccess:before { - content: '\e767'; -} - -.iconsuccess-fill:before { - content: '\e78d'; -} - -.iconiconset0136:before { - content: '\e623'; -} - -.iconzan:before { - content: '\e640'; -} - -.iconjifenqiandao:before { - content: '\e6a6'; -} - -.iconshouyeshouye:before { - content: '\e606'; -} - -.icondaohang:before { - content: '\e641'; -} - -.iconwodelianxikefu:before { - content: '\e671'; -} - -.iconwodexinyuan:before { - content: '\e675'; -} - -.iconphone:before { - content: '\e6dd'; -} - -.icondingdan:before { - content: '\e645'; -} - -.iconliwu:before { - content: '\e61c'; -} - -.iconyinpinyinliao:before { - content: '\e60d'; -} - -.iconyinpin:before { - content: '\e70b'; -} - -.iconwaimaixinxi:before { - content: '\e685'; -} - -.iconico:before { - content: '\e646'; -} - -.iconwode:before { - content: '\e616'; -} - -.icongengduofuwu:before { - content: '\e607'; -} - -.iconqucan:before { - content: '\e625'; -} - -.iconyou:before { - content: '\e618'; -} - -.iconshouhuodizhi:before { - content: '\e666'; -} - -.iconshangcheng:before { - content: '\e63b'; -} - -.iconadd:before { - content: '\e742'; -} - -.iconarrow-right:before { - content: '\e743'; -} - -.iconarrow-lift:before { - content: '\e744'; -} - -.iconarrow-up:before { - content: '\e745'; -} - -.iconclose:before { - content: '\e747'; -} - -.iconleftbutton:before { - content: '\e755'; -} - -.iconreduce:before { - content: '\e75e'; -} - -.iconseleted:before { - content: '\e763'; -} - -.iconRightbutton:before { - content: '\e765'; -} - -.iconleftbutton-fill:before { - content: '\e782'; -} - -.iconRightbutton-fill:before { - content: '\e78a'; -} - -.iconarrow-down:before { - content: '\e7b2'; -} - -.iconaixin1:before { - content: '\e63c'; -} - -@font-face { - font-family: "iconfont"; /* Project id 4205200 */ - src: url('~@/static/iconfont/iconfont.woff2') format('woff2'), - url('~@/static/iconfont/iconfont.woff') format('woff'), - url('~@/static/iconfont/iconfont.ttf') format('truetype'); - } - - .iconfont { - font-family: "iconfont" !important; - font-size: 16px; - font-style: normal; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - } - - .icon-waimai-:before { - content: "\e607"; - } - - .icon-tangshi:before { - content: "\e645"; - } \ No newline at end of file diff --git a/static/iconfont/iconfont.ttf b/static/iconfont/iconfont.ttf deleted file mode 100644 index ce3f55991dd48adadda4b386d7ac7c70f889801c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2832 zcmd^B>u(&@6+dU@&b_lUv$L~r+ncP{yY_6dw)Yi#Hih7z5Ic#QHi1Cs185g#{pvof z^(NpJHAa=76_wI&RRuy+{nUPeFH~y9hpMW?mqyA5BqTyhkfzTOdRE#JNX~WnP&0HUJ(b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VhVz0Q;>#g5YD!J>pd~vbU zf(M`r4X8tp<_nO4Ct;K3RXR*M(1s;%?%kn3MBdAAkq(?X#ox{QJb8CvgZ$i_8K^*! z{sw(E>I8YUJAC9uU;DgEMhRtPAfBqPw(6_XqE~M(Z>+46?|%RoIfN7d diff --git a/static/iconfont/iconfont.woff b/static/iconfont/iconfont.woff deleted file mode 100644 index e2dc08d15411081400202ee5cb478ce8deaf0d65..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1864 zcmY*Z2T+sQ7XAYS5Mzj-up$^x6hwMZdK07Iq7Wds(o84;6haFnJftjyx}lxnJCz}dj;ZyK`j;JSny8v zxi!l54ImT1cpd4FFIlFi!`>xsxk#Xg^Q{H9@T+2xaj$k!yZ| zq$p6U0Xa+n*aUwsAjnIQ_Xy;I_lN^^LZN~9D6lWI3*<-;ijZRvQzAal2h_M=Zwmkr z@6caEsE}i^Ty%kJ+*PoUbxVZ&3*X!AscnJ7u6Goj|ZqG zy2UywDASw-;Q`^nmUw@-A|WwV2smX7wFU&W_)j=GlR3y_zGjn>6A~(r=TY4RZO=s@ zUAI{mg@Z!;n@+>TN?Xjse2CxXm`r9&O2t9d;nd31eE{VYY%7YsO6@%muMHE{@;@!* zi8$6UrVynQJE2OHaK-UF``JTGA?1*CScDhM{j$c!QyFqr*>U}@#>Ox3vY)G6_eEy1 z?wc-sBAQJX{YG#tnU^$&z$3unqUaQdk)WgKLuKv8n}i78FGIWUCV56}c{5LK%%Uh)K0Zli=rKX(dYB38TxOGg8in3Hn3q}oH zQ}=~;`}=Hhd(V+yljx;I<}`~Y>W4+_hG?hd>M z4`B0IW1{8yAk~ilHnE=ZeN$L?MN55Jvm6`Q>+y@nn>7B0%dIC%`^ZWGwJuj?hN1yc z6pnWBtnX%L=7RaggDz**)5#H)a)$0i2gPM|u@u#g{P(q+b8XH&$GY{@HNQp|WQ-&> zW-!)_iK=%8kIK$OKi(Tud2`t`An7R0N~8FJ7^a{~=dsx&Iplp#ObsMkWNlVrLXI=z zs%&6t#`qaoh|EK8Vol9%I>k+?;xYUA7nmG%FkDh&l#W=t7rpsC>Tphq(|D$NfV7zZ!Im@8hPAH&P8sZO` z`pEMAN{{3y*ecCYlr{yKdPe_M+RY1K=}~LOe zyPK<|iP}`PxMALBxveg1>$3Xakv}zY78}x>`~DucP5kC|ta#W(Vs^(oHs|_*^&GyRB+pL3a zbMhGHRqk4L)p5taP_jm6L=R!K+peDdttCK42~Kh7c6ens_OL*PTXQ&s-QdwO=Eo;g z*`9E+=^8SGPUDy&TZWM_mY9{YKf?!Od}QF_KH(T%Gv+t;J41TdloAhOP0mlZGw{8!&Ll-F0{lo%43K z9|+f6%a}a7HwoR)V%Sza{;_jEyae#fUWj}-u*r$>nJ3_Z1hF1(S=KT??)$_;E`cZ( zYWP#3MJ14mgeU*6M&J#IzRfdy$=ilf#3btvv34G zZ-h4hIik24bnB%u&@!S3gn5?K}qN?9*eBwzLNT|Iy2)2dSJy?pCh`|^9` zVh@)twN1EaS-&>Cl0}tX6zBPcrCXCHt%T8C(^EmS-82O@u-2TCvhn1-=2YLwhq-4u zm{q}dcJi9-Vr7~t(n^C%cItzLwW6en54;B8rE&cYlt{c}`!__>yl5E<5<8@ T*3n`ZoXAUn047FI1_1m6ffPIy diff --git a/static/iconfont/iconfont.woff2 b/static/iconfont/iconfont.woff2 deleted file mode 100644 index dc23b264489e27cbd84e8afcf39034fbd70866e7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1416 zcmV;31$X*)Pew8T0RR9100oEu3jhEB01FTR00lY#0RR9100000000000000000000 z0000SR0d!Gg9ZwTWQSh?HUcCA3=0SV1Rw>3X9qhQKnWuec5`pSko_YuHdfyF2~)?m z<1UeR(MTOh`%4Dlmdz%?62t;E15U)-Q>7*X{|^72go?PcIOp7qjW9!biynO;1>Dk{ z0^om+nJ(I91Nmzzks(EvMOxb4aGpM(ab#Q+-}CXkQ#!?afM*z}ZaxPD0E-BufohRc zR0VC{PDA^n4j2Tr1gO(V-(EdBL8)87%#aC`dbxBdlSlr644{6ejso~Q|9SERQA7z) zkkJTED(jxz6+7=M?q}03zYFwLxVM*w!zlnV05pJ*BeRkA^PZNVOI1j&VaGHKtK{S+ zptc(H`vH`=I{7jG<52*SBhaW38=$7Hlr&}o0q$puQH$%Z!L{SJ0%Q?DZeh(4Ioi&U zuL>w!{rZiWC`uo$P>nXL#<0RVnsKrQY z;$E?3y=l8JM(gx>c~P_``{reI*7ybMc$<3xADD1-)Yv8STuV^cF0F4CgLIN)P7vmI z^_ZO&pLGFoOBNE%kcivibMS(BE?m60ktV|xAXHlxI3`P)TeG$hZ>hF)6-7?x^;sMG zCbL@4M85a*3rEg{UZ_47-tO?N<7-cvY949wPBK>stkGksk)~KBOC4#3)p6c=0oHCQ zT)ckn)LtIJC3<~sDZaqP;=*yoeR>PLXe0CZd4ZSXai{D~+H7B6Elu{#n>R_ApN4gj zVHG725ka~3h~~ZYy~3O4*@ME0Lc&WLkc^iP*;6d-B z^Y_Xg-?6+-oxeu*>GX!ZwkPS2WBKK>$5Au04i9bItvMH67@lFxOa6aM?SY#BIJcYQ6qjx*l!wSn|VjA?aay=ec<h5q%^J`4#5t{v;3OL?c{{s6(7pX<-c6*3>7{1~W+DgJD` z+A;;g)f(Ian9^ZgP z4bg1J!A_2-=7fS#gZzV6wU|iHd80S9?<8m_{6cCTgRqQqH+jW^w22w*V^?MahH8e3 zdK#uwVWS#Q@#vVh!!(((FBw(M-H}i*YLI{Msuq(L=l1Wrp?xPoLgdRujm6YBEaNOd zUNuEj@JMpo$F58f14c`&87}L&Fom%S+xVb>ibuCbWIIe$%t$rk{&o4mtpi{Ybf*bL WXu_Z$(aGni-_UcXVw>|_2LJ#EtEKz^ diff --git a/static/images/tabBar/msg-select.png b/static/images/tabBar/msg-select.png deleted file mode 100644 index 49f0886adfc47cb1c96aad1b9204cc1f8b698d17..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2682 zcmd^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6i^Sdi-zPnsHjo{>>16JPMWh`Bbax-B*e(3Re*lheXx#t+ diff --git a/static/style/style.css b/static/style/style.css deleted file mode 100644 index 851bff1..0000000 --- a/static/style/style.css +++ /dev/null @@ -1,1114 +0,0 @@ -body { - background-color: #f5f5f5; -} -page { - background-color: #f5f5f5; - min-height: 100%; -} -image { - max-width: 100%; - height: auto; -} -:root { - --van-primary-color: #ee6d46; -} -.van-grid-item__content { - padding: 0 var(--van-padding-base); -} -.scroll-view-H { - white-space: nowrap; - width: 100%; -} -.page-space { - padding: 0 34rpx; -} -.page-card { - background: #fff; - -webkit-border-radius: 15rpx; - border-radius: 15rpx; -} -.mb-10 { - margin-bottom: 10rpx; -} -.mb-15 { - margin-bottom: 15rpx; -} -.mb-20 { - margin-bottom: 20rpx; -} -.mb-25 { - margin-bottom: 25rpx; -} -.mb-30 { - margin-bottom: 30rpx; -} -.pl-10 { - padding-left: 10rpx; -} -.pl-15 { - padding-left: 15rpx; -} -.pl-20 { - padding-left: 20rpx; -} -.pl-25 { - padding-left: 25rpx; -} -.pl-30 { - padding-left: 30rpx; -} -.pl-40 { - padding-left: 40rpx; -} -.pr-10 { - padding-right: 10rpx; -} -.pr-15 { - padding-right: 15rpx; -} -.pr-20 { - padding-right: 20rpx; -} -.pr-25 { - padding-right: 25rpx; -} -.pr-30 { - padding-right: 30rpx; -} -.pr-40 { - padding-right: 40rpx; -} -.p-40 { - padding: 40rpx; -} -.paddingH-10 { - padding: 0 20rpx; -} -.border-top { - position: relative; -} -.border-top::after { - content: ''; - position: absolute; - left: 0; - top: 0; - right: 0; - height: 1rpx; - background: #e6e6e6; -} -.van-button { - -webkit-border-radius: 0; - border-radius: 0; -} -.van-button--mini { - font-size: 24rpx; -} -.icon .image { - display: block; - width: 100%; - height: 100%; -} -.infos { - padding: 20rpx 37rpx 20rpx; -} -.infos.infos-right .info-cell-value { - text-align: right; -} -.infos .info-cell { - margin-bottom: 20rpx; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-align: center; - -webkit-align-items: center; - -ms-flex-align: center; - align-items: center; - -webkit-box-pack: justify; - -webkit-justify-content: space-between; - -ms-flex-pack: justify; - justify-content: space-between; -} -.infos .info-cell-label { - margin-right: 30rpx; - line-height: 32rpx; - font-size: 24rpx; - color: #999999; -} -.infos .info-cell-value { - -webkit-box-flex: 1; - -webkit-flex: 1; - -ms-flex: 1; - flex: 1; - line-height: 32rpx; - font-size: 24rpx; - color: #333333; -} -.infos .info-cell-operation { - line-height: 32rpx; - font-size: 24rpx; - color: #ee6d46; -} -.simple-cell { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-align: center; - -webkit-align-items: center; - -ms-flex-align: center; - align-items: center; -} -.simple-cell-icon { - width: 64rpx; - height: 64rpx; -} -.simple-cell-content { - margin-left: 15rpx; -} -.simple-cell-title { - line-height: 40rpx; - font-size: 28rpx; - font-weight: 500; - color: #333333; -} -.simple-cell-label { - line-height: 30rpx; - font-size: 22rpx; - color: #333333; -} -.time-bar { - background: #fff; - height: 150rpx; -} -.time-bar .van-tab--active .time-bar-item { - background: #e96b45; -} -.time-bar .van-tab--active .time-bar-item .time { - color: #fff; -} -.time-bar .van-tab--active .time-bar-item .status { - color: #fff; -} -.time-bar-item { - width: 180rpx; - height: 150rpx; - background: #ffffff; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-orient: vertical; - -webkit-box-direction: normal; - -webkit-flex-direction: column; - -ms-flex-direction: column; - flex-direction: column; - -webkit-box-align: center; - -webkit-align-items: center; - -ms-flex-align: center; - align-items: center; -} -.time-bar-item .time { - margin-top: 26rpx; - line-height: 1em; - font-size: 34rpx; - font-weight: bold; - color: #333333; - margin-bottom: 10rpx; -} -.time-bar-item .status { - line-height: 1em; - font-size: 24rpx; - font-weight: 400; - color: #999999; -} -.time-bar-item .countdown { - -webkit-box-flex: 1; - -webkit-flex: 1; - -ms-flex: 1; - flex: 1; - height: 1em; - font-size: 20rpx; - color: #ffffff; - font-weight: 100; -} -.time-bar .van-tab { - padding: 0; -} -.time-bar .van-tabs--line .van-tabs__wrap { - height: 150rpx; -} -.time-bar .van-tabs__nav--line { - padding-bottom: 0; - padding: 0; -} -.time-bar .van-tabs__wrap { - height: 150rpx; -} -.time-bar .van-tabs__line { - display: none; -} -.card { - background: #ffffff; - -webkit-border-radius: 15rpx; - border-radius: 15rpx; -} -.card.noBorder .card-head { - border-bottom: 0; -} -.card.noBorder .card-title { - font-size: 28rpx; - color: #999999; -} -.card.noBorder .card-content { - padding: 0; -} -.card.min .card-title { - font-size: 28rpx; - color: #999999; -} -.card.min .card-content { - padding: 0; -} -.card.full { - -webkit-border-radius: 0; - border-radius: 0; -} -.card.full .card-content { - padding: 0 34rpx 20rpx; -} -.card-head { - height: 85rpx; - border-bottom: 1rpx solid #e6e6e6; - padding-left: 30rpx; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-align: center; - -webkit-align-items: center; - -ms-flex-align: center; - align-items: center; - -webkit-box-pack: justify; - -webkit-justify-content: space-between; - -ms-flex-pack: justify; - justify-content: space-between; -} -.card-title { - font-size: 32rpx; - font-family: PingFang SC; - font-weight: 500; - color: #333; -} -.card-title .card-title-sub { - font-weight: normal; - font-size: 22rpx; - color: #999999; -} -.card-more { - font-size: 24rpx; - font-family: PingFang SC; - font-weight: 400; - color: #999999; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-align: center; - -webkit-align-items: center; - -ms-flex-align: center; - align-items: center; -} -.card-more .uv-icon { - margin-left: 10px; - margin-right: 10px; -} -.card-content { - padding: 20rpx 0 0; - -webkit-border-bottom-left-radius: 15rpx; - border-bottom-left-radius: 15rpx; - -webkit-border-bottom-right-radius: 15rpx; - border-bottom-right-radius: 15rpx; - overflow: hidden; -} -.card .card-grid-item { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-orient: vertical; - -webkit-box-direction: normal; - -webkit-flex-direction: column; - -ms-flex-direction: column; - flex-direction: column; - -webkit-box-pack: center; - -webkit-justify-content: center; - -ms-flex-pack: center; - justify-content: center; - -webkit-box-align: center; - -webkit-align-items: center; - -ms-flex-align: center; - align-items: center; - padding: 10rpx 0; - margin-bottom: 20rpx; - position: relative; -} -.card .card-grid-item-badge { - -webkit-box-align: center; - -webkit-align-items: center; - -ms-flex-align: center; - align-items: center; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - position: absolute; - right: 0; - top: 0; -} -.card .card-grid-item-badge span { - margin: 0 !important; - color: #fff !important; -} -.card .card-grid-item .image { - width: 60rpx; - height: 60rpx; -} -.card .card-grid-item-label { - margin-top: 14rpx; - line-height: 33rpx; - font-size: 24rpx; - font-family: PingFang SC; - font-weight: 400; - color: #333333; -} -.search .y-search { - background: none; -} -.cell-attr .cell-title { - line-height: 40rpx; - font-size: 28rpx; - color: #333333; -} -.cell-attr .cell-sub-title { - line-height: 40rpx; - font-size: 28rpx; - color: #999999; -} -.storeInfo { - padding: 24rpx 35rpx; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-align: center; - -webkit-align-items: center; - -ms-flex-align: center; - align-items: center; - background: #fff; -} -.storeInfo-pic { - width: 80rpx; - height: 80rpx; -} -.storeInfo-info { - -webkit-box-flex: 1; - -webkit-flex: 1; - -ms-flex: 1; - flex: 1; - margin-left: 20rpx; -} -.storeInfo-info-name { - line-height: 40rpx; - font-size: 28rpx; - color: #333333; -} -.storeInfo-info-address { - line-height: 28rpx; - font-size: 20rpx; - color: #999999; - margin-top: 84px; -} -.storeInfo-action { - width: 120rpx; - height: 50rpx; - background: #333333; - line-height: 50rpx; - text-align: center; - font-size: 24rpx; - line-height: 0rpx; - color: #ffffff; -} -.center-title { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-align: center; - -webkit-align-items: center; - -ms-flex-align: center; - align-items: center; - -webkit-box-pack: center; - -webkit-justify-content: center; - -ms-flex-pack: center; - justify-content: center; - margin: 20rpx 0; -} -.center-title-line { - width: 36rpx; - height: 1rpx; - background: #333333; -} -.center-title .title { - margin: 0 22rpx; -} -.blank { - height: var(--van-action-bar-height); -} -.shopping-bar { - bottom: var(--van-tabbar-height); -} -.full-btn { - height: var(--van-action-bar-height); -} -.shopping-checkbox .van-checkbox { - padding: 2px; - margin-right: 10rpx; -} -.shopping-checkbox-cell { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-align: center; - -webkit-align-items: center; - -ms-flex-align: center; - align-items: center; - padding: 26rpx 0 26rpx 30rpx; -} -.list { - padding: 25rpx 35rpx; - position: relative; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: justify; - -webkit-justify-content: space-between; - -ms-flex-pack: justify; - justify-content: space-between; - -webkit-box-align: center; - -webkit-align-items: center; - -ms-flex-align: center; - align-items: center; - background: #fff; -} -.list-main { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-align: center; - -webkit-align-items: center; - -ms-flex-align: center; - align-items: center; - -webkit-box-flex: 1; - -webkit-flex: 1; - -ms-flex: 1; - flex: 1; -} -.list-actions-edit { - width: 33rpx; - height: 33rpx; -} -.list-actions-edit .image { - width: 100%; - height: 100%; - display: block; -} -.list.noBorder::after { - display: none; -} -.list::after { - content: ''; - position: absolute; - left: 35rpx; - top: 0; - right: 0; - height: 1rpx; - background: #e6e6e6; -} -.list-label { - line-height: 40rpx; - font-size: 28rpx; - color: #333333; -} -.list-content { - -webkit-box-flex: 1; - -webkit-flex: 1; - -ms-flex: 1; - flex: 1; -} -.list-content input, -.list-content .uni-input { - line-height: 40rpx; - font-size: 28rpx; - color: #333333; -} -.form-checkbox { - padding: 43rpx 0; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: center; - -webkit-justify-content: center; - -ms-flex-pack: center; - justify-content: center; -} -.form-buttons { - margin-top: 34rpx; - padding: 0 34rpx; -} -.background-warp { - position: relative; -} -.background-warp .background { - position: absolute; - left: 0; - top: 0; - right: 0; - z-index: 1; -} -.background-warp .background .image { - width: 100%; -} -.background-warp .background-content { - position: relative; - z-index: 10; -} -.order { - background-color: #fff; - -webkit-border-radius: 15rpx; - border-radius: 15rpx; - -webkit-box-sizing: border-box; - box-sizing: border-box; - margin: 10rpx 34rpx; -} -.order-header { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-align: center; - -webkit-align-items: center; - -ms-flex-align: center; - align-items: center; - -webkit-box-pack: justify; - -webkit-justify-content: space-between; - -ms-flex-pack: justify; - justify-content: space-between; - height: 80rpx; - border-bottom: 1rpx solid #e6e6e6; - padding: 0 34rpx; -} -.order-logo .image { - height: 45rpx; - width: auto; -} -.order-title { - line-height: 45rpx; - font-size: 32rpx; - font-weight: 500; - color: #333333; -} -.order-status.status-1 { - line-height: 40rpx; - font-size: 28rpx; - color: #999999; -} -.order-status.status-2 { - line-height: 40rpx; - font-size: 28rpx; - color: #ee6d46; -} -.order-info { - border-top: 1rpx solid #e6e6e6; - border-bottom: 1rpx solid #e6e6e6; - height: 80rpx; - line-height: 80rpx; - font-size: 24rpx; - color: #999999; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: end; - -webkit-justify-content: flex-end; - -ms-flex-pack: end; - justify-content: flex-end; - padding-right: 34rpx; -} -.order-info text { - margin-left: 10rpx; -} -.order-actions { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: justify; - -webkit-justify-content: space-between; - -ms-flex-pack: justify; - justify-content: space-between; - padding-right: 34rpx; - padding: 34rpx; -} -.order-actions-btns { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-align: center; - -webkit-align-items: center; - -ms-flex-align: center; - align-items: center; -} -.order-actions-delete { - width: 169rpx; - height: 60rpx; - border: 1px solid #333333; - opacity: 1; - -webkit-border-radius: 0rpx; - border-radius: 0rpx; - line-height: 58rpx; - text-align: center; - color: #333333; - font-size: 24rpx; -} -.order-actions-primary { - margin-left: 20rpx; - width: 169rpx; - height: 60rpx; - background: #ee6d46; - border: 1px solid #ee6d46; - opacity: 1; - -webkit-border-radius: 0rpx; - border-radius: 0rpx; - line-height: 58rpx; - text-align: center; - color: #ffffff; - font-size: 24rpx; -} -.address { - background: #ffffff; - -webkit-border-radius: 15rpx; - border-radius: 15rpx; - position: relative; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: justify; - -webkit-justify-content: space-between; - -ms-flex-pack: justify; - justify-content: space-between; - -webkit-box-align: center; - -webkit-align-items: center; - -ms-flex-align: center; - align-items: center; - margin-bottom: 20rpx; - padding: 40rpx 34rpx; - background: #fff; -} -.address-main { - -webkit-box-flex: 1; - -webkit-flex: 1; - -ms-flex: 1; - flex: 1; -} -.address-actions-edit { - width: 33rpx; - height: 33rpx; -} -.address-actions-edit .image { - width: 100%; - height: 100%; - display: block; -} -.address.noBorder::after { - display: none; -} -.address::after { - content: ''; - position: absolute; - left: 35rpx; - top: 0; - right: 0; - height: 1rpx; - background: #e6e6e6; -} -.address-icon { - margin-right: 20rpx; - width: 35rpx; - height: 46rpx; -} -.address-icon .image { - width: 100%; - height: 100%; - display: block; -} -.address-header { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-align: center; - -webkit-align-items: center; - -ms-flex-align: center; - align-items: center; -} -.address-name { - line-height: 40rpx; - font-size: 28rpx; - color: #333333; - margin-right: 30rpx; -} -.address-phone { - line-height: 40rpx; - font-size: 28rpx; - color: #333333; -} -.address-content { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-align: center; - -webkit-align-items: center; - -ms-flex-align: center; - align-items: center; -} -.address-default { - margin-right: 82rpx; -} -.address-desc { - line-height: 33rpx; - font-size: 24rpx; - color: #999999; -} -.bottom-bar { - position: fixed; - bottom: 0; - left: 0; - right: 0; - background: #fff; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; -} -.bottom-bar-bg { - height: 150rpx; -} -.action-bar { - position: fixed; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - bottom: 0; - padding-bottom: constant(safe-area-inset-bottom); - padding-bottom: env(safe-area-inset-bottom); - left: 0; - right: 0; - background: #fff; -} -.action-bar.screen { - bottom: 50px; -} -.action-bar.screen { - padding-bottom: 0; -} -.action-bar.column { - -webkit-box-orient: vertical; - -webkit-box-direction: normal; - -webkit-flex-direction: column; - -ms-flex-direction: column; - flex-direction: column; -} -.action-bar.column .action-info { - -webkit-box-flex: 0; - -webkit-flex: 0 0 100rpx; - -ms-flex: 0 0 100rpx; - flex: 0 0 100rpx; -} -.action-bar.column .action-btns { - height: 100rpx; - -webkit-box-align: center; - -webkit-align-items: center; - -ms-flex-align: center; - align-items: center; -} -.action-bar .action-total { - margin-left: 20rpx; -} -.action-bar .action-info { - -webkit-box-flex: 1; - -webkit-flex: 1; - -ms-flex: 1; - flex: 1; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-align: center; - -webkit-align-items: center; - -ms-flex-align: center; - align-items: center; - padding: 0 34rpx; - height: 100rpx; -} -.action-bar .action-icons { - -webkit-box-flex: 1; - -webkit-flex: 1; - -ms-flex: 1; - flex: 1; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-align: center; - -webkit-align-items: center; - -ms-flex-align: center; - align-items: center; - height: 100rpx; - padding-left: 20rpx; -} -.action-bar .action-icons-item { - -webkit-box-flex: 1; - -webkit-flex: 1; - -ms-flex: 1; - flex: 1; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-align: center; - -webkit-align-items: center; - -ms-flex-align: center; - align-items: center; - -webkit-box-pack: center; - -webkit-justify-content: center; - -ms-flex-pack: center; - justify-content: center; -} -.action-bar .action-icons .action-icon { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-orient: vertical; - -webkit-box-direction: normal; - -webkit-flex-direction: column; - -ms-flex-direction: column; - flex-direction: column; - -webkit-box-pack: center; - -webkit-justify-content: center; - -ms-flex-pack: center; - justify-content: center; - -webkit-box-align: center; - -webkit-align-items: center; - -ms-flex-align: center; - align-items: center; - position: relative; -} -.action-bar .action-icons .action-icon-badge { - position: absolute; - right: -10rpx; - top: 0; -} -.action-bar .action-icons .action-icon .action-icon-img { - width: 50rpx; - height: 50rpx; -} -.action-bar .action-icons .action-icon .action-icon-label { - line-height: 28rpx; - font-size: 20rpx; - color: #333333; -} -.action-bar .action-btns { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-align: center; - -webkit-align-items: center; - -ms-flex-align: center; - align-items: center; - padding: 0 24rpx; -} -.action-bar .action-btns .uv-button-wrapper { - -webkit-box-flex: 1; - -webkit-flex: 1; - -ms-flex: 1; - flex: 1; - margin: 0 10rpx; -} -.action-bar .action-btns .uv-button { - -webkit-border-radius: 0 !important; - border-radius: 0 !important; -} -.y-list { - margin-bottom: 20rpx; -} -.y-list.min { - margin-bottom: 15rpx; -} -.y-list.min .y-list-label { - margin-right: 10rpx; -} -.y-list.min .y-list-content { - height: 88rpx; -} -.y-list .uv-list-item__wrapper { - -webkit-box-orient: horizontal !important; - -webkit-box-direction: normal !important; - -webkit-flex-direction: row !important; - -ms-flex-direction: row !important; - flex-direction: row !important; -} -.y-list-content { - -webkit-box-flex: 1; - -webkit-flex: 1; - -ms-flex: 1; - flex: 1; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - width: 100%; - -webkit-box-align: center; - -webkit-align-items: center; - -ms-flex-align: center; - align-items: center; - height: 100rpx; - padding-left: 34rpx; - padding-right: 34rpx; -} -.y-list-content.avatar { - height: 130rpx; -} -.y-list-label { - line-height: 40rpx; - font-size: 28rpx; - font-weight: 400; - color: #999999; - margin-right: 30rpx; - word-break: normal; - word-wrap: normal; - text-wrap: nowrap; - -webkit-box-flex: 1; - -webkit-flex: 1; - -ms-flex: 1; - flex: 1; -} -.y-list-select { - line-height: 40rpx; - font-size: 28rpx; - font-weight: 400; - color: #333333; - opacity: 1; - -webkit-box-flex: 1; - -webkit-flex: 1; - -ms-flex: 1; - flex: 1; - text-align: right; -} -.y-list-select-placeholder { - color: #999999; - line-height: 40rpx; - font-size: 28rpx; - font-weight: 400; - color: #999; - opacity: 1; - -webkit-box-flex: 1; - -webkit-flex: 1; - -ms-flex: 1; - flex: 1; - text-align: right; -} -.y-list-default { - font-size: 28rpx; - font-weight: 400; - color: #333333; - opacity: 1; -} -.y-list-value { - line-height: 40rpx; - font-size: 28rpx; - font-weight: 500; - color: #ee6d46; -} -.y-list-value .uv-input { - border: 0; -} -.y-list .uvicon-arrow-right { - font-size: 10rpx !important; -} -.y-list-avatar { - padding: 20rpx 0; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: end; - -webkit-justify-content: flex-end; - -ms-flex-pack: end; - justify-content: flex-end; -} -.y-list-avatar .img { - width: 90rpx; - height: 90rpx; - -webkit-border-radius: 50%; - border-radius: 50%; -} -.uv-list--border-top { - background: #e6e6e6 !important; -} -.uv-list--border-left { - background: #e6e6e6 !important; -} -.uv-list--border-bottom { - background: #e6e6e6 !important; -} -.uv-list--border-right { - background: #e6e6e6 !important; -} -.uv-list--border:after:after { - background: #e6e6e6 !important; -} -.uvicon-arrow-right { - color: #999999; -} -.search-bar { - background: #fff; - padding: 20rpx 34rpx; -} -.y-subsection { - padding: 20rpx 33rpx 0; -} -.swiper { - width: 100%; -} -.swiper.detail { - height: 750rpx; -} -.swiper .image { - width: 100%; - display: block; -} -.uv-button--info { - border-color: #333333 !important; - color: #333333 !important; -} diff --git a/static/style/style.less b/static/style/style.less deleted file mode 100644 index 1474eac..0000000 --- a/static/style/style.less +++ /dev/null @@ -1,1006 +0,0 @@ -body { - background-color: #f5f5f5; -} - -page { - background-color: #f5f5f5; - min-height: 100%; -} - -image { - max-width: 100%; - height: auto; -} - -:root { - --van-primary-color: #ee6d46; -} - -.van-grid-item__content { - padding: 0 var(--van-padding-base); -} - -.scroll-view-H { - white-space: nowrap; - width: 100%; -} - -.page-space { - padding: 0 34rpx; -} - -.page-card { - background: #fff; - - border-radius: 15rpx; -} - -.mb-10 { - margin-bottom: 10rpx; -} - -.mb-15 { - margin-bottom: 15rpx; -} - -.mb-20 { - margin-bottom: 20rpx; -} - -.mb-25 { - margin-bottom: 25rpx; -} - -.mb-30 { - margin-bottom: 30rpx; -} - -.pl-10 { - padding-left: 10rpx; -} - -.pl-15 { - padding-left: 15rpx; -} - -.pl-20 { - padding-left: 20rpx; -} - -.pl-25 { - padding-left: 25rpx; -} - -.pl-30 { - padding-left: 30rpx; -} -.pl-40 { - padding-left: 40rpx; -} - -.pr-10 { - padding-right: 10rpx; -} - -.pr-15 { - padding-right: 15rpx; -} - -.pr-20 { - padding-right: 20rpx; -} - -.pr-25 { - padding-right: 25rpx; -} - -.pr-30 { - padding-right: 30rpx; -} - -.pr-40 { - padding-right: 40rpx; -} - -.p-40 { - padding: 40rpx; -} - -.paddingH-10 { - padding: 0 20rpx; -} -.border-top { - position: relative; - &::after { - content: ''; - position: absolute; - left: 0; - top: 0; - right: 0; - height: 1rpx; - background: #e6e6e6; - } -} - -.primary { -} - -.van-button { - border-radius: 0; - &--primary { - } - &--mini { - font-size: 24rpx; - } -} - -.icon { - .image { - display: block; - width: 100%; - height: 100%; - } -} - -.infos { - padding: 20rpx 37rpx 20rpx; - &.infos-right { - .info-cell-value { - text-align: right; - } - } - .info-cell { - margin-bottom: 20rpx; - display: flex; - align-items: center; - justify-content: space-between; - &-label { - margin-right: 30rpx; - line-height: 32rpx; - font-size: 24rpx; - color: #999999; - } - &-value { - flex: 1; - line-height: 32rpx; - font-size: 24rpx; - color: #333333; - } - &-operation { - line-height: 32rpx; - font-size: 24rpx; - color: #ee6d46; - } - } -} - -.simple-cell { - display: flex; - align-items: center; - &-icon { - width: 64rpx; - height: 64rpx; - } - &-content { - margin-left: 15rpx; - } - &-title { - line-height: 40rpx; - font-size: 28rpx; - font-weight: 500; - color: #333333; - } - &-label { - line-height: 30rpx; - font-size: 22rpx; - color: #333333; - } -} - -.time-bar { - background: #fff; - height: 150rpx; - .van-tab--active { - .time-bar-item { - background: #e96b45; - .time { - color: #fff; - } - - .status { - color: #fff; - } - } - } - - &-item { - width: 180rpx; - height: 150rpx; - background: #ffffff; - - display: flex; - flex-direction: column; - align-items: center; - - .time { - margin-top: 26rpx; - line-height: 1em; - font-size: 34rpx; - font-weight: bold; - color: #333333; - margin-bottom: 10rpx; - } - - .status { - line-height: 1em; - font-size: 24rpx; - font-weight: 400; - color: #999999; - } - .countdown { - flex: 1; - height: 1em; - font-size: 20rpx; - color: #ffffff; - font-weight: 100; - } - } - - .van-tab { - padding: 0; - } - - .van-tabs--line .van-tabs__wrap { - height: 150rpx; - } - - .van-tabs__nav--line { - padding-bottom: 0; - padding: 0; - } - - .van-tabs__wrap { - height: 150rpx; - } - .van-tabs__line { - display: none; - } -} - -.card { - background: #ffffff; - border-radius: 15rpx; - - &.noBorder { - .card-head { - border-bottom: 0; - } - .card-title { - font-size: 28rpx; - color: #999999; - } - - .card-content { - padding: 0; - } - } - &.min { - .card-head { - } - .card-title { - font-size: 28rpx; - color: #999999; - } - - .card-content { - padding: 0; - } - } - - &.full { - border-radius: 0; - .card-content { - padding: 0 34rpx 20rpx; - } - } - - &-head { - height: 85rpx; - border-bottom: 1rpx solid #e6e6e6; - padding-left: 30rpx; - - display: flex; - align-items: center; - justify-content: space-between; - } - - &-title { - font-size: 32rpx; - font-family: PingFang SC; - font-weight: 500; - color: #333; - .card-title-sub { - font-weight: normal; - font-size: 22rpx; - color: #999999; - } - } - &-more { - font-size: 24rpx; - font-family: PingFang SC; - font-weight: 400; - color: #999999; - display: flex; - align-items: center; - .uv-icon { - margin-left: 10px; - margin-right: 10px; - } - } - - &-content { - padding: 20rpx 0 0; - border-bottom-left-radius: 15rpx; - border-bottom-right-radius: 15rpx; - overflow: hidden; - } - - .card-grid-item { - display: flex; - flex-direction: column; - justify-content: center; - align-items: center; - padding: 10rpx 0; - margin-bottom: 20rpx; - position: relative; - - &-badge { - align-items: center; - display: flex; - position: absolute; - right: 0; - top: 0; - span { - margin: 0 !important; - color: #fff !important; - } - } - - .image { - width: 60rpx; - height: 60rpx; - } - - &-label { - margin-top: 14rpx; - line-height: 33rpx; - font-size: 24rpx; - font-family: PingFang SC; - font-weight: 400; - color: #333333; - } - } -} - -.search { - .y-search { - background: none; - } -} - -.cell-attr { - .cell-title { - line-height: 40rpx; - font-size: 28rpx; - color: #333333; - } - .cell-sub-title { - line-height: 40rpx; - font-size: 28rpx; - color: #999999; - } -} - -.storeInfo { - padding: 24rpx 35rpx; - display: flex; - align-items: center; - background: #fff; - &-pic { - width: 80rpx; - height: 80rpx; - } - &-info { - flex: 1; - margin-left: 20rpx; - } - &-info-name { - line-height: 40rpx; - font-size: 28rpx; - color: #333333; - } - &-info-address { - line-height: 28rpx; - font-size: 20rpx; - color: #999999; - margin-top: 84px; - } - &-action { - width: 120rpx; - height: 50rpx; - background: #333333; - line-height: 50rpx; - text-align: center; - font-size: 24rpx; - line-height: 0rpx; - color: #ffffff; - } -} - -.center-title { - display: flex; - align-items: center; - justify-content: center; - margin: 20rpx 0; - &-line { - width: 36rpx; - height: 1rpx; - background: #333333; - } - .title { - margin: 0 22rpx; - } -} - -.blank { - height: var(--van-action-bar-height); -} - -.shopping-bar { - bottom: var(--van-tabbar-height); -} - -.full-btn { - height: var(--van-action-bar-height); -} - -.shopping-checkbox { - .van-checkbox { - padding: 2px; - margin-right: 10rpx; - } -} - -.shopping-checkbox-cell { - display: flex; - align-items: center; - padding: 26rpx 0 26rpx 30rpx; -} - -.list { - padding: 25rpx 35rpx; - position: relative; - display: flex; - justify-content: space-between; - align-items: center; - - &-main { - display: flex; - align-items: center; - flex: 1; - } - - &-actions { - &-edit { - width: 33rpx; - height: 33rpx; - - .image { - width: 100%; - height: 100%; - display: block; - } - } - } - - &.noBorder { - &::after { - display: none; - } - } - - &::after { - content: ''; - position: absolute; - left: 35rpx; - top: 0; - right: 0; - height: 1rpx; - background: #e6e6e6; - } - &-label { - line-height: 40rpx; - font-size: 28rpx; - color: #333333; - } - - &-content { - flex: 1; - input, - .uni-input { - line-height: 40rpx; - font-size: 28rpx; - color: #333333; - } - } - - background: #fff; -} - -.form-checkbox { - padding: 43rpx 0; - display: flex; - justify-content: center; -} - -.form-buttons { - margin-top: 34rpx; - padding: 0 34rpx; -} - -.background-warp { - position: relative; - .background { - position: absolute; - left: 0; - top: 0; - right: 0; - z-index: 1; - .image { - width: 100%; - } - - &-content { - position: relative; - z-index: 10; - } - } -} - -.order { - background-color: #fff; - border-radius: 15rpx; - box-sizing: border-box; - margin: 10rpx 34rpx; - - &-header { - display: flex; - align-items: center; - justify-content: space-between; - height: 80rpx; - border-bottom: 1rpx solid #e6e6e6; - padding: 0 34rpx; - } - - &-logo { - .image { - height: 45rpx; - width: auto; - } - } - &-title { - line-height: 45rpx; - font-size: 32rpx; - font-weight: 500; - color: #333333; - } - - &-status { - &.status-1 { - line-height: 40rpx; - font-size: 28rpx; - color: #999999; - } - - &.status-2 { - line-height: 40rpx; - font-size: 28rpx; - color: #ee6d46; - } - } - - &-goods { - } - - &-info { - border-top: 1rpx solid #e6e6e6; - border-bottom: 1rpx solid #e6e6e6; - height: 80rpx; - line-height: 80rpx; - font-size: 24rpx; - color: #999999; - display: flex; - justify-content: flex-end; - padding-right: 34rpx; - - text { - margin-left: 10rpx; - } - } - - &-actions { - display: flex; - justify-content: space-between; - padding-right: 34rpx; - padding: 34rpx; - - &-btns { - display: flex; - align-items: center; - } - } - - &-actions-delete { - width: 169rpx; - height: 60rpx; - border: 1px solid #333333; - opacity: 1; - border-radius: 0rpx; - line-height: 58rpx; - text-align: center; - color: #333333; - font-size: 24rpx; - } - - &-actions-primary { - margin-left: 20rpx; - width: 169rpx; - height: 60rpx; - background: #ee6d46; - border: 1px solid #ee6d46; - opacity: 1; - border-radius: 0rpx; - line-height: 58rpx; - text-align: center; - color: #ffffff; - font-size: 24rpx; - } -} - -.address { - background: #ffffff; - border-radius: 15rpx; - position: relative; - display: flex; - justify-content: space-between; - align-items: center; - margin-bottom: 20rpx; - padding: 40rpx 34rpx; - - &-main { - flex: 1; - } - - &-actions { - &-edit { - width: 33rpx; - height: 33rpx; - - .image { - width: 100%; - height: 100%; - display: block; - } - } - } - - &.noBorder { - &::after { - display: none; - } - } - - &::after { - content: ''; - position: absolute; - left: 35rpx; - top: 0; - right: 0; - height: 1rpx; - background: #e6e6e6; - } - - &-icon { - margin-right: 20rpx; - width: 35rpx; - height: 46rpx; - .image { - width: 100%; - height: 100%; - display: block; - } - } - - background: #fff; - - &-header { - display: flex; - align-items: center; - } - - &-name { - line-height: 40rpx; - font-size: 28rpx; - color: #333333; - margin-right: 30rpx; - } - - &-phone { - line-height: 40rpx; - font-size: 28rpx; - color: #333333; - } - - &-content { - display: flex; - align-items: center; - } - - &-default { - margin-right: 82rpx; - } - - &-desc { - line-height: 33rpx; - font-size: 24rpx; - color: #999999; - } -} - -.bottom-bar { - position: fixed; - bottom: 0; - left: 0; - right: 0; - background: #fff; - display: flex; -} - -.bottom-bar-bg { - height: 150rpx; -} - -.action-bar { - position: fixed; - display: flex; - bottom: 0; - padding-bottom: constant(safe-area-inset-bottom); - padding-bottom: env(safe-area-inset-bottom); - left: 0; - right: 0; - background: #fff; - //#ifdef H5 - &.screen { - bottom: 50px; - } - // #endif - //#ifndef H5 - &.screen { - padding-bottom: 0; - padding-bottom: 0; - } - // #endif - &.column { - flex-direction: column; - .action-info { - flex: 0 0 100rpx; - } - .action-btns { - height: 100rpx; - align-items: center; - } - } - .action-total { - margin-left: 20rpx; - } - .action-info { - flex: 1; - display: flex; - align-items: center; - padding: 0 34rpx; - height: 100rpx; - } - - .action-icons { - flex: 1; - display: flex; - align-items: center; - height: 100rpx; - padding-left: 20rpx; - &-item { - flex: 1; - display: flex; - align-items: center; - justify-content: center; - } - - .action-icon { - display: flex; - flex-direction: column; - justify-content: center; - align-items: center; - position: relative; - &-badge { - position: absolute; - right: -10rpx; - top: 0; - } - .action-icon-img { - width: 50rpx; - height: 50rpx; - } - .action-icon-label { - line-height: 28rpx; - font-size: 20rpx; - color: #333333; - } - } - } - .action-btns { - display: flex; - align-items: center; - padding: 0 24rpx; - .uv-button-wrapper { - flex: 1; - margin: 0 10rpx; - } - .uv-button { - border-radius: 0 !important; - } - } -} - -.y-list { - margin-bottom: 20rpx; - &.min { - margin-bottom: 15rpx; - .y-list-label { - // font-size: 24rpx; - margin-right: 10rpx; - } - .y-list-content { - height: 88rpx; - // padding-left: 20rpx; - } - } - - .uv-list-item__wrapper { - flex-direction: row !important; - } - &-content { - flex: 1; - display: flex; - width: 100%; - align-items: center; - height: 100rpx; - padding-left: 34rpx; - padding-right: 34rpx; - &.avatar { - height: 130rpx; - } - } - &-label { - line-height: 40rpx; - font-size: 28rpx; - font-weight: 400; - color: #999999; - margin-right: 30rpx; - word-break: normal; - word-wrap: normal; - text-wrap: nowrap; - flex: 1; - } - &-select { - line-height: 40rpx; - font-size: 28rpx; - font-weight: 400; - color: #333333; - opacity: 1; - flex: 1; - text-align: right; - &-placeholder { - color: #999999; - line-height: 40rpx; - font-size: 28rpx; - font-weight: 400; - color: #999; - opacity: 1; - flex: 1; - text-align: right; - } - } - &-default { - font-size: 28rpx; - font-weight: 400; - color: #333333; - opacity: 1; - } - - &-value { - line-height: 40rpx; - font-size: 28rpx; - font-weight: 500; - color: #ee6d46; - .uv-input { - border: 0; - } - } - .uvicon-arrow-right { - font-size: 10rpx !important; - } - &-avatar { - padding: 20rpx 0; - display: flex; - justify-content: flex-end; - .img { - width: 90rpx; - height: 90rpx; - border-radius: 50%; - } - } -} -.uv-list--border-top { -} - -.uv-list--border-top { - background: #e6e6e6 !important; -} - -.uv-list--border-left { - background: #e6e6e6 !important; -} - -.uv-list--border-bottom { - background: #e6e6e6 !important; -} - -.uv-list--border-right { - background: #e6e6e6 !important; -} - -.uv-list--border:after { - &:after { - background: #e6e6e6 !important; - } -} - -.uvicon-arrow-right { - color: #999999; -} - -.search-bar { - background: #fff; - padding: 20rpx 34rpx; -} - -.y-subsection { - padding: 20rpx 33rpx 0; -} - -.swiper { - width: 100%; - - &.detail { - height: 750rpx; - } - .image { - width: 100%; - display: block; - } -} -.uv-button { -} -.uv-button--info { - border-color: #333333 !important; - color: #333333 !important; -} diff --git a/uni.scss b/uni.scss index 5a251b9..82de29a 100644 --- a/uni.scss +++ b/uni.scss @@ -111,10 +111,4 @@ $uv-error-light: #fef0f0; $uv-info: #909399; $uv-info-dark: #767a82; $uv-info-disabled: #c4c6c9; -$uv-info-light: #f4f4f5; - - -@import '~@/static/iconfont/iconfont.scss'; - -/* uni.scss */ -// @import 'uview-ui/theme.scss'; +$uv-info-light: #f4f4f5; \ No newline at end of file diff --git a/uni_modules/uv-back-top/changelog.md b/uni_modules/uv-back-top/changelog.md deleted file mode 100644 index cb52951..0000000 --- a/uni_modules/uv-back-top/changelog.md +++ /dev/null @@ -1,8 +0,0 @@ -## 1.0.2(2023-07-03) -1. 优化插槽自定义内容部分 -2. 增加backToTop方法说明 -## 1.0.1(2023-05-16) -1. 优化组件依赖,修改后无需全局引入,组件导入即可使用 -2. 优化部分功能 -## 1.0.0(2023-05-10) -uv-back-top 返回顶部 diff --git a/uni_modules/uv-back-top/components/uv-back-top/props.js b/uni_modules/uv-back-top/components/uv-back-top/props.js deleted file mode 100644 index 05be5a5..0000000 --- a/uni_modules/uv-back-top/components/uv-back-top/props.js +++ /dev/null @@ -1,58 +0,0 @@ -export default { - props: { - // 返回顶部的形状,circle-圆形,square-方形 - mode: { - type: String, - default: 'circle' - }, - // 自定义图标 - icon: { - type: String, - default: 'arrow-upward' - }, - // 提示文字 - text: { - type: String, - default: '' - }, - // 返回顶部滚动时间 - duration: { - type: [String, Number], - default: 100 - }, - // 滚动距离 - scrollTop: { - type: [String, Number], - default: 0 - }, - // 距离顶部多少距离显示,单位px - top: { - type: [String, Number], - default: 400 - }, - // 返回顶部按钮到底部的距离,单位px - bottom: { - type: [String, Number], - default: 100 - }, - // 返回顶部按钮到右边的距离,单位px - right: { - type: [String, Number], - default: 20 - }, - // 层级 - zIndex: { - type: [String, Number], - default: 9 - }, - // 图标的样式,对象形式 - iconStyle: { - type: Object, - default: () => ({ - color: '#909399', - fontSize: '19px' - }) - }, - ...uni.$uv?.props?.backtop - } -} \ No newline at end of file diff --git a/uni_modules/uv-back-top/components/uv-back-top/uv-back-top.vue b/uni_modules/uv-back-top/components/uv-back-top/uv-back-top.vue deleted file mode 100644 index 480647a..0000000 --- a/uni_modules/uv-back-top/components/uv-back-top/uv-back-top.vue +++ /dev/null @@ -1,116 +0,0 @@ - - - - - \ No newline at end of file diff --git a/uni_modules/uv-back-top/package.json b/uni_modules/uv-back-top/package.json deleted file mode 100644 index c60d5bc..0000000 --- a/uni_modules/uv-back-top/package.json +++ /dev/null @@ -1,89 +0,0 @@ -{ - "id": "uv-back-top", - "displayName": "uv-back-top 返回顶部 全面兼容小程序、nvue、vue2、vue3等多端", - "version": "1.0.2", - "description": "返回顶部 组件一个用于长页面,滑动一定距离后,出现返回顶部按钮,方便快速返回顶部的场景。", - "keywords": [ - "uv-back-top", - "uvui", - "uv-ui", - "avatar", - "返回顶部" - ], - "repository": "", - "engines": { - "HBuilderX": "^3.1.0" - }, - "dcloudext": { - "type": "component-vue", - "sale": { - "regular": { - "price": "0.00" - }, - "sourcecode": { - "price": "0.00" - } - }, - "contact": { - "qq": "" - }, - "declaration": { - "ads": "无", - "data": "插件不采集任何数据", - "permissions": "无" - }, - "npmurl": "" - }, - "uni_modules": { - "dependencies": [ - "uv-ui-tools", - "uv-icon", - "uv-transition" - ], - "encrypt": [], - "platforms": { - "cloud": { - "tcb": "y", - "aliyun": "y" - }, - "client": { - "Vue": { - "vue2": "y", - "vue3": "y" - }, - "App": { - "app-vue": "y", - "app-nvue": "y" - }, - "H5-mobile": { - "Safari": "y", - "Android Browser": "y", - "微信浏览器(Android)": "y", - "QQ浏览器(Android)": "y" - }, - "H5-pc": { - "Chrome": "y", - "IE": "y", - "Edge": "y", - "Firefox": "y", - "Safari": "y" - }, - "小程序": { - "微信": "y", - "阿里": "y", - "百度": "y", - "字节跳动": "y", - "QQ": "y", - "钉钉": "u", - "快手": "u", - "飞书": "u", - "京东": "u" - }, - "快应用": { - "华为": "u", - "联盟": "u" - } - } - } - } -} \ No newline at end of file diff --git a/uni_modules/uv-back-top/readme.md b/uni_modules/uv-back-top/readme.md deleted file mode 100644 index eaf0bd5..0000000 --- a/uni_modules/uv-back-top/readme.md +++ /dev/null @@ -1,11 +0,0 @@ -## BackTop 返回顶部 - -> **组件名:uv-back-top** - -该组件一个用于长页面,滑动一定距离后,出现返回顶部按钮,方便快速返回顶部的场景。 - -### 查看文档 - -### [完整示例项目下载 | 关注更多组件](https://ext.dcloud.net.cn/plugin?name=uv-ui) - -#### 如使用过程中有任何问题,或者您对uv-ui有一些好的建议,欢迎加入 uv-ui 交流群:uv-ui官方QQ群 diff --git a/uni_modules/uv-checkbox/changelog.md b/uni_modules/uv-checkbox/changelog.md deleted file mode 100644 index f892b19..0000000 --- a/uni_modules/uv-checkbox/changelog.md +++ /dev/null @@ -1,32 +0,0 @@ -## 1.0.13(2023-10-11) -1. 优化同类问题:https://gitee.com/climblee/uv-ui/issues/I872VD -## 1.0.12(2023-09-22) -1. 修复change回调中v-model值不更新的BUG -## 1.0.11(2023-09-01) -1. 修复点击空隙处无效的问题 -2. label支持插槽下可点击 -## 1.0.10(2023-08-27) -1. 修复label设置布尔值不生效的BUG -## 1.0.9(2023-08-16) -1. 解决数据多不换行的BUG -## 1.0.8(2023-07-13) -1. 修复 uv-checkbox设置value属性不生效的BUG -## 1.0.7(2023-07-05) -修复vue3模式下,动态修改v-model绑定的值无效的BUG -## 1.0.6(2023-06-29) -1. 增加label插槽,与radio保持一致 -2. 优化文档 -## 1.0.5(2023-06-12) -1. 修复1.0.4改出的问题 -## 1.0.4(2023-06-08) -1. 复选框修复全局设置不生效的BUG -## 1.0.3(2023-06-06) -1. uv-checkbox-group 兼容自定义样式customStyle,方便通过样式调整整体位置等; -2. .uv-checkbox-group--row增加flex-wrap: wrap;允许换行 -## 1.0.2(2023-05-30) -1. 修复error报错的BUG -## 1.0.1(2023-05-16) -1. 优化组件依赖,修改后无需全局引入,组件导入即可使用 -2. 优化部分功能 -## 1.0.0(2023-05-10) -uv-checkbox 复选框 diff --git a/uni_modules/uv-checkbox/components/uv-checkbox-group/props.js b/uni_modules/uv-checkbox/components/uv-checkbox-group/props.js deleted file mode 100644 index c26de12..0000000 --- a/uni_modules/uv-checkbox/components/uv-checkbox-group/props.js +++ /dev/null @@ -1,84 +0,0 @@ -export default { - props: { - // 绑定的值 - value: { - type: Array, - default: () => [] - }, - modelValue: { - type: Array, - default: () => [] - }, - // 标识符 - name: { - type: String, - default: '' - }, - // 形状,circle-圆形,square-方形 - shape: { - type: String, - default: 'square' - }, - // 是否禁用全部checkbox - disabled: { - type: Boolean, - default: false - }, - // 选中状态下的颜色,如设置此值,将会覆盖parent的activeColor值 - activeColor: { - type: String, - default: '#2979ff' - }, - // 未选中的颜色 - inactiveColor: { - type: String, - default: '#c8c9cc' - }, - // 整个组件的尺寸,默认px - size: { - type: [String, Number], - default: 18 - }, - // 布局方式,row-横向,column-纵向 - placement: { - type: String, - default: 'row' - }, - // label的字体大小,px单位 - labelSize: { - type: [String, Number], - default: 14 - }, - // label的字体颜色 - labelColor: { - type: [String], - default: '#303133' - }, - // 是否禁止点击文本操作 - labelDisabled: { - type: Boolean, - default: false - }, - // 图标颜色 - iconColor: { - type: String, - default: '#fff' - }, - // 图标的大小,单位px - iconSize: { - type: [String, Number], - default: 12 - }, - // 勾选图标的对齐方式,left-左边,right-右边 - iconPlacement: { - type: String, - default: 'left' - }, - // 竖向配列时,是否显示下划线 - borderBottom: { - type: Boolean, - default: false - }, - ...uni.$uv?.props?.checkboxGroup - } -} \ No newline at end of file diff --git a/uni_modules/uv-checkbox/components/uv-checkbox-group/uv-checkbox-group.vue b/uni_modules/uv-checkbox/components/uv-checkbox-group/uv-checkbox-group.vue deleted file mode 100644 index db3bac4..0000000 --- a/uni_modules/uv-checkbox/components/uv-checkbox-group/uv-checkbox-group.vue +++ /dev/null @@ -1,119 +0,0 @@ - - - - - diff --git a/uni_modules/uv-checkbox/components/uv-checkbox/props.js b/uni_modules/uv-checkbox/components/uv-checkbox/props.js deleted file mode 100644 index 632e946..0000000 --- a/uni_modules/uv-checkbox/components/uv-checkbox/props.js +++ /dev/null @@ -1,70 +0,0 @@ -export default { - props: { - // checkbox的名称 - name: { - type: [String, Number, Boolean], - default: '' - }, - // 形状,square为方形,circle为圆型 - shape: { - type: String, - default: '' - }, - // 整体的大小 - size: { - type: [String, Number], - default: '' - }, - // 是否默认选中 - checked: { - type: Boolean, - default: false - }, - // 是否禁用 - disabled: { - type: [String, Boolean], - default: '' - }, - // 选中状态下的颜色,如设置此值,将会覆盖parent的activeColor值 - activeColor: { - type: String, - default: '' - }, - // 未选中的颜色 - inactiveColor: { - type: String, - default: '' - }, - // 图标的大小,单位px - iconSize: { - type: [String, Number], - default: '' - }, - // 图标颜色 - iconColor: { - type: String, - default: '' - }, - // label提示文字,因为nvue下,直接slot进来的文字,由于特殊的结构,无法修改样式 - label: { - type: [String, Number, Boolean], - default: '' - }, - // label的字体大小,px单位 - labelSize: { - type: [String, Number], - default: '' - }, - // label的颜色 - labelColor: { - type: String, - default: '' - }, - // 是否禁止点击提示语选中复选框 - labelDisabled: { - type: [String, Boolean], - default: '' - }, - ...uni.$uv?.props?.checkbox - } -} \ No newline at end of file diff --git a/uni_modules/uv-checkbox/components/uv-checkbox/uv-checkbox.vue b/uni_modules/uv-checkbox/components/uv-checkbox/uv-checkbox.vue deleted file mode 100644 index c1ddd02..0000000 --- a/uni_modules/uv-checkbox/components/uv-checkbox/uv-checkbox.vue +++ /dev/null @@ -1,369 +0,0 @@ - - - - - diff --git a/uni_modules/uv-checkbox/package.json b/uni_modules/uv-checkbox/package.json deleted file mode 100644 index c1b2771..0000000 --- a/uni_modules/uv-checkbox/package.json +++ /dev/null @@ -1,88 +0,0 @@ -{ - "id": "uv-checkbox", - "displayName": "uv-checkbox 复选框 全面兼容vue3+2、app、h5、小程序等多端", - "version": "1.0.13", - "description": "复选框组件一般用于需要多个选择的场景,该组件功能完整,使用方便。", - "keywords": [ - "uv-checkbox", - "uvui", - "uv-ui", - "checkbox", - "复选框" -], - "repository": "", - "engines": { - "HBuilderX": "^3.1.0" - }, - "dcloudext": { - "type": "component-vue", - "sale": { - "regular": { - "price": "0.00" - }, - "sourcecode": { - "price": "0.00" - } - }, - "contact": { - "qq": "" - }, - "declaration": { - "ads": "无", - "data": "插件不采集任何数据", - "permissions": "无" - }, - "npmurl": "" - }, - "uni_modules": { - "dependencies": [ - "uv-ui-tools", - "uv-icon" - ], - "encrypt": [], - "platforms": { - "cloud": { - "tcb": "y", - "aliyun": "y" - }, - "client": { - "Vue": { - "vue2": "y", - "vue3": "y" - }, - "App": { - "app-vue": "y", - "app-nvue": "y" - }, - "H5-mobile": { - "Safari": "y", - "Android Browser": "y", - "微信浏览器(Android)": "y", - "QQ浏览器(Android)": "y" - }, - "H5-pc": { - "Chrome": "y", - "IE": "y", - "Edge": "y", - "Firefox": "y", - "Safari": "y" - }, - "小程序": { - "微信": "y", - "阿里": "y", - "百度": "y", - "字节跳动": "y", - "QQ": "y", - "钉钉": "u", - "快手": "u", - "飞书": "u", - "京东": "u" - }, - "快应用": { - "华为": "u", - "联盟": "u" - } - } - } - } -} \ No newline at end of file diff --git a/uni_modules/uv-checkbox/readme.md b/uni_modules/uv-checkbox/readme.md deleted file mode 100644 index 4479bf8..0000000 --- a/uni_modules/uv-checkbox/readme.md +++ /dev/null @@ -1,19 +0,0 @@ -## Checkbox 复选框 - -> **组件名:uv-checkbox** - -复选框组件一般用于需要多个选择的场景,该组件功能完整,使用方便。可配合 `uv-form` 组件进行表单验证等场景使用。 - -# 查看文档 - -## [下载完整示例项目](https://ext.dcloud.net.cn/plugin?name=uv-ui) (请不要 下载插件ZIP) - -### [更多插件,请关注uv-ui组件库](https://ext.dcloud.net.cn/plugin?name=uv-ui) - - - -![image](https://mp-a667b617-c5f1-4a2d-9a54-683a67cff588.cdn.bspapp.com/uv-ui/banner.png) - - - -#### 如使用过程中有任何问题反馈,或者您对uv-ui有一些好的建议,欢迎加入uv-ui官方交流群:官方QQ群 \ No newline at end of file diff --git a/uni_modules/uv-no-network/changelog.md b/uni_modules/uv-no-network/changelog.md deleted file mode 100644 index f12bbb1..0000000 --- a/uni_modules/uv-no-network/changelog.md +++ /dev/null @@ -1,5 +0,0 @@ -## 1.0.1(2023-05-16) -1. 优化组件依赖,修改后无需全局引入,组件导入即可使用 -2. 优化部分功能 -## 1.0.0(2023-05-10) -uv-no-network 无网络提示 diff --git a/uni_modules/uv-no-network/components/uv-no-network/props.js b/uni_modules/uv-no-network/components/uv-no-network/props.js deleted file mode 100644 index d77866e..0000000 --- a/uni_modules/uv-no-network/components/uv-no-network/props.js +++ /dev/null @@ -1,20 +0,0 @@ -export default { - props: { - // 页面文字提示 - tips: { - type: String, - default: '哎呀,网络信号丢失' - }, - // 一个z-index值,用于设置没有网络这个组件的层次,因为页面可能会有其他定位的元素层级过高,导致此组件被覆盖 - zIndex: { - type: [String, Number], - default: '' - }, - // image 没有网络的图片提示 - image: { - type: String, - default: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAEsCAYAAAB5fY51AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAABLKADAAQAAAABAAABLAAAAADYYILn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EBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBIGVhMD/D0fV/fpMMM+gAAAAAElFTkSuQmCC' - }, - ...uni.$uv?.props?.noNetwork - } -} \ No newline at end of file diff --git a/uni_modules/uv-no-network/components/uv-no-network/uv-no-network.vue b/uni_modules/uv-no-network/components/uv-no-network/uv-no-network.vue deleted file mode 100644 index e1342d4..0000000 --- a/uni_modules/uv-no-network/components/uv-no-network/uv-no-network.vue +++ /dev/null @@ -1,222 +0,0 @@ - - - - - diff --git a/uni_modules/uv-no-network/package.json b/uni_modules/uv-no-network/package.json deleted file mode 100644 index 9fb323c..0000000 --- a/uni_modules/uv-no-network/package.json +++ /dev/null @@ -1,90 +0,0 @@ -{ - "id": "uv-no-network", - "displayName": "uv-no-network 无网络提示 全面兼容小程序、nvue、vue2、vue3等多端", - "version": "1.0.1", - "description": "uv-no-network 该组件在没有任何网络的情况下,显示在内容上方,无需任何配置,引入即可,内部自动处理所有功能和事件。", - "keywords": [ - "uv-no-network", - "uvui", - "uv-ui", - "network", - "无网络" -], - "repository": "", - "engines": { - "HBuilderX": "^3.1.0" - }, - "dcloudext": { - "type": "component-vue", - "sale": { - "regular": { - "price": "0.00" - }, - "sourcecode": { - "price": "0.00" - } - }, - "contact": { - "qq": "" - }, - "declaration": { - "ads": "无", - "data": "插件不采集任何数据", - "permissions": "无" - }, - "npmurl": "" - }, - "uni_modules": { - "dependencies": [ - "uv-ui-tools", - "uv-overlay", - "uv-icon", - "uv-button" - ], - "encrypt": [], - "platforms": { - "cloud": { - "tcb": "y", - "aliyun": "y" - }, - "client": { - "Vue": { - "vue2": "y", - "vue3": "y" - }, - "App": { - "app-vue": "y", - "app-nvue": "y" - }, - "H5-mobile": { - "Safari": "y", - "Android Browser": "y", - "微信浏览器(Android)": "y", - "QQ浏览器(Android)": "y" - }, - "H5-pc": { - "Chrome": "y", - "IE": "y", - "Edge": "y", - "Firefox": "y", - "Safari": "y" - }, - "小程序": { - "微信": "y", - "阿里": "y", - "百度": "y", - "字节跳动": "y", - "QQ": "y", - "钉钉": "u", - "快手": "u", - "飞书": "u", - "京东": "u" - }, - "快应用": { - "华为": "u", - "联盟": "u" - } - } - } - } -} \ No newline at end of file diff --git a/uni_modules/uv-no-network/readme.md b/uni_modules/uv-no-network/readme.md deleted file mode 100644 index 1794fab..0000000 --- a/uni_modules/uv-no-network/readme.md +++ /dev/null @@ -1,11 +0,0 @@ -## NoNetwork 无网络提示 - -> **组件名:uv-no-network** - -该组件在没有任何网络的情况下,显示在内容上方,无需任何配置,引入即可,内部自动处理所有功能和事件。 - -### 查看文档 - -### [完整示例项目下载 | 关注更多组件](https://ext.dcloud.net.cn/plugin?name=uv-ui) - -#### 如使用过程中有任何问题,或者您对uv-ui有一些好的建议,欢迎加入 uv-ui 交流群:uv-ui官方QQ群 diff --git a/uni_modules/uv-qrcode/changelog.md b/uni_modules/uv-qrcode/changelog.md deleted file mode 100644 index d2f0a14..0000000 --- a/uni_modules/uv-qrcode/changelog.md +++ /dev/null @@ -1,11 +0,0 @@ -## 1.0.4(2023-07-17) -1. 优化文档 -2. 优化其他 -## 1.0.3(2023-06-26) -1. H5增加属性h5SaveTip 保存二维码时候是否显示提示 -## 1.0.2(2023-06-01) -1. 修复点击触发两次事件的BUG -## 1.0.1(2023-05-23) -1. 修复在部分平台不显示加载效果的BUG -## 1.0.0(2023-05-17) -1. 新增uv-qrcode组件 diff --git a/uni_modules/uv-qrcode/components/uv-qrcode/cache.js b/uni_modules/uv-qrcode/components/uv-qrcode/cache.js deleted file mode 100644 index d897d26..0000000 --- a/uni_modules/uv-qrcode/components/uv-qrcode/cache.js +++ /dev/null @@ -1 +0,0 @@ -export const cacheImageList = []; \ No newline at end of file diff --git a/uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/bridge/bridge-weex.js b/uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/bridge/bridge-weex.js deleted file mode 100644 index cec30ab..0000000 --- a/uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/bridge/bridge-weex.js +++ /dev/null @@ -1,241 +0,0 @@ -const isWeex = typeof WXEnvironment !== 'undefined'; -const isWeexIOS = isWeex && /ios/i.test(WXEnvironment.platform); -const isWeexAndroid = isWeex && !isWeexIOS; - -import GLmethod from '../context-webgl/GLmethod'; - -const GCanvasModule = - (typeof weex !== 'undefined' && weex.requireModule) ? (weex.requireModule('gcanvas')) : - (typeof __weex_require__ !== 'undefined') ? (__weex_require__('@weex-module/gcanvas')) : {}; - -let isDebugging = false; - -let isComboDisabled = false; - -const logCommand = (function () { - const methodQuery = []; - Object.keys(GLmethod).forEach(key => { - methodQuery[GLmethod[key]] = key; - }) - const queryMethod = (id) => { - return methodQuery[parseInt(id)] || 'NotFoundMethod'; - } - const logCommand = (id, cmds) => { - const mId = cmds.split(',')[0]; - const mName = queryMethod(mId); - console.log(`=== callNative - componentId:${id}; method: ${mName}; cmds: ${cmds}`); - } - return logCommand; -})(); - -function joinArray(arr, sep) { - let res = ''; - for (let i = 0; i < arr.length; i++) { - if (i !== 0) { - res += sep; - } - res += arr[i]; - } - return res; -} - -const commandsCache = {} - -const GBridge = { - - callEnable: (ref, configArray) => { - - commandsCache[ref] = []; - - return GCanvasModule.enable({ - componentId: ref, - config: configArray - }); - }, - - callEnableDebug: () => { - isDebugging = true; - }, - - callEnableDisableCombo: () => { - isComboDisabled = true; - }, - - callSetContextType: function (componentId, context_type) { - GCanvasModule.setContextType(context_type, componentId); - }, - - callReset: function(id){ - GCanvasModule.resetComponent && canvasModule.resetComponent(componentId); - }, - - render: isWeexIOS ? function (componentId) { - return GCanvasModule.extendCallNative({ - contextId: componentId, - type: 0x60000001 - }); - } : function (componentId) { - return callGCanvasLinkNative(componentId, 0x60000001, 'render'); - }, - - render2d: isWeexIOS ? function (componentId, commands, callback) { - - if (isDebugging) { - console.log('>>> >>> render2d ==='); - console.log('>>> commands: ' + commands); - } - - GCanvasModule.render([commands, callback?true:false], componentId, callback); - - } : function (componentId, commands,callback) { - - if (isDebugging) { - console.log('>>> >>> render2d ==='); - console.log('>>> commands: ' + commands); - } - - callGCanvasLinkNative(componentId, 0x20000001, commands); - if(callback){ - callback(); - } - }, - - callExtendCallNative: isWeexIOS ? function (componentId, cmdArgs) { - - throw 'should not be here anymore ' + cmdArgs; - - } : function (componentId, cmdArgs) { - - throw 'should not be here anymore ' + cmdArgs; - - }, - - - flushNative: isWeexIOS ? function (componentId) { - - const cmdArgs = joinArray(commandsCache[componentId], ';'); - commandsCache[componentId] = []; - - if (isDebugging) { - console.log('>>> >>> flush native ==='); - console.log('>>> commands: ' + cmdArgs); - } - - const result = GCanvasModule.extendCallNative({ - "contextId": componentId, - "type": 0x60000000, - "args": cmdArgs - }); - - const res = result && result.result; - - if (isDebugging) { - console.log('>>> result: ' + res); - } - - return res; - - } : function (componentId) { - - const cmdArgs = joinArray(commandsCache[componentId], ';'); - commandsCache[componentId] = []; - - if (isDebugging) { - console.log('>>> >>> flush native ==='); - console.log('>>> commands: ' + cmdArgs); - } - - const result = callGCanvasLinkNative(componentId, 0x60000000, cmdArgs); - - if (isDebugging) { - console.log('>>> result: ' + result); - } - - return result; - }, - - callNative: function (componentId, cmdArgs, cache) { - - if (isDebugging) { - logCommand(componentId, cmdArgs); - } - - commandsCache[componentId].push(cmdArgs); - - if (!cache || isComboDisabled) { - return GBridge.flushNative(componentId); - } else { - return undefined; - } - }, - - texImage2D(componentId, ...args) { - if (isWeexIOS) { - if (args.length === 6) { - const [target, level, internalformat, format, type, image] = args; - GBridge.callNative( - componentId, - GLmethod.texImage2D + ',' + 6 + ',' + target + ',' + level + ',' + internalformat + ',' + format + ',' + type + ',' + image.src - ) - } else if (args.length === 9) { - const [target, level, internalformat, width, height, border, format, type, image] = args; - GBridge.callNative( - componentId, - GLmethod.texImage2D + ',' + 9 + ',' + target + ',' + level + ',' + internalformat + ',' + width + ',' + height + ',' + border + ',' + - + format + ',' + type + ',' + (image ? image.src : 0) - ) - } - } else if (isWeexAndroid) { - if (args.length === 6) { - const [target, level, internalformat, format, type, image] = args; - GCanvasModule.texImage2D(componentId, target, level, internalformat, format, type, image.src); - } else if (args.length === 9) { - const [target, level, internalformat, width, height, border, format, type, image] = args; - GCanvasModule.texImage2D(componentId, target, level, internalformat, width, height, border, format, type, (image ? image.src : 0)); - } - } - }, - - texSubImage2D(componentId, target, level, xoffset, yoffset, format, type, image) { - if (isWeexIOS) { - if (arguments.length === 8) { - GBridge.callNative( - componentId, - GLmethod.texSubImage2D + ',' + 6 + ',' + target + ',' + level + ',' + xoffset + ',' + yoffset, + ',' + format + ',' + type + ',' + image.src - ) - } - } else if (isWeexAndroid) { - GCanvasModule.texSubImage2D(componentId, target, level, xoffset, yoffset, format, type, image.src); - } - }, - - bindImageTexture(componentId, src, imageId) { - GCanvasModule.bindImageTexture([src, imageId], componentId); - }, - - perloadImage([url, id], callback) { - GCanvasModule.preLoadImage([url, id], function (image) { - image.url = url; - image.id = id; - callback(image); - }); - }, - - measureText(text, fontStyle, componentId) { - return GCanvasModule.measureText([text, fontStyle], componentId); - }, - - getImageData (componentId, x, y, w, h, callback) { - GCanvasModule.getImageData([x, y,w,h],componentId,callback); - }, - - putImageData (componentId, data, x, y, w, h, callback) { - GCanvasModule.putImageData([x, y,w,h,data],componentId,callback); - }, - - toTempFilePath(componentId, x, y, width, height, destWidth, destHeight, fileType, quality, callback){ - GCanvasModule.toTempFilePath([x, y, width,height, destWidth, destHeight, fileType, quality], componentId, callback); - } -} - -export default GBridge; \ No newline at end of file diff --git a/uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-2d/FillStyleLinearGradient.js b/uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-2d/FillStyleLinearGradient.js deleted file mode 100644 index 97e9f0f..0000000 --- a/uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-2d/FillStyleLinearGradient.js +++ /dev/null @@ -1,18 +0,0 @@ -class FillStyleLinearGradient { - - constructor(x0, y0, x1, y1) { - this._start_pos = { _x: x0, _y: y0 }; - this._end_pos = { _x: x1, _y: y1 }; - this._stop_count = 0; - this._stops = [0, 0, 0, 0, 0]; - } - - addColorStop = function (pos, color) { - if (this._stop_count < 5 && 0.0 <= pos && pos <= 1.0) { - this._stops[this._stop_count] = { _pos: pos, _color: color }; - this._stop_count++; - } - } -} - -export default FillStyleLinearGradient; \ No newline at end of file diff --git a/uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-2d/FillStylePattern.js b/uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-2d/FillStylePattern.js deleted file mode 100644 index 6c9c921..0000000 --- a/uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-2d/FillStylePattern.js +++ /dev/null @@ -1,8 +0,0 @@ -class FillStylePattern { - constructor(img, pattern) { - this._style = pattern; - this._img = img; - } -} - -export default FillStylePattern; \ No newline at end of file diff --git a/uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-2d/FillStyleRadialGradient.js b/uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-2d/FillStyleRadialGradient.js deleted file mode 100644 index e6ab4f3..0000000 --- a/uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-2d/FillStyleRadialGradient.js +++ /dev/null @@ -1,17 +0,0 @@ -class FillStyleRadialGradient { - constructor(x0, y0, r0, x1, y1, r1) { - this._start_pos = { _x: x0, _y: y0, _r: r0 }; - this._end_pos = { _x: x1, _y: y1, _r: r1 }; - this._stop_count = 0; - this._stops = [0, 0, 0, 0, 0]; - } - - addColorStop(pos, color) { - if (this._stop_count < 5 && 0.0 <= pos && pos <= 1.0) { - this._stops[this._stop_count] = { _pos: pos, _color: color }; - this._stop_count++; - } - } -} - -export default FillStyleRadialGradient; \ No newline at end of file diff --git a/uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-2d/RenderingContext.js b/uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-2d/RenderingContext.js deleted file mode 100644 index 3e663ee..0000000 --- a/uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-2d/RenderingContext.js +++ /dev/null @@ -1,666 +0,0 @@ -import FillStylePattern from './FillStylePattern'; -import FillStyleLinearGradient from './FillStyleLinearGradient'; -import FillStyleRadialGradient from './FillStyleRadialGradient'; -import GImage from '../env/image.js'; -import { - ArrayBufferToBase64, - Base64ToUint8ClampedArray -} from '../env/tool.js'; - -export default class CanvasRenderingContext2D { - - _drawCommands = ''; - - _globalAlpha = 1.0; - - _fillStyle = 'rgb(0,0,0)'; - _strokeStyle = 'rgb(0,0,0)'; - - _lineWidth = 1; - _lineCap = 'butt'; - _lineJoin = 'miter'; - - _miterLimit = 10; - - _globalCompositeOperation = 'source-over'; - - _textAlign = 'start'; - _textBaseline = 'alphabetic'; - - _font = '10px sans-serif'; - - _savedGlobalAlpha = []; - - timer = null; - componentId = null; - - _notCommitDrawImageCache = []; - _needRedrawImageCache = []; - _redrawCommands = ''; - _autoSaveContext = true; - // _imageMap = new GHashMap(); - // _textureMap = new GHashMap(); - - constructor() { - this.className = 'CanvasRenderingContext2D'; - //this.save() - } - - setFillStyle(value) { - this.fillStyle = value; - } - - set fillStyle(value) { - this._fillStyle = value; - - if (typeof(value) == 'string') { - this._drawCommands = this._drawCommands.concat("F" + value + ";"); - } else if (value instanceof FillStylePattern) { - const image = value._img; - if (!image.complete) { - image.onload = () => { - var index = this._needRedrawImageCache.indexOf(image); - if (index > -1) { - this._needRedrawImageCache.splice(index, 1); - CanvasRenderingContext2D.GBridge.bindImageTexture(this.componentId, image.src, image._id); - this._redrawflush(true); - } - } - this._notCommitDrawImageCache.push(image); - } else { - CanvasRenderingContext2D.GBridge.bindImageTexture(this.componentId, image.src, image._id); - } - - //CanvasRenderingContext2D.GBridge.bindImageTexture(this.componentId, image.src, image._id); - this._drawCommands = this._drawCommands.concat("G" + image._id + "," + value._style + ";"); - } else if (value instanceof FillStyleLinearGradient) { - var command = "D" + value._start_pos._x.toFixed(2) + "," + value._start_pos._y.toFixed(2) + "," + - value._end_pos._x.toFixed(2) + "," + value._end_pos._y.toFixed(2) + "," + - value._stop_count; - for (var i = 0; i < value._stop_count; ++i) { - command += ("," + value._stops[i]._pos + "," + value._stops[i]._color); - } - this._drawCommands = this._drawCommands.concat(command + ";"); - } else if (value instanceof FillStyleRadialGradient) { - var command = "H" + value._start_pos._x.toFixed(2) + "," + value._start_pos._y.toFixed(2) + "," + value._start_pos._r - .toFixed(2) + "," + - value._end_pos._x.toFixed(2) + "," + value._end_pos._y.toFixed(2) + "," + value._end_pos._r.toFixed(2) + "," + - value._stop_count; - for (var i = 0; i < value._stop_count; ++i) { - command += ("," + value._stops[i]._pos + "," + value._stops[i]._color); - } - this._drawCommands = this._drawCommands.concat(command + ";"); - } - } - - get fillStyle() { - return this._fillStyle; - } - - get globalAlpha() { - return this._globalAlpha; - } - - setGlobalAlpha(value) { - this.globalAlpha = value; - } - - set globalAlpha(value) { - this._globalAlpha = value; - this._drawCommands = this._drawCommands.concat("a" + value.toFixed(2) + ";"); - } - - - get strokeStyle() { - return this._strokeStyle; - } - - setStrokeStyle(value) { - this.strokeStyle = value; - } - - set strokeStyle(value) { - - this._strokeStyle = value; - - if (typeof(value) == 'string') { - this._drawCommands = this._drawCommands.concat("S" + value + ";"); - } else if (value instanceof FillStylePattern) { - CanvasRenderingContext2D.GBridge.bindImageTexture(this.componentId, image.src, image._id); - this._drawCommands = this._drawCommands.concat("G" + image._id + "," + value._style + ";"); - } else if (value instanceof FillStyleLinearGradient) { - var command = "D" + value._start_pos._x.toFixed(2) + "," + value._start_pos._y.toFixed(2) + "," + - value._end_pos._x.toFixed(2) + "," + value._end_pos._y.toFixed(2) + "," + - value._stop_count; - - for (var i = 0; i < value._stop_count; ++i) { - command += ("," + value._stops[i]._pos + "," + value._stops[i]._color); - } - this._drawCommands = this._drawCommands.concat(command + ";"); - } else if (value instanceof FillStyleRadialGradient) { - var command = "H" + value._start_pos._x.toFixed(2) + "," + value._start_pos._y.toFixed(2) + "," + value._start_pos._r - .toFixed(2) + "," + - value._end_pos._x.toFixed(2) + "," + value._end_pos._y + ",".toFixed(2) + value._end_pos._r.toFixed(2) + "," + - value._stop_count; - - for (var i = 0; i < value._stop_count; ++i) { - command += ("," + value._stops[i]._pos + "," + value._stops[i]._color); - } - this._drawCommands = this._drawCommands.concat(command + ";"); - } - } - - get lineWidth() { - return this._lineWidth; - } - - setLineWidth(value) { - this.lineWidth = value; - } - - set lineWidth(value) { - this._lineWidth = value; - this._drawCommands = this._drawCommands.concat("W" + value + ";"); - } - - get lineCap() { - return this._lineCap; - } - - setLineCap(value) { - this.lineCap = value; - } - - set lineCap(value) { - this._lineCap = value; - this._drawCommands = this._drawCommands.concat("C" + value + ";"); - } - - get lineJoin() { - return this._lineJoin; - } - - setLineJoin(value) { - this.lineJoin = value - } - - set lineJoin(value) { - this._lineJoin = value; - this._drawCommands = this._drawCommands.concat("J" + value + ";"); - } - - get miterLimit() { - return this._miterLimit; - } - - setMiterLimit(value) { - this.miterLimit = value - } - - set miterLimit(value) { - this._miterLimit = value; - this._drawCommands = this._drawCommands.concat("M" + value + ";"); - } - - get globalCompositeOperation() { - return this._globalCompositeOperation; - } - - set globalCompositeOperation(value) { - - this._globalCompositeOperation = value; - let mode = 0; - switch (value) { - case "source-over": - mode = 0; - break; - case "source-atop": - mode = 5; - break; - case "source-in": - mode = 0; - break; - case "source-out": - mode = 2; - break; - case "destination-over": - mode = 4; - break; - case "destination-atop": - mode = 4; - break; - case "destination-in": - mode = 4; - break; - case "destination-out": - mode = 3; - break; - case "lighter": - mode = 1; - break; - case "copy": - mode = 2; - break; - case "xor": - mode = 6; - break; - default: - mode = 0; - } - - this._drawCommands = this._drawCommands.concat("B" + mode + ";"); - } - - get textAlign() { - return this._textAlign; - } - - setTextAlign(value) { - this.textAlign = value - } - - set textAlign(value) { - - this._textAlign = value; - let Align = 0; - switch (value) { - case "start": - Align = 0; - break; - case "end": - Align = 1; - break; - case "left": - Align = 2; - break; - case "center": - Align = 3; - break; - case "right": - Align = 4; - break; - default: - Align = 0; - } - - this._drawCommands = this._drawCommands.concat("A" + Align + ";"); - } - - get textBaseline() { - return this._textBaseline; - } - - setTextBaseline(value) { - this.textBaseline = value - } - - set textBaseline(value) { - this._textBaseline = value; - let baseline = 0; - switch (value) { - case "alphabetic": - baseline = 0; - break; - case "middle": - baseline = 1; - break; - case "top": - baseline = 2; - break; - case "hanging": - baseline = 3; - break; - case "bottom": - baseline = 4; - break; - case "ideographic": - baseline = 5; - break; - default: - baseline = 0; - break; - } - - this._drawCommands = this._drawCommands.concat("E" + baseline + ";"); - } - - get font() { - return this._font; - } - - setFontSize(size) { - var str = this._font; - var strs = str.trim().split(/\s+/); - for (var i = 0; i < strs.length; i++) { - var values = ["normal", "italic", "oblique", "normal", "small-caps", "normal", "bold", - "bolder", "lighter", "100", "200", "300", "400", "500", "600", "700", "800", "900", - "normal", "ultra-condensed", "extra-condensed", "condensed", "semi-condensed", - "semi-expanded", "expanded", "extra-expanded", "ultra-expanded" - ]; - - if (-1 == values.indexOf(strs[i].trim())) { - if (typeof size === 'string') { - strs[i] = size; - } else if (typeof size === 'number') { - strs[i] = String(size) + 'px'; - } - break; - } - } - this.font = strs.join(" "); - } - - set font(value) { - this._font = value; - this._drawCommands = this._drawCommands.concat("j" + value + ";"); - } - - setTransform(a, b, c, d, tx, ty) { - this._drawCommands = this._drawCommands.concat("t" + - (a === 1 ? "1" : a.toFixed(2)) + "," + - (b === 0 ? "0" : b.toFixed(2)) + "," + - (c === 0 ? "0" : c.toFixed(2)) + "," + - (d === 1 ? "1" : d.toFixed(2)) + "," + tx.toFixed(2) + "," + ty.toFixed(2) + ";"); - } - - transform(a, b, c, d, tx, ty) { - this._drawCommands = this._drawCommands.concat("f" + - (a === 1 ? "1" : a.toFixed(2)) + "," + - (b === 0 ? "0" : b.toFixed(2)) + "," + - (c === 0 ? "0" : c.toFixed(2)) + "," + - (d === 1 ? "1" : d.toFixed(2)) + "," + tx + "," + ty + ";"); - } - - resetTransform() { - this._drawCommands = this._drawCommands.concat("m;"); - } - - scale(a, d) { - this._drawCommands = this._drawCommands.concat("k" + a.toFixed(2) + "," + - d.toFixed(2) + ";"); - } - - rotate(angle) { - this._drawCommands = this._drawCommands - .concat("r" + angle.toFixed(6) + ";"); - } - - translate(tx, ty) { - this._drawCommands = this._drawCommands.concat("l" + tx.toFixed(2) + "," + ty.toFixed(2) + ";"); - } - - save() { - this._savedGlobalAlpha.push(this._globalAlpha); - this._drawCommands = this._drawCommands.concat("v;"); - } - - restore() { - this._drawCommands = this._drawCommands.concat("e;"); - this._globalAlpha = this._savedGlobalAlpha.pop(); - } - - createPattern(img, pattern) { - if (typeof img === 'string') { - var imgObj = new GImage(); - imgObj.src = img; - img = imgObj; - } - return new FillStylePattern(img, pattern); - } - - createLinearGradient(x0, y0, x1, y1) { - return new FillStyleLinearGradient(x0, y0, x1, y1); - } - - createRadialGradient = function(x0, y0, r0, x1, y1, r1) { - return new FillStyleRadialGradient(x0, y0, r0, x1, y1, r1); - }; - - createCircularGradient = function(x0, y0, r0) { - return new FillStyleRadialGradient(x0, y0, 0, x0, y0, r0); - }; - - strokeRect(x, y, w, h) { - this._drawCommands = this._drawCommands.concat("s" + x + "," + y + "," + w + "," + h + ";"); - } - - - clearRect(x, y, w, h) { - this._drawCommands = this._drawCommands.concat("c" + x + "," + y + "," + w + - "," + h + ";"); - } - - clip() { - this._drawCommands = this._drawCommands.concat("p;"); - } - - resetClip() { - this._drawCommands = this._drawCommands.concat("q;"); - } - - closePath() { - this._drawCommands = this._drawCommands.concat("o;"); - } - - moveTo(x, y) { - this._drawCommands = this._drawCommands.concat("g" + x.toFixed(2) + "," + y.toFixed(2) + ";"); - } - - lineTo(x, y) { - this._drawCommands = this._drawCommands.concat("i" + x.toFixed(2) + "," + y.toFixed(2) + ";"); - } - - quadraticCurveTo = function(cpx, cpy, x, y) { - this._drawCommands = this._drawCommands.concat("u" + cpx + "," + cpy + "," + x + "," + y + ";"); - } - - bezierCurveTo(cp1x, cp1y, cp2x, cp2y, x, y, ) { - this._drawCommands = this._drawCommands.concat( - "z" + cp1x.toFixed(2) + "," + cp1y.toFixed(2) + "," + cp2x.toFixed(2) + "," + cp2y.toFixed(2) + "," + - x.toFixed(2) + "," + y.toFixed(2) + ";"); - } - - arcTo(x1, y1, x2, y2, radius) { - this._drawCommands = this._drawCommands.concat("h" + x1 + "," + y1 + "," + x2 + "," + y2 + "," + radius + ";"); - } - - beginPath() { - this._drawCommands = this._drawCommands.concat("b;"); - } - - - fillRect(x, y, w, h) { - this._drawCommands = this._drawCommands.concat("n" + x + "," + y + "," + w + - "," + h + ";"); - } - - rect(x, y, w, h) { - this._drawCommands = this._drawCommands.concat("w" + x + "," + y + "," + w + "," + h + ";"); - } - - fill() { - this._drawCommands = this._drawCommands.concat("L;"); - } - - stroke(path) { - this._drawCommands = this._drawCommands.concat("x;"); - } - - arc(x, y, radius, startAngle, endAngle, anticlockwise) { - - let ianticlockwise = 0; - if (anticlockwise) { - ianticlockwise = 1; - } - - this._drawCommands = this._drawCommands.concat( - "y" + x.toFixed(2) + "," + y.toFixed(2) + "," + - radius.toFixed(2) + "," + startAngle + "," + endAngle + "," + ianticlockwise + - ";" - ); - } - - fillText(text, x, y) { - let tmptext = text.replace(/!/g, "!!"); - tmptext = tmptext.replace(/,/g, "!,"); - tmptext = tmptext.replace(/;/g, "!;"); - this._drawCommands = this._drawCommands.concat("T" + tmptext + "," + x + "," + y + ",0.0;"); - } - - strokeText = function(text, x, y) { - let tmptext = text.replace(/!/g, "!!"); - tmptext = tmptext.replace(/,/g, "!,"); - tmptext = tmptext.replace(/;/g, "!;"); - this._drawCommands = this._drawCommands.concat("U" + tmptext + "," + x + "," + y + ",0.0;"); - } - - measureText(text) { - return CanvasRenderingContext2D.GBridge.measureText(text, this.font, this.componentId); - } - - isPointInPath = function(x, y) { - throw new Error('GCanvas not supported yet'); - } - - drawImage(image, sx, sy, sw, sh, dx, dy, dw, dh) { - if (typeof image === 'string') { - var imgObj = new GImage(); - imgObj.src = image; - image = imgObj; - } - if (image instanceof GImage) { - if (!image.complete) { - imgObj.onload = () => { - var index = this._needRedrawImageCache.indexOf(image); - if (index > -1) { - this._needRedrawImageCache.splice(index, 1); - CanvasRenderingContext2D.GBridge.bindImageTexture(this.componentId, image.src, image._id); - this._redrawflush(true); - } - } - this._notCommitDrawImageCache.push(image); - } else { - CanvasRenderingContext2D.GBridge.bindImageTexture(this.componentId, image.src, image._id); - } - var srcArgs = [image, sx, sy, sw, sh, dx, dy, dw, dh]; - var args = []; - for (var arg in srcArgs) { - if (typeof(srcArgs[arg]) != 'undefined') { - args.push(srcArgs[arg]); - } - } - this.__drawImage.apply(this, args); - //this.__drawImage(image,sx, sy, sw, sh, dx, dy, dw, dh); - } - } - - __drawImage(image, sx, sy, sw, sh, dx, dy, dw, dh) { - const numArgs = arguments.length; - - function drawImageCommands() { - - if (numArgs === 3) { - const x = parseFloat(sx) || 0.0; - const y = parseFloat(sy) || 0.0; - - return ("d" + image._id + ",0,0," + - image.width + "," + image.height + "," + - x + "," + y + "," + image.width + "," + image.height + ";"); - } else if (numArgs === 5) { - const x = parseFloat(sx) || 0.0; - const y = parseFloat(sy) || 0.0; - const width = parseInt(sw) || image.width; - const height = parseInt(sh) || image.height; - - return ("d" + image._id + ",0,0," + - image.width + "," + image.height + "," + - x + "," + y + "," + width + "," + height + ";"); - } else if (numArgs === 9) { - sx = parseFloat(sx) || 0.0; - sy = parseFloat(sy) || 0.0; - sw = parseInt(sw) || image.width; - sh = parseInt(sh) || image.height; - dx = parseFloat(dx) || 0.0; - dy = parseFloat(dy) || 0.0; - dw = parseInt(dw) || image.width; - dh = parseInt(dh) || image.height; - - return ("d" + image._id + "," + - sx + "," + sy + "," + sw + "," + sh + "," + - dx + "," + dy + "," + dw + "," + dh + ";"); - } - } - this._drawCommands += drawImageCommands(); - } - - _flush(reserve, callback) { - const commands = this._drawCommands; - this._drawCommands = ''; - CanvasRenderingContext2D.GBridge.render2d(this.componentId, commands, callback); - this._needRender = false; - } - - _redrawflush(reserve, callback) { - const commands = this._redrawCommands; - CanvasRenderingContext2D.GBridge.render2d(this.componentId, commands, callback); - if (this._needRedrawImageCache.length == 0) { - this._redrawCommands = ''; - } - } - - draw(reserve, callback) { - if (!reserve) { - this._globalAlpha = this._savedGlobalAlpha.pop(); - this._savedGlobalAlpha.push(this._globalAlpha); - this._redrawCommands = this._drawCommands; - this._needRedrawImageCache = this._notCommitDrawImageCache; - if (this._autoSaveContext) { - this._drawCommands = ("v;" + this._drawCommands); - this._autoSaveContext = false; - } else { - this._drawCommands = ("e;X;v;" + this._drawCommands); - } - } else { - this._needRedrawImageCache = this._needRedrawImageCache.concat(this._notCommitDrawImageCache); - this._redrawCommands += this._drawCommands; - if (this._autoSaveContext) { - this._drawCommands = ("v;" + this._drawCommands); - this._autoSaveContext = false; - } - } - this._notCommitDrawImageCache = []; - if (this._flush) { - this._flush(reserve, callback); - } - } - - getImageData(x, y, w, h, callback) { - CanvasRenderingContext2D.GBridge.getImageData(this.componentId, x, y, w, h, function(res) { - res.data = Base64ToUint8ClampedArray(res.data); - if (typeof(callback) == 'function') { - callback(res); - } - }); - } - - putImageData(data, x, y, w, h, callback) { - if (data instanceof Uint8ClampedArray) { - data = ArrayBufferToBase64(data); - CanvasRenderingContext2D.GBridge.putImageData(this.componentId, data, x, y, w, h, function(res) { - if (typeof(callback) == 'function') { - callback(res); - } - }); - } - } - - toTempFilePath(x, y, width, height, destWidth, destHeight, fileType, quality, callback) { - CanvasRenderingContext2D.GBridge.toTempFilePath(this.componentId, x, y, width, height, destWidth, destHeight, - fileType, quality, - function(res) { - if (typeof(callback) == 'function') { - callback(res); - } - }); - } -} diff --git a/uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-webgl/ActiveInfo.js b/uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-webgl/ActiveInfo.js deleted file mode 100644 index 41738b1..0000000 --- a/uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-webgl/ActiveInfo.js +++ /dev/null @@ -1,11 +0,0 @@ -export default class WebGLActiveInfo { - className = 'WebGLActiveInfo'; - - constructor({ - type, name, size - }) { - this.type = type; - this.name = name; - this.size = size; - } -} \ No newline at end of file diff --git a/uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-webgl/Buffer.js b/uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-webgl/Buffer.js deleted file mode 100644 index a451291..0000000 --- a/uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-webgl/Buffer.js +++ /dev/null @@ -1,21 +0,0 @@ -import {getTransferedObjectUUID} from './classUtils'; - -const name = 'WebGLBuffer'; - -function uuid(id) { - return getTransferedObjectUUID(name, id); -} - -export default class WebGLBuffer { - className = name; - - constructor(id) { - this.id = id; - } - - static uuid = uuid; - - uuid() { - return uuid(this.id); - } -} \ No newline at end of file diff --git a/uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-webgl/Framebuffer.js b/uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-webgl/Framebuffer.js deleted file mode 100644 index e8d806e..0000000 --- a/uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-webgl/Framebuffer.js +++ /dev/null @@ -1,21 +0,0 @@ -import {getTransferedObjectUUID} from './classUtils'; - -const name = 'WebGLFrameBuffer'; - -function uuid(id) { - return getTransferedObjectUUID(name, id); -} - -export default class WebGLFramebuffer { - className = name; - - constructor(id) { - this.id = id; - } - - static uuid = uuid; - - uuid() { - return uuid(this.id); - } -} \ No newline at end of file diff --git a/uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-webgl/GLenum.js b/uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-webgl/GLenum.js deleted file mode 100644 index 5fdc49f..0000000 --- a/uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-webgl/GLenum.js +++ /dev/null @@ -1,298 +0,0 @@ -export default { - "DEPTH_BUFFER_BIT": 256, - "STENCIL_BUFFER_BIT": 1024, - "COLOR_BUFFER_BIT": 16384, - "POINTS": 0, - "LINES": 1, - "LINE_LOOP": 2, - "LINE_STRIP": 3, - "TRIANGLES": 4, - "TRIANGLE_STRIP": 5, - "TRIANGLE_FAN": 6, - "ZERO": 0, - "ONE": 1, - "SRC_COLOR": 768, - "ONE_MINUS_SRC_COLOR": 769, - "SRC_ALPHA": 770, - "ONE_MINUS_SRC_ALPHA": 771, - "DST_ALPHA": 772, - "ONE_MINUS_DST_ALPHA": 773, - "DST_COLOR": 774, - "ONE_MINUS_DST_COLOR": 775, - "SRC_ALPHA_SATURATE": 776, - "FUNC_ADD": 32774, - "BLEND_EQUATION": 32777, - "BLEND_EQUATION_RGB": 32777, - "BLEND_EQUATION_ALPHA": 34877, - "FUNC_SUBTRACT": 32778, - "FUNC_REVERSE_SUBTRACT": 32779, - "BLEND_DST_RGB": 32968, - "BLEND_SRC_RGB": 32969, - "BLEND_DST_ALPHA": 32970, - "BLEND_SRC_ALPHA": 32971, - "CONSTANT_COLOR": 32769, - "ONE_MINUS_CONSTANT_COLOR": 32770, - "CONSTANT_ALPHA": 32771, - "ONE_MINUS_CONSTANT_ALPHA": 32772, - "BLEND_COLOR": 32773, - "ARRAY_BUFFER": 34962, - "ELEMENT_ARRAY_BUFFER": 34963, - "ARRAY_BUFFER_BINDING": 34964, - "ELEMENT_ARRAY_BUFFER_BINDING": 34965, - "STREAM_DRAW": 35040, - "STATIC_DRAW": 35044, - "DYNAMIC_DRAW": 35048, - "BUFFER_SIZE": 34660, - "BUFFER_USAGE": 34661, - "CURRENT_VERTEX_ATTRIB": 34342, - "FRONT": 1028, - "BACK": 1029, - "FRONT_AND_BACK": 1032, - "TEXTURE_2D": 3553, - "CULL_FACE": 2884, - "BLEND": 3042, - "DITHER": 3024, - "STENCIL_TEST": 2960, - "DEPTH_TEST": 2929, - "SCISSOR_TEST": 3089, - "POLYGON_OFFSET_FILL": 32823, - "SAMPLE_ALPHA_TO_COVERAGE": 32926, - "SAMPLE_COVERAGE": 32928, - "NO_ERROR": 0, - "INVALID_ENUM": 1280, - "INVALID_VALUE": 1281, - "INVALID_OPERATION": 1282, - "OUT_OF_MEMORY": 1285, - "CW": 2304, - "CCW": 2305, - "LINE_WIDTH": 2849, - "ALIASED_POINT_SIZE_RANGE": 33901, - "ALIASED_LINE_WIDTH_RANGE": 33902, - "CULL_FACE_MODE": 2885, - "FRONT_FACE": 2886, - "DEPTH_RANGE": 2928, - "DEPTH_WRITEMASK": 2930, - "DEPTH_CLEAR_VALUE": 2931, - "DEPTH_FUNC": 2932, - "STENCIL_CLEAR_VALUE": 2961, - "STENCIL_FUNC": 2962, - "STENCIL_FAIL": 2964, - "STENCIL_PASS_DEPTH_FAIL": 2965, - "STENCIL_PASS_DEPTH_PASS": 2966, - "STENCIL_REF": 2967, - "STENCIL_VALUE_MASK": 2963, - "STENCIL_WRITEMASK": 2968, - "STENCIL_BACK_FUNC": 34816, - "STENCIL_BACK_FAIL": 34817, - "STENCIL_BACK_PASS_DEPTH_FAIL": 34818, - "STENCIL_BACK_PASS_DEPTH_PASS": 34819, - "STENCIL_BACK_REF": 36003, - "STENCIL_BACK_VALUE_MASK": 36004, - "STENCIL_BACK_WRITEMASK": 36005, - "VIEWPORT": 2978, - "SCISSOR_BOX": 3088, - "COLOR_CLEAR_VALUE": 3106, - "COLOR_WRITEMASK": 3107, - "UNPACK_ALIGNMENT": 3317, - "PACK_ALIGNMENT": 3333, - "MAX_TEXTURE_SIZE": 3379, - "MAX_VIEWPORT_DIMS": 3386, - "SUBPIXEL_BITS": 3408, - "RED_BITS": 3410, - "GREEN_BITS": 3411, - "BLUE_BITS": 3412, - "ALPHA_BITS": 3413, - "DEPTH_BITS": 3414, - "STENCIL_BITS": 3415, - "POLYGON_OFFSET_UNITS": 10752, - "POLYGON_OFFSET_FACTOR": 32824, - "TEXTURE_BINDING_2D": 32873, - "SAMPLE_BUFFERS": 32936, - "SAMPLES": 32937, - "SAMPLE_COVERAGE_VALUE": 32938, - "SAMPLE_COVERAGE_INVERT": 32939, - "COMPRESSED_TEXTURE_FORMATS": 34467, - "DONT_CARE": 4352, - "FASTEST": 4353, - "NICEST": 4354, - "GENERATE_MIPMAP_HINT": 33170, - "BYTE": 5120, - "UNSIGNED_BYTE": 5121, - "SHORT": 5122, - "UNSIGNED_SHORT": 5123, - "INT": 5124, - "UNSIGNED_INT": 5125, - "FLOAT": 5126, - "DEPTH_COMPONENT": 6402, - "ALPHA": 6406, - "RGB": 6407, - "RGBA": 6408, - "LUMINANCE": 6409, - "LUMINANCE_ALPHA": 6410, - "UNSIGNED_SHORT_4_4_4_4": 32819, - "UNSIGNED_SHORT_5_5_5_1": 32820, - "UNSIGNED_SHORT_5_6_5": 33635, - "FRAGMENT_SHADER": 35632, - "VERTEX_SHADER": 35633, - "MAX_VERTEX_ATTRIBS": 34921, - "MAX_VERTEX_UNIFORM_VECTORS": 36347, - "MAX_VARYING_VECTORS": 36348, - "MAX_COMBINED_TEXTURE_IMAGE_UNITS": 35661, - "MAX_VERTEX_TEXTURE_IMAGE_UNITS": 35660, - "MAX_TEXTURE_IMAGE_UNITS": 34930, - "MAX_FRAGMENT_UNIFORM_VECTORS": 36349, - "SHADER_TYPE": 35663, - "DELETE_STATUS": 35712, - "LINK_STATUS": 35714, - "VALIDATE_STATUS": 35715, - "ATTACHED_SHADERS": 35717, - "ACTIVE_UNIFORMS": 35718, - "ACTIVE_ATTRIBUTES": 35721, - "SHADING_LANGUAGE_VERSION": 35724, - "CURRENT_PROGRAM": 35725, - "NEVER": 512, - "LESS": 513, - "EQUAL": 514, - "LEQUAL": 515, - "GREATER": 516, - "NOTEQUAL": 517, - "GEQUAL": 518, - "ALWAYS": 519, - "KEEP": 7680, - "REPLACE": 7681, - "INCR": 7682, - "DECR": 7683, - "INVERT": 5386, - "INCR_WRAP": 34055, - "DECR_WRAP": 34056, - "VENDOR": 7936, - "RENDERER": 7937, - "VERSION": 7938, - "NEAREST": 9728, - "LINEAR": 9729, - "NEAREST_MIPMAP_NEAREST": 9984, - "LINEAR_MIPMAP_NEAREST": 9985, - "NEAREST_MIPMAP_LINEAR": 9986, - "LINEAR_MIPMAP_LINEAR": 9987, - "TEXTURE_MAG_FILTER": 10240, - "TEXTURE_MIN_FILTER": 10241, - "TEXTURE_WRAP_S": 10242, - "TEXTURE_WRAP_T": 10243, - "TEXTURE": 5890, - "TEXTURE_CUBE_MAP": 34067, - "TEXTURE_BINDING_CUBE_MAP": 34068, - "TEXTURE_CUBE_MAP_POSITIVE_X": 34069, - "TEXTURE_CUBE_MAP_NEGATIVE_X": 34070, - "TEXTURE_CUBE_MAP_POSITIVE_Y": 34071, - "TEXTURE_CUBE_MAP_NEGATIVE_Y": 34072, - "TEXTURE_CUBE_MAP_POSITIVE_Z": 34073, - "TEXTURE_CUBE_MAP_NEGATIVE_Z": 34074, - "MAX_CUBE_MAP_TEXTURE_SIZE": 34076, - "TEXTURE0": 33984, - "TEXTURE1": 33985, - "TEXTURE2": 33986, - "TEXTURE3": 33987, - "TEXTURE4": 33988, - "TEXTURE5": 33989, - "TEXTURE6": 33990, - "TEXTURE7": 33991, - "TEXTURE8": 33992, - "TEXTURE9": 33993, - "TEXTURE10": 33994, - "TEXTURE11": 33995, - "TEXTURE12": 33996, - "TEXTURE13": 33997, - "TEXTURE14": 33998, - "TEXTURE15": 33999, - "TEXTURE16": 34000, - "TEXTURE17": 34001, - "TEXTURE18": 34002, - "TEXTURE19": 34003, - "TEXTURE20": 34004, - "TEXTURE21": 34005, - "TEXTURE22": 34006, - "TEXTURE23": 34007, - "TEXTURE24": 34008, - "TEXTURE25": 34009, - "TEXTURE26": 34010, - "TEXTURE27": 34011, - "TEXTURE28": 34012, - "TEXTURE29": 34013, - "TEXTURE30": 34014, - "TEXTURE31": 34015, - "ACTIVE_TEXTURE": 34016, - "REPEAT": 10497, - "CLAMP_TO_EDGE": 33071, - "MIRRORED_REPEAT": 33648, - "FLOAT_VEC2": 35664, - "FLOAT_VEC3": 35665, - "FLOAT_VEC4": 35666, - "INT_VEC2": 35667, - "INT_VEC3": 35668, - "INT_VEC4": 35669, - "BOOL": 35670, - "BOOL_VEC2": 35671, - "BOOL_VEC3": 35672, - "BOOL_VEC4": 35673, - "FLOAT_MAT2": 35674, - "FLOAT_MAT3": 35675, - "FLOAT_MAT4": 35676, - "SAMPLER_2D": 35678, - "SAMPLER_CUBE": 35680, - "VERTEX_ATTRIB_ARRAY_ENABLED": 34338, - "VERTEX_ATTRIB_ARRAY_SIZE": 34339, - "VERTEX_ATTRIB_ARRAY_STRIDE": 34340, - "VERTEX_ATTRIB_ARRAY_TYPE": 34341, - "VERTEX_ATTRIB_ARRAY_NORMALIZED": 34922, - "VERTEX_ATTRIB_ARRAY_POINTER": 34373, - "VERTEX_ATTRIB_ARRAY_BUFFER_BINDING": 34975, - "IMPLEMENTATION_COLOR_READ_TYPE": 35738, - "IMPLEMENTATION_COLOR_READ_FORMAT": 35739, - "COMPILE_STATUS": 35713, - "LOW_FLOAT": 36336, - "MEDIUM_FLOAT": 36337, - "HIGH_FLOAT": 36338, - "LOW_INT": 36339, - "MEDIUM_INT": 36340, - "HIGH_INT": 36341, - "FRAMEBUFFER": 36160, - "RENDERBUFFER": 36161, - "RGBA4": 32854, - "RGB5_A1": 32855, - "RGB565": 36194, - "DEPTH_COMPONENT16": 33189, - "STENCIL_INDEX8": 36168, - "DEPTH_STENCIL": 34041, - "RENDERBUFFER_WIDTH": 36162, - "RENDERBUFFER_HEIGHT": 36163, - "RENDERBUFFER_INTERNAL_FORMAT": 36164, - "RENDERBUFFER_RED_SIZE": 36176, - "RENDERBUFFER_GREEN_SIZE": 36177, - "RENDERBUFFER_BLUE_SIZE": 36178, - "RENDERBUFFER_ALPHA_SIZE": 36179, - "RENDERBUFFER_DEPTH_SIZE": 36180, - "RENDERBUFFER_STENCIL_SIZE": 36181, - "FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE": 36048, - "FRAMEBUFFER_ATTACHMENT_OBJECT_NAME": 36049, - "FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL": 36050, - "FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE": 36051, - "COLOR_ATTACHMENT0": 36064, - "DEPTH_ATTACHMENT": 36096, - "STENCIL_ATTACHMENT": 36128, - "DEPTH_STENCIL_ATTACHMENT": 33306, - "NONE": 0, - "FRAMEBUFFER_COMPLETE": 36053, - "FRAMEBUFFER_INCOMPLETE_ATTACHMENT": 36054, - "FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT": 36055, - "FRAMEBUFFER_INCOMPLETE_DIMENSIONS": 36057, - "FRAMEBUFFER_UNSUPPORTED": 36061, - "FRAMEBUFFER_BINDING": 36006, - "RENDERBUFFER_BINDING": 36007, - "MAX_RENDERBUFFER_SIZE": 34024, - "INVALID_FRAMEBUFFER_OPERATION": 1286, - "UNPACK_FLIP_Y_WEBGL": 37440, - "UNPACK_PREMULTIPLY_ALPHA_WEBGL": 37441, - "CONTEXT_LOST_WEBGL": 37442, - "UNPACK_COLORSPACE_CONVERSION_WEBGL": 37443, - "BROWSER_DEFAULT_WEBGL": 37444 -}; \ No newline at end of file diff --git a/uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-webgl/GLmethod.js b/uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-webgl/GLmethod.js deleted file mode 100644 index 8ca2212..0000000 --- a/uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-webgl/GLmethod.js +++ /dev/null @@ -1,142 +0,0 @@ -let i = 1; - -const GLmethod = {}; - -GLmethod.activeTexture = i++; //1 -GLmethod.attachShader = i++; -GLmethod.bindAttribLocation = i++; -GLmethod.bindBuffer = i++; -GLmethod.bindFramebuffer = i++; -GLmethod.bindRenderbuffer = i++; -GLmethod.bindTexture = i++; -GLmethod.blendColor = i++; -GLmethod.blendEquation = i++; -GLmethod.blendEquationSeparate = i++; //10 -GLmethod.blendFunc = i++; -GLmethod.blendFuncSeparate = i++; -GLmethod.bufferData = i++; -GLmethod.bufferSubData = i++; -GLmethod.checkFramebufferStatus = i++; -GLmethod.clear = i++; -GLmethod.clearColor = i++; -GLmethod.clearDepth = i++; -GLmethod.clearStencil = i++; -GLmethod.colorMask = i++; //20 -GLmethod.compileShader = i++; -GLmethod.compressedTexImage2D = i++; -GLmethod.compressedTexSubImage2D = i++; -GLmethod.copyTexImage2D = i++; -GLmethod.copyTexSubImage2D = i++; -GLmethod.createBuffer = i++; -GLmethod.createFramebuffer = i++; -GLmethod.createProgram = i++; -GLmethod.createRenderbuffer = i++; -GLmethod.createShader = i++; //30 -GLmethod.createTexture = i++; -GLmethod.cullFace = i++; -GLmethod.deleteBuffer = i++; -GLmethod.deleteFramebuffer = i++; -GLmethod.deleteProgram = i++; -GLmethod.deleteRenderbuffer = i++; -GLmethod.deleteShader = i++; -GLmethod.deleteTexture = i++; -GLmethod.depthFunc = i++; -GLmethod.depthMask = i++; //40 -GLmethod.depthRange = i++; -GLmethod.detachShader = i++; -GLmethod.disable = i++; -GLmethod.disableVertexAttribArray = i++; -GLmethod.drawArrays = i++; -GLmethod.drawArraysInstancedANGLE = i++; -GLmethod.drawElements = i++; -GLmethod.drawElementsInstancedANGLE = i++; -GLmethod.enable = i++; -GLmethod.enableVertexAttribArray = i++; //50 -GLmethod.flush = i++; -GLmethod.framebufferRenderbuffer = i++; -GLmethod.framebufferTexture2D = i++; -GLmethod.frontFace = i++; -GLmethod.generateMipmap = i++; -GLmethod.getActiveAttrib = i++; -GLmethod.getActiveUniform = i++; -GLmethod.getAttachedShaders = i++; -GLmethod.getAttribLocation = i++; -GLmethod.getBufferParameter = i++; //60 -GLmethod.getContextAttributes = i++; -GLmethod.getError = i++; -GLmethod.getExtension = i++; -GLmethod.getFramebufferAttachmentParameter = i++; -GLmethod.getParameter = i++; -GLmethod.getProgramInfoLog = i++; -GLmethod.getProgramParameter = i++; -GLmethod.getRenderbufferParameter = i++; -GLmethod.getShaderInfoLog = i++; -GLmethod.getShaderParameter = i++; //70 -GLmethod.getShaderPrecisionFormat = i++; -GLmethod.getShaderSource = i++; -GLmethod.getSupportedExtensions = i++; -GLmethod.getTexParameter = i++; -GLmethod.getUniform = i++; -GLmethod.getUniformLocation = i++; -GLmethod.getVertexAttrib = i++; -GLmethod.getVertexAttribOffset = i++; -GLmethod.isBuffer = i++; -GLmethod.isContextLost = i++; //80 -GLmethod.isEnabled = i++; -GLmethod.isFramebuffer = i++; -GLmethod.isProgram = i++; -GLmethod.isRenderbuffer = i++; -GLmethod.isShader = i++; -GLmethod.isTexture = i++; -GLmethod.lineWidth = i++; -GLmethod.linkProgram = i++; -GLmethod.pixelStorei = i++; -GLmethod.polygonOffset = i++; //90 -GLmethod.readPixels = i++; -GLmethod.renderbufferStorage = i++; -GLmethod.sampleCoverage = i++; -GLmethod.scissor = i++; -GLmethod.shaderSource = i++; -GLmethod.stencilFunc = i++; -GLmethod.stencilFuncSeparate = i++; -GLmethod.stencilMask = i++; -GLmethod.stencilMaskSeparate = i++; -GLmethod.stencilOp = i++; //100 -GLmethod.stencilOpSeparate = i++; -GLmethod.texImage2D = i++; -GLmethod.texParameterf = i++; -GLmethod.texParameteri = i++; -GLmethod.texSubImage2D = i++; -GLmethod.uniform1f = i++; -GLmethod.uniform1fv = i++; -GLmethod.uniform1i = i++; -GLmethod.uniform1iv = i++; -GLmethod.uniform2f = i++; //110 -GLmethod.uniform2fv = i++; -GLmethod.uniform2i = i++; -GLmethod.uniform2iv = i++; -GLmethod.uniform3f = i++; -GLmethod.uniform3fv = i++; -GLmethod.uniform3i = i++; -GLmethod.uniform3iv = i++; -GLmethod.uniform4f = i++; -GLmethod.uniform4fv = i++; -GLmethod.uniform4i = i++; //120 -GLmethod.uniform4iv = i++; -GLmethod.uniformMatrix2fv = i++; -GLmethod.uniformMatrix3fv = i++; -GLmethod.uniformMatrix4fv = i++; -GLmethod.useProgram = i++; -GLmethod.validateProgram = i++; -GLmethod.vertexAttrib1f = i++; //new -GLmethod.vertexAttrib2f = i++; //new -GLmethod.vertexAttrib3f = i++; //new -GLmethod.vertexAttrib4f = i++; //new //130 -GLmethod.vertexAttrib1fv = i++; //new -GLmethod.vertexAttrib2fv = i++; //new -GLmethod.vertexAttrib3fv = i++; //new -GLmethod.vertexAttrib4fv = i++; //new -GLmethod.vertexAttribPointer = i++; -GLmethod.viewport = i++; - -export default GLmethod; \ No newline at end of file diff --git a/uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-webgl/GLtype.js b/uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-webgl/GLtype.js deleted file mode 100644 index d7d81bb..0000000 --- a/uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-webgl/GLtype.js +++ /dev/null @@ -1,23 +0,0 @@ -const GLtype = {}; - -[ - "GLbitfield", - "GLboolean", - "GLbyte", - "GLclampf", - "GLenum", - "GLfloat", - "GLint", - "GLintptr", - "GLsizei", - "GLsizeiptr", - "GLshort", - "GLubyte", - "GLuint", - "GLushort" -].sort().map((typeName, i) => GLtype[typeName] = 1 >> (i + 1)); - -export default GLtype; - - - diff --git a/uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-webgl/Program.js b/uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-webgl/Program.js deleted file mode 100644 index bd69737..0000000 --- a/uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-webgl/Program.js +++ /dev/null @@ -1,21 +0,0 @@ -import {getTransferedObjectUUID} from './classUtils'; - -const name = 'WebGLProgram'; - -function uuid(id) { - return getTransferedObjectUUID(name, id); -} - -export default class WebGLProgram { - className = name; - - constructor(id) { - this.id = id; - } - - static uuid = uuid; - - uuid() { - return uuid(this.id); - } -} \ No newline at end of file diff --git a/uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-webgl/Renderbuffer.js b/uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-webgl/Renderbuffer.js deleted file mode 100644 index 3f500f0..0000000 --- a/uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-webgl/Renderbuffer.js +++ /dev/null @@ -1,21 +0,0 @@ -import {getTransferedObjectUUID} from './classUtils'; - -const name = 'WebGLRenderBuffer'; - -function uuid(id) { - return getTransferedObjectUUID(name, id); -} - -export default class WebGLRenderbuffer { - className = name; - - constructor(id) { - this.id = id; - } - - static uuid = uuid; - - uuid() { - return uuid(this.id); - } -} \ No newline at end of file diff --git a/uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-webgl/RenderingContext.js b/uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-webgl/RenderingContext.js deleted file mode 100644 index c004883..0000000 --- a/uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-webgl/RenderingContext.js +++ /dev/null @@ -1,1191 +0,0 @@ -import GLenum from './GLenum'; -import ActiveInfo from './ActiveInfo'; -import Buffer from './Buffer'; -import Framebuffer from './Framebuffer'; -import Renderbuffer from './Renderbuffer'; -import Texture from './Texture'; -import Program from './Program'; -import Shader from './Shader'; -import ShaderPrecisionFormat from './ShaderPrecisionFormat'; -import UniformLocation from './UniformLocation'; -import GLmethod from './GLmethod'; - -const processArray = (array, checkArrayType = false) => { - - function joinArray(arr, sep) { - let res = ''; - for (let i = 0; i < arr.length; i++) { - if (i !== 0) { - res += sep; - } - res += arr[i]; - } - return res; - } - - let type = 'Float32Array'; - if (checkArrayType) { - if (array instanceof Uint8Array) { - type = 'Uint8Array' - } else if (array instanceof Uint16Array) { - type = 'Uint16Array'; - } else if (array instanceof Uint32Array) { - type = 'Uint32Array'; - } else if (array instanceof Float32Array) { - type = 'Float32Array'; - } else { - throw new Error('Check array type failed. Array type is ' + typeof array); - } - } - - const ArrayTypes = { - Uint8Array: 1, - Uint16Array: 2, - Uint32Array: 4, - Float32Array: 14 - }; - return ArrayTypes[type] + ',' + btoa(joinArray(array, ',')) -} - -export default class WebGLRenderingContext { - - // static GBridge = null; - - className = 'WebGLRenderingContext'; - - constructor(canvas, type, attrs) { - this._canvas = canvas; - this._type = type; - this._version = 'WebGL 1.0'; - this._attrs = attrs; - this._map = new Map(); - - Object.keys(GLenum) - .forEach(name => Object.defineProperty(this, name, { - value: GLenum[name] - })); - } - - get canvas() { - return this._canvas; - } - - activeTexture = function (textureUnit) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.activeTexture + ',' + textureUnit, - true - ); - } - - attachShader = function (progarm, shader) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.attachShader + ',' + progarm.id + ',' + shader.id, - true - ); - } - - bindAttribLocation = function (program, index, name) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.bindAttribLocation + ',' + program.id + ',' + index + ',' + name, - true - ) - } - - bindBuffer = function (target, buffer) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.bindBuffer + ',' + target + ',' + (buffer ? buffer.id : 0), - true - ); - } - - bindFramebuffer = function (target, framebuffer) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.bindFramebuffer + ',' + target + ',' + (framebuffer ? framebuffer.id : 0), - true - ) - } - - bindRenderbuffer = function (target, renderBuffer) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.bindRenderbuffer + ',' + target + ',' + (renderBuffer ? renderBuffer.id : 0), - true - ) - } - - bindTexture = function (target, texture) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.bindTexture + ',' + target + ',' + (texture ? texture.id : 0), - true - ) - } - - blendColor = function (r, g, b, a) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.blendColor + ',' + target + ',' + r + ',' + g + ',' + b + ',' + a, - true - ) - } - - blendEquation = function (mode) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.blendEquation + ',' + mode, - true - ) - } - - blendEquationSeparate = function (modeRGB, modeAlpha) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.blendEquationSeparate + ',' + modeRGB + ',' + modeAlpha, - true - ) - } - - - blendFunc = function (sfactor, dfactor) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.blendFunc + ',' + sfactor + ',' + dfactor, - true - ); - } - - blendFuncSeparate = function (srcRGB, dstRGB, srcAlpha, dstAlpha) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.blendFuncSeparate + ',' + srcRGB + ',' + dstRGB + ',' + srcAlpha + ',' + dstAlpha, - true - ); - } - - bufferData = function (target, data, usage) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.bufferData + ',' + target + ',' + processArray(data, true) + ',' + usage, - true - ) - } - - bufferSubData = function (target, offset, data) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.bufferSubData + ',' + target + ',' + offset + ',' + processArray(data, true), - true - ) - } - - checkFramebufferStatus = function (target) { - const result = WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.checkFramebufferStatus + ',' + target - ); - return Number(result); - } - - clear = function (mask) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.clear + ',' + mask - ); - this._canvas._needRender = true; - } - - clearColor = function (r, g, b, a) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.clearColor + ',' + r + ',' + g + ',' + b, - true - ) - } - - clearDepth = function (depth) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.clearDepth + ',' + depth, - true - ) - } - - clearStencil = function (s) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.clearStencil + ',' + s - ); - } - - colorMask = function (r, g, b, a) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.colorMask + ',' + r + ',' + g + ',' + b + ',' + a - ) - } - - compileShader = function (shader) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.compileShader + ',' + shader.id, - true - ) - } - - compressedTexImage2D = function (target, level, internalformat, width, height, border, pixels) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.compressedTexImage2D + ',' + target + ',' + level + ',' + internalformat + ',' + - width + ',' + height + ',' + border + ',' + processArray(pixels), - true - ) - } - - compressedTexSubImage2D = function (target, level, xoffset, yoffset, width, height, format, pixels) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.compressedTexSubImage2D + ',' + target + ',' + level + ',' + xoffset + ',' + yoffset + ',' + - width + ',' + height + ',' + format + ',' + processArray(pixels), - true - ) - } - - - copyTexImage2D = function (target, level, internalformat, x, y, width, height, border) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.copyTexImage2D + ',' + target + ',' + level + ',' + internalformat + ',' + x + ',' + y + ',' + - width + ',' + height + ',' + border, - true - ); - } - - copyTexSubImage2D = function (target, level, xoffset, yoffset, x, y, width, height) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.copyTexSubImage2D + ',' + target + ',' + level + ',' + xoffset + ',' + yoffset + ',' + x + ',' + y + ',' + - width + ',' + height - ); - } - - createBuffer = function () { - const result = WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.createBuffer + '' - ); - const buffer = new Buffer(result); - this._map.set(buffer.uuid(), buffer); - return buffer; - } - - createFramebuffer = function () { - const result = WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.createFramebuffer + '' - ); - const framebuffer = new Framebuffer(result); - this._map.set(framebuffer.uuid(), framebuffer); - return framebuffer; - } - - - createProgram = function () { - const id = WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.createProgram + '' - ); - const program = new Program(id); - this._map.set(program.uuid(), program); - return program; - } - - createRenderbuffer = function () { - const id = WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.createRenderbuffer + '' - ) - const renderBuffer = new Renderbuffer(id); - this._map.set(renderBuffer.uuid(), renderBuffer); - return renderBuffer; - } - - createShader = function (type) { - const id = WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.createShader + ',' + type - ) - const shader = new Shader(id, type); - this._map.set(shader.uuid(), shader); - return shader; - } - - createTexture = function () { - const id = WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.createTexture + '' - ); - const texture = new Texture(id); - this._map.set(texture.uuid(), texture); - return texture; - } - - cullFace = function (mode) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.cullFace + ',' + mode, - true - ) - } - - - deleteBuffer = function (buffer) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.deleteBuffer + ',' + buffer.id, - true - ) - } - - deleteFramebuffer = function (framebuffer) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.deleteFramebuffer + ',' + framebuffer.id, - true - ) - } - - deleteProgram = function (program) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.deleteProgram + ',' + program.id, - true - ) - } - - deleteRenderbuffer = function (renderbuffer) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.deleteRenderbuffer + ',' + renderbuffer.id, - true - ) - } - - deleteShader = function (shader) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.deleteShader + ',' + shader.id, - true - ) - } - - deleteTexture = function (texture) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.deleteTexture + ',' + texture.id, - true - ) - } - - depthFunc = function (func) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.depthFunc + ',' + func - ) - } - - depthMask = function (flag) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.depthMask + ',' + Number(flag), - true - ) - } - - depthRange = function (zNear, zFar) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.depthRange + ',' + zNear + ',' + zFar, - true - ) - } - - detachShader = function (program, shader) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.detachShader + ',' + program.id + ',' + shader.id, - true - ) - } - - disable = function (cap) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.disable + ',' + cap, - true - ) - } - - disableVertexAttribArray = function (index) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.disableVertexAttribArray + ',' + index, - true - ); - } - - drawArrays = function (mode, first, count) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.drawArrays + ',' + mode + ',' + first + ',' + count - ) - this._canvas._needRender = true; - } - - drawElements = function (mode, count, type, offset) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.drawElements + ',' + mode + ',' + count + ',' + type + ',' + offset + ';' - ); - this._canvas._needRender = true; - } - - enable = function (cap) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.enable + ',' + cap, - true - ); - } - - enableVertexAttribArray = function (index) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.enableVertexAttribArray + ',' + index, - true - ) - } - - - flush = function () { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.flush + '' - ) - } - - framebufferRenderbuffer = function (target, attachment, textarget, texture, level) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.framebufferRenderbuffer + ',' + target + ',' + attachment + ',' + textarget + ',' + (texture ? texture.id : 0) + ',' + level, - true - ) - } - - framebufferTexture2D = function (target, attachment, textarget, texture, level) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.framebufferTexture2D + ',' + target + ',' + attachment + ',' + textarget + ',' + (texture ? texture.id : 0) + ',' + level, - true - ) - } - - frontFace = function (mode) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.frontFace + ',' + mode, - true - ) - } - - generateMipmap = function (target) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.generateMipmap + ',' + target, - true - ) - } - - getActiveAttrib = function (progarm, index) { - const resultString = WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.getActiveAttrib + ',' + progarm.id + ',' + index - ) - const [type, size, name] = resultString.split(','); - return new ActiveInfo({ - type: Number(type), - size: Number(size), - name - }); - } - - getActiveUniform = function (progarm, index) { - const resultString = WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.getActiveUniform + ',' + progarm.id + ',' + index - ); - const [type, size, name] = resultString.split(','); - return new ActiveInfo({ - type: Number(type), - size: Number(size), - name - }) - } - - getAttachedShaders = function (progarm) { - const result = WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.getAttachedShaders + ',' + progarm.id - ); - const [type, ...ids] = result; - return ids.map(id => this._map.get(Shader.uuid(id))); - } - - getAttribLocation = function (progarm, name) { - return WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.getAttribLocation + ',' + progarm.id + ',' + name - ) - } - - getBufferParameter = function (target, pname) { - const result = WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.getBufferParameter + ',' + target + ',' + pname - ); - const [type, res] = getBufferParameter; - return res; - } - - getError = function () { - const result = WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.getError + '' - ) - return result; - } - - getExtension = function (name) { - return null; - } - - getFramebufferAttachmentParameter = function (target, attachment, pname) { - const result = WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.getFramebufferAttachmentParameter + ',' + target + ',' + attachment + ',' + pname - ) - switch (pname) { - case GLenum.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: - return this._map.get(Renderbuffer.uuid(result)) || this._map.get(Texture.uuid(result)) || null; - default: - return result; - } - } - - getParameter = function (pname) { - const result = WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.getParameter + ',' + pname - ) - switch (pname) { - case GLenum.VERSION: - return this._version; - case GLenum.ARRAY_BUFFER_BINDING: // buffer - case GLenum.ELEMENT_ARRAY_BUFFER_BINDING: // buffer - return this._map.get(Buffer.uuid(result)) || null; - case GLenum.CURRENT_PROGRAM: // program - return this._map.get(Program.uuid(result)) || null; - case GLenum.FRAMEBUFFER_BINDING: // framebuffer - return this._map.get(Framebuffer.uuid(result)) || null; - case GLenum.RENDERBUFFER_BINDING: // renderbuffer - return this._map.get(Renderbuffer.uuid(result)) || null; - case GLenum.TEXTURE_BINDING_2D: // texture - case GLenum.TEXTURE_BINDING_CUBE_MAP: // texture - return this._map.get(Texture.uuid(result)) || null; - case GLenum.ALIASED_LINE_WIDTH_RANGE: // Float32Array - case GLenum.ALIASED_POINT_SIZE_RANGE: // Float32Array - case GLenum.BLEND_COLOR: // Float32Array - case GLenum.COLOR_CLEAR_VALUE: // Float32Array - case GLenum.DEPTH_RANGE: // Float32Array - case GLenum.MAX_VIEWPORT_DIMS: // Int32Array - case GLenum.SCISSOR_BOX: // Int32Array - case GLenum.VIEWPORT: // Int32Array - case GLenum.COMPRESSED_TEXTURE_FORMATS: // Uint32Array - default: - const [type, ...res] = result.split(','); - if (res.length === 1) { - return Number(res[0]); - } else { - return res.map(Number); - } - } - } - - getProgramInfoLog = function (progarm) { - return WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.getProgramInfoLog + ',' + progarm.id - ) - } - - getProgramParameter = function (program, pname) { - const res = WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.getProgramParameter + ',' + program.id + ',' + pname - ); - - const [type, result] = res.split(',').map(i => parseInt(i)); - - if (type === 1) { - return Boolean(result); - } else if (type === 2) { - return result; - } else { - throw new Error('Unrecongized program paramater ' + res + ', type: ' + typeof res); - } - } - - - getRenderbufferParameter = function (target, pname) { - const result = WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.getRenderbufferParameter + ',' + target + ',' + pname - ) - return result; - } - - - getShaderInfoLog = function (shader) { - return WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.getShaderInfoLog + ',' + shader.id - ); - } - - getShaderParameter = function (shader, pname) { - return WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.getShaderParameter + ',' + shader.id + ',' + pname - ) - } - - getShaderPrecisionFormat = function (shaderType, precisionType) { - const [rangeMin, rangeMax, precision] = WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.getShaderPrecisionFormat + ',' + shaderType + ',' + precisionType - ); - const shaderPrecisionFormat = new ShaderPrecisionFormat({ - rangeMin: Number(rangeMin), - rangeMax: Number(rangeMax), - precision: Number(precision) - }); - return shaderPrecisionFormat; - } - - getShaderSource = function (shader) { - const result = WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.getShaderSource + ',' + shader.id - ); - return result; - } - - getSupportedExtensions = function () { - return Object.keys({}); - } - - getTexParameter = function (target, pname) { - const result = WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.getTexParameter + ',' + target + ',' + pname - ) - return result; - } - - getUniformLocation = function (program, name) { - const id = WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.getUniformLocation + ',' + program.id + ',' + name - ); - if (id === -1) { - return null; - } else { - return new UniformLocation(Number(id)); - } - } - - getVertexAttrib = function (index, pname) { - const result = WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.getVertexAttrib + ',' + index + ',' + pname - ); - switch (pname) { - case GLenum.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: - return this._map.get(Buffer.uuid(result)) || null; - case GLenum.CURRENT_VERTEX_ATTRIB: // Float32Array - default: - return result; - } - } - - getVertexAttribOffset = function (index, pname) { - const result = WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.getVertexAttribOffset + ',' + index + ',' + pname - ) - return Number(result); - } - - isBuffer = function (buffer) { - const result = WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.isBuffer + ',' + buffer.id - ) - return Boolean(result); - } - - isContextLost = function () { - return false; - } - - isEnabled = function (cap) { - const result = WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.isEnabled + ',' + cap - ) - return Boolean(result); - } - - isFramebuffer = function (framebuffer) { - const result = WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.isFramebuffer + ',' + framebuffer.id - ) - return Boolean(result); - } - - isProgram = function (program) { - const result = WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.isProgram + ',' + program.id - ) - return Boolean(result); - } - - isRenderbuffer = function (renderBuffer) { - const result = WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.isRenderbuffer + ',' + renderbuffer.id - ) - return Boolean(result); - } - - isShader = function (shader) { - const result = WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.isShader + ',' + shader.id - ) - return Boolean(result); - } - - isTexture = function (texture) { - const result = WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.isTexture + ',' + texture.id - ); - return Boolean(result); - } - - lineWidth = function (width) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.lineWidth + ',' + width, - true - ) - } - - linkProgram = function (program) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.linkProgram + ',' + program.id, - true - ); - } - - - pixelStorei = function (pname, param) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.pixelStorei + ',' + pname + ',' + Number(param) - ) - } - - polygonOffset = function (factor, units) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.polygonOffset + ',' + factor + ',' + units - ) - } - - readPixels = function (x, y, width, height, format, type, pixels) { - const result = WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.readPixels + ',' + x + ',' + y + ',' + width + ',' + height + ',' + format + ',' + type - ) - return result; - } - - renderbufferStorage = function (target, internalFormat, width, height) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.renderbufferStorage + ',' + target + ',' + internalFormat + ',' + width + ',' + height, - true - ) - } - - sampleCoverage = function (value, invert) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.sampleCoverage + ',' + value + ',' + Number(invert), - true - ) - } - - scissor = function (x, y, width, height) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.scissor + ',' + x + ',' + y + ',' + width + ',' + height, - true - ) - } - - shaderSource = function (shader, source) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.shaderSource + ',' + shader.id + ',' + source - ) - } - - stencilFunc = function (func, ref, mask) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.stencilFunc + ',' + func + ',' + ref + ',' + mask, - true - ) - } - - stencilFuncSeparate = function (face, func, ref, mask) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.stencilFuncSeparate + ',' + face + ',' + func + ',' + ref + ',' + mask, - true - ) - } - - stencilMask = function (mask) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.stencilMask + ',' + mask, - true - ) - } - - stencilMaskSeparate = function (face, mask) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.stencilMaskSeparate + ',' + face + ',' + mask, - true - ) - } - - stencilOp = function (fail, zfail, zpass) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.stencilOp + ',' + fail + ',' + zfail + ',' + zpass - ) - } - - stencilOpSeparate = function (face, fail, zfail, zpass) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.stencilOp + ',' + face + ',' + fail + ',' + zfail + ',' + zpass, - true - ) - } - - texImage2D = function (...args) { - WebGLRenderingContext.GBridge.texImage2D(this._canvas.id, ...args); - } - - - texParameterf = function (target, pname, param) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.texParameterf + ',' + target + ',' + pname + ',' + param, - true - ) - } - - texParameteri = function (target, pname, param) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.texParameteri + ',' + target + ',' + pname + ',' + param - ) - } - - texSubImage2D = function (...args) { - WebGLRenderingContext.GBridge.texSubImage2D(this._canvas.id, ...args); - } - - uniform1f = function (location, v0) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.uniform1f + ',' + location.id + ',' + v0 - ) - } - - uniform1fv = function (location, value) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.uniform1fv + ',' + location.id + ',' + processArray(value), - true - ) - } - - uniform1i = function (location, v0) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.uniform1i + ',' + location.id + ',' + v0, - // true - ) - } - - uniform1iv = function (location, value) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.uniform1iv + ',' + location.id + ',' + processArray(value), - true - ) - } - - uniform2f = function (location, v0, v1) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.uniform2f + ',' + location.id + ',' + v0 + ',' + v1, - true - ) - } - - uniform2fv = function (location, value) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.uniform2fv + ',' + location.id + ',' + processArray(value), - true - ) - } - - uniform2i = function (location, v0, v1) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.uniform2i + ',' + location.id + ',' + v0 + ',' + v1, - true - ) - } - - uniform2iv = function (location, value) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.uniform2iv + ',' + location.id + ',' + processArray(value), - true - ) - } - - uniform3f = function (location, v0, v1, v2) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.uniform3f + ',' + location.id + ',' + v0 + ',' + v1 + ',' + v2, - true - ) - } - - uniform3fv = function (location, value) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.uniform3fv + ',' + location.id + ',' + processArray(value), - true - ) - } - - uniform3i = function (location, v0, v1, v2) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.uniform3i + ',' + location.id + ',' + v0 + ',' + v1 + ',' + v2, - true - ) - } - - uniform3iv = function (location, value) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.uniform3iv + ',' + location.id + ',' + processArray(value), - true - ) - } - - uniform4f = function (location, v0, v1, v2, v3) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.uniform4f + ',' + location.id + ',' + v0 + ',' + v1 + ',' + v2 + ',' + v3, - true - ) - } - - uniform4fv = function (location, value) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.uniform4fv + ',' + location.id + ',' + processArray(value), - true - ) - } - - uniform4i = function (location, v0, v1, v2, v3) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.uniform4i + ',' + location.id + ',' + v0 + ',' + v1 + ',' + v2 + ',' + v3, - true - ) - } - - uniform4iv = function (location, value) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.uniform4iv + ',' + location.id + ',' + processArray(value, true), - true - ) - } - - uniformMatrix2fv = function (location, transpose, value) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.uniformMatrix2fv + ',' + location.id + ',' + Number(transpose) + ',' + processArray(value), - true - ) - } - - uniformMatrix3fv = function (location, transpose, value) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.uniformMatrix3fv + ',' + location.id + ',' + Number(transpose) + ',' + processArray(value), - true - ) - } - - uniformMatrix4fv = function (location, transpose, value) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.uniformMatrix4fv + ',' + location.id + ',' + Number(transpose) + ',' + processArray(value), - true - ); - } - - useProgram = function (progarm) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.useProgram + ',' + progarm.id + '', - true - ) - } - - - validateProgram = function (program) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.validateProgram + ',' + program.id, - true - ) - } - - vertexAttrib1f = function (index, v0) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.vertexAttrib1f + ',' + index + ',' + v0, - true - ) - } - - vertexAttrib2f = function (index, v0, v1) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.vertexAttrib2f + ',' + index + ',' + v0 + ',' + v1, - true - ) - } - - vertexAttrib3f = function (index, v0, v1, v2) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.vertexAttrib3f + ',' + index + ',' + v0 + ',' + v1 + ',' + v2, - true - ) - } - - vertexAttrib4f = function (index, v0, v1, v2, v3) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.vertexAttrib4f + ',' + index + ',' + v0 + ',' + v1 + ',' + v2 + ',' + v3, - true - ) - } - - vertexAttrib1fv = function (index, value) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.vertexAttrib1fv + ',' + index + ',' + processArray(value), - true - ) - } - - vertexAttrib2fv = function (index, value) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.vertexAttrib2fv + ',' + index + ',' + processArray(value), - true - ) - } - - vertexAttrib3fv = function (index, value) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.vertexAttrib3fv + ',' + index + ',' + processArray(value), - true - ) - } - - vertexAttrib4fv = function (index, value) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.vertexAttrib4fv + ',' + index + ',' + processArray(value), - true - ) - } - - vertexAttribPointer = function (index, size, type, normalized, stride, offset) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.vertexAttribPointer + ',' + index + ',' + size + ',' + type + ',' + Number(normalized) + ',' + stride + ',' + offset, - true - ) - } - - viewport = function (x, y, width, height) { - WebGLRenderingContext.GBridge.callNative( - this._canvas.id, - GLmethod.viewport + ',' + x + ',' + y + ',' + width + ',' + height, - true - ) - } -} \ No newline at end of file diff --git a/uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-webgl/Shader.js b/uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-webgl/Shader.js deleted file mode 100644 index 2917b59..0000000 --- a/uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-webgl/Shader.js +++ /dev/null @@ -1,22 +0,0 @@ -import {getTransferedObjectUUID} from './classUtils'; - -const name = 'WebGLShader'; - -function uuid(id) { - return getTransferedObjectUUID(name, id); -} - -export default class WebGLShader { - className = name; - - constructor(id, type) { - this.id = id; - this.type = type; - } - - static uuid = uuid; - - uuid() { - return uuid(this.id); - } -} \ No newline at end of file diff --git a/uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-webgl/ShaderPrecisionFormat.js b/uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-webgl/ShaderPrecisionFormat.js deleted file mode 100644 index 8b70e9a..0000000 --- a/uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-webgl/ShaderPrecisionFormat.js +++ /dev/null @@ -1,11 +0,0 @@ -export default class WebGLShaderPrecisionFormat { - className = 'WebGLShaderPrecisionFormat'; - - constructor({ - rangeMin, rangeMax, precision - }) { - this.rangeMin = rangeMin; - this.rangeMax = rangeMax; - this.precision = precision; - } -} \ No newline at end of file diff --git a/uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-webgl/Texture.js b/uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-webgl/Texture.js deleted file mode 100644 index 089181e..0000000 --- a/uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-webgl/Texture.js +++ /dev/null @@ -1,22 +0,0 @@ -import {getTransferedObjectUUID} from './classUtils'; - -const name = 'WebGLTexture'; - -function uuid(id) { - return getTransferedObjectUUID(name, id); -} - -export default class WebGLTexture { - className = name; - - constructor(id, type) { - this.id = id; - this.type = type; - } - - static uuid = uuid; - - uuid() { - return uuid(this.id); - } -} \ No newline at end of file diff --git a/uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-webgl/UniformLocation.js b/uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-webgl/UniformLocation.js deleted file mode 100644 index f19c94c..0000000 --- a/uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-webgl/UniformLocation.js +++ /dev/null @@ -1,22 +0,0 @@ -import {getTransferedObjectUUID} from './classUtils'; - -const name = 'WebGLUniformLocation'; - -function uuid(id) { - return getTransferedObjectUUID(name, id); -} - -export default class WebGLUniformLocation { - className = name; - - constructor(id, type) { - this.id = id; - this.type = type; - } - - static uuid = uuid; - - uuid() { - return uuid(this.id); - } -} \ No newline at end of file diff --git a/uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-webgl/classUtils.js b/uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-webgl/classUtils.js deleted file mode 100644 index 59f02e1..0000000 --- a/uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/context-webgl/classUtils.js +++ /dev/null @@ -1,3 +0,0 @@ -export function getTransferedObjectUUID(name, id) { - return `${name.toLowerCase()}-${id}`; -} \ No newline at end of file diff --git a/uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/env/canvas.js b/uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/env/canvas.js deleted file mode 100644 index 57df6fe..0000000 --- a/uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/env/canvas.js +++ /dev/null @@ -1,74 +0,0 @@ -import GContext2D from '../context-2d/RenderingContext'; -import GContextWebGL from '../context-webgl/RenderingContext'; - -export default class GCanvas { - - // static GBridge = null; - - id = null; - - _needRender = true; - - constructor(id, { disableAutoSwap }) { - this.id = id; - - this._disableAutoSwap = disableAutoSwap; - if (disableAutoSwap) { - this._swapBuffers = () => { - GCanvas.GBridge.render(this.id); - } - } - } - - getContext(type) { - - let context = null; - - if (type.match(/webgl/i)) { - context = new GContextWebGL(this); - - context.componentId = this.id; - - if (!this._disableAutoSwap) { - const render = () => { - if (this._needRender) { - GCanvas.GBridge.render(this.id); - this._needRender = false; - } - } - setInterval(render, 16); - } - - GCanvas.GBridge.callSetContextType(this.id, 1); // 0 for 2d; 1 for webgl - } else if (type.match(/2d/i)) { - context = new GContext2D(this); - - context.componentId = this.id; - -// const render = ( callback ) => { -// -// const commands = context._drawCommands; -// context._drawCommands = ''; -// -// GCanvas.GBridge.render2d(this.id, commands, callback); -// this._needRender = false; -// } -// //draw方法触发 -// context._flush = render; -// //setInterval(render, 16); - - GCanvas.GBridge.callSetContextType(this.id, 0); - } else { - throw new Error('not supported context ' + type); - } - - return context; - - } - - reset() { - GCanvas.GBridge.callReset(this.id); - } - - -} \ No newline at end of file diff --git a/uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/env/image.js b/uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/env/image.js deleted file mode 100644 index 458d3cd..0000000 --- a/uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/env/image.js +++ /dev/null @@ -1,96 +0,0 @@ -let incId = 1; - -const noop = function () { }; - -class GImage { - - static GBridge = null; - - constructor() { - this._id = incId++; - this._width = 0; - this._height = 0; - this._src = undefined; - this._onload = noop; - this._onerror = noop; - this.complete = false; - } - - get width() { - return this._width; - } - set width(v) { - this._width = v; - } - - get height() { - return this._height; - } - - set height(v) { - this._height = v; - } - - get src() { - return this._src; - } - - set src(v) { - - if (v.startsWith('//')) { - v = 'http:' + v; - } - - this._src = v; - - GImage.GBridge.perloadImage([this._src, this._id], (data) => { - if (typeof data === 'string') { - data = JSON.parse(data); - } - if (data.error) { - var evt = { type: 'error', target: this }; - this.onerror(evt); - } else { - this.complete = true; - this.width = typeof data.width === 'number' ? data.width : 0; - this.height = typeof data.height === 'number' ? data.height : 0; - var evt = { type: 'load', target: this }; - this.onload(evt); - } - }); - } - - addEventListener(name, listener) { - if (name === 'load') { - this.onload = listener; - } else if (name === 'error') { - this.onerror = listener; - } - } - - removeEventListener(name, listener) { - if (name === 'load') { - this.onload = noop; - } else if (name === 'error') { - this.onerror = noop; - } - } - - get onload() { - return this._onload; - } - - set onload(v) { - this._onload = v; - } - - get onerror() { - return this._onerror; - } - - set onerror(v) { - this._onerror = v; - } -} - -export default GImage; \ No newline at end of file diff --git a/uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/env/tool.js b/uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/env/tool.js deleted file mode 100644 index 1174c7f..0000000 --- a/uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/env/tool.js +++ /dev/null @@ -1,24 +0,0 @@ - -export function ArrayBufferToBase64 (buffer) { - var binary = ''; - var bytes = new Uint8ClampedArray(buffer); - for (var len = bytes.byteLength, i = 0; i < len; i++) { - binary += String.fromCharCode(bytes[i]); - } - return btoa(binary); -} - -export function Base64ToUint8ClampedArray(base64String) { - const padding = '='.repeat((4 - base64String.length % 4) % 4); - const base64 = (base64String + padding) - .replace(/\-/g, '+') - .replace(/_/g, '/'); - - const rawData = atob(base64); - const outputArray = new Uint8ClampedArray(rawData.length); - - for (let i = 0; i < rawData.length; ++i) { - outputArray[i] = rawData.charCodeAt(i); - } - return outputArray; -} \ No newline at end of file diff --git a/uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/index.js b/uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/index.js deleted file mode 100644 index 3dcc62a..0000000 --- a/uni_modules/uv-qrcode/components/uv-qrcode/gcanvas/index.js +++ /dev/null @@ -1,39 +0,0 @@ -import GCanvas from './env/canvas'; -import GImage from './env/image'; - -import GWebGLRenderingContext from './context-webgl/RenderingContext'; -import GContext2D from './context-2d/RenderingContext'; - -import GBridgeWeex from './bridge/bridge-weex'; - -export let Image = GImage; - -export let WeexBridge = GBridgeWeex; - -export function enable(el, { bridge, debug, disableAutoSwap, disableComboCommands } = {}) { - - const GBridge = GImage.GBridge = GCanvas.GBridge = GWebGLRenderingContext.GBridge = GContext2D.GBridge = bridge; - - GBridge.callEnable(el.ref, [ - 0, // renderMode: 0--RENDERMODE_WHEN_DIRTY, 1--RENDERMODE_CONTINUOUSLY - -1, // hybridLayerType: 0--LAYER_TYPE_NONE 1--LAYER_TYPE_SOFTWARE 2--LAYER_TYPE_HARDWARE - false, // supportScroll - false, // newCanvasMode - 1, // compatible - 'white',// clearColor - false // sameLevel: newCanvasMode = true && true => GCanvasView and Webview is same level - ]); - - if (debug === true) { - GBridge.callEnableDebug(); - } - if (disableComboCommands) { - GBridge.callEnableDisableCombo(); - } - - var canvas = new GCanvas(el.ref, { disableAutoSwap }); - canvas.width = el.style.width; - canvas.height = el.style.height; - - return canvas; -}; \ No newline at end of file diff --git a/uni_modules/uv-qrcode/components/uv-qrcode/props.js b/uni_modules/uv-qrcode/components/uv-qrcode/props.js deleted file mode 100644 index 0ca7a5a..0000000 --- a/uni_modules/uv-qrcode/components/uv-qrcode/props.js +++ /dev/null @@ -1,85 +0,0 @@ -export default { - props: { - //二维码内容 - value: { - type: [String, Number] - }, - //选项 - options: { - type: Object, - default: () => { - return {}; - } - }, - //二维码大小 - size: { - type: [String, Number], - default: 200 - }, - //导出的文件类型 - fileType: { - type: String, - default: 'png' - }, - //是否初始化组件后就开始生成 - start: { - type: Boolean, - default: true - }, - //是否数据发生改变自动重绘 - auto: { - type: Boolean, - default: true - }, - //隐藏组件 - hide: { - type: Boolean, - default: false - }, - /** - * canvas 类型,微信小程序默认使用2d,非2d微信官方已放弃维护,问题比较多 - * 注意:微信小程序type2d手机上正常,PC上微信内打开小程序toDataURL报错,看后期微信官方团队会不会做兼容,不兼容的话只能在自行判断在PC使用非2d,或者直接提示用户请在手机上操作,微信团队的海报中心小程序就是这么做的 - */ - type: { - type: String, - default: () => { - // #ifdef MP-WEIXIN - return '2d'; - // #endif - // #ifndef MP-WEIXIN - return 'normal'; - // #endif - } - }, - //队列绘制,主要针对NVue端 - queue: { - type: Boolean, - default: false - }, - //是否队列加载图片,可减少canvas发起的网络资源请求,节省服务器资源 - isQueueLoadImage: { - type: Boolean, - default: false - }, - //loading态 - loading: { - type: Boolean, - default: undefined - }, - //H5保存即自动下载(在支持的环境下),默认false为仅弹层提示用户需要长按图片保存,不会自动下载 - h5SaveIsDownload: { - type: Boolean, - default: false - }, - //H5下载名称 - h5DownloadName: { - type: String, - default: 'uvQRCode' - }, - // H5保存二维码时候是否显示提示 - h5SaveTip: { - type: Boolean, - default: true - } - } -} \ No newline at end of file diff --git a/uni_modules/uv-qrcode/components/uv-qrcode/qrcode.js b/uni_modules/uv-qrcode/components/uv-qrcode/qrcode.js deleted file mode 100644 index 0576f94..0000000 --- a/uni_modules/uv-qrcode/components/uv-qrcode/qrcode.js +++ /dev/null @@ -1,34 +0,0 @@ -//--------------------------------------------------------------------- -// uQRCode二维码生成插件 v4.0.6 -// -// uQRCode是一款基于Javascript环境开发的二维码生成插件,适用所有Javascript运行环境的前端应用和Node.js。 -// -// Copyright (c) Sansnn uQRCode All rights reserved. -// -// Licensed under the Apache License, Version 2.0. -// http://www.apache.org/licenses/LICENSE-2.0 -// -// github地址: -// https://github.com/Sansnn/uQRCode -// -// npm地址: -// https://www.npmjs.com/package/uqrcodejs -// -// uni-app插件市场地址: -// https://ext.dcloud.net.cn/plugin?id=1287 -// -// 复制使用请保留本段注释,感谢支持开源! -// -//--------------------------------------------------------------------- - -//--------------------------------------------------------------------- -// 当前文件格式为 es,将 bundle 保留为 ES 模块文件,适用于其他打包工具以及支持 - - \ No newline at end of file diff --git a/uni_modules/uv-qrcode/package.json b/uni_modules/uv-qrcode/package.json deleted file mode 100644 index 506cd89..0000000 --- a/uni_modules/uv-qrcode/package.json +++ /dev/null @@ -1,87 +0,0 @@ -{ - "id": "uv-qrcode", - "displayName": "uv-qrcode 二维码 全面兼容vue3+2、app、h5、小程序等多端", - "version": "1.0.4", - "description": "该组件是超级强大二维码生成功能,可扩展性高。自定义二维码样式,如随机颜色、圆点、方块、块与块之间的间距等等,具体请查看文档。", - "keywords": [ - "uv-qrcode", - "qrcode", - "uvui", - "uv-ui", - "二维码" -], - "repository": "", - "engines": { - "HBuilderX": "^3.1.0" - }, - "dcloudext": { - "type": "component-vue", - "sale": { - "regular": { - "price": "0.00" - }, - "sourcecode": { - "price": "0.00" - } - }, - "contact": { - "qq": "" - }, - "declaration": { - "ads": "无", - "data": "插件不采集任何数据", - "permissions": "无" - }, - "npmurl": "" - }, - "uni_modules": { - "dependencies": [ - "uv-ui-tools" - ], - "encrypt": [], - "platforms": { - "cloud": { - "tcb": "y", - "aliyun": "y" - }, - "client": { - "Vue": { - "vue2": "y", - "vue3": "y" - }, - "App": { - "app-vue": "y", - "app-nvue": "y" - }, - "H5-mobile": { - "Safari": "y", - "Android Browser": "y", - "微信浏览器(Android)": "y", - "QQ浏览器(Android)": "y" - }, - "H5-pc": { - "Chrome": "y", - "IE": "y", - "Edge": "y", - "Firefox": "y", - "Safari": "y" - }, - "小程序": { - "微信": "y", - "阿里": "y", - "百度": "y", - "字节跳动": "y", - "QQ": "y", - "钉钉": "u", - "快手": "u", - "飞书": "u", - "京东": "u" - }, - "快应用": { - "华为": "u", - "联盟": "u" - } - } - } - } -} \ No newline at end of file diff --git a/uni_modules/uv-qrcode/readme.md b/uni_modules/uv-qrcode/readme.md deleted file mode 100644 index b9df882..0000000 --- a/uni_modules/uv-qrcode/readme.md +++ /dev/null @@ -1,21 +0,0 @@ -## QRCode 二维码生成器 - -> **组件名:uv-qrcode** - -超级强大二维码生成组件,可扩展性高。自定义二维码样式,如随机颜色、圆点、方块、块与块之间的间距等等,具体请在下方查看文档。 - -灵活配置,开箱即用,文档全面,支持自定义二维码风格。 - -# 查看文档 - -## [下载完整示例项目](https://ext.dcloud.net.cn/plugin?name=uv-ui) (请不要 下载插件ZIP) - -### [更多插件,请关注uv-ui组件库](https://ext.dcloud.net.cn/plugin?name=uv-ui) - - - -![image](https://mp-a667b617-c5f1-4a2d-9a54-683a67cff588.cdn.bspapp.com/uv-ui/banner.png) - - - -#### 如使用过程中有任何问题反馈,或者您对uv-ui有一些好的建议,欢迎加入uv-ui官方交流群:官方QQ群 \ No newline at end of file diff --git a/uni_modules/uv-steps/changelog.md b/uni_modules/uv-steps/changelog.md deleted file mode 100644 index b72c8ec..0000000 --- a/uni_modules/uv-steps/changelog.md +++ /dev/null @@ -1,10 +0,0 @@ -## 1.0.3(2023-06-29) -1. 增加customStyle参数,方便设置样式 -## 1.0.2(2023-06-29) -1. 新增title自定义 -2. 完善文档说明 -## 1.0.1(2023-05-16) -1. 优化组件依赖,修改后无需全局引入,组件导入即可使用 -2. 优化部分功能 -## 1.0.0(2023-05-10) -uv-steps 步骤条 diff --git a/uni_modules/uv-steps/components/uv-steps-item/props.js b/uni_modules/uv-steps/components/uv-steps-item/props.js deleted file mode 100644 index d15beef..0000000 --- a/uni_modules/uv-steps/components/uv-steps-item/props.js +++ /dev/null @@ -1,25 +0,0 @@ -export default { - props: { - // 标题 - title: { - type: [String, Number], - default: '' - }, - // 描述文本 - desc: { - type: [String, Number], - default: '' - }, - // 图标大小 - iconSize: { - type: [String, Number], - default: 17 - }, - // 当前步骤是否处于失败状态 - error: { - type: Boolean, - default: false - }, - ...uni.$uv?.props?.stepsItem - } -} \ No newline at end of file diff --git a/uni_modules/uv-steps/components/uv-steps-item/uv-steps-item.vue b/uni_modules/uv-steps/components/uv-steps-item/uv-steps-item.vue deleted file mode 100644 index 474d970..0000000 --- a/uni_modules/uv-steps/components/uv-steps-item/uv-steps-item.vue +++ /dev/null @@ -1,347 +0,0 @@ - - - - - diff --git a/uni_modules/uv-steps/components/uv-steps/props.js b/uni_modules/uv-steps/components/uv-steps/props.js deleted file mode 100644 index a79e6b2..0000000 --- a/uni_modules/uv-steps/components/uv-steps/props.js +++ /dev/null @@ -1,40 +0,0 @@ -export default { - props: { - // 排列方向 - direction: { - type: String, - default: 'row' - }, - // 设置第几个步骤 - current: { - type: [String, Number], - default: 0 - }, - // 激活状态颜色 - activeColor: { - type: String, - default: '#3c9cff' - }, - // 未激活状态颜色 - inactiveColor: { - type: String, - default: '#969799' - }, - // 激活状态的图标 - activeIcon: { - type: String, - default: '' - }, - // 未激活状态图标 - inactiveIcon: { - type: String, - default: '' - }, - // 是否显示点类型 - dot: { - type: Boolean, - default: false - }, - ...uni.$uv?.props?.steps - } -} \ No newline at end of file diff --git a/uni_modules/uv-steps/components/uv-steps/uv-steps.vue b/uni_modules/uv-steps/components/uv-steps/uv-steps.vue deleted file mode 100644 index 8ec89ee..0000000 --- a/uni_modules/uv-steps/components/uv-steps/uv-steps.vue +++ /dev/null @@ -1,83 +0,0 @@ - - - - - diff --git a/uni_modules/uv-steps/package.json b/uni_modules/uv-steps/package.json deleted file mode 100644 index 92891fa..0000000 --- a/uni_modules/uv-steps/package.json +++ /dev/null @@ -1,89 +0,0 @@ -{ - "id": "uv-steps", - "displayName": "uv-steps 步骤条 全面兼容小程序、nvue、vue2、vue3等多端", - "version": "1.0.3", - "description": "步骤条组件一般用于完成一个任务要分几个步骤,标识目前处于第几步的场景。", - "keywords": [ - "uv-steps", - "uvui", - "uv-ui", - "steps", - "步骤条" -], - "repository": "", - "engines": { - "HBuilderX": "^3.1.0" - }, - "dcloudext": { - "type": "component-vue", - "sale": { - "regular": { - "price": "0.00" - }, - "sourcecode": { - "price": "0.00" - } - }, - "contact": { - "qq": "" - }, - "declaration": { - "ads": "无", - "data": "插件不采集任何数据", - "permissions": "无" - }, - "npmurl": "" - }, - "uni_modules": { - "dependencies": [ - "uv-ui-tools", - "uv-icon", - "uv-text" - ], - "encrypt": [], - "platforms": { - "cloud": { - "tcb": "y", - "aliyun": "y" - }, - "client": { - "Vue": { - "vue2": "y", - "vue3": "y" - }, - "App": { - "app-vue": "y", - "app-nvue": "n" - }, - "H5-mobile": { - "Safari": "y", - "Android Browser": "y", - "微信浏览器(Android)": "y", - "QQ浏览器(Android)": "y" - }, - "H5-pc": { - "Chrome": "y", - "IE": "y", - "Edge": "y", - "Firefox": "y", - "Safari": "y" - }, - "小程序": { - "微信": "y", - "阿里": "y", - "百度": "y", - "字节跳动": "y", - "QQ": "y", - "钉钉": "u", - "快手": "u", - "飞书": "u", - "京东": "u" - }, - "快应用": { - "华为": "u", - "联盟": "u" - } - } - } - } -} \ No newline at end of file diff --git a/uni_modules/uv-steps/readme.md b/uni_modules/uv-steps/readme.md deleted file mode 100644 index fca485a..0000000 --- a/uni_modules/uv-steps/readme.md +++ /dev/null @@ -1,11 +0,0 @@ -## Steps 步骤条 - -> **组件名:uv-steps** - -该组件一般用于完成一个任务要分几个步骤,标识目前处于第几步的场景。 - -### 查看文档 - -### [完整示例项目下载 | 关注更多组件](https://ext.dcloud.net.cn/plugin?name=uv-ui) - -#### 如使用过程中有任何问题,或者您对uv-ui有一些好的建议,欢迎加入 uv-ui 交流群:uv-ui官方QQ群 diff --git a/uni_modules/uv-swipe-action/changelog.md b/uni_modules/uv-swipe-action/changelog.md deleted file mode 100644 index 033f157..0000000 --- a/uni_modules/uv-swipe-action/changelog.md +++ /dev/null @@ -1,11 +0,0 @@ -## 1.0.4(2023-10-13) -1. 优化 -## 1.0.3(2023-10-13) -1. unmounted兼容vue3 -## 1.0.2(2023-05-27) -1. 不支持抖音小程序说明 -## 1.0.1(2023-05-16) -1. 优化组件依赖,修改后无需全局引入,组件导入即可使用 -2. 优化部分功能 -## 1.0.0(2023-05-10) -uv-swipe-action 滑动单元格 diff --git a/uni_modules/uv-swipe-action/components/uv-swipe-action-item/index - backup.wxs b/uni_modules/uv-swipe-action/components/uv-swipe-action-item/index - backup.wxs deleted file mode 100644 index 14afec9..0000000 --- a/uni_modules/uv-swipe-action/components/uv-swipe-action-item/index - backup.wxs +++ /dev/null @@ -1,256 +0,0 @@ -/** - * 此为wxs模块,只支持APP-VUE,微信和QQ小程序以及H5平台 - * wxs内部不支持es6语法,变量只能使用var定义,无法使用解构,箭头函数等特性 - */ - -// 开始触摸 -function touchstart(event, ownerInstance) { - // 触发事件的组件的ComponentDescriptor实例 - var instance = event.instance - // wxs内的局部变量快照,此快照是属于整个组件的,在touchstart和touchmove事件中都能获取到相同的结果 - var state = instance.getState() - if (state.disable) return - var touches = event.touches - // 如果进行的是多指触控,不允许进行操作 - if (touches && touches.length > 1) return - // 标识当前为滑动中状态 - state.moving = true - // 记录触摸开始点的坐标值 - state.startX = touches[0].pageX - state.startY = touches[0].pageY -} - -// 触摸滑动 -function touchmove(event, ownerInstance) { - // 触发事件的组件的ComponentDescriptor实例 - var instance = event.instance - // wxs内的局部变量快照 - var state = instance.getState() - if (state.disabled || !state.moving) return - - var touches = event.touches - var pageX = touches[0].pageX - var pageY = touches[0].pageY - var moveX = pageX - state.startX - var moveY = pageY - state.startY - var buttonsWidth = state.buttonsWidth - - // 移动的X轴距离大于Y轴距离,也即终点与起点位置连线,与X轴夹角小于45度时,禁止页面滚动 - if (Math.abs(moveX) > Math.abs(moveY) || Math.abs(moveX) > state.threshold) { - event.preventDefault() - event.stopPropagation() - } - // 如果移动的X轴距离小于Y轴距离,也即终点位置与起点位置连线,与Y轴夹角小于45度时,认为是页面上下滑动,而不是左右滑动单元格 - if (Math.abs(moveX) < Math.abs(moveY)) return - - // 限制右滑的距离,不允许内容部分往右偏移,右滑会导致X轴偏移值大于0,以此做判断 - // 此处不能直接return,因为滑动过程中会缺失某些关键点坐标,会导致错乱,最好的办法就是 - // 在超出后,设置为0 - if (state.status === 'open') { - // 在开启状态下,向左滑动,需忽略 - if (moveX < 0) moveX = 0 - // 想要收起菜单,最大能移动的距离为按钮的总宽度 - if (moveX > buttonsWidth) moveX = buttonsWidth - // 如果是已经打开了的状态,向左滑动时,移动收起菜单 - moveSwipeAction(-buttonsWidth + moveX, instance, ownerInstance) - } else { - // 关闭状态下,右滑动需忽略 - if (moveX > 0) moveX = 0 - // 滑动的距离不允许超过所有按钮的总宽度,此时只能是左滑,最终设置按钮的总宽度,同时为负数 - if (Math.abs(moveX) > buttonsWidth) moveX = -buttonsWidth - // 只要是在滑过程中,就不断移动菜单的内容部分,从而使隐藏的菜单显示出来 - moveSwipeAction(moveX, instance, ownerInstance) - } -} - -// 触摸结束 -function touchend(event, ownerInstance) { - // 触发事件的组件的ComponentDescriptor实例 - var instance = event.instance - // wxs内的局部变量快照 - var state = instance.getState() - if (!state.moving || state.disabled) return - var touches = event.changedTouches ? event.changedTouches[0] : {} - var pageX = touches.pageX - var pageY = touches.pageY - var moveX = pageX - state.startX - if (state.status === 'open') { - // 在展开的状态下,继续左滑,无需操作 - if (moveX < 0) return - // 在开启状态下,点击一下内容区域,moveX为0,也即没有进行移动,这时执行收起菜单逻辑 - if (moveX === 0) { - return closeSwipeAction(instance, ownerInstance) - } - // 在开启状态下,滑动距离小于阈值,则默认为不关闭,同时恢复原来的打开状态 - if (Math.abs(moveX) < state.threshold) { - openSwipeAction(instance, ownerInstance) - } else { - // 如果滑动距离大于阈值,则执行收起逻辑 - closeSwipeAction(instance, ownerInstance) - } - } else { - // 在关闭的状态下,右滑,无需操作 - if (moveX > 0) return - // 理由同上 - if (Math.abs(moveX) < state.threshold) { - closeSwipeAction(instance, ownerInstance) - } else { - openSwipeAction(instance, ownerInstance) - } - } -} - -// 获取过渡时间 -function getDuration(value) { - if (value.toString().indexOf('s') >= 0) return value - return value > 30 ? value + 'ms' : value + 's' -} - -// 滑动结束时判断滑动的方向 -function getMoveDirection(instance, ownerInstance) { - var state = instance.getState() -} - -// 移动滑动选择器内容区域,同时显示出其隐藏的菜单 -function moveSwipeAction(moveX, instance, ownerInstance) { - var state = instance.getState() - // 获取所有按钮的实例,需要通过它去设置按钮的位移 - var buttons = ownerInstance.selectAllComponents('.uv-swipe-action-item__right__button') - var len = buttons.length - var previewButtonsMoveX = 0 - - // 设置菜单内容部分的偏移 - instance.requestAnimationFrame(function() { - instance.setStyle({ - // 设置translateX的值 - 'transition': 'none', - transform: 'translateX(' + moveX + 'px)', - '-webkit-transform': 'translateX(' + moveX + 'px)' - }) - // 折叠按钮动画 - for (var i = len - 1; i >= 0; i--) { - // 通过比例,得出元素自身该移动的距离 - var translateX = state.buttons[i].width / state.buttonsWidth * moveX - // 最终移动的距离,是通过自身比例算出的距离,再加上在它之前所有按钮移动的距离之和 - var realTranslateX = translateX + previewButtonsMoveX - buttons[i].setStyle({ - // 在移动期间,不能使用过渡效果,否则会造成卡顿,本质原因是每次移动一点,就要花一定时间去过渡这个过程 - 'transition': 'none', - 'transform': 'translateX(' + realTranslateX + 'px)', - '-webkit-transform': 'translateX(' + realTranslateX + 'px)' - }) - // 记录本按钮之前的所有按钮的移动距离之和 - previewButtonsMoveX += translateX - } - }) -} - -// 一次性展开滑动菜单 -function openSwipeAction(instance, ownerInstance) { - var state = instance.getState() - // 获取所有按钮的实例,需要通过它去设置按钮的位移 - var buttons = ownerInstance.selectAllComponents('.uv-swipe-action-item__right__button') - var len = buttons.length - // 处理duration单位问题 - const duration = getDuration(state.duration) - // 展开过程中,是向左移动,所以X的偏移应该为负值 - var buttonsWidth = -state.buttonsWidth - var previewButtonsMoveX = 0 - instance.requestAnimationFrame(function() { - // 设置菜单主体内容 - instance.setStyle({ - 'transition': 'transform ' + duration, - 'transform': 'translateX(' + buttonsWidth + 'px)', - '-webkit-transform': 'translateX(' + buttonsWidth + 'px)', - }) - // 设置各个隐藏的按钮为展开的状态 - for (var i = len - 1; i >= 0; i--) { - // 通过比例,得出元素自身该移动的距离 - var translateX = state.buttons[i].width / state.buttonsWidth * buttonsWidth - // 最终移动的距离,是通过自身比例算出的距离,再加上在它之前所有按钮移动的距离之和 - var realTranslateX = translateX + previewButtonsMoveX - buttons[i].setStyle({ - // 在移动期间,需要加上动画效果 - 'transition': 'transform ' + duration, - 'transform': 'translateX(' + realTranslateX + 'px)', - '-webkit-transform': 'translateX(' + realTranslateX + 'px)' - }) - // 记录本按钮之前的所有按钮的移动距离之和 - previewButtonsMoveX += translateX - } - }) - setStatus('open', instance) -} - -// 标记菜单的当前状态,open-已经打开,close-已经关闭 -function setStatus(status, instance) { - var state = instance.getState() - state.status = status -} - -// 一次性收起滑动菜单 -function closeSwipeAction(instance, ownerInstance) { - var state = instance.getState() - // 获取所有按钮的实例,需要通过它去设置按钮的位移 - var buttons = ownerInstance.selectAllComponents('.uv-swipe-action-item__right__button') - var len = buttons.length - // 处理duration单位问题 - const duration = getDuration(state.duration) - instance.requestAnimationFrame(function() { - // 设置菜单主体内容 - instance.setStyle({ - 'transition': 'transform ' + duration, - 'transform': 'translateX(0px)', - '-webkit-transform': 'translateX(0px)' - }) - // 设置各个隐藏的按钮为收起的状态 - for (var i = len - 1; i >= 0; i--) { - buttons[i].setStyle({ - 'transition': 'transform ' + duration, - 'transform': 'translateX(0px)', - '-webkit-transform': 'translateX(0px)' - }) - } - }) - setStatus('close', instance) -} - -// show的状态发生变化 -function showChange(newValue, oldValue, ownerInstance, instance) { - var state = instance.getState() - if (state.disabled) return - // 打开或关闭单元格 - if (newValue) { - openSwipeAction(instance, ownerInstance) - } else { - closeSwipeAction(instance, ownerInstance) - } -} - -// 菜单尺寸发生变化 -function sizeChange(newValue, oldValue, ownerInstance, instance) { - // wxs内的局部变量快照 - var state = instance.getState() - state.disabled = newValue.disabled - state.duration = newValue.duration - state.show = newValue.show - state.threshold = newValue.threshold - state.buttons = newValue.buttons - - var len = state.buttons.length - if (len) { - var buttonsWidth = 0 - var buttons = newValue.buttons - for (var i = 0; i < len; i++) { - buttonsWidth += buttons[i].width - } - } - state.buttonsWidth = buttonsWidth -} - -module.exports = { - touchstart: touchstart, - touchmove: touchmove, - touchend: touchend, - sizeChange: sizeChange -} diff --git a/uni_modules/uv-swipe-action/components/uv-swipe-action-item/index.wxs b/uni_modules/uv-swipe-action/components/uv-swipe-action-item/index.wxs deleted file mode 100644 index 87e2479..0000000 --- a/uni_modules/uv-swipe-action/components/uv-swipe-action-item/index.wxs +++ /dev/null @@ -1,225 +0,0 @@ -/** - * 此为wxs模块,只支持APP-VUE,微信和QQ小程序以及H5平台 - * wxs内部不支持es6语法,变量只能使用var定义,无法使用解构,箭头函数等特性 - */ - -// 开始触摸 -function touchstart(event, ownerInstance) { - // 触发事件的组件的ComponentDescriptor实例 - var instance = event.instance - // wxs内的局部变量快照,此快照是属于整个组件的,在touchstart和touchmove事件中都能获取到相同的结果 - var state = instance.getState() - if (state.disabled) return - var touches = event.touches - // 如果进行的是多指触控,不允许进行操作 - if (touches && touches.length > 1) return - // 标识当前为滑动中状态 - state.moving = true - // 记录触摸开始点的坐标值 - state.startX = touches[0].pageX - state.startY = touches[0].pageY - - ownerInstance.callMethod('closeOther') -} - -// 触摸滑动 -function touchmove(event, ownerInstance) { - // 触发事件的组件的ComponentDescriptor实例 - var instance = event.instance - // wxs内的局部变量快照 - var state = instance.getState() - if (state.disabled || !state.moving) return - var touches = event.touches - var pageX = touches[0].pageX - var pageY = touches[0].pageY - var moveX = pageX - state.startX - var moveY = pageY - state.startY - var buttonsWidth = state.buttonsWidth - - // 移动的X轴距离大于Y轴距离,也即终点与起点位置连线,与X轴夹角小于45度时,禁止页面滚动 - if (Math.abs(moveX) > Math.abs(moveY) || Math.abs(moveX) > state.threshold) { - event.preventDefault && event.preventDefault() - event.stopPropagation && event.stopPropagation() - } - // 如果移动的X轴距离小于Y轴距离,也即终点位置与起点位置连线,与Y轴夹角小于45度时,认为是页面上下滑动,而不是左右滑动单元格 - if (Math.abs(moveX) < Math.abs(moveY)) return - - // 限制右滑的距离,不允许内容部分往右偏移,右滑会导致X轴偏移值大于0,以此做判断 - // 此处不能直接return,因为滑动过程中会缺失某些关键点坐标,会导致错乱,最好的办法就是 - // 在超出后,设置为0 - if (state.status === 'open') { - // 在开启状态下,向左滑动,需忽略 - if (moveX < 0) moveX = 0 - // 想要收起菜单,最大能移动的距离为按钮的总宽度 - if (moveX > buttonsWidth) moveX = buttonsWidth - // 如果是已经打开了的状态,向左滑动时,移动收起菜单 - moveSwipeAction(-buttonsWidth + moveX, instance, ownerInstance) - } else { - // 关闭状态下,右滑动需忽略 - if (moveX > 0) moveX = 0 - // 滑动的距离不允许超过所有按钮的总宽度,此时只能是左滑,最终设置按钮的总宽度,同时为负数 - if (Math.abs(moveX) > buttonsWidth) moveX = -buttonsWidth - // 只要是在滑过程中,就不断移动单元格内容部分,从而使隐藏的菜单显示出来 - moveSwipeAction(moveX, instance, ownerInstance) - } -} - -// 触摸结束 -function touchend(event, ownerInstance) { - // 触发事件的组件的ComponentDescriptor实例 - var instance = event.instance - // wxs内的局部变量快照 - var state = instance.getState() - if (!state.moving || state.disabled) return - var touches = event.changedTouches ? event.changedTouches[0] : {} - var pageX = touches.pageX - var pageY = touches.pageY - var moveX = pageX - state.startX - if (state.status === 'open') { - // 在展开的状态下,继续左滑,无需操作 - if (moveX < 0) return - // 在开启状态下,点击一下内容区域,moveX为0,也即没有进行移动,这时执行收起菜单逻辑 - if (moveX === 0) { - return closeSwipeAction(instance, ownerInstance) - } - // 在开启状态下,滑动距离小于阈值,则默认为不关闭,同时恢复原来的打开状态 - if (Math.abs(moveX) < state.threshold) { - openSwipeAction(instance, ownerInstance) - } else { - // 如果滑动距离大于阈值,则执行收起逻辑 - closeSwipeAction(instance, ownerInstance) - } - } else { - // 在关闭的状态下,右滑,无需操作 - if (moveX > 0) return - // 理由同上 - if (Math.abs(moveX) < state.threshold) { - closeSwipeAction(instance, ownerInstance) - } else { - openSwipeAction(instance, ownerInstance) - } - } -} - -// 获取过渡时间 -function getDuration(value) { - if (value.toString().indexOf('s') >= 0) return value - return value > 30 ? value + 'ms' : value + 's' -} - -// 滑动结束时判断滑动的方向 -function getMoveDirection(instance, ownerInstance) { - var state = instance.getState() -} - -// 移动滑动选择器内容区域,同时显示出其隐藏的菜单 -function moveSwipeAction(moveX, instance, ownerInstance) { - var state = instance.getState() - // 获取所有按钮的实例,需要通过它去设置按钮的位移 - var buttons = ownerInstance.selectAllComponents('.uv-swipe-action-item__right__button') - - // 设置菜单内容部分的偏移 - instance.requestAnimationFrame(function() { - instance.setStyle({ - // 设置translateX的值 - 'transition': 'none', - transform: 'translateX(' + moveX + 'px)', - '-webkit-transform': 'translateX(' + moveX + 'px)' - }) - }) -} - -// 一次性展开滑动菜单 -function openSwipeAction(instance, ownerInstance) { - var state = instance.getState() - // 获取所有按钮的实例,需要通过它去设置按钮的位移 - var buttons = ownerInstance.selectAllComponents('.uv-swipe-action-item__right__button') - // 处理duration单位问题 - var duration = getDuration(state.duration) - // 展开过程中,是向左移动,所以X的偏移应该为负值 - var buttonsWidth = -state.buttonsWidth - instance.requestAnimationFrame(function() { - // 设置菜单主体内容 - instance.setStyle({ - 'transition': 'transform ' + duration, - 'transform': 'translateX(' + buttonsWidth + 'px)', - '-webkit-transform': 'translateX(' + buttonsWidth + 'px)', - }) - }) - setStatus('open', instance, ownerInstance) -} - -// 标记菜单的当前状态,open-已经打开,close-已经关闭 -function setStatus(status, instance, ownerInstance) { - var state = instance.getState() - state.status = status - ownerInstance.callMethod('setState', status) -} - -// 一次性收起滑动菜单 -function closeSwipeAction(instance, ownerInstance) { - var state = instance.getState() - // 获取所有按钮的实例,需要通过它去设置按钮的位移 - var buttons = ownerInstance.selectAllComponents('.uv-swipe-action-item__right__button') - var len = buttons.length - // 处理duration单位问题 - var duration = getDuration(state.duration) - instance.requestAnimationFrame(function() { - // 设置菜单主体内容 - instance.setStyle({ - 'transition': 'transform ' + duration, - 'transform': 'translateX(0px)', - '-webkit-transform': 'translateX(0px)' - }) - // 设置各个隐藏的按钮为收起的状态 - for (var i = len - 1; i >= 0; i--) { - buttons[i].setStyle({ - 'transition': 'transform ' + duration, - 'transform': 'translateX(0px)', - '-webkit-transform': 'translateX(0px)' - }) - } - }) - setStatus('close', instance, ownerInstance) -} - -// status的状态发生变化 -function statusChange(newValue, oldValue, ownerInstance, instance) { - var state = instance.getState() - if (state.disabled) return - // 打开或关闭单元格 - if (newValue === 'close' && state.status === 'open') { - closeSwipeAction(instance, ownerInstance) - } else if(newValue === 'open' && state.status === 'close') { - openSwipeAction(instance, ownerInstance) - } -} - -// 菜单尺寸发生变化 -function sizeChange(newValue, oldValue, ownerInstance, instance) { - // wxs内的局部变量快照 - var state = instance.getState() - state.disabled = newValue.disabled - state.duration = newValue.duration - state.show = newValue.show - state.threshold = newValue.threshold - state.buttons = newValue.buttons - - if (state.buttons) { - var len = state.buttons.length - var buttonsWidth = 0 - var buttons = newValue.buttons - for (var i = 0; i < len; i++) { - buttonsWidth += buttons[i].width - } - } - state.buttonsWidth = buttonsWidth -} - -module.exports = { - touchstart: touchstart, - touchmove: touchmove, - touchend: touchend, - sizeChange: sizeChange, - statusChange: statusChange -} diff --git a/uni_modules/uv-swipe-action/components/uv-swipe-action-item/nvue - backup.js b/uni_modules/uv-swipe-action/components/uv-swipe-action-item/nvue - backup.js deleted file mode 100644 index 04fb2a4..0000000 --- a/uni_modules/uv-swipe-action/components/uv-swipe-action-item/nvue - backup.js +++ /dev/null @@ -1,264 +0,0 @@ -// nvue操作dom的库,用于获取dom的尺寸信息 -const dom = uni.requireNativePlugin('dom') -// nvue中用于操作元素动画的库,类似于uni.animation,只不过uni.animation不能用于nvue -const animation = uni.requireNativePlugin('animation') -import { sleep } from '@/uni_modules/uv-ui-tools/libs/function/index.js' -export default { - data() { - return { - // 是否滑动中 - moving: false, - // 状态,open-打开状态,close-关闭状态 - status: 'close', - // 开始触摸点的X和Y轴坐标 - startX: 0, - startY: 0, - // 所有隐藏按钮的尺寸信息数组 - buttons: [], - // 所有按钮的总宽度 - buttonsWidth: 0, - // 记录上一次移动的位置值 - moveX: 0, - // 记录上一次滑动的位置,用于前后两次做对比,如果移动的距离小于某一阈值,则认为前后之间没有移动,为了解决可能存在的通信阻塞问题 - lastX: 0 - } - }, - computed: { - // 获取过渡时间 - getDuratin() { - let duration = String(this.duration) - // 如果ms为单位,返回ms的数值部分 - if (duration.indexOf('ms') >= 0) return parseInt(duration) - // 如果s为单位,为了得到ms的数值,需要乘以1000 - if (duration.indexOf('s') >= 0) return parseInt(duration) * 1000 - // 如果值传了数值,且小于30,认为是s单位 - duration = Number(duration) - return duration < 30 ? duration * 1000 : duration - } - }, - watch: { - show: { - immediate: true, - handler(n) { - - } - } - }, - mounted() { - sleep(20).then(() => { - this.queryRect() - }) - }, - methods: { - close() { - this.closeSwipeAction() - }, - // 触摸单元格 - touchstart(event) { - if (this.disabled) return - this.closeOther() - const { touches } = event - // 记录触摸开始点的坐标值 - this.startX = touches[0].pageX - this.startY = touches[0].pageY - }, - // // 触摸滑动 - touchmove(event) { - if (this.disabled) return - const { touches } = event - const { pageX } = touches[0] - const { pageY } = touches[0] - let moveX = pageX - this.startX - const moveY = pageY - this.startY - const { buttonsWidth } = this - const len = this.buttons.length - - // 判断前后两次的移动距离,如果小于一定值,则不进行移动处理 - if (Math.abs(pageX - this.lastX) < 0.3) return - this.lastX = pageX - - // 移动的X轴距离大于Y轴距离,也即终点与起点位置连线,与X轴夹角小于45度时,禁止页面滚动 - if (Math.abs(moveX) > Math.abs(moveY) || Math.abs(moveX) > this.threshold) { - event.stopPropagation() - } - // 如果移动的X轴距离小于Y轴距离,也即终点位置与起点位置连线,与Y轴夹角小于45度时,认为是页面上下滑动,而不是左右滑动单元格 - if (Math.abs(moveX) < Math.abs(moveY)) return - - // 限制右滑的距离,不允许内容部分往右偏移,右滑会导致X轴偏移值大于0,以此做判断 - // 此处不能直接return,因为滑动过程中会缺失某些关键点坐标,会导致错乱,最好的办法就是 - // 在超出后,设置为0 - if (this.status === 'open') { - // 在开启状态下,向左滑动,需忽略 - if (moveX < 0) moveX = 0 - // 想要收起菜单,最大能移动的距离为按钮的总宽度 - if (moveX > buttonsWidth) moveX = buttonsWidth - // 如果是已经打开了的状态,向左滑动时,移动收起菜单 - this.moveSwipeAction(-buttonsWidth + moveX) - } else { - // 关闭状态下,右滑动需忽略 - if (moveX > 0) moveX = 0 - // 滑动的距离不允许超过所有按钮的总宽度,此时只能是左滑,最终设置按钮的总宽度,同时为负数 - if (Math.abs(moveX) > buttonsWidth) moveX = -buttonsWidth - // 只要是在滑过程中,就不断移动菜单的内容部分,从而使隐藏的菜单显示出来 - this.moveSwipeAction(moveX) - } - }, - // 单元格结束触摸 - touchend(event) { - if (this.disabled) return - const touches = event.changedTouches ? event.changedTouches[0] : {} - const { pageX } = touches - const { pageY } = touches - const { buttonsWidth } = this - this.moveX = pageX - this.startX - if (this.status === 'open') { - // 在展开的状态下,继续左滑,无需操作 - if (this.moveX < 0) this.moveX = 0 - if (this.moveX > buttonsWidth) this.moveX = buttonsWidth - // 在开启状态下,点击一下内容区域,moveX为0,也即没有进行移动,这时执行收起菜单逻辑 - if (this.moveX === 0) { - return this.closeSwipeAction() - } - // 在开启状态下,滑动距离小于阈值,则默认为不关闭,同时恢复原来的打开状态 - if (Math.abs(this.moveX) < this.threshold) { - this.openSwipeAction() - } else { - // 如果滑动距离大于阈值,则执行收起逻辑 - this.closeSwipeAction() - } - } else { - // 在关闭的状态下,右滑,无需操作 - if (this.moveX >= 0) this.moveX = 0 - if (this.moveX <= -buttonsWidth) this.moveX = -buttonsWidth - // 理由同上 - if (Math.abs(this.moveX) < this.threshold) { - this.closeSwipeAction() - } else { - this.openSwipeAction() - } - } - }, - // 移动滑动选择器内容区域,同时显示出其隐藏的菜单 - moveSwipeAction(moveX) { - if (this.moving) return - this.moving = true - - let previewButtonsMoveX = 0 - const len = this.buttons.length - animation.transition(this.$refs['uv-swipe-action-item__content'].ref, { - styles: { - transform: `translateX(${moveX}px)` - }, - timingFunction: 'linear' - }, () => { - this.moving = false - }) - // 按钮的组的长度 - for (let i = len - 1; i >= 0; i--) { - const buttonRef = this.$refs[`uv-swipe-action-item__right__button-${i}`][0].ref - // 通过比例,得出元素自身该移动的距离 - const translateX = this.buttons[i].width / this.buttonsWidth * moveX - // 最终移动的距离,是通过自身比例算出的距离,再加上在它之前所有按钮移动的距离之和 - const realTranslateX = translateX + previewButtonsMoveX - animation.transition(buttonRef, { - styles: { - transform: `translateX(${realTranslateX}px)` - }, - duration: 0, - delay: 0, - timingFunction: 'linear' - }, () => {}) - // 记录本按钮之前的所有按钮的移动距离之和 - previewButtonsMoveX += translateX - } - }, - // 关闭菜单 - closeSwipeAction() { - if (this.status === 'close') return - this.moving = true - const { buttonsWidth } = this - animation.transition(this.$refs['uv-swipe-action-item__content'].ref, { - styles: { - transform: 'translateX(0px)' - }, - duration: this.getDuratin, - timingFunction: 'ease-in-out' - }, () => { - this.status = 'close' - this.moving = false - this.closeHandler() - }) - // 按钮的组的长度 - const len = this.buttons.length - for (let i = len - 1; i >= 0; i--) { - const buttonRef = this.$refs[`uv-swipe-action-item__right__button-${i}`][0].ref - // 如果不满足边界条件,返回 - if (this.buttons.length === 0 || !this.buttons[i] || !this.buttons[i].width) return - - animation.transition(buttonRef, { - styles: { - transform: 'translateX(0px)' - }, - duration: this.getDuratin, - timingFunction: 'ease-in-out' - }, () => {}) - } - }, - // 打开菜单 - openSwipeAction() { - if (this.status === 'open') return - this.moving = true - const buttonsWidth = -this.buttonsWidth - let previewButtonsMoveX = 0 - animation.transition(this.$refs['uv-swipe-action-item__content'].ref, { - styles: { - transform: `translateX(${buttonsWidth}px)` - }, - duration: this.getDuratin, - timingFunction: 'ease-in-out' - }, () => { - this.status = 'open' - this.moving = false - this.openHandler() - }) - // 按钮的组的长度 - const len = this.buttons.length - for (let i = len - 1; i >= 0; i--) { - const buttonRef = this.$refs[`uv-swipe-action-item__right__button-${i}`][0].ref - // 如果不满足边界条件,返回 - if (this.buttons.length === 0 || !this.buttons[i] || !this.buttons[i].width) return - // 通过比例,得出元素自身该移动的距离 - const translateX = this.buttons[i].width / this.buttonsWidth * buttonsWidth - // 最终移动的距离,是通过自身比例算出的距离,再加上在它之前所有按钮移动的距离之和 - const realTranslateX = translateX + previewButtonsMoveX - animation.transition(buttonRef, { - styles: { - transform: `translateX(${realTranslateX}px)` - }, - duration: this.getDuratin, - timingFunction: 'ease-in-out' - }, () => {}) - previewButtonsMoveX += translateX - } - }, - // 查询按钮节点信息 - queryRect() { - // 历遍所有按钮数组,通过getRectByDom返回一个promise - const promiseAll = this.rightOptions.map((item, index) => this.getRectByDom(this.$refs[`uv-swipe-action-item__right__button-${index}`][0])) - // 通过promise.all方法,让所有按钮的查询结果返回一个数组的形式 - Promise.all(promiseAll).then((sizes) => { - this.buttons = sizes - // 计算所有按钮总宽度 - this.buttonsWidth = sizes.reduce((sum, cur) => sum + cur.width, 0) - }) - }, - // 通过nvue的dom模块,查询节点信息 - getRectByDom(ref) { - return new Promise((resolve) => { - dom.getComponentRect(ref, (res) => { - resolve(res.size) - }) - }) - } - } -} diff --git a/uni_modules/uv-swipe-action/components/uv-swipe-action-item/nvue.js b/uni_modules/uv-swipe-action/components/uv-swipe-action-item/nvue.js deleted file mode 100644 index 4290ebb..0000000 --- a/uni_modules/uv-swipe-action/components/uv-swipe-action-item/nvue.js +++ /dev/null @@ -1,182 +0,0 @@ -// nvue操作dom的库,用于获取dom的尺寸信息 -const dom = uni.requireNativePlugin('dom'); -const bindingX = uni.requireNativePlugin('bindingx'); -const animation = uni.requireNativePlugin('animation'); -import { getDuration, getPx } from '@/uni_modules/uv-ui-tools/libs/function/index.js' -export default { - data() { - return { - // 所有按钮的总宽度 - buttonsWidth: 0, - // 是否正在移动中 - moving: false - } - }, - computed: { - // 获取过渡时间 - getDuratin() { - let duration = String(this.duration) - // 如果ms为单位,返回ms的数值部分 - if (duration.indexOf('ms') >= 0) return parseInt(duration) - // 如果s为单位,为了得到ms的数值,需要乘以1000 - if (duration.indexOf('s') >= 0) return parseInt(duration) * 1000 - // 如果值传了数值,且小于30,认为是s单位 - duration = Number(duration) - return duration < 30 ? duration * 1000 : duration - } - }, - watch: { - show(n) { - if(n) { - this.moveCellByAnimation('open') - } else { - this.moveCellByAnimation('close') - } - } - }, - mounted() { - setTimeout(()=>{ - this.initialize() - },20) - }, - methods: { - initialize() { - this.queryRect() - }, - // 关闭单元格,用于打开一个,自动关闭其他单元格的场景 - closeHandler() { - if(this.status === 'open') { - // 如果在打开状态下,进行点击的话,直接关闭单元格 - return this.moveCellByAnimation('close') && this.unbindBindingX() - } - }, - // 点击单元格 - clickHandler() { - // 如果在移动中被点击,进行忽略 - if(this.moving) return - // 尝试关闭其他打开的单元格 - this.parent && this.parent.closeOther(this) - if(this.status === 'open') { - // 如果在打开状态下,进行点击的话,直接关闭单元格 - return this.moveCellByAnimation('close') && this.unbindBindingX() - } - }, - // 滑动单元格 - onTouchstart(e) { - // 如果当前正在移动中,或者disabled状态,则返回 - if(this.moving || this.disabled) { - return this.unbindBindingX() - } - if(this.status === 'open') { - // 如果在打开状态下,进行点击的话,直接关闭单元格 - return this.moveCellByAnimation('close') && this.unbindBindingX() - } - // 特殊情况下,e可能不为一个对象 - e?.stopPropagation && e.stopPropagation() - e?.preventDefault && e.preventDefault() - this.moving = true - // 获取元素ref - const content = this.getContentRef() - let expression = `min(max(${-this.buttonsWidth}, x), 0)` - // 尝试关闭其他打开的单元格 - this.parent && this.parent.closeOther(this) - // 阿里为了KPI而开源的BindingX - this.panEvent = bindingX.bind({ - anchor: content, - eventType: 'pan', - props: [{ - element: content, - // 绑定width属性,设置其宽度值 - property: 'transform.translateX', - expression - }] - }, (res) => { - this.moving = false - if (res.state === 'end' || res.state === 'exit') { - const deltaX = res.deltaX - if(deltaX <= -this.buttonsWidth || deltaX >= 0) { - // 如果触摸滑动的过程中,大于单元格的总宽度,或者大于0,意味着已经动过滑动达到了打开或者关闭的状态 - // 这里直接进行状态的标记 - this.$nextTick(() => { - this.status = deltaX <= -this.buttonsWidth ? 'open' : 'close' - }) - } else if(Math.abs(deltaX) > getPx(this.threshold)) { - // 在移动大于阈值、并且小于总按钮宽度时,进行自动打开或者关闭 - // 移动距离大于0时,意味着需要关闭状态 - if(Math.abs(deltaX) < this.buttonsWidth) { - this.moveCellByAnimation(deltaX > 0 ? 'close' : 'open') - } - } else { - // 在小于阈值时,进行关闭操作(如果在打开状态下,将不会执行bindingX) - this.moveCellByAnimation('close') - } - } - }) - }, - // 释放bindingX - unbindBindingX() { - // 释放上一次的资源 - if (this?.panEvent?.token != 0) { - bindingX.unbind({ - token: this.panEvent?.token, - // pan为手势事件 - eventType: 'pan' - }) - } - }, - // 查询按钮节点信息 - queryRect() { - // 历遍所有按钮数组,通过getRectByDom返回一个promise - const promiseAll = this.options.map(async(item, index) => { - return await this.getRectByDom(this.$refs[`uv-swipe-action-item__right__button-${index}`][0]) - }) - // 通过promise.all方法,让所有按钮的查询结果返回一个数组的形式 - Promise.all(promiseAll).then(sizes => { - this.buttons = sizes - // 计算所有按钮总宽度 - this.buttonsWidth = sizes.reduce((sum, cur) => sum + cur.width, 0) - }) - }, - // 通过nvue的dom模块,查询节点信息 - getRectByDom(ref) { - return new Promise(resolve => { - dom.getComponentRect(ref, res => { - resolve(res.size) - }) - }) - }, - // 移动单元格到左边或者右边尽头 - moveCellByAnimation(status = 'open') { - if(this.moving) return - // 标识当前状态 - this.moveing = true - const content = this.getContentRef() - const x = status === 'open' ? -this.buttonsWidth : 0 - animation.transition(content, { - styles: { - transform: `translateX(${x}px)`, - }, - duration: getDuration(this.duration, false), - timingFunction: 'ease-in-out' - }, () => { - this.moving = false - this.status = status - this.unbindBindingX() - }) - }, - // 获取元素ref - getContentRef() { - return this.$refs['uv-swipe-action-item__content'].ref - } - }, - // #ifdef VUE2 - beforeDestroy() { - this.unbindBindingX() - }, - // #endif - // #ifdef VUE3 - unmounted() { - this.unbindBindingX() - } - // #endif -} diff --git a/uni_modules/uv-swipe-action/components/uv-swipe-action-item/props.js b/uni_modules/uv-swipe-action/components/uv-swipe-action-item/props.js deleted file mode 100644 index 866c5f0..0000000 --- a/uni_modules/uv-swipe-action/components/uv-swipe-action-item/props.js +++ /dev/null @@ -1,40 +0,0 @@ -export default { - props: { - // 控制打开或者关闭 - show: { - type: Boolean, - default: false - }, - // 标识符,如果是v-for,可用index索引值 - name: { - type: [String, Number], - default: '' - }, - // 是否禁用 - disabled: { - type: Boolean, - default: false - }, - // 是否自动关闭其他swipe按钮组 - autoClose: { - type: Boolean, - default: true - }, - // 滑动距离阈值,只有大于此值,才被认为是要打开菜单 - threshold: { - type: Number, - default: 20 - }, - // 右侧按钮内容 - options: { - type: Array, - default: () => [] - }, - // 动画过渡时间,单位ms - duration: { - type: [String, Number], - default: 300 - }, - ...uni.$uv?.props?.swipeActionItem - } -} \ No newline at end of file diff --git a/uni_modules/uv-swipe-action/components/uv-swipe-action-item/uv-swipe-action-item.vue b/uni_modules/uv-swipe-action/components/uv-swipe-action-item/uv-swipe-action-item.vue deleted file mode 100644 index 76e43b7..0000000 --- a/uni_modules/uv-swipe-action/components/uv-swipe-action-item/uv-swipe-action-item.vue +++ /dev/null @@ -1,200 +0,0 @@ - - - - - - - diff --git a/uni_modules/uv-swipe-action/components/uv-swipe-action-item/wxs.js b/uni_modules/uv-swipe-action/components/uv-swipe-action-item/wxs.js deleted file mode 100644 index 8a7bba3..0000000 --- a/uni_modules/uv-swipe-action/components/uv-swipe-action-item/wxs.js +++ /dev/null @@ -1,15 +0,0 @@ -export default { - methods: { - // 关闭时执行 - closeHandler() { - this.status = 'close' - }, - setState(status) { - this.status = status - }, - closeOther() { - // 尝试关闭其他打开的单元格 - this.parent && this.parent.closeOther(this) - } - } -} diff --git a/uni_modules/uv-swipe-action/components/uv-swipe-action/props.js b/uni_modules/uv-swipe-action/components/uv-swipe-action/props.js deleted file mode 100644 index b75d0ef..0000000 --- a/uni_modules/uv-swipe-action/components/uv-swipe-action/props.js +++ /dev/null @@ -1,10 +0,0 @@ -export default { - props: { - // 是否自动关闭其他swipe按钮组 - autoClose: { - type: Boolean, - default: true - }, - ...uni.$uv?.props?.swipeAction - } -} \ No newline at end of file diff --git a/uni_modules/uv-swipe-action/components/uv-swipe-action/uv-swipe-action.vue b/uni_modules/uv-swipe-action/components/uv-swipe-action/uv-swipe-action.vue deleted file mode 100644 index 89a51ab..0000000 --- a/uni_modules/uv-swipe-action/components/uv-swipe-action/uv-swipe-action.vue +++ /dev/null @@ -1,65 +0,0 @@ - - - diff --git a/uni_modules/uv-swipe-action/package.json b/uni_modules/uv-swipe-action/package.json deleted file mode 100644 index df1a0d8..0000000 --- a/uni_modules/uv-swipe-action/package.json +++ /dev/null @@ -1,88 +0,0 @@ -{ - "id": "uv-swipe-action", - "displayName": "uv-swipe-action 滑动单元格 全面兼容小程序、nvue、vue2、vue3等多端", - "version": "1.0.4", - "description": "滑动单元格组件一般用于左滑唤出操作菜单的场景,用的最多的是左滑删除操作。", - "keywords": [ - "uv-swipe-action", - "uvui", - "uv-ui", - "swipe-action", - "滑动单元格" -], - "repository": "", - "engines": { - "HBuilderX": "^3.1.0" - }, - "dcloudext": { - "type": "component-vue", - "sale": { - "regular": { - "price": "0.00" - }, - "sourcecode": { - "price": "0.00" - } - }, - "contact": { - "qq": "" - }, - "declaration": { - "ads": "无", - "data": "插件不采集任何数据", - "permissions": "无" - }, - "npmurl": "" - }, - "uni_modules": { - "dependencies": [ - "uv-ui-tools", - "uv-icon" - ], - "encrypt": [], - "platforms": { - "cloud": { - "tcb": "y", - "aliyun": "y" - }, - "client": { - "Vue": { - "vue2": "y", - "vue3": "y" - }, - "App": { - "app-vue": "y", - "app-nvue": "y" - }, - "H5-mobile": { - "Safari": "y", - "Android Browser": "y", - "微信浏览器(Android)": "y", - "QQ浏览器(Android)": "y" - }, - "H5-pc": { - "Chrome": "y", - "IE": "y", - "Edge": "y", - "Firefox": "y", - "Safari": "y" - }, - "小程序": { - "微信": "y", - "阿里": "y", - "百度": "y", - "字节跳动": "y", - "QQ": "y", - "钉钉": "u", - "快手": "u", - "飞书": "u", - "京东": "u" - }, - "快应用": { - "华为": "u", - "联盟": "u" - } - } - } - } -} \ No newline at end of file diff --git a/uni_modules/uv-swipe-action/readme.md b/uni_modules/uv-swipe-action/readme.md deleted file mode 100644 index 593ea1f..0000000 --- a/uni_modules/uv-swipe-action/readme.md +++ /dev/null @@ -1,11 +0,0 @@ -## SwipeAction 滑动单元格 - -> **组件名:uv-swipe-action** - -该组件一般用于左滑唤出操作菜单的场景,用的最多的是左滑删除操作。 - -### 查看文档 - -### [完整示例项目下载 | 关注更多组件](https://ext.dcloud.net.cn/plugin?name=uv-ui) - -#### 如使用过程中有任何问题,或者您对uv-ui有一些好的建议,欢迎加入 uv-ui 交流群:uv-ui官方QQ群 diff --git a/uni_modules/uv-swiper/changelog.md b/uni_modules/uv-swiper/changelog.md deleted file mode 100644 index 3835022..0000000 --- a/uni_modules/uv-swiper/changelog.md +++ /dev/null @@ -1,14 +0,0 @@ -## 1.0.5(2023-08-24) -1. 修复标题文字过多未隐藏掉的BUG -## 1.0.4(2023-07-24) -1. 增加 滑动方向是否为纵向 属性vertical -## 1.0.3(2023-06-27) -1. 增加titleStyle属性,方便修改标题样式 -2. 标题上去掉是否是图片的判断,避免无后缀的图片不显示 -## 1.0.2(2023-06-01) -1. 修复点击触发两次事件的BUG -## 1.0.1(2023-05-16) -1. 优化组件依赖,修改后无需全局引入,组件导入即可使用 -2. 优化部分功能 -## 1.0.0(2023-05-10) -uv-swiper 轮播图,走马灯 diff --git a/uni_modules/uv-swiper/components/uv-swiper-indicator/props.js b/uni_modules/uv-swiper/components/uv-swiper-indicator/props.js deleted file mode 100644 index 1cd9ded..0000000 --- a/uni_modules/uv-swiper/components/uv-swiper-indicator/props.js +++ /dev/null @@ -1,30 +0,0 @@ -export default { - props: { - // 轮播的长度 - length: { - type: [String, Number], - default: 0 - }, - // 当前处于活动状态的轮播的索引 - current: { - type: [String, Number], - default: 0 - }, - // 指示器非激活颜色 - indicatorActiveColor: { - type: String, - default: '' - }, - // 指示器的激活颜色 - indicatorInactiveColor: { - type: String, - default: '' - }, - // 指示器模式,line-线型,dot-点型 - indicatorMode: { - type: String, - default: '' - }, - ...uni.$uv?.props?.swiperIndicator - } -} \ No newline at end of file diff --git a/uni_modules/uv-swiper/components/uv-swiper-indicator/uv-swiper-indicator.vue b/uni_modules/uv-swiper/components/uv-swiper-indicator/uv-swiper-indicator.vue deleted file mode 100644 index 570b64a..0000000 --- a/uni_modules/uv-swiper/components/uv-swiper-indicator/uv-swiper-indicator.vue +++ /dev/null @@ -1,112 +0,0 @@ - - - - - diff --git a/uni_modules/uv-swiper/components/uv-swiper/props.js b/uni_modules/uv-swiper/components/uv-swiper/props.js deleted file mode 100644 index c5bded0..0000000 --- a/uni_modules/uv-swiper/components/uv-swiper/props.js +++ /dev/null @@ -1,136 +0,0 @@ -export default { - props: { - // 列表数组,元素可为字符串,如为对象可通过keyName指定目标属性名 - list: { - type: Array, - default: () => [] - }, - // 是否显示面板指示器 - indicator: { - type: Boolean, - default: false - }, - // 指示器非激活颜色 - indicatorActiveColor: { - type: String, - default: '#fff' - }, - // 指示器的激活颜色 - indicatorInactiveColor: { - type: String, - default: 'rgba(255, 255, 255, 0.35)' - }, - // 指示器样式,可通过bottom,left,right进行定位 - indicatorStyle: { - type: [String, Object], - default: '' - }, - // 指示器模式,line-线型,dot-点型 - indicatorMode: { - type: String, - default: 'line' - }, - // 是否自动切换 - autoplay: { - type: Boolean, - default: true - }, - // 当前所在滑块的 index - current: { - type: [String, Number], - default: 0 - }, - // 当前所在滑块的 item-id ,不能与 current 被同时指定 - currentItemId: { - type: String, - default: '' - }, - // 滑块自动切换时间间隔 - interval: { - type: [String, Number], - default: 3000 - }, - // 滑块切换过程所需时间 - duration: { - type: [String, Number], - default: 300 - }, - // 播放到末尾后是否重新回到开头 - circular: { - type: Boolean, - default: false - }, - // 滑动方向是否为纵向 - vertical: { - type: Boolean, - default: false - }, - // 前边距,可用于露出前一项的一小部分,nvue和支付宝不支持 - previousMargin: { - type: [String, Number], - default: 0 - }, - // 后边距,可用于露出后一项的一小部分,nvue和支付宝不支持 - nextMargin: { - type: [String, Number], - default: 0 - }, - // 当开启时,会根据滑动速度,连续滑动多屏,支付宝不支持 - acceleration: { - type: Boolean, - default: false - }, - // 同时显示的滑块数量,nvue、支付宝小程序不支持 - displayMultipleItems: { - type: Number, - default: 1 - }, - // 指定swiper切换缓动动画类型,有效值:default、linear、easeInCubic、easeOutCubic、easeInOutCubic - // 只对微信小程序有效 - easingFunction: { - type: String, - default: 'default' - }, - // list数组中指定对象的目标属性名 - keyName: { - type: String, - default: 'url' - }, - // 图片的裁剪模式 - imgMode: { - type: String, - default: 'aspectFill' - }, - // 组件高度 - height: { - type: [String, Number], - default: 130 - }, - // 背景颜色 - bgColor: { - type: String, - default: '#f3f4f6' - }, - // 组件圆角,数值或带单位的字符串 - radius: { - type: [String, Number], - default: 4 - }, - // 是否加载中 - loading: { - type: Boolean, - default: false - }, - // 是否显示标题,要求数组对象中有title属性 - showTitle: { - type: Boolean, - default: false - }, - // 显示的标题样式 - titleStyle: { - type: Object, - default: ()=>{} - }, - ...uni.$uv?.props?.swiper - } -} \ No newline at end of file diff --git a/uni_modules/uv-swiper/components/uv-swiper/uv-swiper.vue b/uni_modules/uv-swiper/components/uv-swiper/uv-swiper.vue deleted file mode 100644 index 178dcf8..0000000 --- a/uni_modules/uv-swiper/components/uv-swiper/uv-swiper.vue +++ /dev/null @@ -1,263 +0,0 @@ - - - - - diff --git a/uni_modules/uv-swiper/package.json b/uni_modules/uv-swiper/package.json deleted file mode 100644 index e4832d3..0000000 --- a/uni_modules/uv-swiper/package.json +++ /dev/null @@ -1,88 +0,0 @@ -{ - "id": "uv-swiper", - "displayName": "uv-swiper 轮播图 全面兼容vue3+2、app、h5、小程序等多端", - "version": "1.0.5", - "description": "该组件为轮播、跑马灯,支持卡片式。一般用于导航轮播,广告展示等场景,开箱即用", - "keywords": [ - "swiper", - "uvui", - "uv-ui", - "轮播图", - "走马灯" -], - "repository": "", - "engines": { - "HBuilderX": "^3.1.0" - }, - "dcloudext": { - "type": "component-vue", - "sale": { - "regular": { - "price": "0.00" - }, - "sourcecode": { - "price": "0.00" - } - }, - "contact": { - "qq": "" - }, - "declaration": { - "ads": "无", - "data": "插件不采集任何数据", - "permissions": "无" - }, - "npmurl": "" - }, - "uni_modules": { - "dependencies": [ - "uv-ui-tools", - "uv-loading-icon" - ], - "encrypt": [], - "platforms": { - "cloud": { - "tcb": "y", - "aliyun": "y" - }, - "client": { - "Vue": { - "vue2": "y", - "vue3": "y" - }, - "App": { - "app-vue": "y", - "app-nvue": "y" - }, - "H5-mobile": { - "Safari": "y", - "Android Browser": "y", - "微信浏览器(Android)": "y", - "QQ浏览器(Android)": "y" - }, - "H5-pc": { - "Chrome": "y", - "IE": "y", - "Edge": "y", - "Firefox": "y", - "Safari": "y" - }, - "小程序": { - "微信": "y", - "阿里": "y", - "百度": "y", - "字节跳动": "y", - "QQ": "y", - "钉钉": "u", - "快手": "u", - "飞书": "u", - "京东": "u" - }, - "快应用": { - "华为": "u", - "联盟": "u" - } - } - } - } -} \ No newline at end of file diff --git a/uni_modules/uv-swiper/readme.md b/uni_modules/uv-swiper/readme.md deleted file mode 100644 index 49a0b02..0000000 --- a/uni_modules/uv-swiper/readme.md +++ /dev/null @@ -1,19 +0,0 @@ -## Swiper 轮播图 - -> **组件名:uv-swiper** - -该组件为轮播、跑马灯,支持卡片式。一般用于导航轮播,广告展示等场景,开箱即用。 - -# 查看文档 - -## [下载完整示例项目](https://ext.dcloud.net.cn/plugin?name=uv-ui) (请不要 下载插件ZIP) - -### [更多插件,请关注uv-ui组件库](https://ext.dcloud.net.cn/plugin?name=uv-ui) - - - -![image](https://mp-a667b617-c5f1-4a2d-9a54-683a67cff588.cdn.bspapp.com/uv-ui/banner.png) - - - -#### 如使用过程中有任何问题反馈,或者您对uv-ui有一些好的建议,欢迎加入uv-ui官方交流群:官方QQ群 \ No newline at end of file