|
@@ -1,4 +1,5 @@
|
|
|
<script setup lang="ts">
|
|
|
+import ShuiWuTop from "@/components/ShuiWuTop.vue";
|
|
|
import { useMemberStore } from "@/stores";
|
|
|
import { http } from "@/utils/http";
|
|
|
const memberStore = useMemberStore();
|
|
@@ -9,39 +10,116 @@ const getData = async () => {
|
|
|
header: {},
|
|
|
});
|
|
|
};
|
|
|
+
|
|
|
+const editUser = () => {
|
|
|
+ //跳转到编辑页面
|
|
|
+ uni.navigateTo({
|
|
|
+ url: "/pages/my/myEdit",
|
|
|
+ });
|
|
|
+};
|
|
|
+const shireFun = () => {
|
|
|
+ uni.share({
|
|
|
+ provider: "weixin",
|
|
|
+ scene: "WXSceneSession",
|
|
|
+ type: 1,
|
|
|
+ summary: "我正在使用HBuilderX开发uni-app,赶紧跟我一起来体验!",
|
|
|
+ success: function (res) {
|
|
|
+ console.log("success:" + JSON.stringify(res));
|
|
|
+ },
|
|
|
+ fail: function (err) {
|
|
|
+ console.log("fail:" + JSON.stringify(err));
|
|
|
+ },
|
|
|
+ });
|
|
|
+};
|
|
|
+const myInvite = () => {
|
|
|
+ //跳转到邀请页面
|
|
|
+ uni.navigateTo({
|
|
|
+ url: "/pages/my/myInvite",
|
|
|
+ });
|
|
|
+};
|
|
|
+
|
|
|
+const aboutMy = () => {
|
|
|
+ //跳转到关于
|
|
|
+ uni.navigateTo({
|
|
|
+ url: "/pages/my/aboutMy",
|
|
|
+ });
|
|
|
+};
|
|
|
+const report = () => {
|
|
|
+ //跳转到报告页面
|
|
|
+ uni.navigateTo({
|
|
|
+ url: "/pages/my/reportList",
|
|
|
+ });
|
|
|
+};
|
|
|
+
|
|
|
+const exit = () => {
|
|
|
+ uni.showToast({ title: "已退出" });
|
|
|
+ //跳转到报告页面
|
|
|
+
|
|
|
+ setTimeout(() => {
|
|
|
+ uni.switchTab({
|
|
|
+ url: "/pages/index/index",
|
|
|
+ });
|
|
|
+ }, 550);
|
|
|
+};
|
|
|
</script>
|
|
|
|
|
|
<template>
|
|
|
<view class="bg">
|
|
|
+ <ShuiWuTop />
|
|
|
+ <view class="home_top"> 我的 </view>
|
|
|
+ <view class="company_top"
|
|
|
+ ><image
|
|
|
+ class="company_image"
|
|
|
+ src="https://qiniu-web-assets.dcloud.net.cn/unidoc/zh/shuijiao.jpg"
|
|
|
+ ></image>
|
|
|
+ <view>xxxxxxx公司</view>
|
|
|
+ </view>
|
|
|
<view class="my_info">
|
|
|
- <view>
|
|
|
+ <view class="info_out">
|
|
|
<image
|
|
|
- class="user_icon"
|
|
|
+ class="user_image"
|
|
|
src="https://qiniu-web-assets.dcloud.net.cn/unidoc/zh/shuijiao.jpg"
|
|
|
- />
|
|
|
+ ></image>
|
|
|
+ <view class="user_name">
|
|
|
+ <view class="user_name_detail">张丽莎</view>
|
|
|
+ <view class="user_name_detail">岗位: 销售</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="info_detail" style="margin-top: 25rpx"
|
|
|
+ >联系电话: 18595924672
|
|
|
+ </view>
|
|
|
+ <view class="info_detail">邮箱: 1728114119@qq.com </view>
|
|
|
+ <view class="info_detail" style="margin-bottom: 15rpx"
|
|
|
+ >公司地址: 自内蒙古自治区</view
|
|
|
+ >
|
|
|
+ <view class="info_edit">
|
|
|
+ <button class="button_edit" @click="editUser">编辑</button>
|
|
|
+ <button class="button_edit" @click="shireFun" open-type="share">分享</button>
|
|
|
</view>
|
|
|
- <view class="user_name">用户登录昵称</view>
|
|
|
</view>
|
|
|
+
|
|
|
<view class="my_tab">
|
|
|
- <view class="my_tab_detail">
|
|
|
+ <view class="my_tab_detail" @click="myInvite">
|
|
|
<view>
|
|
|
<image class="tab_icon" src="../../static/images/shequ.png" />
|
|
|
</view>
|
|
|
- <view class="tab_des"> 加入社区 </view>
|
|
|
+ <view class="tab_des"> 我的邀请 </view>
|
|
|
<view>
|
|
|
<image class="tab_icon-right" src="../../static/images/right.png" />
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="my_tab_detail">
|
|
|
+ <ShuiWuLine />
|
|
|
+ <view class="my_tab_detail" @click="report">
|
|
|
<view>
|
|
|
<image class="tab_icon" src="../../static/images/fankui.png" />
|
|
|
</view>
|
|
|
- <view class="tab_des"> 问题反馈 </view>
|
|
|
+ <view class="tab_des"> 报告记录 </view>
|
|
|
<view>
|
|
|
<image class="tab_icon-right" src="../../static/images/right.png" />
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="my_tab_detail">
|
|
|
+ <ShuiWuLine />
|
|
|
+ <view class="my_tab_detail" @click="aboutMy">
|
|
|
<view>
|
|
|
<image class="tab_icon" src="../../static/images/about.png" />
|
|
|
</view>
|
|
@@ -50,14 +128,12 @@ const getData = async () => {
|
|
|
<image class="tab_icon-right" src="../../static/images/right.png" />
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="my_tab_detail">
|
|
|
+ <ShuiWuLine />
|
|
|
+ <view class="my_tab_detail_exit" @click="exit">
|
|
|
<view>
|
|
|
<image class="tab_icon" src="../../static/images/exit.png" />
|
|
|
</view>
|
|
|
<view class="tab_des"> 退出登录 </view>
|
|
|
- <view>
|
|
|
- <image class="tab_icon-right" src="../../static/images/right.png" />
|
|
|
- </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view> </view>
|
|
@@ -67,27 +143,82 @@ const getData = async () => {
|
|
|
|
|
|
<style lang="scss">
|
|
|
//
|
|
|
+page {
|
|
|
+ height: 100%;
|
|
|
+}
|
|
|
+
|
|
|
.bg {
|
|
|
- background: url(@/static/images/bg.png) no-repeat;
|
|
|
- background-size: 100% 100%;
|
|
|
- width: 750rpx;
|
|
|
- height: 100vh;
|
|
|
- padding-top: 20vh;
|
|
|
- padding-left: 20rpx;
|
|
|
- padding-right: 20rpx;
|
|
|
- padding-bottom: 40rpx;
|
|
|
+ height: 100%;
|
|
|
+ padding: 0rpx 20rpx;
|
|
|
+ background: rgb(243, 250, 248);
|
|
|
+ .home_top {
|
|
|
+ text-align: center;
|
|
|
+ font-size: 40rpx;
|
|
|
+ margin-bottom: 60rpx;
|
|
|
+ }
|
|
|
+ .company_top {
|
|
|
+ margin-bottom: 20rpx;
|
|
|
+ display: flex;
|
|
|
+ justify-content: start;
|
|
|
+ align-items: center;
|
|
|
+ .company_image {
|
|
|
+ width: 60rpx;
|
|
|
+ height: 60rpx;
|
|
|
+ background-color: #eeeeee;
|
|
|
+ border-radius: 50%;
|
|
|
+ margin-right: 20rpx;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
.my_info {
|
|
|
display: flex;
|
|
|
- flex-direction: row;
|
|
|
+ flex-direction: column;
|
|
|
justify-content: flex-start;
|
|
|
- align-items: center;
|
|
|
- background-color: #ffffff;
|
|
|
+ background: linear-gradient(rgb(191, 191, 243), rgb(98, 95, 240));
|
|
|
padding-top: 15rpx;
|
|
|
- padding-bottom: 20rpx;
|
|
|
- padding-left: 15rpx;
|
|
|
- border-radius: 30rpx;
|
|
|
+ border-radius: 15rpx;
|
|
|
+ .info_out {
|
|
|
+ padding: 0rpx 20rpx;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: row;
|
|
|
+ .user_name {
|
|
|
+ color: #ffffff;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ justify-content: space-between;
|
|
|
+ .user_name_detail {
|
|
|
+ font-size: 36rpx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .user_image {
|
|
|
+ width: 100rpx;
|
|
|
+ height: 100rpx;
|
|
|
+ background-color: #eeeeee;
|
|
|
+ border-radius: 50%;
|
|
|
+ margin-right: 20rpx;
|
|
|
+ }
|
|
|
+ .info_detail {
|
|
|
+ color: #ffffff;
|
|
|
+ padding: 10rpx 20rpx;
|
|
|
+ font-size: 36rpx;
|
|
|
+ font-weight: 100;
|
|
|
+ }
|
|
|
+ .info_edit {
|
|
|
+ line-height: 100rpx;
|
|
|
+ background-color: #ffffff;
|
|
|
+ color: #000000;
|
|
|
+ display: flex;
|
|
|
+ font-size: 36rpx;
|
|
|
+ flex-direction: row;
|
|
|
+ justify-content: space-around;
|
|
|
+ border-bottom-left-radius: 15rpx;
|
|
|
+ border-bottom-right-radius: 15rpx;
|
|
|
+ .button_edit {
|
|
|
+ background-color: transparent;
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
// items-align:center;
|
|
|
}
|
|
@@ -99,12 +230,6 @@ const getData = async () => {
|
|
|
border-radius: 50%;
|
|
|
}
|
|
|
|
|
|
-.user_name {
|
|
|
- color: #5aa4ae;
|
|
|
- font-size: 30rpx;
|
|
|
- font-weight: 700;
|
|
|
-}
|
|
|
-
|
|
|
.my_tab {
|
|
|
background-color: #ffffff;
|
|
|
margin-top: 40rpx;
|
|
@@ -113,14 +238,23 @@ const getData = async () => {
|
|
|
}
|
|
|
|
|
|
.my_tab_detail {
|
|
|
- margin-top: 40rpx;
|
|
|
- margin-bottom: 40rpx;
|
|
|
+ margin-top: 42rpx;
|
|
|
+ margin-bottom: 20rpx;
|
|
|
display: flex;
|
|
|
flex-direction: row;
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: flex-start;
|
|
|
}
|
|
|
+.my_tab_detail_exit {
|
|
|
+ margin-top: 40rpx;
|
|
|
+ margin-bottom: 40rpx;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: row;
|
|
|
+ align-items: center;
|
|
|
+ width: 100%;
|
|
|
+ justify-content: center;
|
|
|
+}
|
|
|
|
|
|
.tab_icon {
|
|
|
width: 40rpx;
|