set.vue 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. <template>
  2. <view class="container">
  3. <view class="list">
  4. <view class="flex item" @click="navTo('/pages/user/set/userinfo')">
  5. <view class="left flex-start">
  6. <uni-icons type="person" :size="iconSize" :color="listColor"></uni-icons>
  7. <text class="title">
  8. 个人信息
  9. </text>
  10. </view>
  11. <view class="right">
  12. <uni-icons type="right" :color='iconColor'></uni-icons>
  13. </view>
  14. </view>
  15. <!-- <view class="flex item" @click="navTo('/pages/user/set/team')">
  16. <view class="left flex-start">
  17. <uni-icons type="staff" :size="iconSize" :color="listColor"></uni-icons>
  18. <text class="title">
  19. 我的推广
  20. </text>
  21. </view>
  22. <view class="right">
  23. <uni-icons type="right" :color='iconColor'></uni-icons>
  24. </view>
  25. </view> -->
  26. <view class="flex item" @click="navTo('/pages/user/set/shareQrCode')">
  27. <view class="left flex-start">
  28. <uni-icons type="personadd" :size="iconSize" :color="listColor"></uni-icons>
  29. <text class="title">
  30. 我的推广码
  31. </text>
  32. </view>
  33. <view class="right">
  34. <uni-icons type="right" :color='iconColor'></uni-icons>
  35. </view>
  36. </view>
  37. <view class="flex item" @click="navTo('/pages/user/set/transaction')">
  38. <view class="left flex-start">
  39. <uni-icons type="locked" :size="iconSize" :color="listColor"></uni-icons>
  40. <text class="title">
  41. 支付密码修改
  42. </text>
  43. </view>
  44. <view class="right">
  45. <uni-icons type="right" :color='iconColor'></uni-icons>
  46. </view>
  47. </view>
  48. <view class="flex item" @click="navTo('/pages/user/set/password')">
  49. <view class="left flex-start">
  50. <uni-icons type="locked" :size="iconSize" :color="listColor"></uni-icons>
  51. <text class="title">
  52. 登录密码修改
  53. </text>
  54. </view>
  55. <view class="right">
  56. <uni-icons type="right" :color='iconColor'></uni-icons>
  57. </view>
  58. </view>
  59. <view class="flex item" @click="navTo('/pages/user/set/bindBank')">
  60. <view class="left flex-start">
  61. <uni-icons type="staff" :size="iconSize" :color="listColor"></uni-icons>
  62. <text class="title">
  63. 我的收款信息
  64. </text>
  65. </view>
  66. <view class="right">
  67. <uni-icons type="right" :color='iconColor'></uni-icons>
  68. </view>
  69. </view>
  70. <!-- <view class="flex item">
  71. <view class="left flex-start">
  72. <uni-icons type="wallet" :size="iconSize" :color="listColor"></uni-icons>
  73. <text class="title">
  74. 收款信息
  75. </text>
  76. </view>
  77. <view class="right">
  78. <uni-icons type="right" :color='iconColor'></uni-icons>
  79. </view>
  80. </view> -->
  81. </view>
  82. <view class="list-cell log-out-btn" @click="toLogout">
  83. <text class="cell-tit">{{$t('accountSettings.a9')}}</text>
  84. </view>
  85. <view class="list-cell log-out-btn margin-t-30" @click="copyDomUrl">
  86. <text class="cell-tit">复制APP下载地址</text>
  87. </view>
  88. </view>
  89. </template>
  90. <script>
  91. import { logout } from '@/api/set.js';
  92. import {
  93. copyText
  94. } from '@/utils/rocessor.js';
  95. import {
  96. mapMutations
  97. } from 'vuex';
  98. export default {
  99. data() {
  100. return {
  101. iconSize:'20',
  102. listColor:'#1356FF',
  103. iconColor:'#999'
  104. };
  105. },
  106. methods:{
  107. ...mapMutations('user',['logout']),
  108. copyDomUrl(){
  109. copyText(this.$store.state.baseURL+"/register/")
  110. },
  111. navTo(url){
  112. uni.navigateTo({
  113. url:url,
  114. fail(red) {
  115. console.log(red);
  116. }
  117. })
  118. },
  119. //退出登录
  120. toLogout(){
  121. let obj = this;
  122. uni.showModal({
  123. content: this.$t('login.b7'),
  124. success: (e)=>{
  125. if(e.confirm){
  126. logout({}).then((e) => {
  127. uni.navigateBack();
  128. }).catch((e) => {
  129. console.log(e);
  130. })
  131. obj.logout();
  132. }
  133. }
  134. });
  135. },
  136. }
  137. }
  138. </script>
  139. <style lang='scss'>
  140. page{
  141. background-color: #051137;
  142. }
  143. .container{
  144. padding: 30rpx;
  145. }
  146. .item{
  147. background-color: #1F2A4A;
  148. border-radius: 10rpx;
  149. padding: 20rpx 20rpx;
  150. color: #FFF;
  151. margin-bottom: 30rpx;
  152. .title{
  153. padding-left: 10rpx;
  154. font-size: $font-base;
  155. }
  156. }
  157. .list-cell{
  158. background: linear-gradient(90deg, #0C5AFA, #1356FF);
  159. text-align: center;
  160. color: #FFF;
  161. padding: 20rpx;
  162. line-height: 1;
  163. border-radius: 10rpx;
  164. font-size: 30rpx;
  165. }
  166. </style>