set.vue
2.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<template>
<view class="set-box">
<view class="list x-bc" @tap="jump('/pages/public/feedback')">
<view class="title">意见反馈</view>
<text class="cuIcon-right"></text>
</view>
<view class="list x-bc" @tap="jump('/pages/user/address/list')">
<view class="title">地址管理</view>
<text class="cuIcon-right"></text>
</view>
<view class="list x-bc" @tap="jump('/pages/user/edit-password')">
<view class="title">修改密码</view>
<text class="cuIcon-right"></text>
</view>
<view class="list x-bc" @tap="jump('/pages/public/richtext', { id: 3 })">
<view class="title">关于我们</view>
<text class="cuIcon-right"></text>
</view>
<!-- <view class="list x-bc">
<view class="title">
消息推送
</view>
<text class="cuIcon-right"></text>
</view> -->
<view class="list x-bc" @tap="onVersion">
<view class="title">当前版本</view>
<text class="cuIcon-right"></text>
</view>
<!-- <view class="list x-bc">
<view class="title">
清除缓存
</view>
<text class="cuIcon-right"></text>
</view> -->
<!-- <view class="list x-bc">
<view class="title">分享APP</view>
<text class="cuIcon-right"></text>
</view> -->
<view class="list x-bc" @tap="outLogin">
<view class="title">退出登录</view>
<text class="cuIcon-right"></text>
</view>
<!-- 自定义底部导航 -->
<shopro-tabbar></shopro-tabbar>
<!-- 关注弹窗 -->
<shopro-float-btn></shopro-float-btn>
<!-- 连续弹窗提醒 -->
<shopro-notice-modal></shopro-notice-modal>
<!-- 登录提示 -->
<shopro-login-modal></shopro-login-modal>
</view>
</template>
<script>
import { mapState, mapActions } from 'vuex';
export default {
components: {},
data() {
return {};
},
computed: {
...mapState({
initData: state => state.init.initData //初始化数据
})
},
methods: {
// 路由跳转
jump(path, parmas) {
this.$Router.push({
path: path,
query: parmas
});
},
// 退出登录
outLogin() {
this.$store.commit('OUT_LOGIN');
this.$Router.replace('/pages/public/login');
},
// 当前版本
onVersion() {
let version = this.initData.info.version;
this.$tools.toast('当前版本:' + version);
}
}
};
</script>
<style lang="scss">
page {
background: #fff;
}
.list {
height: 110rpx;
padding: 0 20rpx;
border-bottom: 1rpx solid rgba(#dfdfdf, 0.6);
.title {
font-size: 28rpx;
}
.cuIcon-right {
font-size: 34rpx;
color: #999;
}
}
</style>