首页列表
This commit is contained in:
@@ -1,45 +1,38 @@
|
||||
<template>
|
||||
<scroll-view scroll-y="true" class="scroll" lower-threshold="100" @scrolltolower="onScrollToLower" >
|
||||
<uni-card class="content-list" v-for="(item, index) in list">
|
||||
<uni-card v-for="(item, index) in list">
|
||||
<view class="content-list" @click="goDetail(item)">
|
||||
<!-- `````````````````````````` -->
|
||||
<image class="headShot" src="../../static/logo.png" mode="scaleToFill" />
|
||||
<image class="headShot" :src="item.anchorIcon" mode="scaleToFill" />
|
||||
<!-- `````````````````````````````````````` -->
|
||||
<view class="content-list-title">
|
||||
<view class="cardname">{{ item.title }}</view>
|
||||
<view class="cardname">{{ item.anchorId }}</view>
|
||||
<view class="content-list-info">
|
||||
<view :class="{Gendermale:Gender,Genderfemale:!Gender}"><!-- 性别换背景 -->
|
||||
<image v-if="Gender" class="Genderimg" src="../../static/female.png" mode="scaleToFill" />
|
||||
<image v-else class="Genderimg" src="../../static/female.png" mode="scaleToFill" />
|
||||
<view class="age">{{ item.gender }}</view>
|
||||
<view :class="{Gendermale:item.sex === '1',Genderfemale:item.sex === '2'}">
|
||||
<image v-if="item.sex === '2'" class="Genderimg" src="../../static/female.png" mode="scaleToFill" />
|
||||
<image v-else class="Genderimg" src="../../static/male.png" mode="scaleToFill" />
|
||||
<view class="age">{{ item.sex === '1'? "男" : "女" }}</view>
|
||||
</view>
|
||||
<view class="RoomID">房间ID:{{ item.id }}</view>
|
||||
<view class="Charm">魅力值</view>
|
||||
<view class="charmValue"> {{ item.score }}W</view>
|
||||
<view class="RoomID">PK时间: {{formatDate(item.pkTime)}}</view>
|
||||
<view class="Charm">金币:</view>
|
||||
<view class="charmValue"> {{item.coin+'K'}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- `````````````````````````````````````````````````````` -->
|
||||
</view>
|
||||
</uni-card>
|
||||
</scroll-view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import request from "../../components/request.js";
|
||||
import formatDate from "../../components/formatDate.js";
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
title: "Hello",
|
||||
Gender: true,
|
||||
page: 0,
|
||||
// 列表数据
|
||||
list: [
|
||||
{
|
||||
title: "极乐世界",
|
||||
id: "9088",
|
||||
gender: "男",
|
||||
score: 8.8,
|
||||
},
|
||||
],
|
||||
// 列表数据结束
|
||||
page: 0,//页码
|
||||
size: 10, //每页条数
|
||||
list: [], // 列表数据
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
@@ -47,6 +40,16 @@ export default {
|
||||
this.pkList()
|
||||
},
|
||||
methods: {
|
||||
goDetail(item) {
|
||||
uni.navigateTo({
|
||||
url: '/pages/pkDetail/pkDetail',
|
||||
success: function(res) {
|
||||
res.eventChannel.emit('itemDetail', {
|
||||
item: item,
|
||||
});
|
||||
},
|
||||
})
|
||||
},
|
||||
async pkList(){
|
||||
const res = await request({
|
||||
url: "pk/pkList",
|
||||
@@ -54,13 +57,13 @@ export default {
|
||||
data: {
|
||||
status: 0,
|
||||
page: this.page,
|
||||
Size: 10,
|
||||
size: this.size,
|
||||
},
|
||||
userInfo: false,
|
||||
});
|
||||
console.log(res);
|
||||
if (res.code === 200) {
|
||||
this.list.concat(res.data)
|
||||
this.list.push(...res.data)
|
||||
console.log(this.list)
|
||||
}
|
||||
},
|
||||
@@ -68,8 +71,6 @@ export default {
|
||||
this.page++;
|
||||
this.pkList();
|
||||
},
|
||||
|
||||
|
||||
},
|
||||
};
|
||||
</script>
|
||||
@@ -141,13 +142,14 @@ export default {
|
||||
font-size: 23rpx;
|
||||
color: #a3a3a3;
|
||||
line-height: 38rpx;
|
||||
margin-right: 152rpx;
|
||||
|
||||
}
|
||||
.Charm {
|
||||
font-size: 23rpx;
|
||||
color: #a3a3a3;
|
||||
line-height: 38rpx;
|
||||
margin-right: 12rpx;
|
||||
margin-left: 20rpx;
|
||||
}
|
||||
.charmValue {
|
||||
font-size: 23rpx;
|
||||
|
||||
12
components/formatDate.js
Normal file
12
components/formatDate.js
Normal file
@@ -0,0 +1,12 @@
|
||||
function formatDate(timestamp) {
|
||||
const date = new Date(timestamp * 1000); // 秒级转毫秒级
|
||||
const year = date.getFullYear();
|
||||
const month = String(date.getMonth() + 1).padStart(2, '0');
|
||||
const day = String(date.getDate()).padStart(2, '0');
|
||||
const hour = String(date.getHours()).padStart(2, '0');
|
||||
const minute = String(date.getMinutes()).padStart(2, '0');
|
||||
const second = String(date.getSeconds()).padStart(2, '0');
|
||||
|
||||
return `${year}-${month}-${day} ${hour}:${minute}:${second}`;
|
||||
}
|
||||
export default formatDate;
|
||||
@@ -38,6 +38,12 @@
|
||||
"style": {
|
||||
"navigationBarTitleText": "新增PK"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/pkDetail/pkDetail",
|
||||
"style": {
|
||||
"navigationBarTitleText": "PK详情"
|
||||
}
|
||||
}
|
||||
|
||||
],
|
||||
|
||||
@@ -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>
|
||||
BIN
static/male.png
Normal file
BIN
static/male.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.0 KiB |
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
{"version":3,"file":"app.js","sources":["App.vue","main.js"],"sourcesContent":["<script lang=\"ts\">\r\n\r\n\r\n\r\n\r\n\r\n\r\n// Required information\r\n// You can get userSig from TencentCloud chat console for Testing TUIKit.\r\n// Deploy production environment please get it from your server.\r\n// View https://cloud.tencent.com/document/product/269/32688\r\n\r\nexport default {\r\n data() {\r\n return {\r\n info: {},\r\n userSig: \"\",\r\n chatInfo: {},\r\n };\r\n },\r\n onLoad(option) {\r\n uni.getStorage({\r\n key: \"userinfo\",\r\n success: (res) => {\r\n this.info = res.data;\r\n },\r\n });\r\n uni.getStorage({\r\n key: \"userSig\",\r\n success: (res) => {\r\n this.userSig = res.data;\r\n },\r\n });\r\n uni.getStorage({\r\n key: \"chatInfo\",\r\n success: (res) => {\r\n this.chatInfo = res.data;\r\n },\r\n });\r\n if (this.userSig) {\r\n TUIlogin(this.chatInfo.appId, this.info.userChatId, this.userSig);\r\n }\r\n },\r\n provide() {\r\n return {\r\n $global: {\r\n lastPage: null,\r\n },\r\n };\r\n },\r\n};\r\n</script>\r\n<style>\r\n/* common css for page */\r\nuni-page-body,\r\nhtml,\r\nbody,\r\npage {\r\n width: 100% !important;\r\n height: 100% !important;\r\n overflow: hidden;\r\n}\r\n</style>\r\n","import App from './App'\r\n\r\n// #ifndef VUE3\r\nimport Vue from 'vue'\r\nimport './uni.promisify.adaptor'\r\nVue.config.productionTip = false\r\nApp.mpType = 'app'\r\nconst app = new Vue({\r\n ...App\r\n})\r\napp.$mount()\r\n// #endif\r\n\r\n// #ifdef VUE3\r\nimport { createSSRApp } from 'vue'\r\nexport function createApp() {\r\n const app = createSSRApp(App)\r\n return {\r\n app\r\n }\r\n}\r\n// #endif"],"names":["uni","createSSRApp","App"],"mappings":";;;;;;;;;;;;;;;;;;;;AAYA,MAAe,YAAA;AAAA,EACb,OAAO;AACE,WAAA;AAAA,MACL,MAAM,CAAC;AAAA,MACP,SAAS;AAAA,MACT,UAAU,CAAC;AAAA,IAAA;AAAA,EAEf;AAAA,EACA,OAAO,QAAQ;AACbA,kBAAAA,MAAI,WAAW;AAAA,MACb,KAAK;AAAA,MACL,SAAS,CAAC,QAAQ;AAChB,aAAK,OAAO,IAAI;AAAA,MAClB;AAAA,IAAA,CACD;AACDA,kBAAAA,MAAI,WAAW;AAAA,MACb,KAAK;AAAA,MACL,SAAS,CAAC,QAAQ;AAChB,aAAK,UAAU,IAAI;AAAA,MACrB;AAAA,IAAA,CACD;AACDA,kBAAAA,MAAI,WAAW;AAAA,MACb,KAAK;AAAA,MACL,SAAS,CAAC,QAAQ;AAChB,aAAK,WAAW,IAAI;AAAA,MACtB;AAAA,IAAA,CACD;AACD,QAAI,KAAK,SAAS;AAChB,eAAS,KAAK,SAAS,OAAO,KAAK,KAAK,YAAY,KAAK,OAAO;AAAA,IAClE;AAAA,EACF;AAAA,EACA,UAAU;AACD,WAAA;AAAA,MACL,SAAS;AAAA,QACP,UAAU;AAAA,MACZ;AAAA,IAAA;AAAA,EAEJ;AACF;ACnCO,SAAS,YAAY;AAC1B,QAAM,MAAMC,cAAY,aAACC,SAAG;AAC5B,SAAO;AAAA,IACL;AAAA,EACD;AACH;;;"}
|
||||
{"version":3,"file":"app.js","sources":["App.vue","main.js"],"sourcesContent":["<script lang=\"ts\">\r\n\r\n\r\n\r\n\r\n\r\n\r\n// Required information\r\n// You can get userSig from TencentCloud chat console for Testing TUIKit.\r\n// Deploy production environment please get it from your server.\r\n// View https://cloud.tencent.com/document/product/269/32688\r\n\r\nexport default {\r\n data() {\r\n return {\r\n info: {},\r\n userSig: \"\",\r\n chatInfo: {},\r\n };\r\n },\r\n onLoad(option) {\r\n uni.getStorage({\r\n key: \"userinfo\",\r\n success: (res) => {\r\n this.info = res.data;\r\n },\r\n });\r\n uni.getStorage({\r\n key: \"userSig\",\r\n success: (res) => {\r\n this.userSig = res.data;\r\n },\r\n });\r\n uni.getStorage({\r\n key: \"chatInfo\",\r\n success: (res) => {\r\n this.chatInfo = res.data;\r\n },\r\n });\r\n if (this.userSig) {\r\n TUIlogin(this.chatInfo.appId, this.info.userChatId, this.userSig);\r\n }\r\n },\r\n provide() {\r\n return {\r\n $global: {\r\n lastPage: null,\r\n },\r\n };\r\n },\r\n};\r\n</script>\r\n<style>\r\n/* common css for page */\r\nuni-page-body,\r\nhtml,\r\nbody,\r\npage {\r\n width: 100% !important;\r\n height: 100% !important;\r\n overflow: hidden;\r\n}\r\n</style>\r\n","import App from './App'\r\n\r\n// #ifndef VUE3\r\nimport Vue from 'vue'\r\nimport './uni.promisify.adaptor'\r\nVue.config.productionTip = false\r\nApp.mpType = 'app'\r\nconst app = new Vue({\r\n ...App\r\n})\r\napp.$mount()\r\n// #endif\r\n\r\n// #ifdef VUE3\r\nimport { createSSRApp } from 'vue'\r\nexport function createApp() {\r\n const app = createSSRApp(App)\r\n return {\r\n app\r\n }\r\n}\r\n// #endif"],"names":["uni","createSSRApp","App"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAYA,MAAe,YAAA;AAAA,EACb,OAAO;AACE,WAAA;AAAA,MACL,MAAM,CAAC;AAAA,MACP,SAAS;AAAA,MACT,UAAU,CAAC;AAAA,IAAA;AAAA,EAEf;AAAA,EACA,OAAO,QAAQ;AACbA,kBAAAA,MAAI,WAAW;AAAA,MACb,KAAK;AAAA,MACL,SAAS,CAAC,QAAQ;AAChB,aAAK,OAAO,IAAI;AAAA,MAClB;AAAA,IAAA,CACD;AACDA,kBAAAA,MAAI,WAAW;AAAA,MACb,KAAK;AAAA,MACL,SAAS,CAAC,QAAQ;AAChB,aAAK,UAAU,IAAI;AAAA,MACrB;AAAA,IAAA,CACD;AACDA,kBAAAA,MAAI,WAAW;AAAA,MACb,KAAK;AAAA,MACL,SAAS,CAAC,QAAQ;AAChB,aAAK,WAAW,IAAI;AAAA,MACtB;AAAA,IAAA,CACD;AACD,QAAI,KAAK,SAAS;AAChB,eAAS,KAAK,SAAS,OAAO,KAAK,KAAK,YAAY,KAAK,OAAO;AAAA,IAClE;AAAA,EACF;AAAA,EACA,UAAU;AACD,WAAA;AAAA,MACL,SAAS;AAAA,QACP,UAAU;AAAA,MACZ;AAAA,IAAA;AAAA,EAEJ;AACF;ACnCO,SAAS,YAAY;AAC1B,QAAM,MAAMC,cAAY,aAACC,SAAG;AAC5B,SAAO;AAAA,IACL;AAAA,EACD;AACH;;;"}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
unpackage/dist/dev/.sourcemap/mp-weixin/components/formatDate.js.map
vendored
Normal file
1
unpackage/dist/dev/.sourcemap/mp-weixin/components/formatDate.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"formatDate.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"file":"Home.js","sources":["pages/Home/Home.vue","../../HBuilderX/plugins/uniapp-cli-vite/uniPage:/cGFnZXMvSG9tZS9Ib21lLnZ1ZQ"],"sourcesContent":["<template>\r\n <view class=\"page\">\r\n <image src=\"../../static/HomeBackground.png\" class=\"HomeBackground\"></image>\r\n </view>\r\n <view class=\"top-navigation-container\">\r\n <top-navigation></top-navigation>\r\n </view>\r\n <view class=\"Advertisement\" @click=\"goAdvertisement\">\r\n <advertisement></advertisement>\r\n </view>\r\n <view class=\"contentList\">\r\n <contentList></contentList>\r\n </view>\r\n <view class=\"tabBar\">\r\n <tabBar></tabBar>\r\n </view>\r\n</template>\r\n\r\n<script>\r\nimport topNavigation from \"../../components/topNavigation/topNavigation\";\r\nimport Advertisement from \"../../components/Advertisement/Advertisement\";\r\nimport contentList from \"../../components/contentList/contentList\";\r\nimport tabBar from \"../../components/tabBar/tabBar\";\r\nexport default {\r\n inject: ['$global'],\r\n data() {\r\n return {};\r\n },\r\n onLoad() {\r\n // this.requestSomething();\r\n },\r\n methods: {\r\n goAdvertisement(){\r\n this.$global.lastPage = getCurrentPages().router;\r\n uni.navigateTo({ url: '/pages/login/login' })\r\n }\r\n },\r\n components: {\r\n topNavigation,\r\n Advertisement,\r\n contentList,\r\n tabBar,\r\n },\r\n};\r\n</script>\r\n\r\n<style scoped>\r\n.page {\r\n position: relative;\r\n width: 750rpx;\r\n height: 1620rpx;\r\n}\r\n\r\n.HomeBackground {\r\n position: absolute;\r\n top: 0;\r\n left: 0;\r\n width: 100%;\r\n height: 100%;\r\n z-index: -1;\r\n}\r\n.top-navigation-container {\r\n position: fixed;\r\n top: 160rpx;\r\n left: 0;\r\n width: 100%;\r\n height: 114.5rpx;\r\n}\r\n.Advertisement {\r\n position: fixed;\r\n top: 300rpx;\r\n left: 0;\r\n width: 100%;\r\n height: 100rpx;\r\n z-index: 100;\r\n}\r\n.contentList {\r\n position: fixed;\r\n top: 400rpx;\r\n left: 0;\r\n bottom: 50rpx;\r\n width: 100%;\r\n /* height: 1300rpx; */\r\n}\r\n</style>\r\n","import MiniProgramPage from 'D:/项目/tk-mini-program/pages/Home/Home.vue'\nwx.createPage(MiniProgramPage)"],"names":["uni"],"mappings":";;;AAmBA,MAAO,gBAAe,MAAW;AACjC,MAAO,gBAAe,MAAW;AACjC,MAAO,cAAa,MAAW;AAC/B,eAAe,MAAW;AAC1B,MAAK,YAAU;AAAA,EACb,QAAQ,CAAC,SAAS;AAAA,EAClB,OAAO;AACL,WAAO;EACR;AAAA,EACD,SAAS;AAAA,EAER;AAAA,EACD,SAAS;AAAA,IACP,kBAAiB;AACf,WAAK,QAAQ,WAAW,gBAAe,EAAG;AAC1CA,oBAAAA,MAAI,WAAW,EAAE,KAAK,sBAAsB;AAAA,IAC9C;AAAA,EACD;AAAA,EACD,YAAY;AAAA,IACV;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACD;AACH;;;;;;;;;;;;;;;;;;;;AC1CA,GAAG,WAAW,eAAe;"}
|
||||
{"version":3,"file":"Home.js","sources":["pages/Home/Home.vue","../../HBuilderX/plugins/uniapp-cli-vite/uniPage:/cGFnZXMvSG9tZS9Ib21lLnZ1ZQ"],"sourcesContent":["<template>\r\n <view class=\"page\">\r\n <image src=\"../../static/HomeBackground.png\" class=\"HomeBackground\"></image>\r\n </view>\r\n <view class=\"top-navigation-container\">\r\n <top-navigation></top-navigation>\r\n </view>\r\n <view class=\"Advertisement\" @click=\"goAdvertisement\">\r\n <advertisement></advertisement>\r\n </view>\r\n <view class=\"contentList\">\r\n <contentList></contentList>\r\n </view>\r\n <view class=\"tabBar\">\r\n <tabBar></tabBar>\r\n </view>\r\n</template>\r\n\r\n<script>\r\nimport topNavigation from \"../../components/topNavigation/topNavigation\";\r\nimport Advertisement from \"../../components/Advertisement/Advertisement\";\r\nimport contentList from \"../../components/contentList/contentList\";\r\nimport tabBar from \"../../components/tabBar/tabBar\";\r\nexport default {\r\n inject: ['$global'],\r\n data() {\r\n return {};\r\n },\r\n onLoad() {\r\n // this.requestSomething();\r\n },\r\n methods: {\r\n goAdvertisement(){\r\n // this.$global.lastPage = getCurrentPages().router;\r\n // uni.navigateTo({ url: '/pages/login/login' })\r\n }\r\n },\r\n components: {\r\n topNavigation,\r\n Advertisement,\r\n contentList,\r\n tabBar,\r\n },\r\n};\r\n</script>\r\n\r\n<style scoped>\r\n.page {\r\n position: relative;\r\n width: 750rpx;\r\n height: 1620rpx;\r\n}\r\n\r\n.HomeBackground {\r\n position: absolute;\r\n top: 0;\r\n left: 0;\r\n width: 100%;\r\n height: 100%;\r\n z-index: -1;\r\n}\r\n.top-navigation-container {\r\n position: fixed;\r\n top: 160rpx;\r\n left: 0;\r\n width: 100%;\r\n height: 114.5rpx;\r\n}\r\n.Advertisement {\r\n position: fixed;\r\n top: 300rpx;\r\n left: 0;\r\n width: 100%;\r\n height: 100rpx;\r\n z-index: 100;\r\n}\r\n.contentList {\r\n position: fixed;\r\n top: 400rpx;\r\n left: 0;\r\n bottom: -30rpx;\r\n width: 100%;\r\n /* height: 1300rpx; */\r\n}\r\n</style>\r\n","import MiniProgramPage from 'D:/项目/tk-mini-program/pages/Home/Home.vue'\nwx.createPage(MiniProgramPage)"],"names":[],"mappings":";;;AAmBA,MAAO,gBAAe,MAAW;AACjC,MAAO,gBAAe,MAAW;AACjC,MAAO,cAAa,MAAW;AAC/B,eAAe,MAAW;AAC1B,MAAK,YAAU;AAAA,EACb,QAAQ,CAAC,SAAS;AAAA,EAClB,OAAO;AACL,WAAO;EACR;AAAA,EACD,SAAS;AAAA,EAER;AAAA,EACD,SAAS;AAAA,IACP,kBAAiB;AAAA,IAGjB;AAAA,EACD;AAAA,EACD,YAAY;AAAA,IACV;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACD;AACH;;;;;;;;;;;;;;;;;;;;AC1CA,GAAG,WAAW,eAAe;"}
|
||||
1
unpackage/dist/dev/.sourcemap/mp-weixin/pages/pkDetail/pkDetail.js.map
vendored
Normal file
1
unpackage/dist/dev/.sourcemap/mp-weixin/pages/pkDetail/pkDetail.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"pkDetail.js","sources":["pages/pkDetail/pkDetail.vue","../../HBuilderX/plugins/uniapp-cli-vite/uniPage:/cGFnZXMvcGtEZXRhaWwvcGtEZXRhaWwudnVl"],"sourcesContent":["<template>\r\n <view class=\"container\">\r\n <!-- <image\r\n src=\"{{item.anchorIcon}}\"\r\n mode=\"scaleToFill\"\r\n /> -->\r\n <view >主播名称{{item.anchorId}}</view>\r\n <view>主播性别{{item.sex === 1?\"男\":\"女\"}}</view>\r\n <view> 国家{{item.country}}</view>\r\n <view>金币{{item.coin}}</view>\r\n <view>主播备注{{item.remark}}</view>\r\n <view>PK时间{{item.pkTime}}</view>\r\n </view>\r\n\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n data() {\r\n return {\r\n item: {},\r\n };\r\n },\r\n onLoad(options) {\r\n // 获取源页面的eventChannel对象\r\n const eventChannel = this.getOpenerEventChannel();\r\n // 监听itemDetail事件\r\n eventChannel.on(\"itemDetail\", (data) => {\r\n this.item = data.item; // 将接收到的数据赋值给item\r\n console.log(\"接收到的数据:\", this.item);\r\n });\r\n },\r\n methods: {},\r\n};\r\n</script>\r\n\r\n<style scoped>\r\n/* 样式定义 */\r\n</style>\r\n","import MiniProgramPage from 'D:/项目/tk-mini-program/pages/pkDetail/pkDetail.vue'\nwx.createPage(MiniProgramPage)"],"names":["uni"],"mappings":";;AAiBA,MAAK,YAAU;AAAA,EACb,OAAO;AACL,WAAO;AAAA,MACL,MAAM,CAAE;AAAA;EAEX;AAAA,EACD,OAAO,SAAS;AAEd,UAAM,eAAe,KAAK;AAE1B,iBAAa,GAAG,cAAc,CAAC,SAAS;AACtC,WAAK,OAAO,KAAK;AACjBA,oBAAA,MAAA,MAAA,OAAA,qCAAY,WAAW,KAAK,IAAI;AAAA,IAClC,CAAC;AAAA,EACF;AAAA,EACD,SAAS,CAAE;AACb;;;;;;;;;;;;AChCA,GAAG,WAAW,eAAe;"}
|
||||
4
unpackage/dist/dev/mp-weixin/NewAddedPk.js
vendored
4
unpackage/dist/dev/mp-weixin/NewAddedPk.js
vendored
@@ -40,11 +40,11 @@ const _sfc_main = {
|
||||
methods: {
|
||||
gender(item) {
|
||||
this.genders = item.value;
|
||||
common_vendor.index.__f__("log", "at pages/NewAddedPk/NewAddedPk.vue:114", item);
|
||||
common_vendor.index.__f__("log", "at pages/NewAddedPk/NewAddedPk.vue:115", item);
|
||||
},
|
||||
country(item) {
|
||||
this.countrys = item.value;
|
||||
common_vendor.index.__f__("log", "at pages/NewAddedPk/NewAddedPk.vue:119", item);
|
||||
common_vendor.index.__f__("log", "at pages/NewAddedPk/NewAddedPk.vue:120", item);
|
||||
},
|
||||
handleOverlayClick(event) {
|
||||
if (event.target === this.$el) {
|
||||
|
||||
1
unpackage/dist/dev/mp-weixin/app.js
vendored
1
unpackage/dist/dev/mp-weixin/app.js
vendored
@@ -9,6 +9,7 @@ if (!Math) {
|
||||
"./pages/UserInformation/UserInformation.js";
|
||||
"./pages/Setting/Setting.js";
|
||||
"./pages/NewAddedPk/NewAddedPk.js";
|
||||
"./pages/pkDetail/pkDetail.js";
|
||||
"./TUIKit/components/TUIConversation/index.js";
|
||||
"./TUIKit/components/TUIChat/index.js";
|
||||
"./TUIKit/components/TUIChat/video-play.js";
|
||||
|
||||
3
unpackage/dist/dev/mp-weixin/app.json
vendored
3
unpackage/dist/dev/mp-weixin/app.json
vendored
@@ -6,7 +6,8 @@
|
||||
"pages/login/login",
|
||||
"pages/UserInformation/UserInformation",
|
||||
"pages/Setting/Setting",
|
||||
"pages/NewAddedPk/NewAddedPk"
|
||||
"pages/NewAddedPk/NewAddedPk",
|
||||
"pages/pkDetail/pkDetail"
|
||||
],
|
||||
"subPackages": [
|
||||
{
|
||||
|
||||
@@ -9,8 +9,8 @@ const C2C = "/assets/icon-c2c.d80299ab.svg";
|
||||
const settingSVG = "/assets/setting.a15e5daf.svg";
|
||||
const muteIcon = "/assets/mute.94c8513a.svg";
|
||||
const _imports_0$1 = "/static/Searching.png";
|
||||
const _imports_0 = "/static/logo.png";
|
||||
const _imports_1 = "/static/female.png";
|
||||
const _imports_0 = "/static/female.png";
|
||||
const _imports_1 = "/static/male.png";
|
||||
const faceIcon = "/assets/face-uni.e33f5632.png";
|
||||
const moreIcon = "/assets/more-uni.030c2d9a.png";
|
||||
const ForwardEachIcon = "/assets/forward-each.9e79e381.svg";
|
||||
|
||||
585
unpackage/dist/dev/mp-weixin/common/vendor.js
vendored
585
unpackage/dist/dev/mp-weixin/common/vendor.js
vendored
@@ -8012,7 +8012,7 @@ function isConsoleWritable() {
|
||||
function initRuntimeSocketService() {
|
||||
const hosts = "192.168.0.111,127.0.0.1";
|
||||
const port = "8090";
|
||||
const id = "mp-weixin_3E_eeT";
|
||||
const id = "mp-weixin_Z0m08P";
|
||||
const lazy = typeof swan !== "undefined";
|
||||
let restoreError = lazy ? () => {
|
||||
} : initOnError();
|
||||
@@ -29632,303 +29632,296 @@ const onLoad = /* @__PURE__ */ createHook(ON_LOAD);
|
||||
const onReady = /* @__PURE__ */ createHook(ON_READY);
|
||||
const onUnload = /* @__PURE__ */ createHook(ON_UNLOAD);
|
||||
var dayjs_min = { exports: {} };
|
||||
var hasRequiredDayjs_min;
|
||||
function requireDayjs_min() {
|
||||
if (hasRequiredDayjs_min)
|
||||
return dayjs_min.exports;
|
||||
hasRequiredDayjs_min = 1;
|
||||
(function(module2, exports2) {
|
||||
!function(t2, e2) {
|
||||
module2.exports = e2();
|
||||
}(commonjsGlobal, function() {
|
||||
var t2 = 1e3, e2 = 6e4, n2 = 36e5, r3 = "millisecond", i3 = "second", s3 = "minute", u2 = "hour", a2 = "day", o2 = "week", c2 = "month", f2 = "quarter", h2 = "year", d2 = "date", l2 = "Invalid Date", $2 = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y2 = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M2 = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(t3) {
|
||||
var e3 = ["th", "st", "nd", "rd"], n3 = t3 % 100;
|
||||
return "[" + t3 + (e3[(n3 - 20) % 10] || e3[n3] || e3[0]) + "]";
|
||||
} }, m2 = function(t3, e3, n3) {
|
||||
var r4 = String(t3);
|
||||
return !r4 || r4.length >= e3 ? t3 : "" + Array(e3 + 1 - r4.length).join(n3) + t3;
|
||||
}, v3 = { s: m2, z: function(t3) {
|
||||
var e3 = -t3.utcOffset(), n3 = Math.abs(e3), r4 = Math.floor(n3 / 60), i4 = n3 % 60;
|
||||
return (e3 <= 0 ? "+" : "-") + m2(r4, 2, "0") + ":" + m2(i4, 2, "0");
|
||||
}, m: function t3(e3, n3) {
|
||||
if (e3.date() < n3.date())
|
||||
return -t3(n3, e3);
|
||||
var r4 = 12 * (n3.year() - e3.year()) + (n3.month() - e3.month()), i4 = e3.clone().add(r4, c2), s4 = n3 - i4 < 0, u3 = e3.clone().add(r4 + (s4 ? -1 : 1), c2);
|
||||
return +(-(r4 + (n3 - i4) / (s4 ? i4 - u3 : u3 - i4)) || 0);
|
||||
}, a: function(t3) {
|
||||
return t3 < 0 ? Math.ceil(t3) || 0 : Math.floor(t3);
|
||||
}, p: function(t3) {
|
||||
return { M: c2, y: h2, w: o2, d: a2, D: d2, h: u2, m: s3, s: i3, ms: r3, Q: f2 }[t3] || String(t3 || "").toLowerCase().replace(/s$/, "");
|
||||
}, u: function(t3) {
|
||||
return void 0 === t3;
|
||||
} }, g2 = "en", D2 = {};
|
||||
D2[g2] = M2;
|
||||
var p3 = "$isDayjsObject", S2 = function(t3) {
|
||||
return t3 instanceof _2 || !(!t3 || !t3[p3]);
|
||||
}, w2 = function t3(e3, n3, r4) {
|
||||
var i4;
|
||||
if (!e3)
|
||||
return g2;
|
||||
if ("string" == typeof e3) {
|
||||
var s4 = e3.toLowerCase();
|
||||
D2[s4] && (i4 = s4), n3 && (D2[s4] = n3, i4 = s4);
|
||||
var u3 = e3.split("-");
|
||||
if (!i4 && u3.length > 1)
|
||||
return t3(u3[0]);
|
||||
} else {
|
||||
var a3 = e3.name;
|
||||
D2[a3] = e3, i4 = a3;
|
||||
}
|
||||
return !r4 && i4 && (g2 = i4), i4 || !r4 && g2;
|
||||
}, O2 = function(t3, e3) {
|
||||
if (S2(t3))
|
||||
return t3.clone();
|
||||
var n3 = "object" == typeof e3 ? e3 : {};
|
||||
return n3.date = t3, n3.args = arguments, new _2(n3);
|
||||
}, b2 = v3;
|
||||
b2.l = w2, b2.i = S2, b2.w = function(t3, e3) {
|
||||
return O2(t3, { locale: e3.$L, utc: e3.$u, x: e3.$x, $offset: e3.$offset });
|
||||
};
|
||||
var _2 = function() {
|
||||
function M3(t3) {
|
||||
this.$L = w2(t3.locale, null, true), this.parse(t3), this.$x = this.$x || t3.x || {}, this[p3] = true;
|
||||
}
|
||||
var m3 = M3.prototype;
|
||||
return m3.parse = function(t3) {
|
||||
this.$d = function(t4) {
|
||||
var e3 = t4.date, n3 = t4.utc;
|
||||
if (null === e3)
|
||||
return /* @__PURE__ */ new Date(NaN);
|
||||
if (b2.u(e3))
|
||||
return /* @__PURE__ */ new Date();
|
||||
if (e3 instanceof Date)
|
||||
return new Date(e3);
|
||||
if ("string" == typeof e3 && !/Z$/i.test(e3)) {
|
||||
var r4 = e3.match($2);
|
||||
if (r4) {
|
||||
var i4 = r4[2] - 1 || 0, s4 = (r4[7] || "0").substring(0, 3);
|
||||
return n3 ? new Date(Date.UTC(r4[1], i4, r4[3] || 1, r4[4] || 0, r4[5] || 0, r4[6] || 0, s4)) : new Date(r4[1], i4, r4[3] || 1, r4[4] || 0, r4[5] || 0, r4[6] || 0, s4);
|
||||
}
|
||||
}
|
||||
(function(module2, exports2) {
|
||||
!function(t2, e2) {
|
||||
module2.exports = e2();
|
||||
}(commonjsGlobal, function() {
|
||||
var t2 = 1e3, e2 = 6e4, n2 = 36e5, r3 = "millisecond", i3 = "second", s3 = "minute", u2 = "hour", a2 = "day", o2 = "week", c2 = "month", f2 = "quarter", h2 = "year", d2 = "date", l2 = "Invalid Date", $2 = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y2 = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M2 = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(t3) {
|
||||
var e3 = ["th", "st", "nd", "rd"], n3 = t3 % 100;
|
||||
return "[" + t3 + (e3[(n3 - 20) % 10] || e3[n3] || e3[0]) + "]";
|
||||
} }, m2 = function(t3, e3, n3) {
|
||||
var r4 = String(t3);
|
||||
return !r4 || r4.length >= e3 ? t3 : "" + Array(e3 + 1 - r4.length).join(n3) + t3;
|
||||
}, v3 = { s: m2, z: function(t3) {
|
||||
var e3 = -t3.utcOffset(), n3 = Math.abs(e3), r4 = Math.floor(n3 / 60), i4 = n3 % 60;
|
||||
return (e3 <= 0 ? "+" : "-") + m2(r4, 2, "0") + ":" + m2(i4, 2, "0");
|
||||
}, m: function t3(e3, n3) {
|
||||
if (e3.date() < n3.date())
|
||||
return -t3(n3, e3);
|
||||
var r4 = 12 * (n3.year() - e3.year()) + (n3.month() - e3.month()), i4 = e3.clone().add(r4, c2), s4 = n3 - i4 < 0, u3 = e3.clone().add(r4 + (s4 ? -1 : 1), c2);
|
||||
return +(-(r4 + (n3 - i4) / (s4 ? i4 - u3 : u3 - i4)) || 0);
|
||||
}, a: function(t3) {
|
||||
return t3 < 0 ? Math.ceil(t3) || 0 : Math.floor(t3);
|
||||
}, p: function(t3) {
|
||||
return { M: c2, y: h2, w: o2, d: a2, D: d2, h: u2, m: s3, s: i3, ms: r3, Q: f2 }[t3] || String(t3 || "").toLowerCase().replace(/s$/, "");
|
||||
}, u: function(t3) {
|
||||
return void 0 === t3;
|
||||
} }, g2 = "en", D2 = {};
|
||||
D2[g2] = M2;
|
||||
var p3 = "$isDayjsObject", S2 = function(t3) {
|
||||
return t3 instanceof _2 || !(!t3 || !t3[p3]);
|
||||
}, w2 = function t3(e3, n3, r4) {
|
||||
var i4;
|
||||
if (!e3)
|
||||
return g2;
|
||||
if ("string" == typeof e3) {
|
||||
var s4 = e3.toLowerCase();
|
||||
D2[s4] && (i4 = s4), n3 && (D2[s4] = n3, i4 = s4);
|
||||
var u3 = e3.split("-");
|
||||
if (!i4 && u3.length > 1)
|
||||
return t3(u3[0]);
|
||||
} else {
|
||||
var a3 = e3.name;
|
||||
D2[a3] = e3, i4 = a3;
|
||||
}
|
||||
return !r4 && i4 && (g2 = i4), i4 || !r4 && g2;
|
||||
}, O2 = function(t3, e3) {
|
||||
if (S2(t3))
|
||||
return t3.clone();
|
||||
var n3 = "object" == typeof e3 ? e3 : {};
|
||||
return n3.date = t3, n3.args = arguments, new _2(n3);
|
||||
}, b2 = v3;
|
||||
b2.l = w2, b2.i = S2, b2.w = function(t3, e3) {
|
||||
return O2(t3, { locale: e3.$L, utc: e3.$u, x: e3.$x, $offset: e3.$offset });
|
||||
};
|
||||
var _2 = function() {
|
||||
function M3(t3) {
|
||||
this.$L = w2(t3.locale, null, true), this.parse(t3), this.$x = this.$x || t3.x || {}, this[p3] = true;
|
||||
}
|
||||
var m3 = M3.prototype;
|
||||
return m3.parse = function(t3) {
|
||||
this.$d = function(t4) {
|
||||
var e3 = t4.date, n3 = t4.utc;
|
||||
if (null === e3)
|
||||
return /* @__PURE__ */ new Date(NaN);
|
||||
if (b2.u(e3))
|
||||
return /* @__PURE__ */ new Date();
|
||||
if (e3 instanceof Date)
|
||||
return new Date(e3);
|
||||
}(t3), this.init();
|
||||
}, m3.init = function() {
|
||||
var t3 = this.$d;
|
||||
this.$y = t3.getFullYear(), this.$M = t3.getMonth(), this.$D = t3.getDate(), this.$W = t3.getDay(), this.$H = t3.getHours(), this.$m = t3.getMinutes(), this.$s = t3.getSeconds(), this.$ms = t3.getMilliseconds();
|
||||
}, m3.$utils = function() {
|
||||
return b2;
|
||||
}, m3.isValid = function() {
|
||||
return !(this.$d.toString() === l2);
|
||||
}, m3.isSame = function(t3, e3) {
|
||||
var n3 = O2(t3);
|
||||
return this.startOf(e3) <= n3 && n3 <= this.endOf(e3);
|
||||
}, m3.isAfter = function(t3, e3) {
|
||||
return O2(t3) < this.startOf(e3);
|
||||
}, m3.isBefore = function(t3, e3) {
|
||||
return this.endOf(e3) < O2(t3);
|
||||
}, m3.$g = function(t3, e3, n3) {
|
||||
return b2.u(t3) ? this[e3] : this.set(n3, t3);
|
||||
}, m3.unix = function() {
|
||||
return Math.floor(this.valueOf() / 1e3);
|
||||
}, m3.valueOf = function() {
|
||||
return this.$d.getTime();
|
||||
}, m3.startOf = function(t3, e3) {
|
||||
var n3 = this, r4 = !!b2.u(e3) || e3, f3 = b2.p(t3), l3 = function(t4, e4) {
|
||||
var i4 = b2.w(n3.$u ? Date.UTC(n3.$y, e4, t4) : new Date(n3.$y, e4, t4), n3);
|
||||
return r4 ? i4 : i4.endOf(a2);
|
||||
}, $3 = function(t4, e4) {
|
||||
return b2.w(n3.toDate()[t4].apply(n3.toDate("s"), (r4 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e4)), n3);
|
||||
}, y3 = this.$W, M4 = this.$M, m4 = this.$D, v4 = "set" + (this.$u ? "UTC" : "");
|
||||
switch (f3) {
|
||||
case h2:
|
||||
return r4 ? l3(1, 0) : l3(31, 11);
|
||||
case c2:
|
||||
return r4 ? l3(1, M4) : l3(0, M4 + 1);
|
||||
case o2:
|
||||
var g3 = this.$locale().weekStart || 0, D3 = (y3 < g3 ? y3 + 7 : y3) - g3;
|
||||
return l3(r4 ? m4 - D3 : m4 + (6 - D3), M4);
|
||||
case a2:
|
||||
case d2:
|
||||
return $3(v4 + "Hours", 0);
|
||||
case u2:
|
||||
return $3(v4 + "Minutes", 1);
|
||||
case s3:
|
||||
return $3(v4 + "Seconds", 2);
|
||||
case i3:
|
||||
return $3(v4 + "Milliseconds", 3);
|
||||
default:
|
||||
return this.clone();
|
||||
if ("string" == typeof e3 && !/Z$/i.test(e3)) {
|
||||
var r4 = e3.match($2);
|
||||
if (r4) {
|
||||
var i4 = r4[2] - 1 || 0, s4 = (r4[7] || "0").substring(0, 3);
|
||||
return n3 ? new Date(Date.UTC(r4[1], i4, r4[3] || 1, r4[4] || 0, r4[5] || 0, r4[6] || 0, s4)) : new Date(r4[1], i4, r4[3] || 1, r4[4] || 0, r4[5] || 0, r4[6] || 0, s4);
|
||||
}
|
||||
}
|
||||
}, m3.endOf = function(t3) {
|
||||
return this.startOf(t3, false);
|
||||
}, m3.$set = function(t3, e3) {
|
||||
var n3, o3 = b2.p(t3), f3 = "set" + (this.$u ? "UTC" : ""), l3 = (n3 = {}, n3[a2] = f3 + "Date", n3[d2] = f3 + "Date", n3[c2] = f3 + "Month", n3[h2] = f3 + "FullYear", n3[u2] = f3 + "Hours", n3[s3] = f3 + "Minutes", n3[i3] = f3 + "Seconds", n3[r3] = f3 + "Milliseconds", n3)[o3], $3 = o3 === a2 ? this.$D + (e3 - this.$W) : e3;
|
||||
if (o3 === c2 || o3 === h2) {
|
||||
var y3 = this.clone().set(d2, 1);
|
||||
y3.$d[l3]($3), y3.init(), this.$d = y3.set(d2, Math.min(this.$D, y3.daysInMonth())).$d;
|
||||
} else
|
||||
l3 && this.$d[l3]($3);
|
||||
return this.init(), this;
|
||||
}, m3.set = function(t3, e3) {
|
||||
return this.clone().$set(t3, e3);
|
||||
}, m3.get = function(t3) {
|
||||
return this[b2.p(t3)]();
|
||||
}, m3.add = function(r4, f3) {
|
||||
var d3, l3 = this;
|
||||
r4 = Number(r4);
|
||||
var $3 = b2.p(f3), y3 = function(t3) {
|
||||
var e3 = O2(l3);
|
||||
return b2.w(e3.date(e3.date() + Math.round(t3 * r4)), l3);
|
||||
};
|
||||
if ($3 === c2)
|
||||
return this.set(c2, this.$M + r4);
|
||||
if ($3 === h2)
|
||||
return this.set(h2, this.$y + r4);
|
||||
if ($3 === a2)
|
||||
return y3(1);
|
||||
if ($3 === o2)
|
||||
return y3(7);
|
||||
var M4 = (d3 = {}, d3[s3] = e2, d3[u2] = n2, d3[i3] = t2, d3)[$3] || 1, m4 = this.$d.getTime() + r4 * M4;
|
||||
return b2.w(m4, this);
|
||||
}, m3.subtract = function(t3, e3) {
|
||||
return this.add(-1 * t3, e3);
|
||||
}, m3.format = function(t3) {
|
||||
var e3 = this, n3 = this.$locale();
|
||||
if (!this.isValid())
|
||||
return n3.invalidDate || l2;
|
||||
var r4 = t3 || "YYYY-MM-DDTHH:mm:ssZ", i4 = b2.z(this), s4 = this.$H, u3 = this.$m, a3 = this.$M, o3 = n3.weekdays, c3 = n3.months, f3 = n3.meridiem, h3 = function(t4, n4, i5, s5) {
|
||||
return t4 && (t4[n4] || t4(e3, r4)) || i5[n4].slice(0, s5);
|
||||
}, d3 = function(t4) {
|
||||
return b2.s(s4 % 12 || 12, t4, "0");
|
||||
}, $3 = f3 || function(t4, e4, n4) {
|
||||
var r5 = t4 < 12 ? "AM" : "PM";
|
||||
return n4 ? r5.toLowerCase() : r5;
|
||||
};
|
||||
return r4.replace(y2, function(t4, r5) {
|
||||
return r5 || function(t5) {
|
||||
switch (t5) {
|
||||
case "YY":
|
||||
return String(e3.$y).slice(-2);
|
||||
case "YYYY":
|
||||
return b2.s(e3.$y, 4, "0");
|
||||
case "M":
|
||||
return a3 + 1;
|
||||
case "MM":
|
||||
return b2.s(a3 + 1, 2, "0");
|
||||
case "MMM":
|
||||
return h3(n3.monthsShort, a3, c3, 3);
|
||||
case "MMMM":
|
||||
return h3(c3, a3);
|
||||
case "D":
|
||||
return e3.$D;
|
||||
case "DD":
|
||||
return b2.s(e3.$D, 2, "0");
|
||||
case "d":
|
||||
return String(e3.$W);
|
||||
case "dd":
|
||||
return h3(n3.weekdaysMin, e3.$W, o3, 2);
|
||||
case "ddd":
|
||||
return h3(n3.weekdaysShort, e3.$W, o3, 3);
|
||||
case "dddd":
|
||||
return o3[e3.$W];
|
||||
case "H":
|
||||
return String(s4);
|
||||
case "HH":
|
||||
return b2.s(s4, 2, "0");
|
||||
case "h":
|
||||
return d3(1);
|
||||
case "hh":
|
||||
return d3(2);
|
||||
case "a":
|
||||
return $3(s4, u3, true);
|
||||
case "A":
|
||||
return $3(s4, u3, false);
|
||||
case "m":
|
||||
return String(u3);
|
||||
case "mm":
|
||||
return b2.s(u3, 2, "0");
|
||||
case "s":
|
||||
return String(e3.$s);
|
||||
case "ss":
|
||||
return b2.s(e3.$s, 2, "0");
|
||||
case "SSS":
|
||||
return b2.s(e3.$ms, 3, "0");
|
||||
case "Z":
|
||||
return i4;
|
||||
}
|
||||
return null;
|
||||
}(t4) || i4.replace(":", "");
|
||||
});
|
||||
}, m3.utcOffset = function() {
|
||||
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
||||
}, m3.diff = function(r4, d3, l3) {
|
||||
var $3, y3 = this, M4 = b2.p(d3), m4 = O2(r4), v4 = (m4.utcOffset() - this.utcOffset()) * e2, g3 = this - m4, D3 = function() {
|
||||
return b2.m(y3, m4);
|
||||
};
|
||||
switch (M4) {
|
||||
case h2:
|
||||
$3 = D3() / 12;
|
||||
break;
|
||||
case c2:
|
||||
$3 = D3();
|
||||
break;
|
||||
case f2:
|
||||
$3 = D3() / 3;
|
||||
break;
|
||||
case o2:
|
||||
$3 = (g3 - v4) / 6048e5;
|
||||
break;
|
||||
case a2:
|
||||
$3 = (g3 - v4) / 864e5;
|
||||
break;
|
||||
case u2:
|
||||
$3 = g3 / n2;
|
||||
break;
|
||||
case s3:
|
||||
$3 = g3 / e2;
|
||||
break;
|
||||
case i3:
|
||||
$3 = g3 / t2;
|
||||
break;
|
||||
default:
|
||||
$3 = g3;
|
||||
}
|
||||
return l3 ? $3 : b2.a($3);
|
||||
}, m3.daysInMonth = function() {
|
||||
return this.endOf(c2).$D;
|
||||
}, m3.$locale = function() {
|
||||
return D2[this.$L];
|
||||
}, m3.locale = function(t3, e3) {
|
||||
if (!t3)
|
||||
return this.$L;
|
||||
var n3 = this.clone(), r4 = w2(t3, e3, true);
|
||||
return r4 && (n3.$L = r4), n3;
|
||||
}, m3.clone = function() {
|
||||
return b2.w(this.$d, this);
|
||||
}, m3.toDate = function() {
|
||||
return new Date(this.valueOf());
|
||||
}, m3.toJSON = function() {
|
||||
return this.isValid() ? this.toISOString() : null;
|
||||
}, m3.toISOString = function() {
|
||||
return this.$d.toISOString();
|
||||
}, m3.toString = function() {
|
||||
return this.$d.toUTCString();
|
||||
}, M3;
|
||||
}(), k2 = _2.prototype;
|
||||
return O2.prototype = k2, [["$ms", r3], ["$s", i3], ["$m", s3], ["$H", u2], ["$W", a2], ["$M", c2], ["$y", h2], ["$D", d2]].forEach(function(t3) {
|
||||
k2[t3[1]] = function(e3) {
|
||||
return this.$g(e3, t3[0], t3[1]);
|
||||
return new Date(e3);
|
||||
}(t3), this.init();
|
||||
}, m3.init = function() {
|
||||
var t3 = this.$d;
|
||||
this.$y = t3.getFullYear(), this.$M = t3.getMonth(), this.$D = t3.getDate(), this.$W = t3.getDay(), this.$H = t3.getHours(), this.$m = t3.getMinutes(), this.$s = t3.getSeconds(), this.$ms = t3.getMilliseconds();
|
||||
}, m3.$utils = function() {
|
||||
return b2;
|
||||
}, m3.isValid = function() {
|
||||
return !(this.$d.toString() === l2);
|
||||
}, m3.isSame = function(t3, e3) {
|
||||
var n3 = O2(t3);
|
||||
return this.startOf(e3) <= n3 && n3 <= this.endOf(e3);
|
||||
}, m3.isAfter = function(t3, e3) {
|
||||
return O2(t3) < this.startOf(e3);
|
||||
}, m3.isBefore = function(t3, e3) {
|
||||
return this.endOf(e3) < O2(t3);
|
||||
}, m3.$g = function(t3, e3, n3) {
|
||||
return b2.u(t3) ? this[e3] : this.set(n3, t3);
|
||||
}, m3.unix = function() {
|
||||
return Math.floor(this.valueOf() / 1e3);
|
||||
}, m3.valueOf = function() {
|
||||
return this.$d.getTime();
|
||||
}, m3.startOf = function(t3, e3) {
|
||||
var n3 = this, r4 = !!b2.u(e3) || e3, f3 = b2.p(t3), l3 = function(t4, e4) {
|
||||
var i4 = b2.w(n3.$u ? Date.UTC(n3.$y, e4, t4) : new Date(n3.$y, e4, t4), n3);
|
||||
return r4 ? i4 : i4.endOf(a2);
|
||||
}, $3 = function(t4, e4) {
|
||||
return b2.w(n3.toDate()[t4].apply(n3.toDate("s"), (r4 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e4)), n3);
|
||||
}, y3 = this.$W, M4 = this.$M, m4 = this.$D, v4 = "set" + (this.$u ? "UTC" : "");
|
||||
switch (f3) {
|
||||
case h2:
|
||||
return r4 ? l3(1, 0) : l3(31, 11);
|
||||
case c2:
|
||||
return r4 ? l3(1, M4) : l3(0, M4 + 1);
|
||||
case o2:
|
||||
var g3 = this.$locale().weekStart || 0, D3 = (y3 < g3 ? y3 + 7 : y3) - g3;
|
||||
return l3(r4 ? m4 - D3 : m4 + (6 - D3), M4);
|
||||
case a2:
|
||||
case d2:
|
||||
return $3(v4 + "Hours", 0);
|
||||
case u2:
|
||||
return $3(v4 + "Minutes", 1);
|
||||
case s3:
|
||||
return $3(v4 + "Seconds", 2);
|
||||
case i3:
|
||||
return $3(v4 + "Milliseconds", 3);
|
||||
default:
|
||||
return this.clone();
|
||||
}
|
||||
}, m3.endOf = function(t3) {
|
||||
return this.startOf(t3, false);
|
||||
}, m3.$set = function(t3, e3) {
|
||||
var n3, o3 = b2.p(t3), f3 = "set" + (this.$u ? "UTC" : ""), l3 = (n3 = {}, n3[a2] = f3 + "Date", n3[d2] = f3 + "Date", n3[c2] = f3 + "Month", n3[h2] = f3 + "FullYear", n3[u2] = f3 + "Hours", n3[s3] = f3 + "Minutes", n3[i3] = f3 + "Seconds", n3[r3] = f3 + "Milliseconds", n3)[o3], $3 = o3 === a2 ? this.$D + (e3 - this.$W) : e3;
|
||||
if (o3 === c2 || o3 === h2) {
|
||||
var y3 = this.clone().set(d2, 1);
|
||||
y3.$d[l3]($3), y3.init(), this.$d = y3.set(d2, Math.min(this.$D, y3.daysInMonth())).$d;
|
||||
} else
|
||||
l3 && this.$d[l3]($3);
|
||||
return this.init(), this;
|
||||
}, m3.set = function(t3, e3) {
|
||||
return this.clone().$set(t3, e3);
|
||||
}, m3.get = function(t3) {
|
||||
return this[b2.p(t3)]();
|
||||
}, m3.add = function(r4, f3) {
|
||||
var d3, l3 = this;
|
||||
r4 = Number(r4);
|
||||
var $3 = b2.p(f3), y3 = function(t3) {
|
||||
var e3 = O2(l3);
|
||||
return b2.w(e3.date(e3.date() + Math.round(t3 * r4)), l3);
|
||||
};
|
||||
}), O2.extend = function(t3, e3) {
|
||||
return t3.$i || (t3(e3, _2, O2), t3.$i = true), O2;
|
||||
}, O2.locale = w2, O2.isDayjs = S2, O2.unix = function(t3) {
|
||||
return O2(1e3 * t3);
|
||||
}, O2.en = D2[g2], O2.Ls = D2, O2.p = {}, O2;
|
||||
});
|
||||
})(dayjs_min);
|
||||
return dayjs_min.exports;
|
||||
}
|
||||
var dayjs_minExports = requireDayjs_min();
|
||||
if ($3 === c2)
|
||||
return this.set(c2, this.$M + r4);
|
||||
if ($3 === h2)
|
||||
return this.set(h2, this.$y + r4);
|
||||
if ($3 === a2)
|
||||
return y3(1);
|
||||
if ($3 === o2)
|
||||
return y3(7);
|
||||
var M4 = (d3 = {}, d3[s3] = e2, d3[u2] = n2, d3[i3] = t2, d3)[$3] || 1, m4 = this.$d.getTime() + r4 * M4;
|
||||
return b2.w(m4, this);
|
||||
}, m3.subtract = function(t3, e3) {
|
||||
return this.add(-1 * t3, e3);
|
||||
}, m3.format = function(t3) {
|
||||
var e3 = this, n3 = this.$locale();
|
||||
if (!this.isValid())
|
||||
return n3.invalidDate || l2;
|
||||
var r4 = t3 || "YYYY-MM-DDTHH:mm:ssZ", i4 = b2.z(this), s4 = this.$H, u3 = this.$m, a3 = this.$M, o3 = n3.weekdays, c3 = n3.months, f3 = n3.meridiem, h3 = function(t4, n4, i5, s5) {
|
||||
return t4 && (t4[n4] || t4(e3, r4)) || i5[n4].slice(0, s5);
|
||||
}, d3 = function(t4) {
|
||||
return b2.s(s4 % 12 || 12, t4, "0");
|
||||
}, $3 = f3 || function(t4, e4, n4) {
|
||||
var r5 = t4 < 12 ? "AM" : "PM";
|
||||
return n4 ? r5.toLowerCase() : r5;
|
||||
};
|
||||
return r4.replace(y2, function(t4, r5) {
|
||||
return r5 || function(t5) {
|
||||
switch (t5) {
|
||||
case "YY":
|
||||
return String(e3.$y).slice(-2);
|
||||
case "YYYY":
|
||||
return b2.s(e3.$y, 4, "0");
|
||||
case "M":
|
||||
return a3 + 1;
|
||||
case "MM":
|
||||
return b2.s(a3 + 1, 2, "0");
|
||||
case "MMM":
|
||||
return h3(n3.monthsShort, a3, c3, 3);
|
||||
case "MMMM":
|
||||
return h3(c3, a3);
|
||||
case "D":
|
||||
return e3.$D;
|
||||
case "DD":
|
||||
return b2.s(e3.$D, 2, "0");
|
||||
case "d":
|
||||
return String(e3.$W);
|
||||
case "dd":
|
||||
return h3(n3.weekdaysMin, e3.$W, o3, 2);
|
||||
case "ddd":
|
||||
return h3(n3.weekdaysShort, e3.$W, o3, 3);
|
||||
case "dddd":
|
||||
return o3[e3.$W];
|
||||
case "H":
|
||||
return String(s4);
|
||||
case "HH":
|
||||
return b2.s(s4, 2, "0");
|
||||
case "h":
|
||||
return d3(1);
|
||||
case "hh":
|
||||
return d3(2);
|
||||
case "a":
|
||||
return $3(s4, u3, true);
|
||||
case "A":
|
||||
return $3(s4, u3, false);
|
||||
case "m":
|
||||
return String(u3);
|
||||
case "mm":
|
||||
return b2.s(u3, 2, "0");
|
||||
case "s":
|
||||
return String(e3.$s);
|
||||
case "ss":
|
||||
return b2.s(e3.$s, 2, "0");
|
||||
case "SSS":
|
||||
return b2.s(e3.$ms, 3, "0");
|
||||
case "Z":
|
||||
return i4;
|
||||
}
|
||||
return null;
|
||||
}(t4) || i4.replace(":", "");
|
||||
});
|
||||
}, m3.utcOffset = function() {
|
||||
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
||||
}, m3.diff = function(r4, d3, l3) {
|
||||
var $3, y3 = this, M4 = b2.p(d3), m4 = O2(r4), v4 = (m4.utcOffset() - this.utcOffset()) * e2, g3 = this - m4, D3 = function() {
|
||||
return b2.m(y3, m4);
|
||||
};
|
||||
switch (M4) {
|
||||
case h2:
|
||||
$3 = D3() / 12;
|
||||
break;
|
||||
case c2:
|
||||
$3 = D3();
|
||||
break;
|
||||
case f2:
|
||||
$3 = D3() / 3;
|
||||
break;
|
||||
case o2:
|
||||
$3 = (g3 - v4) / 6048e5;
|
||||
break;
|
||||
case a2:
|
||||
$3 = (g3 - v4) / 864e5;
|
||||
break;
|
||||
case u2:
|
||||
$3 = g3 / n2;
|
||||
break;
|
||||
case s3:
|
||||
$3 = g3 / e2;
|
||||
break;
|
||||
case i3:
|
||||
$3 = g3 / t2;
|
||||
break;
|
||||
default:
|
||||
$3 = g3;
|
||||
}
|
||||
return l3 ? $3 : b2.a($3);
|
||||
}, m3.daysInMonth = function() {
|
||||
return this.endOf(c2).$D;
|
||||
}, m3.$locale = function() {
|
||||
return D2[this.$L];
|
||||
}, m3.locale = function(t3, e3) {
|
||||
if (!t3)
|
||||
return this.$L;
|
||||
var n3 = this.clone(), r4 = w2(t3, e3, true);
|
||||
return r4 && (n3.$L = r4), n3;
|
||||
}, m3.clone = function() {
|
||||
return b2.w(this.$d, this);
|
||||
}, m3.toDate = function() {
|
||||
return new Date(this.valueOf());
|
||||
}, m3.toJSON = function() {
|
||||
return this.isValid() ? this.toISOString() : null;
|
||||
}, m3.toISOString = function() {
|
||||
return this.$d.toISOString();
|
||||
}, m3.toString = function() {
|
||||
return this.$d.toUTCString();
|
||||
}, M3;
|
||||
}(), k2 = _2.prototype;
|
||||
return O2.prototype = k2, [["$ms", r3], ["$s", i3], ["$m", s3], ["$H", u2], ["$W", a2], ["$M", c2], ["$y", h2], ["$D", d2]].forEach(function(t3) {
|
||||
k2[t3[1]] = function(e3) {
|
||||
return this.$g(e3, t3[0], t3[1]);
|
||||
};
|
||||
}), O2.extend = function(t3, e3) {
|
||||
return t3.$i || (t3(e3, _2, O2), t3.$i = true), O2;
|
||||
}, O2.locale = w2, O2.isDayjs = S2, O2.unix = function(t3) {
|
||||
return O2(1e3 * t3);
|
||||
}, O2.en = D2[g2], O2.Ls = D2, O2.p = {}, O2;
|
||||
});
|
||||
})(dayjs_min);
|
||||
var dayjs_minExports = dayjs_min.exports;
|
||||
const dayjs = /* @__PURE__ */ getDefaultExportFromCjs(dayjs_minExports);
|
||||
var localeData$1 = { exports: {} };
|
||||
(function(module2, exports2) {
|
||||
@@ -30040,7 +30033,7 @@ const isSameOrBefore = /* @__PURE__ */ getDefaultExportFromCjs(isSameOrBeforeExp
|
||||
var zhCn = { exports: {} };
|
||||
(function(module2, exports2) {
|
||||
!function(e2, _2) {
|
||||
module2.exports = _2(requireDayjs_min());
|
||||
module2.exports = _2(dayjs_minExports);
|
||||
}(commonjsGlobal, function(e2) {
|
||||
function _2(e3) {
|
||||
return e3 && "object" == typeof e3 && "default" in e3 ? e3 : { default: e3 };
|
||||
|
||||
@@ -5,25 +5,28 @@ const common_assets = require("../../common/assets.js");
|
||||
const _sfc_main = {
|
||||
data() {
|
||||
return {
|
||||
title: "Hello",
|
||||
Gender: true,
|
||||
page: 0,
|
||||
//页码
|
||||
size: 10,
|
||||
//每页条数
|
||||
list: []
|
||||
// 列表数据
|
||||
list: [
|
||||
{
|
||||
title: "极乐世界",
|
||||
id: "9088",
|
||||
gender: "男",
|
||||
score: 8.8
|
||||
}
|
||||
]
|
||||
// 列表数据结束
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
this.pkList();
|
||||
},
|
||||
methods: {
|
||||
goDetail(item) {
|
||||
common_vendor.index.navigateTo({
|
||||
url: "/pages/pkDetail/pkDetail",
|
||||
success: function(res) {
|
||||
res.eventChannel.emit("itemDetail", {
|
||||
item
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
async pkList() {
|
||||
const res = await components_request.request({
|
||||
url: "pk/pkList",
|
||||
@@ -31,14 +34,14 @@ const _sfc_main = {
|
||||
data: {
|
||||
status: 0,
|
||||
page: this.page,
|
||||
Size: 10
|
||||
size: this.size
|
||||
},
|
||||
userInfo: false
|
||||
});
|
||||
common_vendor.index.__f__("log", "at components/contentList/contentList.vue:61", res);
|
||||
common_vendor.index.__f__("log", "at components/contentList/contentList.vue:64", res);
|
||||
if (res.code === 200) {
|
||||
this.list.concat(res.data);
|
||||
common_vendor.index.__f__("log", "at components/contentList/contentList.vue:64", this.list);
|
||||
this.list.push(...res.data);
|
||||
common_vendor.index.__f__("log", "at components/contentList/contentList.vue:67", this.list);
|
||||
}
|
||||
},
|
||||
onScrollToLower() {
|
||||
@@ -55,23 +58,24 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return {
|
||||
a: common_vendor.f($data.list, (item, index, i0) => {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.t(item.title)
|
||||
}, $data.Gender ? {
|
||||
b: common_assets._imports_1$1
|
||||
a: item.anchorIcon,
|
||||
b: common_vendor.t(item.anchorId),
|
||||
c: item.sex === "2"
|
||||
}, item.sex === "2" ? {
|
||||
d: common_assets._imports_0$4
|
||||
} : {
|
||||
c: common_assets._imports_1$1
|
||||
e: common_assets._imports_1$1
|
||||
}, {
|
||||
d: common_vendor.t(item.gender),
|
||||
e: common_vendor.t(item.id),
|
||||
f: common_vendor.t(item.score),
|
||||
g: "4813d59a-0-" + i0
|
||||
f: common_vendor.t(item.sex === "1" ? "男" : "女"),
|
||||
g: item.sex === "1" ? 1 : "",
|
||||
h: item.sex === "2" ? 1 : "",
|
||||
i: common_vendor.t(_ctx.formatDate(item.pkTime)),
|
||||
j: common_vendor.t(item.coin + "K"),
|
||||
k: common_vendor.o$1(($event) => $options.goDetail(item)),
|
||||
l: "4813d59a-0-" + i0
|
||||
});
|
||||
}),
|
||||
b: common_assets._imports_0$4,
|
||||
c: $data.Gender,
|
||||
d: $data.Gender ? 1 : "",
|
||||
e: !$data.Gender ? 1 : "",
|
||||
f: common_vendor.o$1((...args) => $options.onScrollToLower && $options.onScrollToLower(...args))
|
||||
b: common_vendor.o$1((...args) => $options.onScrollToLower && $options.onScrollToLower(...args))
|
||||
};
|
||||
}
|
||||
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-4813d59a"]]);
|
||||
|
||||
@@ -1 +1 @@
|
||||
<scroll-view scroll-y="true" class="scroll data-v-4813d59a" lower-threshold="100" bindscrolltolower="{{f}}"><uni-card wx:for="{{a}}" wx:for-item="item" u-s="{{['d']}}" class="content-list data-v-4813d59a" u-i="{{item.g}}" bind:__l="__l"><image class="headShot data-v-4813d59a" src="{{b}}" mode="scaleToFill"/><view class="content-list-title data-v-4813d59a"><view class="cardname data-v-4813d59a">{{item.a}}</view><view class="content-list-info data-v-4813d59a"><view class="{{['data-v-4813d59a', d && 'Gendermale', e && 'Genderfemale']}}"><image wx:if="{{c}}" class="Genderimg data-v-4813d59a" src="{{item.b}}" mode="scaleToFill"/><image wx:else class="Genderimg data-v-4813d59a" src="{{item.c}}" mode="scaleToFill"/><view class="age data-v-4813d59a">{{item.d}}</view></view><view class="RoomID data-v-4813d59a">房间ID:{{item.e}}</view><view class="Charm data-v-4813d59a">魅力值</view><view class="charmValue data-v-4813d59a">{{item.f}}W</view></view></view></uni-card></scroll-view>
|
||||
<scroll-view scroll-y="true" class="scroll data-v-4813d59a" lower-threshold="100" bindscrolltolower="{{b}}"><uni-card wx:for="{{a}}" wx:for-item="item" class="data-v-4813d59a" u-s="{{['d']}}" u-i="{{item.l}}" bind:__l="__l"><view class="content-list data-v-4813d59a" bindtap="{{item.k}}"><image class="headShot data-v-4813d59a" src="{{item.a}}" mode="scaleToFill"/><view class="content-list-title data-v-4813d59a"><view class="cardname data-v-4813d59a">{{item.b}}</view><view class="content-list-info data-v-4813d59a"><view class="{{['data-v-4813d59a', item.g && 'Gendermale', item.h && 'Genderfemale']}}"><image wx:if="{{item.c}}" class="Genderimg data-v-4813d59a" src="{{item.d}}" mode="scaleToFill"/><image wx:else class="Genderimg data-v-4813d59a" src="{{item.e}}" mode="scaleToFill"/><view class="age data-v-4813d59a">{{item.f}}</view></view><view class="RoomID data-v-4813d59a">PK时间: {{item.i}}</view><view class="Charm data-v-4813d59a">金币:</view><view class="charmValue data-v-4813d59a">{{item.j}}</view></view></view></view></uni-card></scroll-view>
|
||||
@@ -64,13 +64,13 @@
|
||||
font-size: 23rpx;
|
||||
color: #a3a3a3;
|
||||
line-height: 38rpx;
|
||||
margin-right: 152rpx;
|
||||
}
|
||||
.Charm.data-v-4813d59a {
|
||||
font-size: 23rpx;
|
||||
color: #a3a3a3;
|
||||
line-height: 38rpx;
|
||||
margin-right: 12rpx;
|
||||
margin-left: 20rpx;
|
||||
}
|
||||
.charmValue.data-v-4813d59a {
|
||||
font-size: 23rpx;
|
||||
|
||||
2
unpackage/dist/dev/mp-weixin/components/formatDate.js
vendored
Normal file
2
unpackage/dist/dev/mp-weixin/components/formatDate.js
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
"use strict";
|
||||
//# sourceMappingURL=../../.sourcemap/mp-weixin/components/formatDate.js.map
|
||||
@@ -14,8 +14,6 @@ const _sfc_main = {
|
||||
},
|
||||
methods: {
|
||||
goAdvertisement() {
|
||||
this.$global.lastPage = getCurrentPages().router;
|
||||
common_vendor.index.navigateTo({ url: "/pages/login/login" });
|
||||
}
|
||||
},
|
||||
components: {
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
position: fixed;
|
||||
top: 400rpx;
|
||||
left: 0;
|
||||
bottom: 50rpx;
|
||||
bottom: -30rpx;
|
||||
width: 100%;
|
||||
/* height: 1300rpx; */
|
||||
}
|
||||
|
||||
@@ -1 +1 @@
|
||||
<view wx:if="{{a}}" class="Mask data-v-96d38e2b" bindtap="{{x}}"><view class="data-v-96d38e2b" catchtap="{{w}}"><view class="container data-v-96d38e2b"><image class="Fork data-v-96d38e2b" bindtap="{{b}}" src="{{c}}" mode="scaleToFill"/><view class="Title data-v-96d38e2b">发布新PK</view><view class="Individual data-v-96d38e2b"><view class="NameAnchor data-v-96d38e2b"><input class="NameAnchorcss data-v-96d38e2b" bindinput="{{d}}" placeholder="主播名称"/><view wx:if="{{e}}" class="Hint data-v-96d38e2b">请填写主播名称</view></view><view class="Gender data-v-96d38e2b"><wht-select wx:if="{{g}}" class="data-v-96d38e2b" style="width:300rpx" bindchange="{{f}}" u-i="96d38e2b-0" bind:__l="__l" u-p="{{g}}"/><view wx:if="{{h}}" class="Hint data-v-96d38e2b">请选择性别</view></view></view><view class="Accountnumber data-v-96d38e2b"><view class="Coins data-v-96d38e2b"><wht-select wx:if="{{j}}" class="data-v-96d38e2b" style="width:300rpx" bindchange="{{i}}" u-i="96d38e2b-1" bind:__l="__l" u-p="{{j}}"/><view wx:if="{{k}}" class="Hint data-v-96d38e2b">请选择国家</view></view><view class="Coins data-v-96d38e2b"><view class="number-box data-v-96d38e2b"><view class="number-box-title data-v-96d38e2b">金币:</view><uni-number-box wx:if="{{m}}" class="data-v-96d38e2b" u-i="96d38e2b-2" bind:__l="__l" bindupdateModelValue="{{l}}" u-p="{{m}}"></uni-number-box></view><view wx:if="{{n}}" class="Hint data-v-96d38e2b">请填写金币数量</view></view></view><view class="time data-v-96d38e2b"><uni-datetime-picker wx:if="{{q}}" class="data-v-96d38e2b" bindchange="{{o}}" u-i="96d38e2b-3" bind:__l="__l" bindupdateModelValue="{{p}}" u-p="{{q}}"/><view wx:if="{{r}}" class="Hint data-v-96d38e2b">请选择日期</view></view><view class="Remarkscss data-v-96d38e2b"><uni-easyinput wx:if="{{t}}" class="data-v-96d38e2b" u-i="96d38e2b-4" bind:__l="__l" bindupdateModelValue="{{s}}" u-p="{{t}}"></uni-easyinput></view><view class="Publish data-v-96d38e2b"><button bindtap="{{v}}" class="Publishcss data-v-96d38e2b">发布</button></view></view></view></view>
|
||||
<view wx:if="{{a}}" class="Mask data-v-96d38e2b" bindtap="{{x}}"><view class="data-v-96d38e2b" catchtap="{{w}}"><view class="container data-v-96d38e2b"><image class="Fork data-v-96d38e2b" bindtap="{{b}}" src="{{c}}" mode="scaleToFill"/><view class="Title data-v-96d38e2b">发布新PK</view><view class="Individual data-v-96d38e2b"><view class="NameAnchor data-v-96d38e2b"><input class="NameAnchorcss data-v-96d38e2b" bindinput="{{d}}" placeholder="主播名称"/><view wx:if="{{e}}" class="Hint data-v-96d38e2b">请填写主播名称</view></view><view class="Gender data-v-96d38e2b"><wht-select wx:if="{{g}}" class="data-v-96d38e2b" style="width:300rpx" bindchange="{{f}}" u-i="96d38e2b-0" bind:__l="__l" u-p="{{g}}"/><view wx:if="{{h}}" class="Hint data-v-96d38e2b">请选择性别</view></view></view><view class="Accountnumber data-v-96d38e2b"><view class="Coins country data-v-96d38e2b"><wht-select wx:if="{{j}}" class="data-v-96d38e2b" style="width:300rpx" bindchange="{{i}}" u-i="96d38e2b-1" bind:__l="__l" u-p="{{j}}"/><view wx:if="{{k}}" class="Hint data-v-96d38e2b">请选择国家</view></view><view class="Coins data-v-96d38e2b"><view class="number-box data-v-96d38e2b"><view class="number-box-title data-v-96d38e2b">金币:</view><uni-number-box wx:if="{{m}}" class="data-v-96d38e2b" u-i="96d38e2b-2" bind:__l="__l" bindupdateModelValue="{{l}}" u-p="{{m}}"></uni-number-box><view class="number-box-unit data-v-96d38e2b">K</view></view><view wx:if="{{n}}" class="Hint data-v-96d38e2b">请填写金币数量</view></view></view><view class="time data-v-96d38e2b"><uni-datetime-picker wx:if="{{q}}" class="data-v-96d38e2b" bindchange="{{o}}" u-i="96d38e2b-3" bind:__l="__l" bindupdateModelValue="{{p}}" u-p="{{q}}"/><view wx:if="{{r}}" class="Hint data-v-96d38e2b">请选择日期</view></view><view class="Remarkscss data-v-96d38e2b"><uni-easyinput wx:if="{{t}}" class="data-v-96d38e2b" u-i="96d38e2b-4" bind:__l="__l" bindupdateModelValue="{{s}}" u-p="{{t}}"></uni-easyinput></view><view class="Publish data-v-96d38e2b"><button bindtap="{{v}}" class="Publishcss data-v-96d38e2b">发布</button></view></view></view></view>
|
||||
@@ -60,14 +60,18 @@
|
||||
display: flex;
|
||||
}
|
||||
.Coins.data-v-96d38e2b {
|
||||
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.data-v-96d38e2b{
|
||||
margin-left: 40rpx;
|
||||
}
|
||||
.number-box.data-v-96d38e2b {
|
||||
display: flex;
|
||||
text-align: center;
|
||||
|
||||
30
unpackage/dist/dev/mp-weixin/pages/pkDetail/pkDetail.js
vendored
Normal file
30
unpackage/dist/dev/mp-weixin/pages/pkDetail/pkDetail.js
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const _sfc_main = {
|
||||
data() {
|
||||
return {
|
||||
item: {}
|
||||
};
|
||||
},
|
||||
onLoad(options) {
|
||||
const eventChannel = this.getOpenerEventChannel();
|
||||
eventChannel.on("itemDetail", (data) => {
|
||||
this.item = data.item;
|
||||
common_vendor.index.__f__("log", "at pages/pkDetail/pkDetail.vue:30", "接收到的数据:", this.item);
|
||||
});
|
||||
},
|
||||
methods: {}
|
||||
};
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return {
|
||||
a: common_vendor.t($data.item.anchorId),
|
||||
b: common_vendor.t($data.item.sex === 1 ? "男" : "女"),
|
||||
c: common_vendor.t($data.item.country),
|
||||
d: common_vendor.t($data.item.coin),
|
||||
e: common_vendor.t($data.item.remark),
|
||||
f: common_vendor.t($data.item.pkTime)
|
||||
};
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-9639f721"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/pkDetail/pkDetail.js.map
|
||||
4
unpackage/dist/dev/mp-weixin/pages/pkDetail/pkDetail.json
vendored
Normal file
4
unpackage/dist/dev/mp-weixin/pages/pkDetail/pkDetail.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"navigationBarTitleText": "PK详情",
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/pages/pkDetail/pkDetail.wxml
vendored
Normal file
1
unpackage/dist/dev/mp-weixin/pages/pkDetail/pkDetail.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="container data-v-9639f721"><view class="data-v-9639f721">主播名称{{a}}</view><view class="data-v-9639f721">主播性别{{b}}</view><view class="data-v-9639f721"> 国家{{c}}</view><view class="data-v-9639f721">金币{{d}}</view><view class="data-v-9639f721">主播备注{{e}}</view><view class="data-v-9639f721">PK时间{{f}}</view></view>
|
||||
2
unpackage/dist/dev/mp-weixin/pages/pkDetail/pkDetail.wxss
vendored
Normal file
2
unpackage/dist/dev/mp-weixin/pages/pkDetail/pkDetail.wxss
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
|
||||
/* 样式定义 */
|
||||
BIN
unpackage/dist/dev/mp-weixin/static/male.png
vendored
Normal file
BIN
unpackage/dist/dev/mp-weixin/static/male.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.0 KiB |
Reference in New Issue
Block a user