Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
lumastoreapp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xieyishang
lumastoreapp
Commits
2151123d
Commit
2151123d
authored
Dec 24, 2020
by
haitao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fd
parent
bb4017f6
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
42 deletions
+28
-42
App.vue
App.vue
+0
-2
components/yomol-upgrade/yomol-upgrade.vue
components/yomol-upgrade/yomol-upgrade.vue
+5
-27
manifest.json
manifest.json
+22
-7
pages/index/index.vue
pages/index/index.vue
+1
-6
No files found.
App.vue
View file @
2151123d
...
...
@@ -64,7 +64,6 @@
var
rsult
=
hgService
.
checkIfLimited
();
//检测是否限制后台运行
if
(
rsult
.
isLimit
){
//限制了后台运行
hgService
.
requestIgnoreLimit
();
//申请
...
...
@@ -76,7 +75,6 @@
//var globalEvent = uni.requireNativePlugin('globalEvent'); //全局事件回调 任务启动时间,会有一定延时 一般一分钟内。
},
// hgServiceFun(){
// const pushLive = uni.requireNativePlugin('push-live');
// pushLive.startService({ //启动服务
...
...
components/yomol-upgrade/yomol-upgrade.vue
View file @
2151123d
...
...
@@ -177,10 +177,7 @@
//根据当前平台去后台检测版本号
//这是我的逻辑,自己自定义
if
(
debug
.
isdebug
){
}
else
{
if
(
!
debug
.
isdebug
)
{
//正式版的APP更新处理
uni
.
request
({
...
...
@@ -192,30 +189,11 @@
user_token
:
this
.
$store
.
state
.
token
,
},
success
:
(
result
)
=>
{
console
.
log
(
result
,
"
result
"
);
var
str
=
widgetInfo
.
version
;
var
str1
=
""
;
var
dian
=
0
;
for
(
let
i
=
0
;
i
<
str
.
length
;
i
++
){
if
(
str
[
i
]
==
"
.
"
){
if
(
dian
==
1
){
}
else
{
str1
+=
str
[
i
];
}
dian
++
;
}
else
{
str1
+=
str
[
i
];
}
}
let
appVersion
=
widgetInfo
.
versionCode
;
//当前版本
let
nesVersion
=
result
.
data
.
data
.
version
;
//最新版本
let
appVersion
=
parseFloat
(
str1
);
//当前版本
let
nesVersion
=
parseFloat
(
result
.
data
.
data
.
version
);
//最新版本
if
(
nesVersion
>
appVersion
)
{
if
(
result
.
data
.
data
.
pkgurl
!=
''
&&
result
.
data
.
data
.
downloadurl
==
''
)
{
this
.
type
=
"
pkg
"
;
this
.
url
=
result
.
data
.
data
.
pkgurl
;
this
.
title
=
"
1
"
;
...
...
manifest.json
View file @
2151123d
...
...
@@ -3,12 +3,12 @@
//
"appid"
:
"__UNI__FC9419E"
,
"appid"
:
"__UNI__1EA80F1"
,
//这个是
web
的
"description"
:
"商家"
,
"versionName"
:
"1.1
.01
"
,
"versionCode"
:
110
1
,
"versionName"
:
"1.1
02
"
,
"versionCode"
:
110
2
,
"transformPx"
:
false
,
"compatible"
:
{
"ignoreVersion"
:
true
,
//
true
表示忽略版本检查提示框,HBuilderX
1.9
.
0
及以上版本支持
"runtimeVersion"
:
"2.9.
3,2.9.7,2.9.8
"
,
//兼容的uni-app运行环境版本号,多个版本使用
,
分割
"runtimeVersion"
:
"2.9.
8,2.9.11,3.0.0,3.0.1
"
,
//兼容的uni-app运行环境版本号,多个版本使用
,
分割
"compilerVersion"
:
"2.9.8"
//兼容的编译器版本号
},
/*
5
+App特有相关weex
*/
...
...
@@ -126,9 +126,9 @@
},
"splashscreen"
:
{
"android"
:
{
"hdpi"
:
"C:/Users/Administrator/Desktop/
da/6b51802bba0a32ac69392831b1fc324
.png"
,
"xhdpi"
:
"C:/Users/Administrator/Desktop/
da/6b51802bba0a32ac69392831b1fc324
.png"
,
"xxhdpi"
:
"C:/Users/Administrator/Desktop/
da/6b51802bba0a32ac69392831b1fc324
.png"
"hdpi"
:
"C:/Users/Administrator/Desktop/
证书/d0abce82961b508e6a0b9924d15fe86
.png"
,
"xhdpi"
:
"C:/Users/Administrator/Desktop/
证书/d0abce82961b508e6a0b9924d15fe86
.png"
,
"xxhdpi"
:
"C:/Users/Administrator/Desktop/
证书/d0abce82961b508e6a0b9924d15fe86
.png"
},
"ios"
:
{
"iphone"
:
{
...
...
@@ -164,7 +164,22 @@
}
},
"compilerVersion"
:
2
,
"nativePlugins"
:
{}
"nativePlugins"
:
{
"HG-Background"
:
{
"__plugin_info__"
:
{
"name"
:
"保活 前台运行"
,
"description"
:
"用于提高app存活概率或添加前台显示 q群:219508489"
,
"platforms"
:
"Android"
,
"url"
:
"https://ext.dcloud.net.cn/plugin?id=2203"
,
"android_package_name"
:
"com.app.lumastore"
,
"ios_bundle_id"
:
""
,
"isCloud"
:
true
,
"bought"
:
1
,
"pid"
:
"2203"
,
"parameters"
:
{}
}
}
}
},
/*
快应用特有相关
*/
"quickapp"
:
{},
...
...
pages/index/index.vue
View file @
2151123d
...
...
@@ -454,7 +454,7 @@
}
})
return
;
}
else
if
(
res
.
scanType
==
'
EAN_13
'
)
{
}
else
{
uni
.
request
({
url
:
'
https://www.mxnzp.com/api/barcode/goods/details
'
,
//仅为示例,并非真实接口地址。
data
:
{
...
...
@@ -465,9 +465,7 @@
},
method
:
'
GET
'
,
success
:
(
results
)
=>
{
// console.log(results);
if
(
results
.
data
.
code
==
0
)
{
// this.$api.msg(results.data.msg);
results
.
isScanCode
=
false
;
results
.
code
=
res
.
result
;
uni
.
navigateTo
({
...
...
@@ -479,12 +477,9 @@
uni
.
navigateTo
({
url
:
'
/pages/addEditEleProduct/addEditEleProduct?results=
'
+
JSON
.
stringify
(
results
)
})
// console.log(results)
}
},
fail
:
(
results
)
=>
{
// console.log(results);
results
.
isScanCode
=
false
;
results
.
code
=
res
.
result
;
uni
.
navigateTo
({
...
...
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