Browse Source

Merge branch 'master_hella' of http://dev.ccwin-in.com:3000/sfms3.0/sfms3.0-uniapp into master_hella

hella_vue3
niexiting 8 months ago
parent
commit
97fb039d25
  1. 24
      src/common/appUpdate.js
  2. 10
      src/common/label.js
  3. 6
      src/manifest.json
  4. 2
      src/mycomponents/location/locationCompare.vue
  5. 2
      src/mycomponents/scan/winScanLocation.vue

24
src/common/appUpdate.js

@ -18,11 +18,11 @@ export function appUpdate(isShowHint) {
console.log("获取更新数据", json) console.log("获取更新数据", json)
if (res.data) { if (res.data) {
if (res.data.installPackageVersion > Number(curversion)) { if (res.data.installPackageVersion > Number(curversion)) {
var downUrl = res.data.downUrl; var downUrl = res.data.installPackageUrl;
var content = res.data.updateContent; var content = res.data.updateContent;
var version = res.data.installPackageVersion; var version = res.data.installPackageVersion;
var isForcedUpdate = res.data.isForcedUpdate var isForcedUpdate = res.data.isForcedUpdate
var versionName =res.data.installPackageName var versionName = res.data.installPackageName
console.log("新版本提示") console.log("新版本提示")
showDialog(versionName, content, isForcedUpdate, downUrl) showDialog(versionName, content, isForcedUpdate, downUrl)
@ -45,7 +45,7 @@ export function appUpdate(isShowHint) {
// } // }
// }) // })
} else { } else {
if(isShowHint){ if (isShowHint) {
uni.showToast({ uni.showToast({
title: "当前是最新版本" title: "当前是最新版本"
}) })
@ -77,7 +77,7 @@ export function showDialog(versionName, content, isForcedUpdate, downUrl) {
console.log( console.log(
'cancel') //点击取消之后执行的代码 'cancel') //点击取消之后执行的代码
if (isForcedUpdate == "TRUE") { if (isForcedUpdate == "TRUE") {
showDialog(version, content, isForcedUpdate, downUrl) showDialog(versionName, content, isForcedUpdate, downUrl)
} }
} }
} }
@ -124,12 +124,16 @@ export function confirm(downUrl) {
showLoading.setTitle("已连接到服务器"); showLoading.setTitle("已连接到服务器");
break; break;
case 3: case 3:
prg = parseInt( if (task.totalSize && > task.totalSize0) {
(parseFloat(task.downloadedSize) / prg = parseInt(
parseFloat(task.totalSize)) * (parseFloat(task.downloadedSize) /
100 parseFloat(task.totalSize)) *
); 100
showLoading.setTitle(" 正在下载" + prg + "% "); );
showLoading.setTitle("正在下载" + prg + "% ");
}else {
showLoading.setTitle("正在下载");
}
break; break;
case 4: case 4:
plus.nativeUI.closeWaiting(); plus.nativeUI.closeWaiting();

10
src/common/label.js

@ -42,10 +42,12 @@ export function getLabelInfo(scanMsg,headerType, callBack) {
if (type == 'Q') //qrcode if (type == 'Q') //qrcode
{ {
getQRCodeInfo(header, version, scanMsg, callBack); getQRCodeInfo(header, version, scanMsg, callBack);
} else if (type == 'B') //barcode }
{ // else if (type == 'B') //barcode
getBarCodeInfo(header, version, items[2], callBack); // {
} else { //直接输入文本 // getBarCodeInfo(header, version, items[2], callBack);
// }
else { //直接输入文本
getBarCodeInfo('text', 'V1.0', scanMsg, callBack); getBarCodeInfo('text', 'V1.0', scanMsg, callBack);
} }
}else { }else {

6
src/manifest.json

@ -44,8 +44,10 @@
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>", "<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>", "<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
"<uses-feature android:name=\"android.hardware.camera\"/>", "<uses-feature android:name=\"android.hardware.camera\"/>",
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>" "<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>",
], "<uses-permission android:name=\"android.permission.INSTALL_PACKAGES\"/>",
"<uses-permission android:name=\"android.permission.REQUEST_INSTALL_PACKAGES\"/>"
],
"abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ], "abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ],
"minSdkVersion" : 23 "minSdkVersion" : 23
}, },

2
src/mycomponents/location/locationCompare.vue

@ -83,7 +83,7 @@
}, },
copy() { copy() {
// HPQ;V1.0;ICE115F11161AG;PP20230427000026;B20230427002;Q100 // HPQ;V1.0;ICE115F11161AG;PP20230427000026;B20230427002;Q100
var content = "HLB;V1.0;" + this.recommendLocationCode; var content = this.recommendLocationCode;
// #ifdef H5 // #ifdef H5
this.$copyText(content).then( this.$copyText(content).then(
res => { res => {

2
src/mycomponents/scan/winScanLocation.vue

@ -13,7 +13,7 @@
<view class=""> <view class="">
<view class=""> <view class="">
<win-com-scan ref="scan" @getResult="getScanResult" :placeholder='title' :clearResult="false" <win-com-scan ref="scan" @getResult="getScanResult" :placeholder='title' :clearResult="false"
:boxFocus="true" :isShowHistory="isShowHistory" headerType="HLB"> :boxFocus="true" :isShowHistory="isShowHistory" headerType="">
</win-com-scan> </win-com-scan>
</view> </view>
</view> </view>

Loading…
Cancel
Save