li.shaoyi %!s(int64=2) %!d(string=hai) anos
pai
achega
375b5d33a0

+ 0 - 4
src/packages/mobile/views/mine/order/list/components/purchasetrade/index.vue

@@ -28,10 +28,6 @@
                             <span>{{ handleNumberValue(item.tradeprice, '元/' + getGoodsUnitName(item.unitid)) }}</span>
                         </li>
                         <li>
-                            <span>到期日</span>
-                            <span>{{ item.enddate }}</span>
-                        </li>
-                        <li>
                             <span>每吨预付金</span>
                             <span>{{ handleNumberValue(item.transferprice, '元') }}</span>
                         </li>

+ 1 - 1
src/services/http/index.ts

@@ -46,7 +46,7 @@ export default new (class {
             },
             (err) => {
                 if (err.message === 'Network Error') {
-                    return Promise.reject('无效的网络连接')
+                    return Promise.reject('网络或服务器错误')
                 }
                 if (err.response) {
                     const { msg, message } = err.response.data ?? {}

+ 29 - 28
src/utils/h5plus/index.ts

@@ -232,37 +232,38 @@ export default new (class {
      */
     createDownload(url: string) {
         this.onPlusReady((plus) => {
-            plus.downloader.enumerate((downloads: any) => {
-                if (downloads.length) {
-                    plus.nativeUI.toast('正在下载')
-                } else {
-                    const task = plus.downloader.createDownload(url, {
-                        filename: '_downloads/', // 非系统 Download 目录
-                        retry: 1,
-                    }, (d: any, status: number) => {
-                        if (status !== 200) {
-                            plus.nativeUI.toast('下载失败')
-                        }
-                    })
-                    // 监听下载状态
-                    task.addEventListener('statechanged', (task: any) => {
-                        switch (task.state) {
-                            case 3:
-                                const progress = task.downloadedSize / task.totalSize * 100
-                                for (const fn of this.downloadTask.values()) {
-                                    fn(task.filename, progress) // 推送下载进度
-                                }
-                                break
-                            case 4:
-                                console.log('下载完成', task.filename)
-                                this.downloadTask.clear()
-                                break
+            // plus.downloader.enumerate((downloads: any) => {
+            //     if (downloads.length) {
+            //         plus.nativeUI.toast('正在下载')
+            //     } else {
+
+            //     }
+            // })
+            const task = plus.downloader.createDownload(url, {
+                filename: '_downloads/', // 非系统 Download 目录
+                retry: 1,
+            }, (d: any, status: number) => {
+                if (status !== 200) {
+                    plus.nativeUI.toast('下载失败')
+                }
+            })
+            // 监听下载状态
+            task.addEventListener('statechanged', (task: any) => {
+                switch (task.state) {
+                    case 3:
+                        const progress = task.downloadedSize / task.totalSize * 100
+                        for (const fn of this.downloadTask.values()) {
+                            fn(task.filename, progress) // 推送下载进度
                         }
-                    })
-                    // 开始下载
-                    task.start()
+                        break
+                    case 4:
+                        console.log('下载完成', task.filename)
+                        this.downloadTask.clear()
+                        break
                 }
             })
+            // 开始下载
+            task.start()
         })
     }