首页列表
This commit is contained in:
@@ -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; */
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
39
pages/pkDetail/pkDetail.vue
Normal file
39
pages/pkDetail/pkDetail.vue
Normal 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>
|
||||
Reference in New Issue
Block a user