diff --git a/.env.dev b/.env.dev index 516231d..cfbcf3b 100644 --- a/.env.dev +++ b/.env.dev @@ -1,2 +1,3 @@ VITE_APP_MODE = 'dev' VITE_API_URL = http://114.218.158.24:9020 +VITE_API_OA_URL=http://114.218.158.24:9020 \ No newline at end of file diff --git a/.env.prod b/.env.prod index 490aa6a..83882ba 100644 --- a/.env.prod +++ b/.env.prod @@ -1,3 +1,4 @@ mode = prod VITE_APP_MODE = 'prod' VITE_API_URL = https://erpapi.fontree.cn/ +VITE_API_OA_URL=https://erp-out.szjixun.cn/ \ No newline at end of file diff --git a/src/App.vue b/src/App.vue index f9768a5..77e964a 100644 --- a/src/App.vue +++ b/src/App.vue @@ -5,6 +5,7 @@ export default { }, onShow: function () { console.log("App Show"); + console.log(window.location.href); }, onHide: function () { console.log("App Hide"); diff --git a/src/api/login.js b/src/api/login.js index 795f5ad..4619b90 100644 --- a/src/api/login.js +++ b/src/api/login.js @@ -1,36 +1,36 @@ import request from "../../utils/service/index"; //登录 export const userLogin = (data) => { - return request({ - url: "/user/v2/login", - method: "POST", - data, - }); - }; - //验证码 + return request({ + url: "/user/v2/login", + method: "POST", + data, + }); +}; +//验证码 export const userSend = (data) => { - return request({ - url: "/user/send", - method: "POST", - data, - }); - }; - //扫码查看画桶详情 - export const pbDetail = (data) => { - return request({ - url: "/containeradm/v1/painting_bucket/get_by_id", - method: "POST", - data, - }); - }; - //查询可放画桶的空闲货架孔 - export const freebox = (data) => { - return request({ - url: "/containeradm/v1/box_rel_bucket/freebox", - method: "POST", - data, - }); - }; + return request({ + url: "/user/send", + method: "POST", + data, + }); +}; +//扫码查看画桶详情 +export const pbDetail = (data) => { + return request({ + url: "/containeradm/v1/painting_bucket/get_by_id", + method: "POST", + data, + }); +}; +//查询可放画桶的空闲货架孔 +export const freebox = (data) => { + return request({ + url: "/containeradm/v1/box_rel_bucket/freebox", + method: "POST", + data, + }); +}; //出库 export const outbound = (data) => { return request({ @@ -79,3 +79,10 @@ export const cancel = (data) => { data, }); }; +export const getRules = (data) => { + return request({ + url: "/rule/rules", + method: "POST", + data, + }); +}; diff --git a/src/components/navBar/index.vue b/src/components/navBar/index.vue index c8573a6..ef05cd6 100644 --- a/src/components/navBar/index.vue +++ b/src/components/navBar/index.vue @@ -39,10 +39,9 @@ const currentWebView = plus.webview.getWebviewById("wv"); const root = document.documentElement; root.style.setProperty( "--statusBarHeight", - `${ - currentWebView.RunTime === "app" - ? plus.navigator.getStatusbarHeight() - : 0 ?? 0 + `${currentWebView.RunTime === "app" + ? plus.navigator.getStatusbarHeight() + : 0 ?? 0 }px` ); @@ -51,9 +50,11 @@ root.style.setProperty( .status_bar { height: var(--status-bar-height); } + :deep(.u-status-bar) { margin-top: var(--statusBarHeight); } + @mixin flex($direction: row) { /* #ifndef APP-NVUE */ display: flex; diff --git a/src/main.js b/src/main.js index 5b5fea5..82fd1fe 100644 --- a/src/main.js +++ b/src/main.js @@ -3,6 +3,7 @@ import App from "./App.vue"; import uviewPlus from "uview-plus"; import globalComponents from "./components"; import VConsole from "vconsole"; + if (import.meta.env.VITE_APP_MODE === "dev") { new VConsole(); } diff --git a/src/pages.json b/src/pages.json index b243e52..d814936 100644 --- a/src/pages.json +++ b/src/pages.json @@ -12,43 +12,35 @@ { "path": "pages/login/index", "style": { - "navigationBarTitleText": "", - "enablePullDownRefresh": false, - "app-plus": { - "titleNView": false // 禁用原生导航 - } + "navigationBarTitleText": "登录", + "enablePullDownRefresh": false + } }, { "path": "pages/index/index", "style": { - "navigationBarTitleText": "", - "enablePullDownRefresh": false, - "app-plus": { - "titleNView": false // 禁用原生导航 - } + "navigationBarTitleText": "添加画作", + "enablePullDownRefresh": false + } }, { "path": "pages/painting/index", "style": { - "navigationBarTitleText": "", - "enablePullDownRefresh": false, - "app-plus": { - "titleNView": false // 禁用原生导航 - } + "navigationBarTitleText": "入库", + "enablePullDownRefresh": false + } }, { "path": "pages/detail/index", "style": { "navigationBarTitleText": "", - "enablePullDownRefresh": false, - "app-plus": { - "titleNView": false // 禁用原生导航 - } + "enablePullDownRefresh": false + } - }, + } ], "globalStyle": { "navigationBarTextStyle": "black", diff --git a/src/pages/detail/index.vue b/src/pages/detail/index.vue index be2efd0..be97fea 100644 --- a/src/pages/detail/index.vue +++ b/src/pages/detail/index.vue @@ -1,84 +1,113 @@ - - - - - - \ No newline at end of file + + .painting-box { + height: 100%; + width: 100%; + display: flex; + flex-direction: column; + margin-top: 60rpx; + padding: 20rpx; + box-sizing: border-box; + background-color: #fff; + box-shadow: 0 0 6px rgba(219, 218, 218, 0.5); + } + + .image-container { + display: flex; + justify-content: center; + align-items: center; + margin-top: 20rpx; + height: auto; + } +} + +.button-container { + display: flex; + justify-content: space-between; + width: 100%; + position: fixed; + bottom: 1rpx; + left: 0; + padding: 0 20rpx; + box-sizing: border-box; + background-color: #fff; + height: 8%; +} + diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index 8552197..ce3285c 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -1,48 +1,74 @@ - diff --git a/src/pages/login/index.vue b/src/pages/login/index.vue index 595283d..7992d84 100644 --- a/src/pages/login/index.vue +++ b/src/pages/login/index.vue @@ -1,6 +1,6 @@