diff --git a/common/appUpdate/index.js b/common/appUpdate/index.js index 0e87c14..74e54bc 100644 --- a/common/appUpdate/index.js +++ b/common/appUpdate/index.js @@ -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'], } } diff --git a/pages/deliveryDeal/signedScanning.vue b/pages/deliveryDeal/signedScanning.vue index 4ee54ca..f1740e0 100644 --- a/pages/deliveryDeal/signedScanning.vue +++ b/pages/deliveryDeal/signedScanning.vue @@ -83,7 +83,7 @@ }, submitValidConfig: { signMan: { required: true, requiredMsg: '签收人不能为空' }, - // dispatchOrSendManCode: { required: true, requiredMsg: '请选择派件员' }, + dispatchOrSendManCode: { required: true, requiredMsg: '请选择派件员' }, billCode: { required: true, requiredMsg: '运单号不能为空' }, }, paiRes: { list: [] },