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 @@
-
-
-
-
-
-
-
- {{ detailInfo.title }} ¥{{ detailInfo.show_price }}
- {{ detailInfo.card_notice }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 必出{{ detailInfo.card_set.center_shang_name }}
- 必出{{ detailInfo.card_set.right_shang_name }}
-
-
-
-
-
-
- ×
-
-
-
-
- {{ detailInfo.title }}
- 类型:1包
-
- 单价:{{ detailInfo.price }}元
- ×{{ pay_news.goods.first_num }}
-
-
-
-
- 数量:{{ pay_news.goods.prize_num }}张
-
- 小计:{{ goods.box_type == 5 ? "" : "¥"
- }}{{ pay_news.order_total
- }}{{ goods.box_type == 5 ? "积分" : "" }}
-
-
-
-
- 支付方式
-
-
-
-
-
-
- 使用星钻抵扣¥{{ pay_news.use_integral }}(剩余:{{ pay_news.integral }})
-
-
-
-
-
-
-
-
- 使用星钻抵扣¥{{ pay_news.use_money }}(剩余:{{ pay_news.money }})
-
-
-
-
-
-
-
- 下单购买即表示同意
- 《用户服务协议条款》
-
-
-
- 总计:¥{{
- pay_news.order_total
- }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ v.goodslist_title }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ×
-
-
-
- {{ item.title }}
-
-
-
-
-
-
-
-
- {{ item.user_info.nickname }}
-
-
- {{ item.addtime }}
-
-
-
-
- {{
- item.goodslist_title
- }}
-
- X{{ item.prize_num }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
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 @@
-
-
-
-
-
- 友达赏
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{v.title}}
-
-
-
-
-
-
-
-
-
-
- {{item.title}}
- ¥{{item.show_price}}
-
-
-
-
-
-
-
-
-
-
-
\ 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 @@
-
-
-
-
- {{item.title}}
-
-
-
-
-
-
-
- {{e.shang_name}}
-
- {{e.title}}
- 产考价:{{e.price}}元
-
-
-
-
-
-
-
-
-
\ 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