完善未完成功能:修复关注列表/评论发布/编辑器草稿等页面
This commit is contained in:
+93
-97
@@ -44,7 +44,7 @@
|
||||
<view class="palace-grid">
|
||||
<view class="palace-grid-text">
|
||||
<view class="palace-grid-text-data">
|
||||
<text>{ 0 }}</text>
|
||||
<text>{{ userInfo.available || 0 }}</text>
|
||||
<text class="palace-grid-text-data-b">元</text>
|
||||
</view>
|
||||
<view class="palace-grid-text-name">剩余提现额度</view>
|
||||
@@ -53,7 +53,7 @@
|
||||
<view class="palace-grid">
|
||||
<view class="palace-grid-text">
|
||||
<view class="palace-grid-text-data">
|
||||
<text>{{ 0 }}</text>
|
||||
<text>{{ userInfo.total_recharge || 0 }}</text>
|
||||
<text class="palace-grid-text-data-b">元</text>
|
||||
</view>
|
||||
<view class="palace-grid-text-name">累计收益</view>
|
||||
@@ -79,7 +79,7 @@
|
||||
</view>
|
||||
<view class="list-view">
|
||||
<view class="list-item" v-for="(item, index) in list" :key="index" hover-class="hover"
|
||||
:hover-stay-time="150" bindtap="detail">
|
||||
:hover-stay-time="150">
|
||||
<view class="content-box">
|
||||
<view class="des-box">
|
||||
<view class="tit">
|
||||
@@ -104,109 +104,110 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { ref, computed, onMounted, onPullDownRefresh } from 'vue'
|
||||
import { store } from '@/pages3/uni_modules/uni-id-pages/common/store.js'
|
||||
import uSubsection from "../../uni_modules/uview-ui/components/u-subsection/u-subsection.vue"
|
||||
import uModal from "../../uni_modules/uview-ui/components/u-modal/u-modal.vue"
|
||||
|
||||
const uniIdCo = uniCloud.importObject("uni-id-co")
|
||||
import {
|
||||
store,
|
||||
mutations
|
||||
} from '@/pages3/uni_modules/uni-id-pages/common/store.js';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
uSubsection,
|
||||
uModal
|
||||
},
|
||||
computed: {
|
||||
userInfo() {
|
||||
return store.userInfo
|
||||
},
|
||||
realNameStatus() {
|
||||
if (!this.userInfo.realNameAuth) {
|
||||
return 0
|
||||
}
|
||||
setup() {
|
||||
const is_withdraw = ref(false)
|
||||
const list = ref([])
|
||||
const userData = ref({})
|
||||
const showModal = ref(false)
|
||||
const date = ref('incomeMonth')
|
||||
const tabIndex = ref(0)
|
||||
const tabs = ref(['本月收入', '今日收入', '昨日收入', '提现记录'])
|
||||
|
||||
return this.userInfo.realNameAuth.authStatus
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
is_withdraw: false,
|
||||
list: [],
|
||||
userData: {},
|
||||
showModal: false,
|
||||
date: 'incomeMonth',
|
||||
content: `<p><em style="font-style:normal;color:#ff1e0f">可提现余额:</em>当前可以提现的金额</p>
|
||||
const content = ref(`<p><em style="font-style:normal;color:#ff1e0f">可提现余额:</em>当前可以提现的金额</p>
|
||||
<p><em style="font-style:normal;color:#ff1e0f">即将到账:</em>交易中的金额,交易成功后可提现</p>
|
||||
<p><em style="font-style:normal;color:#ff1e0f">累计到账:</em>累计交易成功的金额</p>
|
||||
<p><em style="font-style:normal;color:#ff1e0f">累计提现:</em>累计提现成功的金额</p>
|
||||
<p><em style="font-style:normal;color:#ff1e0f">*注:所有金额币种均为人民币,单位为元,符号¥</em></p>
|
||||
`,
|
||||
tabs: ['本月收入', '今日收入', '昨日收入', '提现记录'],
|
||||
tabIndex: 0
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
uni.showLoading({
|
||||
title: '加载中'
|
||||
});
|
||||
this.initData();
|
||||
setTimeout(() => {
|
||||
uni.hideLoading();
|
||||
}, 500);
|
||||
},
|
||||
methods: {
|
||||
async initData() {
|
||||
this.tabIndex = 0;
|
||||
// this.userData = await this.$api.mock('userData');
|
||||
// this.list = await this.$api.mock('incomeMonth');
|
||||
},
|
||||
async getFundList() {
|
||||
// this.list = await this.$api.mock(this.date);
|
||||
},
|
||||
changeTab(index) {
|
||||
this.tabIndex = index;
|
||||
this.list = []
|
||||
if (this.tabIndex == 0) {
|
||||
this.date = 'incomeMonth';
|
||||
this.is_withdraw = false;
|
||||
} else if (this.tabIndex == 1) {
|
||||
this.date = 'incomeToday';
|
||||
this.is_withdraw = false;
|
||||
} else if (this.tabIndex == 2) {
|
||||
this.date = 'incomeYesterday';
|
||||
this.is_withdraw = false;
|
||||
} else if (this.tabIndex == 3) {
|
||||
this.date = 'incomeList';
|
||||
this.is_withdraw = true;
|
||||
}
|
||||
uni.showLoading({
|
||||
title: '加载中'
|
||||
});
|
||||
this.getFundList();
|
||||
`)
|
||||
|
||||
const userInfo = computed(() => store.userInfo)
|
||||
|
||||
const realNameStatus = computed(() => {
|
||||
if (!userInfo.value.realNameAuth) return 0
|
||||
return userInfo.value.realNameAuth.authStatus
|
||||
})
|
||||
|
||||
onMounted(() => {
|
||||
uni.showLoading({ title: '加载中' })
|
||||
initData()
|
||||
setTimeout(() => {
|
||||
uni.hideLoading();
|
||||
}, 500);
|
||||
},
|
||||
navTo(url) {
|
||||
uni.navigateTo({
|
||||
url
|
||||
});
|
||||
uni.hideLoading()
|
||||
}, 500)
|
||||
})
|
||||
|
||||
onPullDownRefresh(() => {
|
||||
uni.showLoading({ title: '加载中' })
|
||||
showModal.value = false
|
||||
initData()
|
||||
setTimeout(() => {
|
||||
uni.hideLoading()
|
||||
}, 500)
|
||||
setTimeout(() => {
|
||||
uni.stopPullDownRefresh()
|
||||
}, 500)
|
||||
})
|
||||
|
||||
async function initData() {
|
||||
tabIndex.value = 0
|
||||
}
|
||||
|
||||
async function getFundList() {
|
||||
// list.value = await this.$api.mock(date.value)
|
||||
}
|
||||
|
||||
function changeTab(index) {
|
||||
tabIndex.value = index
|
||||
list.value = []
|
||||
if (tabIndex.value === 0) {
|
||||
date.value = 'incomeMonth'
|
||||
is_withdraw.value = false
|
||||
} else if (tabIndex.value === 1) {
|
||||
date.value = 'incomeToday'
|
||||
is_withdraw.value = false
|
||||
} else if (tabIndex.value === 2) {
|
||||
date.value = 'incomeYesterday'
|
||||
is_withdraw.value = false
|
||||
} else if (tabIndex.value === 3) {
|
||||
date.value = 'incomeList'
|
||||
is_withdraw.value = true
|
||||
}
|
||||
uni.showLoading({ title: '加载中' })
|
||||
getFundList()
|
||||
setTimeout(() => {
|
||||
uni.hideLoading()
|
||||
}, 500)
|
||||
}
|
||||
|
||||
function navTo(url) {
|
||||
uni.navigateTo({ url })
|
||||
}
|
||||
|
||||
return {
|
||||
is_withdraw,
|
||||
list,
|
||||
userData,
|
||||
showModal,
|
||||
date,
|
||||
tabIndex,
|
||||
tabs,
|
||||
content,
|
||||
userInfo,
|
||||
realNameStatus,
|
||||
initData,
|
||||
getFundList,
|
||||
changeTab,
|
||||
navTo
|
||||
}
|
||||
},
|
||||
onPullDownRefresh() {
|
||||
uni.showLoading({
|
||||
title: '加载中'
|
||||
});
|
||||
this.showModal = false
|
||||
this.initData();
|
||||
setTimeout(() => {
|
||||
uni.hideLoading();
|
||||
}, 500);
|
||||
setTimeout(function() {
|
||||
uni.stopPullDownRefresh();
|
||||
}, 500);
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -245,7 +246,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.ithui {
|
||||
&-content {
|
||||
.h5title {
|
||||
@@ -360,20 +360,17 @@
|
||||
background-color: #ff8440;
|
||||
padding-bottom: 100rpx;
|
||||
|
||||
|
||||
.userinfo-headimg {
|
||||
width: 130rpx;
|
||||
height: 130rpx;
|
||||
overflow: hidden;
|
||||
margin-right: 20rpx;
|
||||
|
||||
}
|
||||
|
||||
.borde-radius {
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
|
||||
.arrow {
|
||||
position: relative;
|
||||
padding-right: 30rpx;
|
||||
@@ -522,6 +519,5 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user