uu
This commit is contained in:
parent
d815574e97
commit
f908645a56
@ -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,7 +57,7 @@ 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'],
|
||||
}
|
||||
}
|
||||
|
||||
@ -83,7 +83,7 @@
|
||||
},
|
||||
submitValidConfig: {
|
||||
signMan: { required: true, requiredMsg: '签收人不能为空' },
|
||||
// dispatchOrSendManCode: { required: true, requiredMsg: '请选择派件员' },
|
||||
dispatchOrSendManCode: { required: true, requiredMsg: '请选择派件员' },
|
||||
billCode: { required: true, requiredMsg: '运单号不能为空' },
|
||||
},
|
||||
paiRes: { list: [] },
|
||||
|
||||
Loading…
Reference in New Issue
Block a user