index.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  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 bordBot">
  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 bordBot">
  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 bordBot">
  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. .bordBot{
  87. border-bottom: 1px solid #F7F7F7;
  88. }
  89. .user-info-wrap{
  90. margin-left: 12px;
  91. margin-right: 12px;
  92. /* 导航菜单 */
  93. .nav-bar{
  94. background: #fff;
  95. border-radius: 10px;
  96. margin-top: 12px;
  97. /* 商店信息 */
  98. .nav-content{
  99. padding-top: 10px;
  100. padding-bottom: 6px;
  101. .nav-info{
  102. display: flex;
  103. padding-left: 10px;
  104. .logo {
  105. width: 12%;
  106. text-align: center;
  107. image{
  108. width: 24px;
  109. height: 24px;
  110. }
  111. }
  112. .nav-desc{
  113. width: 68%;
  114. display: flex;
  115. line-height: 30px;
  116. .nav-name{
  117. font-size: 14px;
  118. width: 60%;
  119. }
  120. .change-store{
  121. text-align: right;
  122. width: 40%;
  123. font-size: 12px;
  124. color: #666;
  125. }
  126. }
  127. .arrow-right{
  128. width:70%;
  129. text-align: right;
  130. margin: 0 auto;
  131. //cursor: pointer;
  132. padding-top: 3px;
  133. padding-right: 6px;
  134. display: flex;
  135. justify-content: flex-end;
  136. align-items: center;
  137. image{
  138. width: 18px;
  139. height: 18px;
  140. }
  141. .head-img {
  142. text-align: center;
  143. image{
  144. width: 24px;
  145. height: 24px;
  146. }
  147. }
  148. }
  149. }
  150. }
  151. }
  152. .sure-btn{
  153. margin-top: 20px;
  154. width: 100%;
  155. .btn{
  156. background: #FF6C7B;
  157. text-align: center;
  158. border-radius: 14px;
  159. height: 36px;
  160. line-height: 36px;
  161. color: #fff;
  162. font-size: 16px;
  163. }
  164. }
  165. }
  166. </style>