feat: 添加直播间跳转功能,优化观众页面数据展示
This commit is contained in:
@@ -54,48 +54,63 @@
|
||||
onShow(() => {
|
||||
getData()
|
||||
})
|
||||
|
||||
const paging = ref(null)
|
||||
const onRefresh = async () => {
|
||||
await getData()
|
||||
paging.value.complete()
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<view class="wallet">
|
||||
<!-- 顶部样式 -->
|
||||
<view class="top-card">
|
||||
<view class="left-box">
|
||||
<text>我的资产</text>
|
||||
<text>{{ integralData }}</text>
|
||||
<z-paging
|
||||
ref="paging"
|
||||
:paging-style="{ 'background-color': '#f9f9f9' }"
|
||||
refresher-only
|
||||
@onRefresh="onRefresh"
|
||||
>
|
||||
<view class="wallet">
|
||||
<!-- 顶部样式 -->
|
||||
<view class="top-card">
|
||||
<view class="left-box">
|
||||
<text>我的资产</text>
|
||||
<text>{{ integralData }}</text>
|
||||
</view>
|
||||
<view class="right-box">
|
||||
<button
|
||||
@click="
|
||||
showDialog('提示', '联系客服或者联系上级分享人', false)
|
||||
"
|
||||
>
|
||||
充值
|
||||
</button>
|
||||
<button @click="navigateTo('/pages/my-index/withdraw')">
|
||||
提现
|
||||
</button>
|
||||
</view>
|
||||
</view>
|
||||
<view class="right-box">
|
||||
<button
|
||||
@click="showDialog('提示', '联系客服或者联系上级分享人', false)"
|
||||
>
|
||||
充值
|
||||
</button>
|
||||
<button @click="navigateTo('/pages/my-index/withdraw')">
|
||||
提现
|
||||
</button>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view
|
||||
v-for="(item, index) in itemList"
|
||||
:key="index"
|
||||
class="public-card"
|
||||
@click="
|
||||
item.url &&
|
||||
<view
|
||||
v-for="(item, index) in itemList"
|
||||
:key="index"
|
||||
class="public-card"
|
||||
@click="
|
||||
item.url &&
|
||||
navigateTo(
|
||||
item.url,
|
||||
item.key === '3' ? { type: item.isType ? 1 : 0 } : null
|
||||
)
|
||||
"
|
||||
>
|
||||
<view class="left-box">
|
||||
<text>{{ item.title }}</text>
|
||||
</view>
|
||||
<view class="right-box">
|
||||
<uni-icons type="right" size="16" color="#999999"></uni-icons>
|
||||
"
|
||||
>
|
||||
<view class="left-box">
|
||||
<text>{{ item.title }}</text>
|
||||
</view>
|
||||
<view class="right-box">
|
||||
<uni-icons type="right" size="16" color="#999999"></uni-icons>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</z-paging>
|
||||
</template>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
@@ -113,7 +128,9 @@
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
position: relative;
|
||||
font-family: PingFang SC, PingFang SC;
|
||||
font-family:
|
||||
PingFang SC,
|
||||
PingFang SC;
|
||||
font-style: normal;
|
||||
text-transform: none;
|
||||
&::after {
|
||||
@@ -152,7 +169,9 @@
|
||||
height: 64rpx;
|
||||
line-height: 64rpx;
|
||||
border-radius: 100rpx 100rpx 100rpx 100rpx;
|
||||
font-family: PingFang SC, PingFang SC;
|
||||
font-family:
|
||||
PingFang SC,
|
||||
PingFang SC;
|
||||
font-weight: 500;
|
||||
font-size: 28rpx;
|
||||
color: #ffffff;
|
||||
|
||||
Reference in New Issue
Block a user