From 0a43aa6c1fcb968b45a3277d86f8342697cdc3fc Mon Sep 17 00:00:00 2001 From: zpc Date: Sat, 7 Jun 2025 22:17:10 +0800 Subject: [PATCH] 333 --- common/platform/AppPlatform.js | 25 +- common/platform/BasePlatform.js | 118 ++-- pages.json | 38 +- pages/DrawCard/cardDetail.vue | 1147 ------------------------------- pages/DrawCard/index.vue | 346 ---------- pages/DrawCard/tujian.vue | 159 ----- pages/guize/guize.vue | 37 +- pages/user/login.vue | 4 +- pages/user/yetx.vue | 303 -------- 9 files changed, 105 insertions(+), 2072 deletions(-) delete mode 100644 pages/DrawCard/cardDetail.vue delete mode 100644 pages/DrawCard/index.vue delete mode 100644 pages/DrawCard/tujian.vue delete mode 100644 pages/user/yetx.vue diff --git a/common/platform/AppPlatform.js b/common/platform/AppPlatform.js index a1a8cbf..b8d0bff 100644 --- a/common/platform/AppPlatform.js +++ b/common/platform/AppPlatform.js @@ -1,5 +1,6 @@ import BasePlatform from './BasePlatform'; import RequestManager from '@/common/request.js' +import {navigateTo} from '@/common/router' import { sleep, parseQueryString @@ -250,6 +251,10 @@ class AppPlatform extends BasePlatform { if (!this.getIsCheck("user_menu_3")) { menuList.push(menu); } + } if (menu.id == 5) { + if (!this.getIsCheck("user_menu_5")) { + menuList.push(menu); + } } else { menuList.push(menu); @@ -341,6 +346,7 @@ class AppPlatform extends BasePlatform { // #endif } handleLogout() { + var that = this; uni.showModal({ title: '提示', content: '确定要退出登录吗?', @@ -348,13 +354,28 @@ class AppPlatform extends BasePlatform { if (res.confirm) { uni.removeStorageSync('token'); uni.removeStorageSync('userinfo'); - uni.switchTab({ - url: '/pages/shouye/index' + that.getConfig().then(res => { + console.log("AppLaunch", res); + if (!res.isCheck) { + uni.switchTab({ + url: '/pages/shouye/index' + }); + } else { + uni.switchTab({ + url: '/pages/mall/index' + }); + } }); // window.location.href = window.location.href; } } }); } + getUserAgreement() { + navigateTo('/pages/guize/guize', { type: 30 }) + } + getPrivacyAgreement() { + navigateTo('/pages/guize/guize', { type: 31 }) + } } export default AppPlatform; \ No newline at end of file diff --git a/common/platform/BasePlatform.js b/common/platform/BasePlatform.js index 9b54fc2..0c8313a 100644 --- a/common/platform/BasePlatform.js +++ b/common/platform/BasePlatform.js @@ -103,65 +103,65 @@ class BasePlatform { */ getUserMenuList() { let m = [{ - id: 1, - show: true, - title: '消费记录', - icon: 'my/s1.png', - path: '/pages/other/order_list', - handler: this.navigateToPath.bind(this) - }, - { - id: 3, - show: true, - title: '我的收藏', - icon: 'my/s3.png', - path: '/package/mine/collect', - handler: this.navigateToPath.bind(this) - }, - { - id: 4, - show: true, - title: '优惠券', - icon: 'my/s4.png', - path: '/pages/user/coupon', - handler: this.navigateToPath.bind(this) - }, - { - id: 5, - show: true, - title: '邀请好友', - icon: 'my/s5.png', - path: '/pages/user/tui-guang', - handler: this.navigateToPath.bind(this) - }, - { - id: 6, - show: true, - title: '加入福利群', - icon: 'my/s6.png', - path: '', - handler: this.handleJoinGroup.bind(this) - }, - { - id: 7, - show: true, - title: '用户协议', - icon: 'my/s7.png', - path: '/pages/guize/guize?type=4', - handler: this.navigateToPath.bind(this) - } + id: 1, + show: true, + title: '消费记录', + icon: 'my/s1.png', + path: '/pages/other/order_list', + handler: this.navigateToPath.bind(this) + }, + { + id: 3, + show: true, + title: '我的收藏', + icon: 'my/s3.png', + path: '/package/mine/collect', + handler: this.navigateToPath.bind(this) + }, + { + id: 4, + show: true, + title: '优惠券', + icon: 'my/s4.png', + path: '/pages/user/coupon', + handler: this.navigateToPath.bind(this) + }, + { + id: 5, + show: true, + title: '邀请好友', + icon: 'my/s5.png', + path: '/pages/user/tui-guang', + handler: this.navigateToPath.bind(this) + }, + { + id: 6, + show: true, + title: '加入福利群', + icon: 'my/s6.png', + path: '', + handler: this.handleJoinGroup.bind(this) + }, + { + id: 7, + show: true, + title: '用户协议', + icon: 'my/s7.png', + // path: '/pages/guize/guize?type=4', + handler: this.getUserAgreement.bind(this) + } ]; if (uni.getStorageSync('token') != null && uni.getStorageSync('token') != "") { m.push({ - id: 8, - show: true, - title: '注销账号', - icon: 'my/s10.png', - path: '/pages/user/cancel-account-page', - handler: this.navigateToPath.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, @@ -204,9 +204,6 @@ class BasePlatform { if (res.confirm) { uni.removeStorageSync('token'); uni.removeStorageSync('userinfo'); - // uni.switchTab({ - // url: '/pages/user/index' - // }); window.location.href = window.location.href; } } @@ -227,5 +224,12 @@ class BasePlatform { getVersion() { return '1.0.0'; } + getUserAgreement() { + navigateTo('/pages/guize/guize', { type: 4 }) + } + getPrivacyAgreement() { + navigateTo('/pages/guize/guize', { type: 5 }) + } + } export default BasePlatform; \ No newline at end of file diff --git a/pages.json b/pages.json index a47287d..df8391e 100644 --- a/pages.json +++ b/pages.json @@ -63,7 +63,7 @@ { "path": "pages/user/login", "style": { - "navigationBarTitleText": "友达赏", + "navigationBarTitleText": "登录", "navigationBarBackgroundColor": "#FFFFFF", "navigationBarTextStyle": "black" } @@ -71,7 +71,7 @@ { "path": "pages/user/bangding", "style": { - "navigationBarTitleText": "友达赏", + "navigationBarTitleText": "绑定手机号", "navigationBarBackgroundColor": "#FFFFFF", "navigationBarTextStyle": "black" } @@ -83,14 +83,6 @@ "navigationBarTextStyle": "black" } }, - { - "path": "pages/user/yetx", - "style": { - "navigationStyle": "custom", - "navigationBarTitleText": "星钻明细", - "navigationBarTextStyle": "black" - } - }, { "path": "pages/user/xfjl", "style": { @@ -202,30 +194,6 @@ "navigationBarTextStyle": "black" } }, - { - "path": "pages/DrawCard/index", - "style": { - "navigationBarTextStyle": "black", - "navigationStyle": "custom" - } - }, - { - "path": "pages/DrawCard/cardDetail", - "style": { - "navigationBarTextStyle": "black", - "navigationStyle": "custom" - } - }, - { - "path": "pages/DrawCard/tujian", - "style": { - "navigationBarBackgroundColor": "#222222", - "navigationBarTitleText": "图鉴", - "navigationBarTextStyle": "black" - } - }, - - { "path": "pages/infinite/index", "style": { @@ -428,7 +396,7 @@ { "path": "leitai", "style": { - "navigationBarTitleText": "擂台赏", + "navigationBarTitleText": "", "navigationStyle": "custom" } } diff --git a/pages/DrawCard/cardDetail.vue b/pages/DrawCard/cardDetail.vue deleted file mode 100644 index ff9ede3..0000000 --- a/pages/DrawCard/cardDetail.vue +++ /dev/null @@ -1,1147 +0,0 @@ - - - - - diff --git a/pages/DrawCard/index.vue b/pages/DrawCard/index.vue deleted file mode 100644 index d4401bc..0000000 --- a/pages/DrawCard/index.vue +++ /dev/null @@ -1,346 +0,0 @@ - - - - - \ No newline at end of file diff --git a/pages/DrawCard/tujian.vue b/pages/DrawCard/tujian.vue deleted file mode 100644 index 05cf25c..0000000 --- a/pages/DrawCard/tujian.vue +++ /dev/null @@ -1,159 +0,0 @@ - - - - - \ No newline at end of file diff --git a/pages/guize/guize.vue b/pages/guize/guize.vue index 85d5b00..b2743f6 100644 --- a/pages/guize/guize.vue +++ b/pages/guize/guize.vue @@ -1,17 +1,17 @@ - - \ No newline at end of file