index.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. <template>
  2. <view class="user-info-wrap">
  3. <view class="nav-bar">
  4. <view class="nav-content">
  5. <view @click="gotoSettingtelphone(0)" class="nav-info">
  6. <view class="nav-desc">
  7. <view class="nav-name">
  8. <view class="">手机号</view>
  9. </view>
  10. </view>
  11. <view class="arrow-right">
  12. <u-icon name="arrow-right" color="#666" size="18"></u-icon>
  13. </view>
  14. </view>
  15. </view>
  16. <view class="custom-line"></view>
  17. <view class="nav-content">
  18. <view @click="gotoSettingWechat()" class="nav-info">
  19. <view class="nav-desc">
  20. <view class="nav-name">
  21. <view class="">微信号</view>
  22. </view>
  23. </view>
  24. <view class="arrow-right">
  25. <u-icon name="arrow-right" color="#666" size="18"></u-icon>
  26. </view>
  27. </view>
  28. </view>
  29. <view class="custom-line"></view>
  30. <view class="nav-content">
  31. <view @click="gotoSettingAccountPassword()" class="nav-info">
  32. <view class="nav-desc">
  33. <view class="nav-name">
  34. <view class="">修改登录交易密码</view>
  35. </view>
  36. </view>
  37. <view class="arrow-right">
  38. <u-icon name="arrow-right" color="#666" size="18"></u-icon>
  39. </view>
  40. </view>
  41. </view>
  42. </view>
  43. </view>
  44. </template>
  45. <script>
  46. export default {
  47. data() {
  48. return {
  49. userInfo: {
  50. telphone: '',
  51. code: '',
  52. },
  53. }
  54. },
  55. onReady() {
  56. },
  57. methods: {
  58. // 去设置手机号
  59. gotoSettingtelphone(){
  60. uni.navigateTo({
  61. url: '/myPages/setting/setting-telphone',
  62. })
  63. },
  64. // 去设置微信号
  65. gotoSettingWechat(){
  66. uni.navigateTo({
  67. url: '/myPages/setting/setting-wechat',
  68. })
  69. },
  70. // 去设置账号密码
  71. gotoSettingAccountPassword(){
  72. uni.navigateTo({
  73. url: '/myPages/setting/setting-account-password',
  74. })
  75. },
  76. // 去设置交易密码页面
  77. gotoSettingTransactionPassword(){
  78. uni.navigateTo({
  79. url: '/myPages/setting/setting-transaction-password',
  80. })
  81. }
  82. }
  83. }
  84. </script>
  85. <style lang="scss">
  86. .user-info-wrap{
  87. margin-left: 12px;
  88. margin-right: 12px;
  89. /* 导航菜单 */
  90. .nav-bar{
  91. background: #fff;
  92. border-radius: 10px;
  93. margin-top: 12px;
  94. /* 商店信息 */
  95. .nav-content{
  96. padding-top: 10px;
  97. padding-bottom: 6px;
  98. .nav-info{
  99. display: flex;
  100. padding-left: 10px;
  101. .logo {
  102. width: 12%;
  103. text-align: center;
  104. image{
  105. width: 24px;
  106. height: 24px;
  107. }
  108. }
  109. .nav-desc{
  110. width: 68%;
  111. display: flex;
  112. line-height: 30px;
  113. .nav-name{
  114. font-size: 14px;
  115. width: 60%;
  116. }
  117. .change-store{
  118. text-align: right;
  119. width: 40%;
  120. font-size: 12px;
  121. color: #666;
  122. }
  123. }
  124. .arrow-right{
  125. width:32%;
  126. text-align: right;
  127. margin: 0 auto;
  128. cursor: pointer;
  129. padding-top: 3px;
  130. padding-right: 6px;
  131. display: flex;
  132. justify-content: flex-end;
  133. align-items: center;
  134. image{
  135. width: 18px;
  136. height: 18px;
  137. }
  138. .head-img {
  139. text-align: center;
  140. image{
  141. width: 24px;
  142. height: 24px;
  143. }
  144. }
  145. }
  146. }
  147. }
  148. }
  149. .sure-btn{
  150. margin-top: 20px;
  151. width: 100%;
  152. .btn{
  153. background: #FF6C7B;
  154. text-align: center;
  155. border-radius: 14px;
  156. height: 36px;
  157. line-height: 36px;
  158. color: #fff;
  159. font-size: 16px;
  160. }
  161. }
  162. }
  163. </style>