You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

198 lines
4.2 KiB

  1. <template>
  2. <view class="main">
  3. <view class="backTop"></view>
  4. <!-- 头部开始 -->
  5. <view class="header box">
  6. <view class="header-zuo">
  7. <u-avatar
  8. :src="photo?photo:'https://qufang.oss-cn-beijing.aliyuncs.com/upload/icon/xcx/jjycrm/my/headPicture.png'"
  9. size="148"></u-avatar>
  10. </view>
  11. <view class="header-you">
  12. <view class="userName">{{name}}</view>
  13. <view class="mobile">{{mobile}}</view>
  14. </view>
  15. </view>
  16. <view class="settingGroup box">
  17. <navigator class="line" url="/pages/mine/Myprofile">
  18. <view class="title">
  19. <image src="/static/images/setting.png" style="width: 36rpx;height: 36rpx;" mode=""></image>
  20. 编辑资料
  21. </view>
  22. <view class="right">
  23. <image src="/static/images/arrow.png" style="width: 18rpx;height: 32rpx;" mode=""></image>
  24. </view>
  25. </navigator>
  26. <view class="line" @click="phone">
  27. <view class="title">
  28. <image src="/static/images/Customer.png" style="width: 36rpx;height: 36rpx;" mode=""></image>
  29. 客服电话
  30. </view>
  31. <view class="right">
  32. <image src="/static/images/arrow.png" style="width: 18rpx;height: 32rpx;" mode=""></image>
  33. </view>
  34. </view>
  35. <view class="line" @click="Changehepassword">
  36. <view class="title">
  37. <image src="/static/images/password.png" style="width: 36rpx;height: 36rpx;" mode=""></image>
  38. 修改密码
  39. </view>
  40. <view class="right">
  41. <image src="/static/images/arrow.png" style="width: 18rpx;height: 32rpx;" mode=""></image>
  42. </view>
  43. </view>
  44. <view class="line" @click="logout" style="border: none;">
  45. <view class="title">
  46. <image src="/static/images/exit.png" style="width: 36rpx;height: 36rpx;" mode=""></image>
  47. 退出登录
  48. </view>
  49. <view class="right">
  50. <image src="/static/images/arrow.png" style="width: 18rpx;height: 32rpx;" mode=""></image>
  51. </view>
  52. </view>
  53. </view>
  54. </view>
  55. </template>
  56. <script>
  57. var app = getApp();
  58. var util = require("../../utils/util.js");
  59. var config = require("../../config");
  60. export default {
  61. data() {
  62. return {
  63. name: "",
  64. photo: "",
  65. mobile: "",
  66. };
  67. },
  68. onShow: function() {
  69. var userInfos = uni.getStorageSync('weapp_session_userInfo_data');
  70. this.name = userInfos.name,
  71. this.photo = userInfos.picUrl,
  72. this.mobile = userInfos.loginName
  73. },
  74. methods: {
  75. //拨打电话
  76. phone() {
  77. wx.makePhoneCall({
  78. phoneNumber: '4008191707,8888' //仅为示例,并非真实的电话号码
  79. })
  80. },
  81. //修改密码
  82. Changehepassword() {
  83. uni.navigateTo({
  84. url: '/pages/mine/Changehepassword'
  85. });
  86. },
  87. //退出
  88. logout() {
  89. uni.showModal({
  90. title: '提示',
  91. content: '确定要退出?',
  92. cancelColor: "#999999",
  93. showCancel: true,
  94. success(res) {
  95. if (res.confirm) {
  96. uni.clearStorageSync(); //清除缓存
  97. uni.showToast({
  98. icon: "none",
  99. title: "退出成功"
  100. })
  101. uni.reLaunch({
  102. url: '/pages/login/index'
  103. });
  104. }
  105. }
  106. });
  107. }
  108. }
  109. };
  110. </script>
  111. <style lang="scss" scoped>
  112. .main {
  113. padding: 0 30rpx;
  114. background: #F8F8F8;
  115. display: flex;
  116. flex-direction: column;
  117. min-height: 100vh;
  118. padding-bottom: 40rpx;
  119. .backTop {
  120. background: #2671E2;
  121. position: absolute;
  122. left: 0;
  123. top: 0;
  124. width: 750rpx;
  125. height: 171rpx;
  126. }
  127. .box {
  128. background: #ffffff;
  129. }
  130. }
  131. .header {
  132. z-index: 2;
  133. width: 100%;
  134. height: 212rpx;
  135. border-radius: 25rpx;
  136. margin-top: 42rpx;
  137. display: flex;
  138. .header-zuo {
  139. width: 148rpx;
  140. height: 148rpx;
  141. margin-top: 32rpx;
  142. margin-left: 30rpx;
  143. }
  144. .header-you {
  145. margin-left: 20rpx;
  146. .userName {
  147. font-size: 36rpx;
  148. font-weight: 500;
  149. color: #303030;
  150. margin-top: 56rpx;
  151. }
  152. .mobile {
  153. font-size: 30rpx;
  154. color: #BDBDBD;
  155. margin-top: 20rpx;
  156. }
  157. }
  158. }
  159. .settingGroup {
  160. box-shadow: 0px 0px 12px 0px rgba(224, 224, 224, 0.3);
  161. border-radius: 12rpx;
  162. margin-top: 30rpx;
  163. color: #333333;
  164. font-size: 30rpx;
  165. display: flex;
  166. flex-direction: column;
  167. .line {
  168. height: 118rpx;
  169. border-bottom: 1rpx solid #EEEEEE;
  170. margin: 0 38rpx 0 30rpx;
  171. display: flex;
  172. align-items: center;
  173. justify-content: space-between;
  174. .title {
  175. display: flex;
  176. align-items: center;
  177. width: 190rpx;
  178. justify-content: space-between;
  179. }
  180. }
  181. }
  182. </style>