This commit is contained in:
aihe 2024-06-16 09:48:22 +08:00
parent d815574e97
commit f908645a56
2 changed files with 7 additions and 5 deletions

View File

@ -23,6 +23,7 @@ export const getCurrentAppInfo = ()=> {
const installNewApk = (url)=> {
console.log("installNewApk url===", url)
return new Promise((resolve, reject)=> {
showLoading('正在下载资源文件,请稍等...')
let downInstance = uni.downloadFile({
url: url,
success: (downloadResult) => {
@ -56,8 +57,8 @@ const installNewApk = (url)=> {
downInstance.onProgressUpdate((res)=> {
let { totalBytesExpectedToWrite, totalBytesWritten } = res
let percent = (totalBytesWritten / totalBytesExpectedToWrite) * 100
showLoading(`下载进度:${parseInt(percent)}%`)
})
// showLoading(`下载进度:${parseInt(percent)}%`)
})
})
}
@ -65,8 +66,9 @@ const getLastAppInfo = async (curAppInfo)=> {
return {
version: '1.0.1',
versionCode: 101,
apkUrl: 'http://localhost:5173/static/t.apk?t.apk',
wgtUrl: 'http://localhost:5173/static/t.wgt?t.wgt',
apkUrl: 'http://192.168.1.7:5173/static/t.apk',
// apkUrl: 'http://oss-emis.tanex56.com/sapp/sdg/hdbg.png',
wgtUrl: 'http://192.168.1.7:5173/static/t.wgt?t.wgt',
// whiteDeviceIds: ['F9E778C90D0E9A8DA9D95AA97B00A3FB'],
}
}

View File

@ -83,7 +83,7 @@
},
submitValidConfig: {
signMan: { required: true, requiredMsg: '签收人不能为空' },
// dispatchOrSendManCode: { required: true, requiredMsg: '请选择派件员' },
dispatchOrSendManCode: { required: true, requiredMsg: '请选择派件员' },
billCode: { required: true, requiredMsg: '运单号不能为空' },
},
paiRes: { list: [] },