From c722be6d6f5f87a11924075b94d1c1859bebe561 Mon Sep 17 00:00:00 2001 From: wangbing Date: Fri, 2 Aug 2019 14:52:28 +0800 Subject: [PATCH] wwww --- .gitignore | 2 +- .idea/encodings.xml | 6 - .idea/jsLibraryMappings.xml | 6 - public/index.html | 2 +- src/assets/icon_dzgl.png | Bin 0 -> 1665 bytes .../{vant-icon-c2acf5.ttf => vant-icon.ttf} | Bin src/router.js | 25 +- src/style/index.less | 2 +- src/view/dwgl/index.vue | 139 +++++++++++ src/view/dzgl/dzAdd.vue | 223 ++++++++++++++++++ src/view/fwgl/index.vue | 145 ++++++++++++ src/view/nav/index.vue | 36 +-- src/view/rkgl/index.vue | 139 +++++++++++ src/wbui/form/FormCphm.vue | 219 +++++++++++++++++ src/wbui/form/FormNumber.vue | 7 +- src/wbui/form/FormSfzh.vue | 43 ++-- src/wbui/keyboard/Keyboard.vue | 116 +++++++-- src/wbui/keyboard/index.js | 29 +++ 18 files changed, 1057 insertions(+), 82 deletions(-) delete mode 100644 .idea/encodings.xml delete mode 100644 .idea/jsLibraryMappings.xml create mode 100644 src/assets/icon_dzgl.png rename src/assets/{vant-icon-c2acf5.ttf => vant-icon.ttf} (100%) create mode 100644 src/view/dwgl/index.vue create mode 100644 src/view/dzgl/dzAdd.vue create mode 100644 src/view/fwgl/index.vue create mode 100644 src/view/rkgl/index.vue create mode 100644 src/wbui/form/FormCphm.vue create mode 100644 src/wbui/keyboard/index.js diff --git a/.gitignore b/.gitignore index aefe65d..98002ac 100644 --- a/.gitignore +++ b/.gitignore @@ -23,7 +23,7 @@ build/Release # Commenting this out is preferred by some people, see # https://npmjs.org/doc/faq.html#Should-I-check-my-node_modules-folder-into-git node_modules - +*.iml dict .idea/ diff --git a/.idea/encodings.xml b/.idea/encodings.xml deleted file mode 100644 index c2bae49..0000000 --- a/.idea/encodings.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/jsLibraryMappings.xml b/.idea/jsLibraryMappings.xml deleted file mode 100644 index b8387eb..0000000 --- a/.idea/jsLibraryMappings.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/public/index.html b/public/index.html index 0e548cc..57bb484 100644 --- a/public/index.html +++ b/public/index.html @@ -3,7 +3,7 @@ - + vant-demo diff --git a/src/assets/icon_dzgl.png b/src/assets/icon_dzgl.png new file mode 100644 index 0000000000000000000000000000000000000000..d75c275808b574e407bc3149fd633141959465a0 GIT binary patch literal 1665 zcmV-{27dX8P)-04IMnGEx5TS`_93dJnyUm2~T0s9KXnPSIGVu`s&+gWp z@pa{0S!f6R$_%yn%_FRRK^&YSK0KHWp#I0_s2d?W=mMvyLrTHhTa}i#& z&dj}Kw>d7hOZ>J!oE>>YUp0tDx4B<*pTZWXjRJ9-LpdlS94y~ACPfc5-&bzMI9LB; z9$$5v?~3eK2!KEOedvL|DdCyl*)*@BQZ;;~Luqu2DOQyqHWx81QB)~~0Mtga3j);{ z__63T)a6b8c29y&9HD1MrC7OGl83?7`^ItBy4on1NTgz5vgkApT&>^?Af^5Nbfif~ zr8vUyFMyV22(=054`(fp=;xhv@9l2`=QsdV_R_RMKbIu8=rs3S+{g)l(%{o@VT(Lk`^>mpbQ|?;2iJzdoCwdev}{JC zt4_m7Hm8^JHeQ<^e0tSs9&H1#25SifyQ6?@7AoyR&H%Q!k3M{N81&^XSntvrfLo4v z919GCGa|g+7G5=gb+}}FUvwKPA)3F91^y9$i1~g9y`uyY>)EU9+c>|3N&=m$V33gr zV~!LDgRDzl-i2~5@m&s>3&XS#vjm4?T=Gq&mCnq0u38#^EUb+JNl4GK!l*nq6P?bw zstN<(5!z;UjzDjgofl_mfi_{(p6SzTobG@E;Na)NX^3c`xqkYvJofre6Ip_AT~}&W zVkUkZ-S!xKsN#LhgDwel7I`}Z>-{j@)MB9rxlrPQZDFD=*)uas>p%efS#%of@-%Nh zXBSGjQ6a{dCq%sW?5C>m3h*FVR|r6Ykv>8(qk);x$2ENFwS@rOSwV4`qP%^Z6>6j4 zT$%$eiLi7OT5HRwV~bW#nZ9q7lx6lSY=MLon5Sh5aTCb8%Ck_5y!%rMK;kZB)CYNo z>gSr+6`>9fb|JmNI&$2|^Rd>p+0)r}A2eN1tn|84U$!1pngW{>q^1C2 z!pswR)$cYy2>`06`SkWRA?iyDG0TLK?g>24YNzYwms)24G@D+TrKIZ0p~s+ldJv*z zP?a8egY-aT4Ip#UB0QdWqADw|I&m?p2||Pw0dx!9m1!z>1q4)^p*%nhLt?$C$<9Yz z(J26?dDWx^d=@bVc@ZVcLh+?uO$hWd`8>a8WV^I6Tje7?5Q&k*t#~qHGEi*NVm`zKO(9|LX}W~7?C>g8vA_V7v)GU z=b7ETgbPLSyz7h0CjZwvGC%<%?tU|l)g?CLu%6%IdguGU&|Vqfs-b}JEwhYgb$E~O z)jEtOFS8C=Dv_LlXu9k)ev~=9>>7U*yowuQ(w^B&|KoWy26_gOOk}F36CN?4m(`pS znn28Rcr;fj-;-=v{`&`&?Kymo2)+yig`$ADp7psx+*`spx~U9I&#+SonMg9)Oi}xO zOwZP import('./view/nav'), meta: { - title: '主页' + title: '导航' } }, { @@ -24,11 +24,32 @@ const routes = [ }, { name: 'dzgl', - component: () => import('./view/dzgl'), + component: () => import('./view/dzgl/dzAdd'), + meta: { + title: '地址管理' + } + }, + { + name: 'fwgl', + component: () => import('./view/fwgl'), meta: { title: '房屋管理' } }, + { + name: 'rkgl', + component: () => import('./view/rkgl'), + meta: { + title: '人口管理' + } + }, + { + name: 'dwgl', + component: () => import('./view/dwgl'), + meta: { + title: '单位管理' + } + }, ]; // add route path diff --git a/src/style/index.less b/src/style/index.less index 71276aa..babbf6d 100644 --- a/src/style/index.less +++ b/src/style/index.less @@ -2,5 +2,5 @@ font-style: normal; font-weight: 400; font-family: vant-icon; - src: url('../assets/vant-icon-c2acf5.ttf') + src: url('../assets/vant-icon.ttf') } \ No newline at end of file diff --git a/src/view/dwgl/index.vue b/src/view/dwgl/index.vue new file mode 100644 index 0000000..df399ed --- /dev/null +++ b/src/view/dwgl/index.vue @@ -0,0 +1,139 @@ + + + + + diff --git a/src/view/dzgl/dzAdd.vue b/src/view/dzgl/dzAdd.vue new file mode 100644 index 0000000..858f091 --- /dev/null +++ b/src/view/dzgl/dzAdd.vue @@ -0,0 +1,223 @@ + + + + + diff --git a/src/view/fwgl/index.vue b/src/view/fwgl/index.vue new file mode 100644 index 0000000..a698c8a --- /dev/null +++ b/src/view/fwgl/index.vue @@ -0,0 +1,145 @@ + + + + + diff --git a/src/view/nav/index.vue b/src/view/nav/index.vue index 1acfaf6..9df63fb 100644 --- a/src/view/nav/index.vue +++ b/src/view/nav/index.vue @@ -63,47 +63,42 @@ { key: "1", text: "地址管理", - icon: "photo-o" + icon: "location-o" }, { key: "2", text: "房屋管理", - icon: "photo-o" + icon: "home-o" }, { key: "3", text: "人口管理", - icon: "photo-o" + icon: "contact" }, { key: "4", text: "单位管理", - icon: "photo-o" + icon: "shop-o" }, { key: "5", text: "综合查询", - icon: "photo-o" + icon: "search" }, { key: "6", - text: "综合查询", - icon: "photo-o" - }, - { - key: "7", text: "情报线索", - icon: "photo-o" + icon: "info-o" }, { - key: "8", + key: "7", text: "入户访查", - icon: "photo-o" + icon: "wap-home" }, { - key: "9", + key: "8", text: "发案回访", - icon: "photo-o" + icon: "records" } ], isLoading: false, @@ -111,7 +106,7 @@ }, methods: { onClickRight() { - this.$router.push('set'); + window.android.setting(); }, onRefresh() { Toast("Refresh finish"); @@ -122,6 +117,15 @@ case "1": this.$router.push('dzgl'); break + case "2": + this.$router.push('fwgl'); + break + case "3": + this.$router.push('rkgl'); + break + case "4": + this.$router.push('dwgl'); + break } }, } diff --git a/src/view/rkgl/index.vue b/src/view/rkgl/index.vue new file mode 100644 index 0000000..c055795 --- /dev/null +++ b/src/view/rkgl/index.vue @@ -0,0 +1,139 @@ + + + + + diff --git a/src/wbui/form/FormCphm.vue b/src/wbui/form/FormCphm.vue new file mode 100644 index 0000000..4c25c60 --- /dev/null +++ b/src/wbui/form/FormCphm.vue @@ -0,0 +1,219 @@ + + diff --git a/src/wbui/form/FormNumber.vue b/src/wbui/form/FormNumber.vue index a4ed4ce..b3860a3 100644 --- a/src/wbui/form/FormNumber.vue +++ b/src/wbui/form/FormNumber.vue @@ -8,6 +8,8 @@ :label="label" @click="onPick"> @@ -28,12 +30,13 @@ data(){ return { showPopup: false, - value: '', + value: 0, } }, props: { 'label': String, - 'required': Boolean + 'required': Boolean, + 'readonly': Boolean }, methods: { onPick(){ diff --git a/src/wbui/form/FormSfzh.vue b/src/wbui/form/FormSfzh.vue index a6ae257..dc10e32 100644 --- a/src/wbui/form/FormSfzh.vue +++ b/src/wbui/form/FormSfzh.vue @@ -7,41 +7,32 @@ clickable readonly :label="label" - @click="onPick" + @click="showPicker" right-icon="idcard" placeholder="证件号码"/> - - - + \ No newline at end of file + + + \ No newline at end of file diff --git a/src/wbui/keyboard/index.js b/src/wbui/keyboard/index.js new file mode 100644 index 0000000..c0fe48d --- /dev/null +++ b/src/wbui/keyboard/index.js @@ -0,0 +1,29 @@ +import Vue from 'vue' +import Keyboard from '../../wbui/keyboard/Keyboard' +function createInstance() { + // 返回一个扩展实例构造器 + const KeyboardConstructor = Vue.extend(Keyboard); + // 构造一个实例 + const toastDom = new KeyboardConstructor({ + el: document.createElement('div'), + }); + // 把实例化的 toast.vue 添加到 body 里 + document.body.appendChild(toastDom.$el); + return toastDom; +} + +// 注册为全局组件的函数 +function KeyBoard(options = {}) { + const toastDom = createInstance(); + toastDom.cols = options.cols || 3; + toastDom.keys = options.keys; + toastDom.value = options.value || ''; + toastDom.finish = options.finish || null; + toastDom.cancel = options.cancel || null; + toastDom.filter = options.filter || function (key) { + return key; + }; + toastDom.show(); +} + +export default KeyBoard