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 0000000..d75c275 Binary files /dev/null and b/src/assets/icon_dzgl.png differ diff --git a/src/assets/vant-icon-c2acf5.ttf b/src/assets/vant-icon.ttf similarity index 100% rename from src/assets/vant-icon-c2acf5.ttf rename to src/assets/vant-icon.ttf diff --git a/src/router.js b/src/router.js index 0e3dcab..2bbbef3 100644 --- a/src/router.js +++ b/src/router.js @@ -12,7 +12,7 @@ const routes = [ name: '/', component: () => 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