diff --git a/common/platform/BasePlatform.js b/common/platform/BasePlatform.js index b21c8ca..d970664 100644 --- a/common/platform/BasePlatform.js +++ b/common/platform/BasePlatform.js @@ -147,13 +147,21 @@ class BasePlatform { if (uni.getStorageSync('token') != null && uni.getStorageSync('token') != "") { m.push({ - id: 8, - show: true, - title: '退出登录', - icon: 'my/exit.png', - path: '', - handler: this.handleLogout.bind(this) - }) + id: 8, + show: true, + title: '注销账号', + icon: 'my/s10.png', + path: '/pages/user/cancel-account-page', + handler: this.navigateToPath.bind(this) + }), + m.push({ + id: 8, + show: true, + title: '退出登录', + icon: 'my/exit.png', + path: '', + handler: this.handleLogout.bind(this) + }) } return m; } diff --git a/manifest.json b/manifest.json index aa34a27..cc08458 100644 --- a/manifest.json +++ b/manifest.json @@ -2,8 +2,8 @@ "name" : "友达赏", "appid" : "__UNI__2E6CB39", "description" : "", - "versionName" : "1.0.1", - "versionCode" : 101, + "versionName" : "1.0.3", + "versionCode" : 103, "transformPx" : false, /* 5+App特有相关 */ "app-plus" : { @@ -22,7 +22,7 @@ /* 模块配置 */ "modules" : { "Payment" : {}, - "Camera" : {} + "Share" : {} }, /* 应用发布信息 */ "distribute" : { @@ -53,11 +53,7 @@ "ios" : { "dSYMs" : false, "urltypes" : "youdas", - "idfa" : false, - "privacyDescription" : { - "NSPhotoLibraryUsageDescription" : "为了设置您的个人头像,我们需要访问您的照片图库。这将允许您从相册中选择现有照片作为头像。我们只会在您主动选择更换头像时访问照片,未经您的许可绝不会查看您的其他照片。", - "NSPhotoLibraryAddUsageDescription" : "我们需要访问权限以便将生成的海报保存到您的相册中。这样您就可以方便地在照片应用中查看和分享这些海报。我们只会在您明确选择保存时才将图片存入相册。" - } + "idfa" : false }, /* SDK配置 */ "sdkConfigs" : { @@ -196,5 +192,6 @@ "enable" : false } }, - "fallbackLocale" : "zh-Hans" + "fallbackLocale" : "zh-Hans", + "sassImplementationName" : "node-sass" } diff --git a/pages.json b/pages.json index b3b6f02..b2d9dd0 100644 --- a/pages.json +++ b/pages.json @@ -403,6 +403,13 @@ "style": { "navigationStyle": "custom" } + }, + { + "path" : "pages/user/cancel-account-page", + "style" : + { + "navigationStyle": "custom" + } } ], "subPackages": [{ diff --git a/pages/user/cancel-account-page.vue b/pages/user/cancel-account-page.vue new file mode 100644 index 0000000..a947ea6 --- /dev/null +++ b/pages/user/cancel-account-page.vue @@ -0,0 +1,123 @@ + + + + + + \ No newline at end of file