AI营销辅助 普强使用
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.
 
 
 

252 lines
5.9 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/zkgj/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/subscribe">
  18. <view class="title">
  19. <image src="/static/images/studyhot.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. <navigator class="line" url="/pages/mine/Myprofile">
  27. <view class="title">
  28. <image src="/static/images/setting.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. </navigator>
  35. <view class="line" @click="phone">
  36. <view class="title">
  37. <image src="/static/images/Customer.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="scan">
  45. <view class="title" style="width: 220rpx;">
  46. <image src="/static/images/reg.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 class="line" @click="Changehepassword">
  54. <view class="title">
  55. <image src="/static/images/password.png" style="width: 36rpx;height: 36rpx;" mode=""></image>
  56. 修改密码
  57. </view>
  58. <view class="right">
  59. <image src="/static/images/arrow.png" style="width: 18rpx;height: 32rpx;" mode=""></image>
  60. </view>
  61. </view>
  62. <view class="line" @click="logout" style="border: none;">
  63. <view class="title">
  64. <image src="/static/images/exit.png" style="width: 36rpx;height: 36rpx;" mode=""></image>
  65. 退出登录
  66. </view>
  67. <view class="right">
  68. <image src="/static/images/arrow.png" style="width: 18rpx;height: 32rpx;" mode=""></image>
  69. </view>
  70. </view>
  71. </view>
  72. </view>
  73. </template>
  74. <script>
  75. var app = getApp();
  76. var util = require("../../utils/util.js");
  77. var config = require("../../config");
  78. export default {
  79. data() {
  80. return {
  81. name: "",
  82. photo: "",
  83. mobile: "",
  84. };
  85. },
  86. onShow: function() {
  87. var userInfos = uni.getStorageSync('weapp_session_userInfo_data');
  88. this.name = userInfos.name,
  89. this.photo = userInfos.picUrl,
  90. this.mobile = userInfos.loginName
  91. },
  92. methods: {
  93. scan(){
  94. uni.navigateTo({
  95. url:"../mine/registerCode"
  96. })
  97. },
  98. //拨打电话
  99. phone() {
  100. wx.makePhoneCall({
  101. phoneNumber: '010-82306399-7707' //仅为示例,并非真实的电话号码
  102. })
  103. },
  104. //修改密码
  105. Changehepassword() {
  106. uni.navigateTo({
  107. url: '/pages/mine/Changehepassword'
  108. });
  109. },
  110. //退出
  111. logout() {
  112. uni.showModal({
  113. title: '提示',
  114. content: '确定要退出?',
  115. cancelColor: "#999999",
  116. showCancel: true,
  117. success(res) {
  118. if (res.confirm) {
  119. app.Closewebsocke()
  120. uni.clearStorageSync(); //清除缓存
  121. uni.showToast({
  122. icon: "none",
  123. title: "退出成功"
  124. })
  125. uni.reLaunch({
  126. url: '/pages/login/index'
  127. });
  128. }
  129. }
  130. });
  131. },
  132. // tosubscr(){
  133. // let that=this;
  134. // wx.login({
  135. // success (res) {
  136. // if (res.code) {
  137. // let appid ='wxd9748307889cbe0d';
  138. // let secret = 'cfc40d2b86b650e216e900a2c430cd2b'
  139. // let url = 'https://api.weixin.qq.com/sns/jscode2session?appid=' + appid + '&secret=' + secret + '&js_code=' +res.code + '&grant_type=authorization_code';
  140. // uni.request({
  141. // url: url, // 请求路径
  142. // success: result => {
  143. // that.$u.get("/user/bindMessage",{
  144. // openId:result.data.openid,
  145. // loginName:that.mobile
  146. // }).then(data => {
  147. // console.log(data)
  148. // })
  149. // }
  150. // })
  151. // } else {
  152. // console.log('登录失败!' + res.errMsg)
  153. // }
  154. // }
  155. // })
  156. // // /pages/mine/subscribe
  157. // },
  158. }
  159. };
  160. </script>
  161. <style lang="scss" scoped>
  162. .main {
  163. padding: 0 30rpx;
  164. background: #F8F8F8;
  165. display: flex;
  166. flex-direction: column;
  167. min-height: 100vh;
  168. padding-bottom: 40rpx;
  169. .backTop {
  170. background: #2671E2;
  171. position: absolute;
  172. left: 0;
  173. top: 0;
  174. width: 750rpx;
  175. height: 171rpx;
  176. }
  177. .box {
  178. background: #ffffff;
  179. }
  180. }
  181. .header {
  182. z-index: 2;
  183. width: 100%;
  184. height: 212rpx;
  185. border-radius: 12rpx;
  186. margin-top: 42rpx;
  187. display: flex;
  188. .header-zuo {
  189. width: 148rpx;
  190. height: 148rpx;
  191. margin-top: 32rpx;
  192. margin-left: 30rpx;
  193. }
  194. .header-you {
  195. margin-left: 20rpx;
  196. .userName {
  197. font-size: 36rpx;
  198. font-weight: 500;
  199. color: #303030;
  200. margin-top: 56rpx;
  201. }
  202. .mobile {
  203. font-size: 30rpx;
  204. color: #BDBDBD;
  205. margin-top: 20rpx;
  206. }
  207. }
  208. }
  209. .settingGroup {
  210. box-shadow: 0px 0px 12px 0px rgba(224, 224, 224, 0.3);
  211. border-radius: 12rpx;
  212. margin-top: 30rpx;
  213. color: #333333;
  214. font-size: 30rpx;
  215. display: flex;
  216. flex-direction: column;
  217. .line {
  218. height: 118rpx;
  219. border-bottom: 1rpx solid #EEEEEE;
  220. margin: 0 38rpx 0 30rpx;
  221. display: flex;
  222. align-items: center;
  223. justify-content: space-between;
  224. .title {
  225. display: flex;
  226. align-items: center;
  227. width: 190rpx;
  228. justify-content: space-between;
  229. }
  230. }
  231. }
  232. </style>