AI销管
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 
 

256 rindas
6.0 KiB

  1. <template>
  2. <view class="main">
  3. <u-navbar title="我的" :is-back="false" :background="{background: 'none'}" :border-bottom="false" title-color="#333"> </u-navbar>
  4. <view class="header">
  5. <view class="header-zuo">
  6. <u-avatar
  7. :src="photo?photo:'/static/images/avatar.png'"
  8. size="128"></u-avatar>
  9. </view>
  10. <view class="header-you">
  11. <view class="userName u-line-2">
  12. {{name}}
  13. </view>
  14. <view class="mobile">{{mobile}}</view>
  15. </view>
  16. </view>
  17. <view class="settingGroup">
  18. <!-- <navigator class="line" url="/pages/mine/messageList">
  19. <view class="title" style="width: 19%;">
  20. <image src="/static/images/studyhot.png" mode=""></image>
  21. 消息
  22. </view>
  23. <view class="right">
  24. <image src="/static/images/right-arrow.png" mode=""></image>
  25. </view>
  26. </navigator> -->
  27. <navigator class="line" url="/pages/mine/Myprofile">
  28. <view class="title">
  29. <image src="/static/images/setting.png" mode=""></image>
  30. 个人资料
  31. </view>
  32. <view class="right">
  33. <image src="/static/images/right-arrow.png" mode=""></image>
  34. </view>
  35. </navigator>
  36. <view class="line" @click="Changehepassword">
  37. <view class="title">
  38. <image src="/static/images/password.png" mode=""></image>
  39. 修改密码
  40. </view>
  41. <view class="right">
  42. <image src="/static/images/right-arrow.png" mode=""></image>
  43. </view>
  44. </view>
  45. <view class="line" @click="phone">
  46. <view class="title">
  47. <image src="/static/images/concat.png" mode=""></image>
  48. 联系客服
  49. </view>
  50. <view class="right">
  51. <image src="/static/images/right-arrow.png" mode=""></image>
  52. </view>
  53. </view>
  54. <view class="line" @click="scan">
  55. <view class="title">
  56. <image src="/static/images/visitCode.png" mode=""></image>
  57. 访客登记码
  58. </view>
  59. <view class="right">
  60. <image src="/static/images/right-arrow.png" mode=""></image>
  61. </view>
  62. </view>
  63. <view class="loginout" @click="logout" style="border: none;">
  64. <view class="title">
  65. 退出登录
  66. </view>
  67. </view>
  68. </view>
  69. <!-- 底部导航栏 -->
  70. <!-- <u-tabbar :isBtnTop="false" :mid-button="true" activeColor="#1296db" inactiveColor="#999999" v-model="current" :list="tabbarList"></u-tabbar> -->
  71. </view>
  72. </template>
  73. <script>
  74. var app = getApp();
  75. var util = require("../../utils/util.js");
  76. var config = require("../../config");
  77. import tabbarList from '@/utils/tabbar.js'
  78. export default {
  79. data() {
  80. return {
  81. // tabbar配置项
  82. current: 0,
  83. tabbarList: tabbarList,
  84. //--- end --- tabbar配置项
  85. name: "",
  86. photo: "",
  87. mobile: "",
  88. };
  89. },
  90. onShow: function() {
  91. var userInfos = uni.getStorageSync('weapp_session_userInfo_data');
  92. this.name = userInfos.name,
  93. this.photo = userInfos.avatar,
  94. this.mobile = userInfos.username
  95. },
  96. methods: {
  97. //拨打电话
  98. phone() {
  99. wx.makePhoneCall({
  100. phoneNumber: '4008191707,8888' //仅为示例,并非真实的电话号码
  101. })
  102. },
  103. scan(){
  104. uni.navigateTo({
  105. url:"../mine/registerCode"
  106. })
  107. },
  108. //修改密码
  109. Changehepassword() {
  110. uni.navigateTo({
  111. url: '/pages/mine/Changehepassword'
  112. });
  113. },
  114. //退出
  115. logout() {
  116. uni.showModal({
  117. title: '提示',
  118. content: '确定要退出?',
  119. cancelColor: "#999999",
  120. showCancel: true,
  121. success(res) {
  122. if (res.confirm) {
  123. uni.request({
  124. url: config.service.logout,
  125. header: {
  126. 'Authorization': 'Basic dGVzdDp0ZXN0',
  127. 'content-type': 'application/x-www-form-urlencoded'
  128. },
  129. method: "DELETE",
  130. success: function(result) {
  131. var data = result.data; //console.log("登录信息", data);
  132. if (data.data == true) {
  133. // app.Closewebsocke()
  134. uni.clearStorageSync(); //清除缓存
  135. uni.showToast({
  136. icon: "none",
  137. title: "退出成功"
  138. })
  139. uni.reLaunch({
  140. url: '/pages/login/index'
  141. });
  142. }
  143. },
  144. // 响应错误
  145. fail: function(loginResponseError) {
  146. util.showNone("网络异常,请重试");
  147. return false;
  148. }
  149. });
  150. }
  151. }
  152. });
  153. }
  154. }
  155. };
  156. </script>
  157. <style lang="scss" scoped>
  158. .main {
  159. min-height: calc(100vh - var(--window-top));
  160. display: flex;
  161. flex-direction: column;
  162. background: url('https://static.quhouse.com/f5e2422890044cd1a620abd078e63442.png') no-repeat top left;
  163. background-size: 750rpx 540rpx;
  164. }
  165. .header {
  166. width: 670rpx;
  167. height: 248rpx;
  168. display: flex;
  169. align-items: center;
  170. background: url('https://static.quhouse.com/10fa8f6fe7fa4104a5c4149be4735311.png') no-repeat;
  171. background-size: 670rpx 248rpx;
  172. margin: 0 40rpx 60rpx;
  173. .header-zuo {
  174. width: 128rpx;
  175. height: 128rpx;
  176. margin-left: 40rpx;
  177. }
  178. .header-you {
  179. margin-left: 30rpx;
  180. .userName {
  181. margin-bottom: 20rpx;
  182. font-size: 36rpx;
  183. font-weight: 500;
  184. color: #fff;
  185. font-family: PingFangSC-Medium, PingFang SC;
  186. }
  187. .mobile {
  188. font-size: 30rpx;
  189. color: #fff;
  190. }
  191. }
  192. }
  193. .settingGroup {
  194. position: relative;
  195. margin-top: 30rpx;
  196. flex-grow: 1;
  197. display: flex;
  198. flex-direction: column;
  199. color: #333333;
  200. font-size: 30rpx;
  201. border-radius: 12rpx;
  202. background-color: #fff;
  203. .line {
  204. height: 44rpx;
  205. margin: 0 50rpx 60rpx;
  206. display: flex;
  207. align-items: center;
  208. justify-content: space-between;
  209. .title {
  210. display: flex;
  211. align-items: center;
  212. width: 300rpx;
  213. height:44rpx;
  214. line-height: 44rpx;
  215. font-size: 32rpx;
  216. font-family: PingFangSC-Regular, PingFang SC;
  217. font-weight: 400;
  218. color: #333333;
  219. image{
  220. width: 36rpx;
  221. height: 36rpx;
  222. margin-right: 20rpx;
  223. }
  224. }
  225. .right{
  226. image{
  227. width: 12rpx;
  228. height: 28rpx;
  229. }
  230. }
  231. }
  232. .loginout {
  233. position: absolute;
  234. left: 40rpx;
  235. right: 40rpx;
  236. bottom: 50rpx;
  237. width: 670rpx;
  238. height: 92rpx;
  239. background: #F8F8F8;
  240. border-radius: 8rpx;
  241. display: flex;
  242. align-items: center;
  243. justify-content: center;
  244. }
  245. }
  246. </style>