123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168 |
- <template>
- <view class="container">
- <view class="list">
- <view class="flex item" @click="navTo('/pages/user/set/userinfo')">
- <view class="left flex-start">
- <uni-icons type="person" :size="iconSize" :color="listColor"></uni-icons>
- <text class="title">
- 个人信息
- </text>
- </view>
- <view class="right">
- <uni-icons type="right" :color='iconColor'></uni-icons>
- </view>
- </view>
- <!-- <view class="flex item" @click="navTo('/pages/user/set/team')">
- <view class="left flex-start">
- <uni-icons type="staff" :size="iconSize" :color="listColor"></uni-icons>
- <text class="title">
- 我的推广
- </text>
- </view>
- <view class="right">
- <uni-icons type="right" :color='iconColor'></uni-icons>
- </view>
- </view> -->
- <view class="flex item" @click="navTo('/pages/user/set/shareQrCode')">
- <view class="left flex-start">
- <uni-icons type="personadd" :size="iconSize" :color="listColor"></uni-icons>
- <text class="title">
- 我的推广码
- </text>
- </view>
- <view class="right">
- <uni-icons type="right" :color='iconColor'></uni-icons>
- </view>
- </view>
- <view class="flex item" @click="navTo('/pages/user/set/transaction')">
- <view class="left flex-start">
- <uni-icons type="locked" :size="iconSize" :color="listColor"></uni-icons>
- <text class="title">
- 支付密码修改
- </text>
- </view>
- <view class="right">
- <uni-icons type="right" :color='iconColor'></uni-icons>
- </view>
- </view>
- <view class="flex item" @click="navTo('/pages/user/set/password')">
- <view class="left flex-start">
- <uni-icons type="locked" :size="iconSize" :color="listColor"></uni-icons>
- <text class="title">
- 登录密码修改
- </text>
- </view>
- <view class="right">
- <uni-icons type="right" :color='iconColor'></uni-icons>
- </view>
- </view>
- <view class="flex item" @click="navTo('/pages/user/set/bindBank')">
- <view class="left flex-start">
- <uni-icons type="staff" :size="iconSize" :color="listColor"></uni-icons>
- <text class="title">
- 我的收款信息
- </text>
- </view>
- <view class="right">
- <uni-icons type="right" :color='iconColor'></uni-icons>
- </view>
- </view>
- <!-- <view class="flex item">
- <view class="left flex-start">
- <uni-icons type="wallet" :size="iconSize" :color="listColor"></uni-icons>
- <text class="title">
- 收款信息
- </text>
- </view>
- <view class="right">
- <uni-icons type="right" :color='iconColor'></uni-icons>
- </view>
- </view> -->
- </view>
- <view class="list-cell log-out-btn" @click="toLogout">
- <text class="cell-tit">{{$t('accountSettings.a9')}}</text>
- </view>
- <view class="list-cell log-out-btn margin-t-30" @click="copyDomUrl">
- <text class="cell-tit">复制APP下载地址</text>
- </view>
- </view>
- </template>
- <script>
- import { logout } from '@/api/set.js';
- import {
- copyText
- } from '@/utils/rocessor.js';
- import {
- mapMutations
- } from 'vuex';
- export default {
- data() {
- return {
- iconSize:'20',
- listColor:'#1356FF',
- iconColor:'#999'
- };
- },
- methods:{
- ...mapMutations('user',['logout']),
- copyDomUrl(){
- copyText(this.$store.state.baseURL+"/register/")
- },
- navTo(url){
- uni.navigateTo({
- url:url,
- fail(red) {
- console.log(red);
- }
- })
- },
- //退出登录
- toLogout(){
- let obj = this;
- uni.showModal({
- content: this.$t('login.b7'),
- success: (e)=>{
- if(e.confirm){
- logout({}).then((e) => {
- uni.navigateBack();
- }).catch((e) => {
- console.log(e);
- })
- obj.logout();
- }
- }
- });
- },
- }
- }
- </script>
- <style lang='scss'>
- page{
- background-color: #051137;
- }
- .container{
- padding: 30rpx;
- }
- .item{
- background-color: #1F2A4A;
- border-radius: 10rpx;
- padding: 20rpx 20rpx;
- color: #FFF;
- margin-bottom: 30rpx;
- .title{
- padding-left: 10rpx;
- font-size: $font-base;
- }
- }
- .list-cell{
- background: linear-gradient(90deg, #0C5AFA, #1356FF);
- text-align: center;
- color: #FFF;
- padding: 20rpx;
- line-height: 1;
- border-radius: 10rpx;
- font-size: 30rpx;
- }
- </style>
|