|
@ -9,12 +9,12 @@ |
|
|
|
|
|
|
|
|
<view style="width: calc(100% - 120rpx); padding-left: 20rpx;box-sizing: border-box;"> |
|
|
<view style="width: calc(100% - 120rpx); padding-left: 20rpx;box-sizing: border-box;"> |
|
|
<view class="base-leavel"> |
|
|
<view class="base-leavel"> |
|
|
{{getIsLogin()?userInfo.userName:"欢迎来到版宠师"}} |
|
|
|
|
|
<image class="petMaster" :src="petMaster" mode="aspectFit"></image> |
|
|
|
|
|
<image class="petMaster" :src="partnerMaster" mode="aspectFit"></image> |
|
|
|
|
|
|
|
|
<text>{{getIsLogin()?userInfo.userName:"欢迎来到版宠师"}}</text> |
|
|
|
|
|
<image class="petMaster" :src="petMaster" mode="aspectFill"></image> |
|
|
|
|
|
<image class="petMaster" :src="partnerMaster" mode="aspectFill"></image> |
|
|
</view> |
|
|
</view> |
|
|
<view> |
|
|
<view> |
|
|
手机号{{ userInfo?.userTelephone }} |
|
|
|
|
|
|
|
|
手机号:{{ userInfo?.userTelephone }} |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
@ -102,6 +102,14 @@ |
|
|
</view> |
|
|
</view> |
|
|
</button> |
|
|
</button> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
<view class="flex flex-between font28 flex-wrap mt20"> |
|
|
|
|
|
<view class="icon-list" @click="logout"> |
|
|
|
|
|
<up-image class="mb20" |
|
|
|
|
|
src="https://cdn.catmdogd.com/2025/04/01ab556ca51d2a4f82896c1e6fd0034a8b7shDr3f7qeDQ527d93075294e7237cee8b6c7d613be8.png" |
|
|
|
|
|
width="68rpx" height="68rpx" bgColor="#ffffff"></up-image> |
|
|
|
|
|
<view>退出登录</view> |
|
|
|
|
|
</view> |
|
|
|
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
@ -109,6 +117,14 @@ |
|
|
<up-popup :show="show" @close="close" :round="10"> |
|
|
<up-popup :show="show" @close="close" :round="10"> |
|
|
<view style="padding: 10rpx 20rpx;height: 50vh;overflow-y: scroll;" v-html="content"></view> |
|
|
<view style="padding: 10rpx 20rpx;height: 50vh;overflow-y: scroll;" v-html="content"></view> |
|
|
</up-popup> |
|
|
</up-popup> |
|
|
|
|
|
|
|
|
|
|
|
<Modal @confirm="confirmLogout" @cancel="cancelLogout" ref="modal"> |
|
|
|
|
|
<template> |
|
|
|
|
|
<view class="tip"> |
|
|
|
|
|
确认退出登录? |
|
|
|
|
|
</view> |
|
|
|
|
|
</template> |
|
|
|
|
|
</Modal> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script setup> |
|
|
<script setup> |
|
@ -124,6 +140,7 @@ |
|
|
removeIsLogin |
|
|
removeIsLogin |
|
|
} from "../../utils/auth"; |
|
|
} from "../../utils/auth"; |
|
|
import tab from "../../plugins/tab"; |
|
|
import tab from "../../plugins/tab"; |
|
|
|
|
|
import Modal from "@/components/Modal/index.vue" |
|
|
import { |
|
|
import { |
|
|
useStore |
|
|
useStore |
|
|
} from "vuex" |
|
|
} from "vuex" |
|
@ -168,17 +185,18 @@ |
|
|
const pet = ref({}) |
|
|
const pet = ref({}) |
|
|
const show = ref(false) |
|
|
const show = ref(false) |
|
|
const content = ref("") |
|
|
const content = ref("") |
|
|
const petMasterLevel = ref(1); |
|
|
|
|
|
const partnerLevel = ref(0); |
|
|
|
|
|
|
|
|
const modal = ref(null) |
|
|
|
|
|
const petMasterLevel = ref(1) |
|
|
|
|
|
const partnerLevel = ref(0) |
|
|
|
|
|
|
|
|
// 伴宠师图标 |
|
|
|
|
|
|
|
|
// 按伴宠师等级选中图标 |
|
|
const petMaster = computed(() => { |
|
|
const petMaster = computed(() => { |
|
|
const paths = [configList.value?.pet_primary?.paramValueImage, configList.value?.pet_senior |
|
|
const paths = [configList.value?.pet_primary?.paramValueImage, configList.value?.pet_senior |
|
|
?.paramValueImage |
|
|
?.paramValueImage |
|
|
]; |
|
|
]; |
|
|
return paths[petMasterLevel.value]; |
|
|
return paths[petMasterLevel.value]; |
|
|
}) |
|
|
}) |
|
|
// 合伙人图标 |
|
|
|
|
|
|
|
|
// 按合伙人等级选中图标 |
|
|
const partnerMaster = computed(() => { |
|
|
const partnerMaster = computed(() => { |
|
|
const paths = [configList.value?.partner_intermediate?.paramValueImage, configList.value?.partner_senior |
|
|
const paths = [configList.value?.partner_intermediate?.paramValueImage, configList.value?.partner_senior |
|
|
?.paramValueImage |
|
|
?.paramValueImage |
|
@ -209,13 +227,7 @@ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
const logout = () => { |
|
|
const logout = () => { |
|
|
store.commit("setUserInfo", {}); |
|
|
|
|
|
uni.removeStorageSync("token") |
|
|
|
|
|
uni.removeStorageSync("baseInfo") |
|
|
|
|
|
removeIsLogin(); |
|
|
|
|
|
uni.navigateTo({ |
|
|
|
|
|
url: "/pages/login/index" |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
modal.value.open(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 跳转提现 |
|
|
// 跳转提现 |
|
@ -243,10 +255,24 @@ |
|
|
show.value = false; |
|
|
show.value = false; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const confirmLogout = () => { |
|
|
|
|
|
store.commit("setUserInfo", {}); |
|
|
|
|
|
uni.removeStorageSync("token") |
|
|
|
|
|
uni.removeStorageSync("baseInfo") |
|
|
|
|
|
removeIsLogin(); |
|
|
|
|
|
uni.navigateTo({ |
|
|
|
|
|
url: "/pages/login/index" |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
const platformProtocol = () => { |
|
|
const platformProtocol = () => { |
|
|
show.value = true; |
|
|
show.value = true; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const cancelLogout = () => { |
|
|
|
|
|
// 取消退出登录回调 |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// 定义 openCustomerServiceChat 方法,用于唤起客服会话界面 |
|
|
// 定义 openCustomerServiceChat 方法,用于唤起客服会话界面 |
|
|
const openCustomerServiceChat = () => { |
|
|
const openCustomerServiceChat = () => { |
|
|
uni.openCustomerServiceChat({ |
|
|
uni.openCustomerServiceChat({ |
|
@ -267,4 +293,9 @@ |
|
|
</script> |
|
|
</script> |
|
|
<style scoped lang="scss"> |
|
|
<style scoped lang="scss"> |
|
|
@import "index"; |
|
|
@import "index"; |
|
|
|
|
|
|
|
|
|
|
|
.tip { |
|
|
|
|
|
text-align: center; |
|
|
|
|
|
padding: 25rpx 0rpx; |
|
|
|
|
|
} |
|
|
</style> |
|
|
</style> |