diff --git a/PDA/pages/enter/enter.vue b/PDA/pages/enter/enter.vue new file mode 100644 index 0000000..d01fc5b --- /dev/null +++ b/PDA/pages/enter/enter.vue @@ -0,0 +1,203 @@ + + + + + diff --git a/PDA/pages/index.vue b/PDA/pages/index.vue new file mode 100644 index 0000000..db307eb --- /dev/null +++ b/PDA/pages/index.vue @@ -0,0 +1,237 @@ + + + + + \ No newline at end of file diff --git a/PDA/pages/login.vue b/PDA/pages/login.vue new file mode 100644 index 0000000..dda6250 --- /dev/null +++ b/PDA/pages/login.vue @@ -0,0 +1,232 @@ + + + + + \ No newline at end of file diff --git a/PDA/static/down22.png b/PDA/static/down22.png new file mode 100644 index 0000000..2cd2646 Binary files /dev/null and b/PDA/static/down22.png differ diff --git a/PDA/static/index/c1.png b/PDA/static/index/c1.png new file mode 100644 index 0000000..8877cd7 Binary files /dev/null and b/PDA/static/index/c1.png differ diff --git a/PDA/static/index/c10.png b/PDA/static/index/c10.png new file mode 100644 index 0000000..917a1c0 Binary files /dev/null and b/PDA/static/index/c10.png differ diff --git a/PDA/static/index/c2.png b/PDA/static/index/c2.png new file mode 100644 index 0000000..6a9d568 Binary files /dev/null and b/PDA/static/index/c2.png differ diff --git a/PDA/static/index/c3.png b/PDA/static/index/c3.png new file mode 100644 index 0000000..3f4ef1c Binary files /dev/null and b/PDA/static/index/c3.png differ diff --git a/PDA/static/index/c4.png b/PDA/static/index/c4.png new file mode 100644 index 0000000..b5964e1 Binary files /dev/null and b/PDA/static/index/c4.png differ diff --git a/PDA/static/index/c5.png b/PDA/static/index/c5.png new file mode 100644 index 0000000..4d8b5f3 Binary files /dev/null and b/PDA/static/index/c5.png differ diff --git a/PDA/static/index/c6.png b/PDA/static/index/c6.png new file mode 100644 index 0000000..2f52fd2 Binary files /dev/null and b/PDA/static/index/c6.png differ diff --git a/PDA/static/index/c7.png b/PDA/static/index/c7.png new file mode 100644 index 0000000..7cc8147 Binary files /dev/null and b/PDA/static/index/c7.png differ diff --git a/PDA/static/index/c8.png b/PDA/static/index/c8.png new file mode 100644 index 0000000..913ac16 Binary files /dev/null and b/PDA/static/index/c8.png differ diff --git a/PDA/static/index/c9.png b/PDA/static/index/c9.png new file mode 100644 index 0000000..2e4d34c Binary files /dev/null and b/PDA/static/index/c9.png differ diff --git a/PDA/static/index/cardFoot.png b/PDA/static/index/cardFoot.png new file mode 100644 index 0000000..d4c62d4 Binary files /dev/null and b/PDA/static/index/cardFoot.png differ diff --git a/PDA/static/indexBG.png b/PDA/static/indexBG.png new file mode 100644 index 0000000..193a229 Binary files /dev/null and b/PDA/static/indexBG.png differ diff --git a/PDA/static/loginBG.png b/PDA/static/loginBG.png new file mode 100644 index 0000000..8038406 Binary files /dev/null and b/PDA/static/loginBG.png differ diff --git a/PDA/static/loginHead.png b/PDA/static/loginHead.png new file mode 100644 index 0000000..c8f462d Binary files /dev/null and b/PDA/static/loginHead.png differ diff --git a/PDA/static/logout.png b/PDA/static/logout.png new file mode 100644 index 0000000..12a39eb Binary files /dev/null and b/PDA/static/logout.png differ diff --git a/PDA/static/scanImg.png b/PDA/static/scanImg.png new file mode 100644 index 0000000..ffe4352 Binary files /dev/null and b/PDA/static/scanImg.png differ diff --git a/PDA/static/up22.png b/PDA/static/up22.png new file mode 100644 index 0000000..a947751 Binary files /dev/null and b/PDA/static/up22.png differ diff --git a/common/css/styles.scss b/common/css/styles.scss index abb4b6e..af41404 100644 --- a/common/css/styles.scss +++ b/common/css/styles.scss @@ -9,8 +9,10 @@ $tab-btn-bg: #EF970F; $tab-btn-color: #FFFFFF; /* pda端 */ -$pda-btn-bg: #687EF4; +$pda-btn-bg: linear-gradient( 90deg, #1878FE 0%, #60ADFF 100%); $pda-btn-color: #FFFFFF; +$pda-btn-bg1: #0079FE; +$pda-btn-color1: #FFFFFF; /* 品牌方端 */ $brand-btn-bg: #F0720A; diff --git a/common/js/uniHelper.js b/common/js/uniHelper.js new file mode 100644 index 0000000..3c12e30 --- /dev/null +++ b/common/js/uniHelper.js @@ -0,0 +1,18 @@ +import { getCurrentInstance } from 'vue' +// 导入Uniapp生命周期函数 +import { onLoad, onShow, onHide, onPageScroll } from '@dcloudio/uni-app' + +// 导出生命周期函数(直接转发,保持原功能) +export { onLoad, onShow, onHide, onPageScroll } + +// 导出全局属性访问工具(复用之前的逻辑) +export const useGlobal = () => { + const instance = getCurrentInstance() + if (!instance) { + throw new Error('useGlobal 必须在组件 setup 或生命周期中调用') + } + return { + $http: instance.appContext.config.globalProperties.$http, + $util: instance.appContext.config.globalProperties.$util + } +} \ No newline at end of file diff --git a/pages.json b/pages.json index 50c92b2..af23aef 100644 --- a/pages.json +++ b/pages.json @@ -57,6 +57,34 @@ } } + ] + }, + { + "root": "PDA", + "pages": [{ + "path" : "pages/index", + "style" : + { + "navigationBarTitleText" : "", + "navigationStyle": "custom" + } + }, + { + "path" : "pages/login", + "style" : + { + "navigationBarTitleText" : "", + "navigationStyle": "custom" + } + }, + { + "path" : "pages/enter/enter", + "style" : + { + "navigationBarTitleText" : "扫码入库" + } + } + ] } ],