首页列表

This commit is contained in:
pengxiaolong
2025-05-22 16:21:07 +08:00
parent af10ed06db
commit 6ca66f45d4
33 changed files with 483 additions and 377 deletions

View File

@@ -31,8 +31,8 @@ export default {
},
methods: {
goAdvertisement(){
this.$global.lastPage = getCurrentPages().router;
uni.navigateTo({ url: '/pages/login/login' })
// this.$global.lastPage = getCurrentPages().router;
// uni.navigateTo({ url: '/pages/login/login' })
}
},
components: {
@@ -78,7 +78,7 @@ export default {
position: fixed;
top: 400rpx;
left: 0;
bottom: 50rpx;
bottom: -30rpx;
width: 100%;
/* height: 1300rpx; */
}

View File

@@ -29,7 +29,7 @@
</view>
<view class="Accountnumber">
<view class="Coins">
<view class="Coins country">
<wht-select
style="width: 300rpx"
@change="country"
@@ -44,6 +44,7 @@
<view class="number-box">
<view class="number-box-title">金币:</view>
<uni-number-box v-model="numberCoins"></uni-number-box>
<view class="number-box-unit">K</view>
</view>
<view v-if="numberCoins === '' && Hint === true" class="Hint"
>请填写金币数量</view
@@ -275,14 +276,18 @@ export default {
display: flex;
}
.Coins {
margin: 40rpx;
width: 300rpx;
margin-top: 40rpx;
margin-bottom: 40rpx;
width: 400rpx;
height: 65rpx;
display: flex;
flex-direction: column;
justify-content: center;
/* align-items: center; */
}
.country{
margin-left: 40rpx;
}
.number-box {
display: flex;
text-align: center;

View File

@@ -0,0 +1,39 @@
<template>
<view class="container">
<!-- <image
src="{{item.anchorIcon}}"
mode="scaleToFill"
/> -->
<view >主播名称{{item.anchorId}}</view>
<view>主播性别{{item.sex === 1?"男":"女"}}</view>
<view> 国家{{item.country}}</view>
<view>金币{{item.coin}}</view>
<view>主播备注{{item.remark}}</view>
<view>PK时间{{item.pkTime}}</view>
</view>
</template>
<script>
export default {
data() {
return {
item: {},
};
},
onLoad(options) {
// 获取源页面的eventChannel对象
const eventChannel = this.getOpenerEventChannel();
// 监听itemDetail事件
eventChannel.on("itemDetail", (data) => {
this.item = data.item; // 将接收到的数据赋值给item
console.log("接收到的数据:", this.item);
});
},
methods: {},
};
</script>
<style scoped>
/* 样式定义 */
</style>