From 6107ca5c537a027e6f4d9717ebc5b96e0b9fa3ba Mon Sep 17 00:00:00 2001 From: jscyl13849007907 <13849007907@163.com> Date: Sat, 22 Mar 2025 16:45:40 +0800 Subject: [PATCH 1/8] =?UTF-8?q?app=20=E5=9B=BE=E7=89=87=E4=B8=8B=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/service-modal/index.js | 38 ++++++++++++++++++++++++++++++++++++- components/service-modal/index.wxml | 6 ++++++ project.config.json | 2 +- 3 files changed, 44 insertions(+), 2 deletions(-) diff --git a/components/service-modal/index.js b/components/service-modal/index.js index 16a7442..8ff1144 100644 --- a/components/service-modal/index.js +++ b/components/service-modal/index.js @@ -38,6 +38,42 @@ Component({ this.setData({ showModal: false }) - } + }, + saveImage: function (e) { + console.log('saveImage', e.currentTarget.dataset.src); + const imageUrl = e.currentTarget.dataset.src; + // 给出确认弹窗 + wx.downloadFile({ + url: imageUrl, + success: res => { + if (res.statusCode === 200) { + wx.saveImageToPhotosAlbum({ + filePath: res.tempFilePath, + success: () => { + wx.showToast({ + title: '保存成功', + icon: 'success' + }); + }, + fail: err => { + console.error('保存失败', err); + wx.showToast({ + title: '保存失败', + icon: 'none' + }); + } + }); + } + }, + fail: err => { + console.error('下载失败', err); + wx.showToast({ + title: '下载失败', + icon: 'none' + }); + } + }); + }, + } }) \ No newline at end of file diff --git a/components/service-modal/index.wxml b/components/service-modal/index.wxml index 87fb4dc..1a2cee2 100644 --- a/components/service-modal/index.wxml +++ b/components/service-modal/index.wxml @@ -16,7 +16,13 @@ 加载中... + + + + + + 长按识别二维码 diff --git a/project.config.json b/project.config.json index 577cad2..858bc26 100644 --- a/project.config.json +++ b/project.config.json @@ -44,7 +44,7 @@ "tabIndent": "insertSpaces", "tabSize": 2 }, - "appid": "wxe431e0b3abd9ae0b", + "appid": "wxb0dea4d11428c6a5", "packOptions": { "ignore": [], "include": [] From ee7e54fcdeeb8f4da7ce5f6a4929f9ff672e306d Mon Sep 17 00:00:00 2001 From: jscyl13849007907 <13849007907@163.com> Date: Sat, 22 Mar 2025 16:47:41 +0800 Subject: [PATCH 2/8] =?UTF-8?q?=E7=99=BB=E5=BD=95=EF=BC=9A=E6=B3=A8?= =?UTF-8?q?=E9=87=8Aapp=E5=BF=AB=E6=8D=B7=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/login/index.wxml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/login/index.wxml b/pages/login/index.wxml index 2108b63..99e817a 100644 --- a/pages/login/index.wxml +++ b/pages/login/index.wxml @@ -64,9 +64,9 @@ - + + From f9e2ef224046fbed8a66ee5fb92c3cec690d8625 Mon Sep 17 00:00:00 2001 From: jscyl13849007907 <13849007907@163.com> Date: Mon, 24 Mar 2025 09:46:29 +0800 Subject: [PATCH 6/8] =?UTF-8?q?=E7=89=88=E6=9C=AC=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project.miniapp.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/project.miniapp.json b/project.miniapp.json index 5107a61..0eaf316 100644 --- a/project.miniapp.json +++ b/project.miniapp.json @@ -1,7 +1,7 @@ { "miniVersion": "v2", "name": "伯才供应链", - "version": "1.1.9", + "version": "1.1.11", "i18nFilePath": "i18n", "mini-android": { "sdkVersion": "1.6.2", @@ -107,5 +107,5 @@ "customImage": "/Users/zhangshaokang/Desktop/伯才供应链app上架相关图片/安卓启动页及图标/画板备份 12.png" } }, - "versionCode": 124 + "versionCode": 125 } From bf7df2da416dd3eedf09ff7c4b10f11d91b49c68 Mon Sep 17 00:00:00 2001 From: jscyl13849007907 <13849007907@163.com> Date: Mon, 24 Mar 2025 11:09:57 +0800 Subject: [PATCH 7/8] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AE=9E=E5=90=8D?= =?UTF-8?q?=E8=AE=A4=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/mine/index.js | 2 +- pages/userDetail/index.wxml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/mine/index.js b/pages/mine/index.js index 94a4f58..d52aaee 100644 --- a/pages/mine/index.js +++ b/pages/mine/index.js @@ -78,7 +78,7 @@ Page({ */ onLoad: function (options) { setTimeout(() => { - console.log(app.globalData.loginUserInfo); + console.log('mine:',app.globalData.loginUserInfo); this.setData({ isLogin: app.globalData.isLogin, hasUserInfo: app.globalData.hasUserInfo, diff --git a/pages/userDetail/index.wxml b/pages/userDetail/index.wxml index abe5e2b..8d653b6 100644 --- a/pages/userDetail/index.wxml +++ b/pages/userDetail/index.wxml @@ -60,7 +60,7 @@ --> - + 实名认证 @@ -69,14 +69,14 @@ - + 实名认证 - {{userInfo.realName}} + {{userInfo.user.realName}} From 7092a1c24fcff65cc1cb388e6a33c1cd690d193e Mon Sep 17 00:00:00 2001 From: wangxia <779219182@qq.com> Date: Wed, 26 Mar 2025 09:38:26 +0800 Subject: [PATCH 8/8] =?UTF-8?q?=E5=90=8C=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/newEnroll/enroll/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/newEnroll/enroll/index.js b/pages/newEnroll/enroll/index.js index a28c945..ce2781d 100644 --- a/pages/newEnroll/enroll/index.js +++ b/pages/newEnroll/enroll/index.js @@ -602,8 +602,8 @@ Page({ console.log('options.agencyInfo', options.agencyInfo); if (app.isNotEmptyCheck(options.agencyInfo)) { that.setData({ - agentName: JSON.parse(options.agencyInfo).aliasName, - agentId: JSON.parse(options.agencyInfo).id, + // agentName: JSON.parse(options.agencyInfo).aliasName, + // agentId: JSON.parse(options.agencyInfo).id, }); } if (app.isNotEmptyCheck(options.imgUrl)) { @@ -1055,7 +1055,7 @@ Page({ new Promise(function (resolve, reject) { var paramData = {}; console.log(' wx.getStorageSync("townsManInfoJob")', wx.getStorageSync("townsManInfoJob")); - console.log(' paramData', paramData); + console.log(' paramData', that.data); delete paramData.config_str delete paramData.face_rect delete paramData.request_id @@ -1081,7 +1081,7 @@ Page({ paramData["address"] = e.detail.value.address; paramData["desp"] = e.detail.value.desp; paramData["policyIdx"] = that.data.policyIdx - + console.log('paramData',paramData); // if(app.isNotEmptyCheck(userInfo.imgs)){ // paramData["imgs"] = userInfo.imgs.toString(); // }