Commit 2151123d authored by haitao's avatar haitao

fd

parent bb4017f6
...@@ -64,7 +64,6 @@ ...@@ -64,7 +64,6 @@
var rsult=hgService.checkIfLimited(); //检测是否限制后台运行 var rsult=hgService.checkIfLimited(); //检测是否限制后台运行
if(rsult.isLimit){ //限制了后台运行 if(rsult.isLimit){ //限制了后台运行
hgService.requestIgnoreLimit(); //申请 hgService.requestIgnoreLimit(); //申请
...@@ -76,7 +75,6 @@ ...@@ -76,7 +75,6 @@
//var globalEvent = uni.requireNativePlugin('globalEvent'); //全局事件回调 任务启动时间,会有一定延时 一般一分钟内。 //var globalEvent = uni.requireNativePlugin('globalEvent'); //全局事件回调 任务启动时间,会有一定延时 一般一分钟内。
}, },
// hgServiceFun(){ // hgServiceFun(){
// const pushLive = uni.requireNativePlugin('push-live'); // const pushLive = uni.requireNativePlugin('push-live');
// pushLive.startService({ //启动服务 // pushLive.startService({ //启动服务
......
...@@ -177,10 +177,7 @@ ...@@ -177,10 +177,7 @@
//根据当前平台去后台检测版本号 //根据当前平台去后台检测版本号
//这是我的逻辑,自己自定义 //这是我的逻辑,自己自定义
if(debug.isdebug){ if(!debug.isdebug) {
}else {
//正式版的APP更新处理 //正式版的APP更新处理
uni.request({ uni.request({
...@@ -192,30 +189,11 @@ ...@@ -192,30 +189,11 @@
user_token:this.$store.state.token, user_token:this.$store.state.token,
}, },
success: (result) => { success: (result) => {
console.log(result,"result"); let appVersion = widgetInfo.versionCode;//当前版本
var str = widgetInfo.version; let nesVersion = result.data.data.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 = parseFloat(str1);//当前版本
let nesVersion = parseFloat(result.data.data.version);//最新版本
if (nesVersion > appVersion) { if (nesVersion > appVersion) {
if (result.data.data.pkgurl != '' && result.data.data.downloadurl == '') { if (result.data.data.pkgurl != '' && result.data.data.downloadurl == '') {
this.type="pkg"; this.type="pkg";
this.url=result.data.data.pkgurl; this.url=result.data.data.pkgurl;
this.title="1"; this.title="1";
......
...@@ -3,12 +3,12 @@ ...@@ -3,12 +3,12 @@
//"appid" : "__UNI__FC9419E", //"appid" : "__UNI__FC9419E",
"appid" : "__UNI__1EA80F1", //这个是 web "appid" : "__UNI__1EA80F1", //这个是 web
"description" : "商家", "description" : "商家",
"versionName" : "1.1.01", "versionName" : "1.102",
"versionCode" : 1101, "versionCode" : 1102,
"transformPx" : false, "transformPx" : false,
"compatible" : { "compatible" : {
"ignoreVersion" : true, //true表示忽略版本检查提示框,HBuilderX1.9.0及以上版本支持 "ignoreVersion" : true, //true表示忽略版本检查提示框,HBuilderX1.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" //兼容的编译器版本号 "compilerVersion" : "2.9.8" //兼容的编译器版本号
}, },
/* 5+App特有相关weex */ /* 5+App特有相关weex */
...@@ -126,9 +126,9 @@ ...@@ -126,9 +126,9 @@
}, },
"splashscreen" : { "splashscreen" : {
"android" : { "android" : {
"hdpi" : "C:/Users/Administrator/Desktop/da/6b51802bba0a32ac69392831b1fc324.png", "hdpi" : "C:/Users/Administrator/Desktop/证书/d0abce82961b508e6a0b9924d15fe86.png",
"xhdpi" : "C:/Users/Administrator/Desktop/da/6b51802bba0a32ac69392831b1fc324.png", "xhdpi" : "C:/Users/Administrator/Desktop/证书/d0abce82961b508e6a0b9924d15fe86.png",
"xxhdpi" : "C:/Users/Administrator/Desktop/da/6b51802bba0a32ac69392831b1fc324.png" "xxhdpi" : "C:/Users/Administrator/Desktop/证书/d0abce82961b508e6a0b9924d15fe86.png"
}, },
"ios" : { "ios" : {
"iphone" : { "iphone" : {
...@@ -164,7 +164,22 @@ ...@@ -164,7 +164,22 @@
} }
}, },
"compilerVersion" : 2, "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" : {}, "quickapp" : {},
......
...@@ -454,7 +454,7 @@ ...@@ -454,7 +454,7 @@
} }
}) })
return; return;
} else if (res.scanType == 'EAN_13') { } else{
uni.request({ uni.request({
url: 'https://www.mxnzp.com/api/barcode/goods/details', //仅为示例,并非真实接口地址。 url: 'https://www.mxnzp.com/api/barcode/goods/details', //仅为示例,并非真实接口地址。
data: { data: {
...@@ -465,9 +465,7 @@ ...@@ -465,9 +465,7 @@
}, },
method: 'GET', method: 'GET',
success: (results) => { success: (results) => {
// console.log(results);
if (results.data.code == 0) { if (results.data.code == 0) {
// this.$api.msg(results.data.msg);
results.isScanCode = false; results.isScanCode = false;
results.code = res.result; results.code = res.result;
uni.navigateTo({ uni.navigateTo({
...@@ -479,12 +477,9 @@ ...@@ -479,12 +477,9 @@
uni.navigateTo({ uni.navigateTo({
url: '/pages/addEditEleProduct/addEditEleProduct?results=' + JSON.stringify(results) url: '/pages/addEditEleProduct/addEditEleProduct?results=' + JSON.stringify(results)
}) })
// console.log(results)
} }
}, },
fail: (results) => { fail: (results) => {
// console.log(results);
results.isScanCode = false; results.isScanCode = false;
results.code = res.result; results.code = res.result;
uni.navigateTo({ uni.navigateTo({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment