From f0900247e9b21a6d83edae1968c516887e860e4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=93=E5=B9=B3=E8=89=BA?= <52643018@qq.com> Date: Mon, 23 Aug 2021 18:16:05 +0800 Subject: [PATCH] =?UTF-8?q?[=E4=BF=AE=E6=94=B9]=20=E4=B8=AA=E4=BA=BA?= =?UTF-8?q?=E4=B8=AD=E5=BF=83=E9=A1=B5=E9=9D=A2=E8=8E=B7=E5=BE=97=E7=BA=A2?= =?UTF-8?q?=E7=BA=BF=E6=94=B9=E4=B8=BA=E7=BB=91=E5=AE=9A=E6=89=8B=E6=9C=BA?= =?UTF-8?q?=E5=8F=B7=20[=E6=96=B0=E5=A2=9E]=20=E4=B8=8A=E4=BC=A0=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E7=BB=84=E4=BB=B6=20[=E6=96=B0=E5=A2=9E]=20=E6=8B=96?= =?UTF-8?q?=E6=8B=BD=E6=8E=92=E5=BA=8F=E7=BB=84=E4=BB=B6=EF=BC=8C=E5=90=8E?= =?UTF-8?q?=E6=9C=9F=E4=B8=8A=E4=BC=A0=E5=9B=BE=E7=89=87=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E5=9F=BA=E4=BA=8E=E6=AD=A4=E5=81=9A=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 1 + common/styles/sharedIconFont.css | 22 ++ components/lf-uploadImage/lf-uploadImage.vue | 154 +++++++++ pages.json | 6 + pages/my/index.vue | 2 +- pages/test/drag.vue | 325 +++++++++++++++++++ pages/test/test.vue | 10 +- 7 files changed, 517 insertions(+), 3 deletions(-) create mode 100644 common/styles/sharedIconFont.css create mode 100644 components/lf-uploadImage/lf-uploadImage.vue create mode 100644 pages/test/drag.vue diff --git a/App.vue b/App.vue index 74c4be2..c8789f1 100644 --- a/App.vue +++ b/App.vue @@ -119,6 +119,7 @@ @import "@/uview-ui/index.scss"; @import '@/common/styles/theme.css'; @import '@/common/styles/common.css'; + @import '@/common/styles/sharedIconFont.css'; @import '@/common/styles/iconfont.css'; //底部按钮 diff --git a/common/styles/sharedIconFont.css b/common/styles/sharedIconFont.css new file mode 100644 index 0000000..4347a6f --- /dev/null +++ b/common/styles/sharedIconFont.css @@ -0,0 +1,22 @@ +@font-face { + font-family: "lf-iconfont"; /* Project id 2758976 */ + src: url('//at.alicdn.com/t/font_2758976_9bezuvselm.woff2?t=1629452232587') format('woff2'), + url('//at.alicdn.com/t/font_2758976_9bezuvselm.woff?t=1629452232587') format('woff'), + url('//at.alicdn.com/t/font_2758976_9bezuvselm.ttf?t=1629452232587') format('truetype'); +} + +.lf-iconfont { + font-family: "lf-iconfont" !important; + font-size: 16px; + font-style: normal; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +.lf-icon-shanchu:before { + content: "\e674"; +} + +.lf-icon-jia:before { + content: "\e715"; +} diff --git a/components/lf-uploadImage/lf-uploadImage.vue b/components/lf-uploadImage/lf-uploadImage.vue new file mode 100644 index 0000000..1f88b0b --- /dev/null +++ b/components/lf-uploadImage/lf-uploadImage.vue @@ -0,0 +1,154 @@ + + + + + diff --git a/pages.json b/pages.json index d17718a..748d6ac 100644 --- a/pages.json +++ b/pages.json @@ -185,6 +185,12 @@ "navigationBarTitleText": "测试专用" } }, + { + "path": "pages/test/drag", + "style": { + "navigationBarTitleText": "测试拖拽" + } + }, { "path": "pages/my/innerMonologue", "style": { diff --git a/pages/my/index.vue b/pages/my/index.vue index f8d52e4..be93164 100644 --- a/pages/my/index.vue +++ b/pages/my/index.vue @@ -13,7 +13,7 @@ - 获得红线 + 绑定手机号 diff --git a/pages/test/drag.vue b/pages/test/drag.vue new file mode 100644 index 0000000..91d63e1 --- /dev/null +++ b/pages/test/drag.vue @@ -0,0 +1,325 @@ + + + + + diff --git a/pages/test/test.vue b/pages/test/test.vue index 0c36ea8..5b42a19 100644 --- a/pages/test/test.vue +++ b/pages/test/test.vue @@ -14,7 +14,7 @@ --> -
+ + + + @@ -34,7 +37,10 @@ }