This commit is contained in:
cansnow
2025-12-24 04:12:56 +08:00
parent f49f1f1ad1
commit f289f79813
26 changed files with 636 additions and 484 deletions
+53 -22
View File
@@ -20,23 +20,23 @@
</view>
</view>
</view>
<!-- v-if="userinfo.role_id==2" -->
<view class="vipbar" @click="goto('/pages/user/vip/vip')">
<img src="/static/images/user/member_crown.png" alt="" />
<text>会员到期时间:{{userinfo.expire_at}}</text>
<u-button>我的权益</u-button>
</view>
<view class="vipbar" @click="goto('/pages/user/vip/vip')">
<img src="/static/images/user/member_crown.png" alt="" />
<text>开通会员立享特权</text>
<u-button>开通</u-button>
</view>
<u-alert title="我的信息" type = "warning" :closable="closable" :description = "description"></u-alert>
<!-- 会员 -->
<template v-if="config.role_buy_open == '1'">
<view v-if="selfInfo.role_id==2" class="vipbar" @click="goto('/pages/user/vip/vip')">
<image src="/static/images/user/member_crown.png" mode="widthFix" alt="" />
<text>会员到期时间:{{selfInfo.expire_at}}</text>
<u-button>我的权益</u-button>
</view>
<view v-else class="vipbar" @click="goto('/pages/user/vip/vip')">
<image src="/static/images/user/member_crown.png" mode="widthFix" alt="" />
<text>开通会员立享特权</text>
<u-button>开通</u-button>
</view>
</template>
<uni-list style="margin: 20rpx auto;width: 100%;">
<uni-list-item title="我的信息" thumb="/static/images/profile_menu_info.png" to="/pages/user/selfInfo/index" clickable showArrow ></uni-list-item>
<uni-list-item title="账号设置" thumb="/static/images/profile_menu_account.png" to="/pages/user/messageNotification/index" clickable showArrow ></uni-list-item>
<uni-list-item title="关于我们" thumb="/static/images/profile_menu_about.png" to="/pages/user/accountSetting/index" clickable showArrow ></uni-list-item>
<uni-list-item title="账号设置" thumb="/static/images/profile_menu_account.png" to="/pages/user/accountSetting/index" clickable showArrow ></uni-list-item>
<uni-list-item title="关于我们" thumb="/static/images/profile_menu_about.png" to="/pages/user/about/index" clickable showArrow ></uni-list-item>
</uni-list>
<uni-list>
<uni-list-item title="退出登录" thumb="/static/images/profile_menu_logout.png" @click="logout" clickable showArrow ></uni-list-item>
@@ -50,10 +50,17 @@
import IMSDK from "openim-uniapp-polyfill";
import MyAvatar from "@/components/MyAvatar/index.vue";
import util from "@/util";
import { mapGetters } from "vuex";
export default {
components: {
MyAvatar,
},
computed:{
...mapGetters(["config"]),
selfInfo() {
return this.$store.getters.storeSelfInfo || {expire_at:0};
},
},
data() {
return {
profileMenus: [
@@ -65,15 +72,9 @@
],
};
},
computed: {
selfInfo() {
return this.$store.getters.storeSelfInfo;
},
},
methods: {
...util,
copy() {
console.log(this.selfInfo)
uni.setClipboardData({
showToast: false,
data: this.selfInfo.userID,
@@ -115,8 +116,15 @@
});
},
toSelfQr() {
const info = {
code : this.selfInfo.userID,
showName: `${this.selfInfo.nickname}`,
faceURL : this.selfInfo.faceURL,
type : "user",
};
const url = `/pages/common/userOrGroupQrCode?sourceInfo=${JSON.stringify(info,)}`;
uni.navigateTo({
url: `/pages/common/userOrGroupQrCode`,
url: url,
});
},
},
@@ -131,6 +139,29 @@
background: #0c1c33;
color: #FFF;
border-radius: 20rpx;
display: flex;
align-items: center;
margin: 20rpx 20rpx 0 20rpx;
padding: 20rpx 20rpx;
gap: 10rpx;
uni-image{
width: 50rpx;
height: 50rpx;
}
uni-text{
flex: 1;
color: #f00;
font-size: 36rpx;
}
.u-button{
font-size: 32rpx;
background-color: $uni-color-success;
border-color: $uni-color-success;
color: #FFF;
padding: 0;
height: 2em;
width: 6em;
}
}
.self_info_row {