setup.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. <template>
  2. <view class="box">
  3. <view class="main">
  4. <view class="mkBox">
  5. <view class="line">
  6. <view class="lineTitle">昵称</view>
  7. <view class="lineCont">{{nickName}}</view>
  8. </view>
  9. <view class="line">
  10. <view class="lineTitle">手机号</view>
  11. <view class="lineCont">{{phoneNum}}</view>
  12. </view>
  13. <view class="line boderNo">
  14. <view class="lineTitle">真实姓名</view>
  15. <view class="lineCont">
  16. <input type="text" v-model="name" value="" placeholder="请输入" class="lineinput" @blur="updateBmember"/>
  17. </view>
  18. </view>
  19. </view>
  20. <view class="mkBox">
  21. <view class="line boderNo" @click="goiphone">
  22. <view class="lineTitle">联系人管理</view>
  23. <view class="lineCont">
  24. <image src="../../static/img/jt.png" mode="" class="lineJt"></image>
  25. </view>
  26. </view>
  27. </view>
  28. <view class="mkBox">
  29. <view class="line " @click="goTreaty">
  30. <view class="lineTitle">服务协议</view>
  31. <view class="lineCont">
  32. <image src="../../static/img/jt.png" mode="" class="lineJt"></image>
  33. </view>
  34. </view>
  35. <view class="line boderNo" @click="goIntimity">
  36. <view class="lineTitle">隐私政策</view>
  37. <view class="lineCont">
  38. <image src="../../static/img/jt.png" mode="" class="lineJt"></image>
  39. </view>
  40. </view>
  41. </view>
  42. <view class="signOut" @click="signOut">退出登录</view>
  43. </view>
  44. </view>
  45. </template>
  46. <script>
  47. export default {
  48. data() {
  49. return {
  50. nickName:'',
  51. phoneNum:'',
  52. name:'',
  53. }
  54. },
  55. onLoad(opt) {
  56. this.nickName = opt.nickName
  57. this.phoneNum = opt.phone
  58. this.name = opt.name
  59. },
  60. onShow() {
  61. },
  62. methods: {
  63. updateBmember(){
  64. if(this.name!=''){
  65. this.$http('worldKeepCar/keepCarMy/updateTmember', {
  66. name:this.name
  67. },'POST').then(res => {
  68. })
  69. }
  70. },
  71. signOut(){
  72. //uni.clearStorageSync();
  73. uni.removeStorageSync('logodata');
  74. uni.navigateTo({
  75. url:'../login/login'
  76. })
  77. },
  78. goiphone(){
  79. uni.navigateTo({
  80. url:'../iPhone/phoneList'
  81. })
  82. },
  83. goTreaty(){
  84. uni.navigateTo({
  85. url:'treaty'
  86. })
  87. },
  88. goIntimity(){
  89. uni.navigateTo({
  90. url:'intimity'
  91. })
  92. }
  93. }
  94. }
  95. </script>
  96. <style scoped>
  97. .box{
  98. min-height: 100vh;
  99. background:#F4F5F7 ;
  100. }
  101. .main{
  102. padding: 24rpx;
  103. }
  104. .mkBox{
  105. background: #FEFFFE;
  106. border-radius: 10rpx;
  107. padding: 0 22rpx;
  108. margin-bottom: 20rpx;
  109. }
  110. .line{
  111. display: flex;
  112. justify-content: space-between;
  113. padding: 30rpx 0;
  114. border-bottom: 1px solid #eeeeee;
  115. font-size: 28rpx;
  116. color: #3C3C3C;
  117. }
  118. .lineinput{
  119. text-align: right;
  120. font-size: 28rpx;
  121. color: #3C3C3C;
  122. }
  123. .lineJt{
  124. width: 15rpx;
  125. height: 26rpx;
  126. }
  127. .boderNo{
  128. border: none;
  129. }
  130. .signOut{
  131. width: 702rpx;
  132. height: 98rpx;
  133. background: #FFFFFF;
  134. border-radius: 10rpx;
  135. font-size: 30rpx;
  136. color: #FF3B30;
  137. line-height: 98rpx;
  138. text-align: center;
  139. margin-top: 100rpx;
  140. }
  141. </style>