40 lines
944 B
Vue
40 lines
944 B
Vue
<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>
|