123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404 |
- <template>
- <div class="page_my">
- <div class="myTop">
- <img src="../../assets/images/myBanner.png" alt />
- <div class="avatar">
- <img v-if="roleInfo.avatar != ''" :src="roleInfo.avatar" alt />
- <img
- v-if="roleInfo.avatar == ''"
- src="../../assets/images/mydefault.png"
- alt
- />
- </div>
- <div class="userMain" @click="toMyIndex">
- <div class="userBox">
- <div class="userTxt">
- <span v-if="roleInfo.user_name!=''"><p class="userName">{{ roleInfo.user_name }}</p></span>
- <span v-if="roleInfo.user_name==''"><p class="userName">{{ userName.name }}</p></span>
- <p class="signature">{{ roleInfo.message }}</p>
- </div>
- <van-icon name="arrow" />
- </div>
- </div>
- <div class="invitebox">
- <img src="../../assets/images/invite.png" alt />
- </div>
-
- <div class="myInfo" @click="toMyInfo">
- <div class="myInfoLeft">
- <img src="../../assets/images/myIcon1.png" alt />
- <p>我的信息</p>
- </div>
- <van-icon class="arrow" name="arrow" />
- </div>
- <router-link to="/ElectronicSignature">
- <div class="myInfo1">
- <div class="myInfoLeft">
- <img src="../../assets/images/myIcon9.png" alt />
- <p>电子签名</p>
- </div>
- <van-icon class="arrow" name="arrow" />
- </div>
- </router-link>
- </div>
-
- <div class="myBox">
- <div class="myBoxOne">
- <div class="myInfoLeft">
- <img src="../../assets/images/myIcon2.png" alt />
- <p>我的医院/组织/团队</p>
- </div>
- <van-icon class="arrow" name="arrow" />
- </div>
- <div class="myBoxTwo noBorder" v-for="(item,index) in organaziton" :key="index">
- <div class="myInfoLeft">
- <span v-if="item.org_logo == ''"><img src="../../assets/images/m01.png" alt /></span>
- <span v-if="item.org_logo !==''"><img :src="item.org_logo"></span>
- <p>{{item.org_name}}</p>
- </div>
- <div class="myInfoRight" v-if="item.is_super_admin == 1">
- <div class="myInfoRightBtn" @click="toEditOrg()">管理</div>
- <van-icon class="arrow" name="arrow" @click="toManage"/>
- </div>
- </div>
- </div>
- <div class="myBox">
- <router-link to="/perfectOrg">
- <div class="myBoxOne">
- <div class="myInfoLeft">
- <img src="../../assets/images/myIcon3.png" alt />
- <p>创建医院/组织/团队</p>
- </div>
- <van-icon class="arrow" name="arrow" />
- </div>
- </router-link>
- <router-link to="/modifypsw">
- <div class="myBoxOne">
- <div class="myInfoLeft">
- <img src="../../assets/images/myIcon4.png" alt />
- <p>修改密码</p>
- </div>
- <van-icon class="arrow" name="arrow" />
- </div>
- </router-link>
- </div>
- <div class="myBox">
- <!-- <div class="myBoxOne">-->
- <!-- <div class="myInfoLeft">-->
- <!-- <img src="../../assets/images/myIcon5.png" alt />-->
- <!-- <p>常见问题</p>-->
- <!-- </div>-->
- <!-- <van-icon class="arrow" name="arrow" />-->
- <!-- </div>-->
-
- <!-- <div class="myBoxOne" @click="toFeed">-->
- <!-- <div class="myInfoLeft">-->
- <!-- <img src="../../assets/images/myIcon6.png" alt />-->
- <!-- <p>意见反馈</p>-->
- <!-- </div>-->
- <!-- <van-icon class="arrow" name="arrow" />-->
- <!-- </div>-->
-
- <router-link to="/about">
- <div class="myBoxOne">
- <div class="myInfoLeft">
- <img src="../../assets/images/myIcon7.png" alt />
- <p>关于我们</p>
- </div>
- <van-icon class="arrow" name="arrow" />
- </div>
- </router-link>
- </div>
- <div class="myBox" @click="LoginOut">
- <div class="myBoxOne" @click="LoginOut">
- <div class="myInfoLeft">
- <img src="../../assets/images/myIcon8.png" alt />
- <div>
- <p>退出登录</p>
- </div>
- </div>
- <van-icon class="arrow" name="arrow" />
- </div>
- </div>
- </div>
- </template>
- <script>
- import {
- getMyInformation,
- LoginOut,
- getMyOrganazition,
- getMyInforName
- } from "@/api/patient/patient";
- import { uParseTime } from "@/utils/tools";
- export default {
- data() {
- return {
- roleInfo: {},
- admin_user_id: 0,
- adminid: 0,
- organaziton: [],
- userName: {}
- };
- },
- methods: {
- LoginOut() {
- LoginOut().then(response => {
- if (response.data.state === 1) {
- var msg = response.data.data.msg;
- console.log("msg是", msg);
- this.isRouterAlive = false;
- this.$nextTick(function() {
- this.isRouterAlive = true;
- });
- this.$router.replace("/login");
- }
- });
- },
- getMyInformation(id) {
- getMyInformation(id).then(response => {
- if (response.data.state === 1) {
- var roleInfo = response.data.data.roleInfo;
- console.log("roleInfo", roleInfo);
- this.admin_user_id = roleInfo.id;
- this.adminid = roleInfo.admin_user_id;
- this.roleInfo = roleInfo;
- }
- });
- },
- getMyOrganazition(id) {
- getMyOrganazition(id).then(response => {
- if (response.data.state === 1) {
- var organaziton = response.data.data.organaziton;
- this.organaziton = organaziton;
- }
- });
- },
- getMyInforName(id) {
- getMyInforName(id).then(response => {
- if (response.data.state === 1) {
- var Rolename = response.data.data.Rolename;
- var username = response.data.data.Username;
- this.userName = username;
- }
- });
- },
- getTime(time) {
- // return uParseTime(time, "{y}-{m}-{d} {h}:{i}:{s}");
- return uParseTime(time, "{y}-{m}-{d}");
- },
- toFeed() {
- this.$router.push("/feedBack?id=" + this.admin_user_id);
- },
- toMyInfo() {
- this.$router.push("/myInfo?id=" + this.admin_user_id);
- },
- toManage() {
- this.$router.push("/organizationinfo?id=" + this.adminid);
- },
- toEditOrg() {
- this.$router.push("/newMy");
- },
- toMyIndex() {
- this.$router.push("/myInfo?id=" + this.admin_user_id);
- }
- },
- created() {
- var adminid = this.$store.getters.user.user.id;
- this.getMyInformation(adminid);
- this.getMyOrganazition(adminid);
- this.getMyInforName(adminid);
- }
- };
- </script>
- <style lang="scss" scoped>
- .page_my {
- height: 100%;
- overflow-x: hidden;
- overflow-y: auto;
- background: #fafafa;
- .myTop {
- position: relative;
- height: 20rem;
- img {
- width: 100%;
- height: 11.25rem;
- }
- .avatar {
- position: absolute;
- left: 1rem;
- top: 2.5rem;
- width: 4.375rem;
- height: 4.375rem;
- background: rgba(50, 50, 50, 1);
- // border: 2px solid rgba(255, 255, 255, 1);
- border-radius: 50%;
- img {
- border-radius: 50%;
- width: 100%;
- height: 100%;
- }
- }
- .userMain {
- position: absolute;
- left: 6.25rem;
- top: 3.375rem;
- width: 70%;
- color: #fff;
- }
- .userBox {
- display: flex;
- justify-content: space-between;
- align-items: center;
- }
- .userName {
- font-size: 1.25rem;
- margin-bottom: 0.625rem;
- }
- .signature {
- font-size: 0.75rem;
- }
- .invitebox {
- width: 21.5625rem;
- height: 4.75rem;
- position: absolute;
- top: 8.75rem;
- left: 0.9375rem;
- box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.16);
- img {
- height: 100%;
- width: 100%;
- }
- }
- .myInfo {
- width: 100%;
- height: 3.125rem;
- display: flex;
- align-items: center;
- justify-content: space-between;
- margin-top: 2.25rem;
- padding: 0 0.875rem;
- background: #fff;
- border-bottom: 1px solid #e5e5e5;
- .myInfoLeft {
- display: flex;
- align-items: center;
- height: 100%;
- img {
- width: 1.125rem;
- height: 1.125rem;
- margin-right: 0.5rem;
- }
- p {
- margin-top: 0.125rem;
- }
- }
- .arrow {
- color: #9f9f9f;
- }
- }
- .myInfo1 {
- width: 100%;
- height: 3.125rem;
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 0 0.875rem;
- background: #fff;
- .myInfoLeft {
- display: flex;
- align-items: center;
- height: 100%;
- img {
- width: 1.125rem;
- height: 1.125rem;
- margin-right: 0.5rem;
- }
- p {
- margin-top: 0.125rem;
- }
- }
- .arrow {
- color: #9f9f9f;
- }
- }
- }
- .myBox {
- margin: 0.8125rem 0;
- background: #fff;
- > div:last-child {
- border: none;
- }
- .myBoxOne {
- width: 100%;
- height: 3.125rem;
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 0 0.875rem;
- border-bottom: 1px solid #e5e5e5;
- .myInfoLeft {
- display: flex;
- align-items: center;
- height: 100%;
- img {
- width: 1.125rem;
- height: 1.125rem;
- margin-right: 0.5rem;
- }
- // p {
- // margin-top: 0.125rem;
- // }
- }
- .arrow {
- color: #9f9f9f;
- }
- }
- .myBoxTwo {
- height: 3.125rem;
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding-right: 0.875rem;
- background: #fff;
- margin-left: 2.5rem;
- border-bottom: 1px solid #e5e5e5;
- .myInfoLeft {
- display: flex;
- align-items: center;
- height: 100%;
- img {
- width: 1.875rem;
- height: 1.875rem;
- margin-right: 0.5rem;
- }
- // p {
- // margin-top: 0.125rem;
- // }
- }
- .myInfoRight {
- display: flex;
- align-items: center;
- .myInfoRightBtn {
- width: 3.625rem;
- height: 1.875rem;
- background: rgba(255, 255, 255, 1);
- border: 1px solid rgba(51, 138, 251, 1);
- border-radius: 0.3125rem;
- text-align: center;
- line-height: 1.875rem;
- color: #338afb;
- font-size: 0.9375rem;
- margin-right: 0.625rem;
- }
- }
- .arrow {
- color: #9f9f9f;
- }
- }
- }
- a {
- color: #000;
- }
- }
- </style>
|