|
|
|
@ -17,18 +17,15 @@ const isLogin = computed(() => {
|
|
|
|
|
const storage_token = uni.getStorageSync('storage_userInfo')?.token
|
|
|
|
|
return !!token || !!storage_token
|
|
|
|
|
})
|
|
|
|
|
const isShowWallet = computed(() => {
|
|
|
|
|
const isOrgUser = memberStore.profile?.isOrgUser
|
|
|
|
|
return isOrgUser
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
onShow(() => {
|
|
|
|
|
if (isLogin.value) {
|
|
|
|
|
getMemberProfileData()
|
|
|
|
|
getData()
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
const isLoading = ref(false)
|
|
|
|
|
const getMemberProfileData = async () => {
|
|
|
|
|
const orgFund = ref(null)
|
|
|
|
|
const getData = async () => {
|
|
|
|
|
isLoading.value = true
|
|
|
|
|
const res = await getMemberProfileAPI()
|
|
|
|
|
isLoading.value = false
|
|
|
|
@ -44,17 +41,17 @@ const getMemberProfileData = async () => {
|
|
|
|
|
orderTotal: obj.orderTotal,
|
|
|
|
|
recycleMiles: obj.recycleMiles,
|
|
|
|
|
}
|
|
|
|
|
orgFund.value = obj.fund
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const handleOrderList = () => {
|
|
|
|
|
uni.navigateTo({ url: '/pages/orderCompleteList/orderCompleteList' })
|
|
|
|
|
const url = `/pages/orderCompleteList/orderCompleteList`
|
|
|
|
|
uni.navigateTo({ url })
|
|
|
|
|
}
|
|
|
|
|
const handleWallet = () => {
|
|
|
|
|
const url = `/pagesMember/wallet/wallet?fund=${orgFund.value}`
|
|
|
|
|
uni.navigateTo({ url })
|
|
|
|
|
}
|
|
|
|
|
// const handleOrderAuto = () => {
|
|
|
|
|
// uni.navigateTo({ url: '/pages/orderAuto/orderAuto' })
|
|
|
|
|
// }
|
|
|
|
|
// const handleNewsList = () => {
|
|
|
|
|
// uni.navigateTo({ url: '/pages/newsList/newsList' })
|
|
|
|
|
// }
|
|
|
|
|
</script>
|
|
|
|
|
<template>
|
|
|
|
|
<view class="viewport">
|
|
|
|
@ -124,10 +121,10 @@ const handleOrderList = () => {
|
|
|
|
|
<uni-icons type="settings" color="#3775F6" size="20"></uni-icons>
|
|
|
|
|
<view class="label"> 设置 </view>
|
|
|
|
|
</navigator>
|
|
|
|
|
<!-- <navigator v-if="!isShowWallet" class="settings item arrow" url="/pagesMember/wallet/wallet" hover-class="none">
|
|
|
|
|
<navigator v-if="orgFund != null" class="settings item arrow" @click="handleWallet" hover-class="none">
|
|
|
|
|
<uni-icons type="wallet" color="#3775F6" size="20"></uni-icons>
|
|
|
|
|
<view class="label"> 我的钱包 </view>
|
|
|
|
|
</navigator> -->
|
|
|
|
|
</navigator>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</template>
|
|
|
|
|