From 76bb2b2a438d5a0bae2bdec04e37af7343333eb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=94=90=E6=98=8E=E6=98=8E?= <970899069@qq.com> Date: Wed, 25 Oct 2023 17:03:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96ios=E7=89=88=E6=9C=AC?= =?UTF-8?q?=EF=BC=8C=E6=96=B0=E5=A2=9E=E6=B3=A8=E9=94=80=E8=B4=A6=E5=8F=B7?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .hbuilderx/launch.json | 4 + apis/index.js | 4 +- apis/interfaces/user.js | 21 ++- manifest.json | 28 +++- pages.json | 23 ++++ pages/auth/auth.vue | 9 +- pages/index/index.vue | 14 +- pages/off/agreement.vue | 22 +++ pages/off/off.vue | 65 +++++++++ pages/off/verify.vue | 292 ++++++++++++++++++++++++++++++++++++++++ pages/user/set.vue | 10 +- 11 files changed, 474 insertions(+), 18 deletions(-) create mode 100644 pages/off/agreement.vue create mode 100644 pages/off/off.vue create mode 100644 pages/off/verify.vue diff --git a/.hbuilderx/launch.json b/.hbuilderx/launch.json index 4ccd172..472ec0d 100644 --- a/.hbuilderx/launch.json +++ b/.hbuilderx/launch.json @@ -15,6 +15,10 @@ { "playground" : "custom", "type" : "uni-app:app-android" + }, + { + "playground" : "custom", + "type" : "uni-app:app-ios" } ] } diff --git a/apis/index.js b/apis/index.js index 917ef93..bc86f66 100644 --- a/apis/index.js +++ b/apis/index.js @@ -10,8 +10,8 @@ import router from '../router' // 基础配置 const config = { - apiUrl : 'https://douhuo.douhuofalv.com/api/', - // apiUrl : 'https://api.douhuotest.douhuofalv.com/api/', //测试环境 + // apiUrl : 'https://douhuo.douhuofalv.com/api/', + apiUrl : 'https://api.douhuotest.douhuofalv.com/api/', //测试环境 timeout : 60000 } diff --git a/apis/interfaces/user.js b/apis/interfaces/user.js index 102dd68..e3d0827 100644 --- a/apis/interfaces/user.js +++ b/apis/interfaces/user.js @@ -187,6 +187,23 @@ const debtUrl = () => { }) } +// 账户注销 +const offSmsCode = data => { + return request({ + url : 'app/user/log_off_code', + data + }) +} + +// 账户注销确认 +const offUser = data => { + return request({ + url: 'app/user/log_off', + method: 'POST', + data + }) +} + export { relations, code, @@ -209,5 +226,7 @@ export { getSignLogs, getFlows, createCity, - debtUrl + debtUrl, + offSmsCode, + offUser } diff --git a/manifest.json b/manifest.json index a2d3dc0..c84af97 100644 --- a/manifest.json +++ b/manifest.json @@ -2,8 +2,8 @@ "name" : "抖火法律", "appid" : "__UNI__C305C03", "description" : "纵有疾风起,人生不言弃", - "versionName" : "1.5.0", - "versionCode" : 105, + "versionName" : "1.6.2", + "versionCode" : 1062, "transformPx" : false, /* 5+App特有相关 */ "app-plus" : { @@ -37,10 +37,8 @@ "", "", "", - "", "", "", - "", "" ], "schemes" : "doufire", @@ -48,15 +46,31 @@ }, /* ios打包配置 */ "ios" : { - "dSYMs" : false + "dSYMs" : false, + "privacyDescription" : { + "NSPhotoLibraryUsageDescription" : "从您的相册中选择图片作为用户头像与身份认证照片", + "NSPhotoLibraryAddUsageDescription" : "保存您的分享海报与二维码图片", + "NSCameraUsageDescription" : "身份认证图片,用户身份活体认证与用户头头像", + "NSContactsUsageDescription" : "快捷拨打业务联系电话", + "NSLocalNetworkUsageDescription" : "获取网络数据", + "NSUserTrackingUsageDescription" : "开启权限不会获取您在其他站点的隐私信息,该权限仅用于标识设备并保障服务安全" + } }, /* SDK配置 */ "sdkConfigs" : { - "ad" : {}, + "ad" : { + "gdt" : {}, + "csj" : {}, + "ks" : {}, + "ks-content" : {}, + "sigmob" : {}, + "hw" : {}, + "bd" : {} + }, "share" : { "weixin" : { "appid" : "wx1bcdeda0dec3f1bd", - "UniversalLinks" : "" + "UniversalLinks" : "https://app.com.douhuofalv/ulink/" } }, "payment" : {} diff --git a/pages.json b/pages.json index 56b75e6..1b7760f 100644 --- a/pages.json +++ b/pages.json @@ -804,6 +804,29 @@ "enablePullDownRefresh": false, "navigationBarBackgroundColor": "#ffffff" } + },{ + "path" : "pages/off/off", + "name" : "UserOff", + "style" :{ + "navigationBarTitleText": "申请注销账号", + "enablePullDownRefresh": false, + "navigationBarBackgroundColor" : "#FFFFFF" + } + },{ + "path" : "pages/off/agreement", + "name" : "UserOffAgreement", + "style":{ + "navigationBarTitleText": "", + "enablePullDownRefresh": false + } + },{ + "path" : "pages/off/verify", + "name" : "UserOffVerify", + "style": { + "navigationBarTitleText": "", + "enablePullDownRefresh": false, + "navigationBarBackgroundColor" : "#FFFFFF" + } }], "globalStyle": { "navigationBarTextStyle": "black", diff --git a/pages/auth/auth.vue b/pages/auth/auth.vue index 8af1609..dae88ae 100644 --- a/pages/auth/auth.vue +++ b/pages/auth/auth.vue @@ -16,7 +16,7 @@ - + - + + + + + + + + + diff --git a/pages/off/off.vue b/pages/off/off.vue new file mode 100644 index 0000000..6fc9747 --- /dev/null +++ b/pages/off/off.vue @@ -0,0 +1,65 @@ + + + + + diff --git a/pages/off/verify.vue b/pages/off/verify.vue new file mode 100644 index 0000000..f58eae3 --- /dev/null +++ b/pages/off/verify.vue @@ -0,0 +1,292 @@ + + + + + diff --git a/pages/user/set.vue b/pages/user/set.vue index 36247c5..7b8f388 100644 --- a/pages/user/set.vue +++ b/pages/user/set.vue @@ -38,6 +38,14 @@ + + + + + + + + @@ -91,7 +99,7 @@ } -