Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mes-pda-scan
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ximai
mes-pda-scan
Commits
b6c0f4e5
Commit
b6c0f4e5
authored
Jan 14, 2025
by
沈翠玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
临时提交
parent
a25136a2
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
17 deletions
+27
-17
App.vue
App.vue
+12
-10
checkappupdate.js
common/checkappupdate.js
+1
-1
config.js
common/config.js
+2
-2
th_TH.json
lang/th_TH.json
+5
-1
zh_CN.json
lang/zh_CN.json
+7
-3
No files found.
App.vue
View file @
b6c0f4e5
<
script
>
<
script
>
import
i18n
from
'./lang/index'
import
checkappupdate
from
'common/checkappupdate.js'
import
checkappupdate
from
'common/checkappupdate.js'
export
default
{
export
default
{
onLaunch
:
function
()
{
onLaunch
:
function
()
{
...
@@ -8,16 +10,16 @@ export default {
...
@@ -8,16 +10,16 @@ export default {
// plus.screen.lockOrientation("landscape-primary");
// plus.screen.lockOrientation("landscape-primary");
// 锁定竖屏
// 锁定竖屏
plus
.
screen
.
lockOrientation
(
"portrait-primary"
);
plus
.
screen
.
lockOrientation
(
"portrait-primary"
);
//
const fn = () => {
const
fn
=
()
=>
{
//
checkappupdate.check({
checkappupdate
.
check
({
// title: '检测到有新版本!'
,
title
:
i18n
.
t
(
'检测到有新版本!'
)
,
// content: '请升级app到最新版本!'
,
content
:
i18n
.
t
(
'请升级app到最新版本!'
)
,
// canceltext: '暂不升级'
,
canceltext
:
i18n
.
t
(
'暂不升级'
)
,
// oktext: '立即升级'
oktext
:
i18n
.
t
(
'立即升级'
)
//
})
})
//
return fn // 函数中返回自身
return
fn
// 函数中返回自身
//
}
}
//
setInterval(fn(), 3600 * 1000)
setInterval
(
fn
(),
3600
*
1000
)
// #endif
// #endif
},
},
onShow
:
function
()
{
onShow
:
function
()
{
...
...
common/checkappupdate.js
View file @
b6c0f4e5
...
@@ -12,7 +12,7 @@ function check(param = {}) {
...
@@ -12,7 +12,7 @@ function check(param = {}) {
try
{
try
{
console
.
log
(
'widgetInfo'
,
widgetInfo
.
version
)
console
.
log
(
'widgetInfo'
,
widgetInfo
.
version
)
uni
.
request
({
uni
.
request
({
url
:
'http://192.168.3.181:8123/md/appconfig/getVersio
n'
,
url
:
uni
.
getStorageSync
(
'mesUrl'
)
+
'/md/appconfig/getVersion?appName=erpSca
n'
,
success
:
(
result
)
=>
{
success
:
(
result
)
=>
{
result
=
result
.
data
result
=
result
.
data
console
.
log
(
'result'
,
result
)
console
.
log
(
'result'
,
result
)
...
...
common/config.js
View file @
b6c0f4e5
...
@@ -21,9 +21,9 @@ const config = {
...
@@ -21,9 +21,9 @@ const config = {
}
}
// 设置后台接口服务的基础地址
// 设置后台接口服务的基础地址
//
config.baseUrl = 'http://182.140.132.45:9094';
config
.
baseUrl
=
'http://182.140.132.45:9094'
;
// config.baseUrl = process.env.NODE_ENV === 'development' ? '/api' : 'http://182.140.132.45:9094'; // 上海环境
// config.baseUrl = process.env.NODE_ENV === 'development' ? '/api' : 'http://182.140.132.45:9094'; // 上海环境
config
.
baseUrl
=
process
.
env
.
NODE_ENV
===
'development'
?
'/api'
:
'http://192.168.1.128:20091'
;
// 外网环境
//
config.baseUrl = process.env.NODE_ENV === 'development' ? '/api' : 'http://192.168.1.128:20091'; // 外网环境
//
//
//config.baseUrl = "http://101.200.162.168:8080";
//config.baseUrl = "http://101.200.162.168:8080";
...
...
lang/th_TH.json
View file @
b6c0f4e5
...
@@ -214,5 +214,9 @@
...
@@ -214,5 +214,9 @@
"调拨数"
:
"จำนวนการโทร"
,
"调拨数"
:
"จำนวนการโทร"
,
"请输入调拨数"
:
"โปรดป้อนจำนวนการโทร"
,
"请输入调拨数"
:
"โปรดป้อนจำนวนการโทร"
,
"调入仓库"
:
"โอนเข้าคลังสินค้า"
,
"调入仓库"
:
"โอนเข้าคลังสินค้า"
,
"调拨数不能大于库存数"
:
"จำนวนการจัดสรรต้องไม่เกินจำนวนสินค้าคงคลัง"
"调拨数不能大于库存数"
:
"จำนวนการจัดสรรต้องไม่เกินจำนวนสินค้าคงคลัง"
,
"检测到有新版本!"
:
"พบเวอร์ชันใหม่!"
,
"请升级app到最新版本!"
:
"กรุณาอัปเกรดแอปเป็นเวอร์ชันล่าสุด!"
,
"暂不升级"
:
"ไม่อัปเกรดในขณะนี้"
,
"立即升级"
:
"อัปเกรดทันที"
}
}
lang/zh_CN.json
View file @
b6c0f4e5
...
@@ -214,5 +214,9 @@
...
@@ -214,5 +214,9 @@
"调拨数"
:
"调拨数"
,
"调拨数"
:
"调拨数"
,
"请输入调拨数"
:
"请输入调拨数"
,
"请输入调拨数"
:
"请输入调拨数"
,
"调入仓库"
:
"调入仓库"
,
"调入仓库"
:
"调入仓库"
,
"调拨数不能大于库存数"
:
"调拨数不能大于库存数"
"调拨数不能大于库存数"
:
"调拨数不能大于库存数"
,
"检测到有新版本!"
:
"检测到有新版本!"
,
"请升级app到最新版本!"
:
"请升级app到最新版本!"
,
"暂不升级"
:
"暂不升级"
,
"立即升级"
:
"立即升级"
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment