优化页面

This commit is contained in:
pengxiaolong
2025-06-10 23:06:51 +08:00
parent 8c70c2c850
commit 3c2d7e5959
974 changed files with 353 additions and 87597 deletions

View File

@@ -1 +1 @@
"use strict";const e=require("../../common/vendor.js"),t=require("../../components/TUILogin.js"),i=require("../../components/request.js"),s=require("../../components/formatDate.js"),o=require("../../stores/counter.js"),a=require("../../common/assets.js"),n=o.useCounterStore(),r={inject:["$global"],data:()=>({info:{},myuserSig:"",chatInfo:{},page:0,size:10,list:[],detailsdata:{},triggered:!1,RealTimePklist:[],MakeAppointmentPKlist:[],listtype:1}),mounted(){this.pkList({type:2}),this.pkList({type:1})},onLoad(){e.index.getStorage({key:"userinfo",success:i=>{this.info=i.data,n.$patch({myitem:this.info}),e.index.getStorage({key:"myuserSig",success:i=>{this.myuserSig=i.data,e.index.getStorage({key:"chatInfo",success:e=>{this.chatInfo=e.data,t.TUIlogin(this.chatInfo.appId,this.info.id,this.myuserSig.userSig)}})}})}})},methods:{goMakeAppointmentPK(){this.listtype=1,this.list=this.MakeAppointmentPKlist},goRealTimePk(){this.listtype=2,this.list=this.RealTimePklist},goAdvertisement(){e.index.navigateTo({url:"/pages/pkDetail/pkDetail"})},onRefresherRefresh(){this.page=0,this.list=[],1===this.listtype?this.MakeAppointmentPKlist=[]:this.RealTimePklist=[],this.triggered=!0,this.pkList({type:this.listtype})},async goDetail(t){e.index.showLoading({title:"加载中...",mask:!0}),console.log("id",t.id);const s=await i.request({url:"pk/pkInfoDetail",method:"POST",data:{id:t.id},userInfo:!0});console.log("res",s),this.detailsdata=s.data,200===s.code?0!==s.data.length?(e.index.hideLoading(),console.log("res.data",s.data),e.index.navigateTo({url:"/pages/pkDetail/pkDetail",success:e=>{e.eventChannel.emit("itemDetail",{item:this.detailsdata})}})):(e.index.hideLoading(),this.openPopupQuantity()):(e.index.hideLoading(),e.index.showToast({title:"加载失败",icon:"none",duration:2e3}))},formatDate:s.formatDate,async pkList(e){const t=await i.request({url:"pk/pkList",method:"POST",data:{status:0,page:this.page,size:this.size,condition:e},userInfo:!1});console.log(t),200===t.code&&(this.triggered=!1,1===e.type?(this.MakeAppointmentPKlist.push(...t.data),e.type==this.listtype&&(this.list=this.MakeAppointmentPKlist)):(this.RealTimePklist.push(...t.data),e.type==this.listtype&&(this.list=this.RealTimePklist)))}},onScrollToLower(){this.page++,this.pkList({type:this.listtype})},components:{topNavigation:()=>"../../components/topNavigation/topNavigation.js",Advertisement:()=>"../../components/Advertisement/Advertisement.js",tabBar:()=>"../../components/tabBar/tabBar.js"}};if(!Array){(e.resolveComponent("top-navigation")+e.resolveComponent("advertisement")+e.resolveComponent("uni-card")+e.resolveComponent("tabBar"))()}Math;const p=e._export_sfc(r,[["render",function(t,i,s,o,n,r){return{a:a._imports_0$1,b:e.o$1(r.goRealTimePk),c:e.o$1(r.goMakeAppointmentPK),d:e.o$1(((...e)=>r.goAdvertisement&&r.goAdvertisement(...e))),e:e.f(n.list,((t,i,s)=>e.e({a:t.anchorIcon,b:e.t(t.anchorId),c:"2"===t.sex},"2"===t.sex?{d:a._imports_3}:{e:a._imports_2},{f:e.t("1"===t.sex?"男":"女"),g:"1"===t.sex?1:"",h:"2"===t.sex?1:"",i:e.t(r.formatDate(t.pkTime)),j:e.t(t.coin+"K"),k:e.o$1((e=>r.goDetail(t))),l:"f8f5a633-2-"+s}))),f:e.o$1(((...e)=>r.onRefresherRefresh&&r.onRefresherRefresh(...e))),g:e.o$1(((...e)=>t.onScrollToLower&&t.onScrollToLower(...e))),h:n.triggered}}],["__scopeId","data-v-f8f5a633"]]);wx.createPage(p);
"use strict";const e=require("../../common/vendor.js"),t=require("../../components/TUILogin.js"),i=require("../../components/request.js"),s=require("../../components/formatDate.js"),o=require("../../stores/counter.js").useCounterStore(),a={inject:["$global"],data:()=>({info:{},myuserSig:"",chatInfo:{},page:0,size:10,list:[],detailsdata:{},triggered:!1,RealTimePklist:[],MakeAppointmentPKlist:[],listtype:1}),mounted(){this.pkList({type:2}),this.pkList({type:1})},onLoad(){e.index.getStorage({key:"userinfo",success:i=>{this.info=i.data,o.$patch({myitem:this.info}),e.index.getStorage({key:"myuserSig",success:i=>{this.myuserSig=i.data,e.index.getStorage({key:"chatInfo",success:e=>{this.chatInfo=e.data,t.TUIlogin(this.chatInfo.appId,this.info.id,this.myuserSig.userSig)}})}})}}),setTimeout((()=>{e.index.switchTab({url:"/pages/Home/Home"})}),1e3)},methods:{goMakeAppointmentPK(){this.listtype=1,this.list=this.MakeAppointmentPKlist},goRealTimePk(){this.listtype=2,this.list=this.RealTimePklist},goAdvertisement(){e.index.navigateTo({url:"/pages/pkDetail/pkDetail"})},onRefresherRefresh(){this.page=0,this.list=[],1===this.listtype?this.MakeAppointmentPKlist=[]:this.RealTimePklist=[],this.triggered=!0,this.pkList({type:this.listtype})},async goDetail(t){e.index.showLoading({title:"加载中...",mask:!0}),console.log("id",t.id);const s=await i.request({url:"pk/pkInfoDetail",method:"POST",data:{id:t.id},userInfo:!0});console.log("res",s),this.detailsdata=s.data,200===s.code?0!==s.data.length?(e.index.hideLoading(),console.log("res.data",s.data),e.index.navigateTo({url:"/pages/pkDetail/pkDetail",success:e=>{e.eventChannel.emit("itemDetail",{item:this.detailsdata})}})):(e.index.hideLoading(),this.openPopupQuantity()):(e.index.hideLoading(),e.index.showToast({title:"加载失败",icon:"none",duration:2e3}))},formatDate:s.formatDate,async pkList(e){const t=await i.request({url:"pk/pkList",method:"POST",data:{status:0,page:this.page,size:this.size,condition:e},userInfo:!1});console.log(t),200===t.code&&(this.triggered=!1,1===e.type?(this.MakeAppointmentPKlist.push(...t.data),e.type==this.listtype&&(this.list=this.MakeAppointmentPKlist)):(this.RealTimePklist.push(...t.data),e.type==this.listtype&&(this.list=this.RealTimePklist)))}},onScrollToLower(){this.page++,this.pkList({type:this.listtype})},components:{topNavigation:()=>"../../components/topNavigation/topNavigation.js",Advertisement:()=>"../../components/Advertisement/Advertisement.js",tabBar:()=>"../../components/tabBar/tabBar.js"}};if(!Array){(e.resolveComponent("top-navigation")+e.resolveComponent("advertisement")+e.resolveComponent("uni-card")+e.resolveComponent("tabBar"))()}Math;const n=e._export_sfc(a,[["render",function(t,i,s,o,a,n){return e.e({a:e.o$1(n.goRealTimePk),b:e.o$1(n.goMakeAppointmentPK),c:e.o$1(((...e)=>n.goAdvertisement&&n.goAdvertisement(...e))),d:0!==a.list.length},0!==a.list.length?{e:e.f(a.list,((t,i,s)=>e.e({a:t.anchorIcon,b:e.t(t.anchorId),c:"2"===t.sex},(t.sex,{}),{d:e.t("1"===t.sex?"男":"女"),e:"1"===t.sex?1:"",f:"2"===t.sex?1:"",g:e.t(n.formatDate(t.pkTime)),h:e.t(t.coin+"K"),i:e.o$1((e=>n.goDetail(t))),j:"551e1e93-2-"+s})))}:{},{f:0===a.list.length},(a.list.length,{}),{g:e.o$1(((...e)=>n.onRefresherRefresh&&n.onRefresherRefresh(...e))),h:e.o$1(((...e)=>t.onScrollToLower&&t.onScrollToLower(...e))),i:a.triggered})}],["__scopeId","data-v-551e1e93"]]);wx.createPage(n);

View File

@@ -1 +1 @@
<view class="page data-v-f8f5a633"><image src="{{a}}" class="HomeBackground data-v-f8f5a633"></image></view><view class="top-navigation-container data-v-f8f5a633"><top-navigation class="data-v-f8f5a633" bindRealTimePk="{{b}}" bindMakeAppointmentPK="{{c}}" u-i="f8f5a633-0" bind:__l="__l"></top-navigation></view><view class="Advertisement data-v-f8f5a633" bindtap="{{d}}"><advertisement class="data-v-f8f5a633" u-i="f8f5a633-1" bind:__l="__l"></advertisement></view><view class="contentList data-v-f8f5a633"><scroll-view scroll-y="true" class="scroll data-v-f8f5a633" refresher-enabled="true" refresher-threshold="40" bindrefresherrefresh="{{f}}" lower-threshold="100" bindscrolltolower="{{g}}" refresher-triggered="{{h}}"><uni-card wx:for="{{e}}" wx:for-item="item" class="data-v-f8f5a633" u-s="{{['d']}}" u-i="{{item.l}}" bind:__l="__l"><view class="content-list data-v-f8f5a633" bindtap="{{item.k}}"><image class="headShot data-v-f8f5a633" src="{{item.a}}" mode="scaleToFill"/><view class="content-list-title data-v-f8f5a633"><view class="cardname data-v-f8f5a633">{{item.b}}</view><view class="content-list-info data-v-f8f5a633"><view class="{{['data-v-f8f5a633', item.g && 'Gendermale', item.h && 'Genderfemale']}}"><image wx:if="{{item.c}}" class="Genderimg data-v-f8f5a633" src="{{item.d}}" mode="scaleToFill"/><image wx:else class="Genderimg data-v-f8f5a633" src="{{item.e}}" mode="scaleToFill"/><view class="age data-v-f8f5a633">{{item.f}}</view></view><view class="RoomID data-v-f8f5a633">PK时间: {{item.i}}</view><view class="Charm data-v-f8f5a633">金币:</view><view class="charmValue data-v-f8f5a633">{{item.j}}</view></view></view></view></uni-card></scroll-view></view><view class="tabBar data-v-f8f5a633"><tab-bar class="data-v-f8f5a633" u-i="f8f5a633-3" bind:__l="__l"></tab-bar></view>
<view class="page data-v-551e1e93"><image src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/HomeBackground.png" class="HomeBackground data-v-551e1e93"></image></view><view class="top-navigation-container data-v-551e1e93"><top-navigation class="data-v-551e1e93" bindRealTimePk="{{a}}" bindMakeAppointmentPK="{{b}}" u-i="551e1e93-0" bind:__l="__l"></top-navigation></view><view class="Advertisement data-v-551e1e93" bindtap="{{c}}"><advertisement class="data-v-551e1e93" u-i="551e1e93-1" bind:__l="__l"></advertisement></view><view class="contentList data-v-551e1e93"><scroll-view scroll-y="true" class="scroll data-v-551e1e93" refresher-enabled="true" refresher-threshold="40" bindrefresherrefresh="{{g}}" lower-threshold="100" bindscrolltolower="{{h}}" refresher-triggered="{{i}}"><block wx:if="{{d}}"><uni-card wx:for="{{e}}" wx:for-item="item" class="data-v-551e1e93" u-s="{{['d']}}" u-i="{{item.j}}" bind:__l="__l"><view class="content-list data-v-551e1e93" bindtap="{{item.i}}"><image class="headShot data-v-551e1e93" src="{{item.a}}" mode="scaleToFill"/><view class="content-list-title data-v-551e1e93"><view class="cardname data-v-551e1e93">{{item.b}}</view><view class="content-list-info data-v-551e1e93"><view class="{{['data-v-551e1e93', item.e && 'Gendermale', item.f && 'Genderfemale']}}"><image wx:if="{{item.c}}" class="Genderimg data-v-551e1e93" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/female.png" mode="scaleToFill"/><image wx:else class="Genderimg data-v-551e1e93" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/male.png" mode="scaleToFill"/><view class="age data-v-551e1e93">{{item.d}}</view></view><view class="RoomID data-v-551e1e93">PK时间: {{item.g}}</view><view class="Charm data-v-551e1e93">金币:</view><view class="charmValue data-v-551e1e93">{{item.h}}</view></view></view></view></uni-card></block><view wx:if="{{f}}" class="no-content data-v-551e1e93">暂无内容</view></scroll-view></view><view class="tabBar data-v-551e1e93"><tab-bar class="data-v-551e1e93" u-i="551e1e93-3" bind:__l="__l"></tab-bar></view>

View File

@@ -1 +1 @@
.page.data-v-f8f5a633{position:relative;width:750rpx;height:1620rpx}.HomeBackground.data-v-f8f5a633{position:absolute;top:0;left:0;width:100%;height:100%;z-index:-1}.top-navigation-container.data-v-f8f5a633{position:fixed;top:160rpx;left:0;width:100%;height:114.5rpx}.Advertisement.data-v-f8f5a633{position:fixed;top:300rpx;left:0;width:100%;height:100rpx;z-index:100}.contentList.data-v-f8f5a633{position:fixed;top:412rpx;left:0;bottom:114.5rpx;width:100%}.scroll.data-v-f8f5a633{height:90%;display:flex;flex-direction:column;justify-content:center;align-items:center}.content-list.data-v-f8f5a633{display:flex;align-items:center;width:712rpx;height:161rpx;background:#fff;border-radius:15rpx;margin-bottom:12rpx;margin-left:20rpx}.headShot.data-v-f8f5a633{width:101rpx;height:101rpx;border-radius:50rpx;margin-left:30rpx;margin-right:33rpx}.content-list-info.data-v-f8f5a633{display:flex;align-items:center}.cardname.data-v-f8f5a633{font-size:31rpx;color:#161616;line-height:38rpx}.Genderimg.data-v-f8f5a633{width:15rpx;height:15rpx;margin-left:10rpx;margin-right:10rpx}.age.data-v-f8f5a633{color:#fff;font-size:14rpx}.Gendermale.data-v-f8f5a633{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADsAAAAfCAYAAABZGLWTAAAAAXNSR0IArs4c6QAAAilJREFUWEftWTtPFFEU/r6ZJUuJiSQujwKRCfQkttJobJRY6Ax/ABNNKGiBAmwtTNZk9w+40BCtiDZYSmI/kxmFAmGNkIgdhFmPuUPW7C6vWVZ3ZhimnfP6zr3ncc8hQnz3PS/b5eOuAPcAGQV5EyLXSGZCsP9TEhHxQf6EyDrAz2Dlwy9df78yNHRwniKeRTC+sdHVeXA4TfApgOvnCYvw/65ACvvZjpdvBwb2TrPjVLCPbdfSyFcEuiME0ZRqAXYoMlUaMUonMR4De2d1NZPL9eYBTjalKVbEUiyXt55/HBvza82qA6uA3ujpX6LIo1jZfgFjhFz+vr35pBZwHVjLdgtgkk+00StSLA0bKt8E31+wKkZ18s0FnBhvFpGJagwHYI+yru8mKRmF9bBKWvvZjKGydADWdL7MEzIbVkDS6ETjwqJxa45Bw1DBt5jX0Vb9u7uno4+m4zwg9HetSos7v6DykKbt5Uk8i7uxrdongtcK7CcSt1sVFnt+wRpNx/txGbPwsYqrWknT8Q4JtP310u6bIIBPy/Gk3Yqj0peuk01XzKYkG0uQjVNVZ9PUQaWqNz569bgLBGeiKgn/W69AXiwOG7Ppe88qz1q2a+EyTio0baJkDAbTxvoZlOMWkj1VDDmDUmSpmi5WAedy/XlAEjw3ZrFc3jx7blx7CSz7qyX8nayNALFDalPVGG281Fe7nkaP1G/xMAoiui0exAfUFg/rAJra4v0Bqcv8upqc0XEAAAAASUVORK5CYII=) no-repeat center;width:56.3rpx;height:29.58rpx;background-size:100% 100%;display:flex;align-items:center;margin-right:10rpx}.Genderfemale.data-v-f8f5a633{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADsAAAAfCAYAAABZGLWTAAAAAXNSR0IArs4c6QAAAi1JREFUWEflWU1rE1EUPaeGFGEiCShIdVXQrZuCW1e6U3BT2j9gwSYTcZVi5WFlZlVMTIXkDyhuBJe66rKCm24rdCV+NIWUZEBb41yZ0ZYk9mMyETLPN9u5575z7nv3fdxLRPg+5PPjExdw3fd5Q8ApUiYB5gCkIsD/tUkHkKYINwl5L/Dffv3MN5eq1d2TBuJxBqKKWS8t90HMATh7krMR/t+GoGbtcZmqvHMUjyPFem5+RjBWAXBuhCIGHbpB+LZVqr44DPiXWFHXUl76ygqIO4OOlBh7Qd3aW5+nWu10c+oRK0qlvHTzJYjbiSEelwjxyvqem6ZSB4J7xLYcu0adZ7QvMCKon1moBPtN+B2I/ZOjz+MGMqk4wp/dz+FQbFMVs6lx2dBsM4oa30Znl5dzqrwTim27hUcAF6Oi9bOTpUzp6UMGF4bzE2MfE36ODhvf7S+f/ItsOfM3yVOvh/WWdLzIz1tsO4UVkHeTTnZofiLP2HLsNRJXh3aWcAcE3gUzuwVSpyth3LA22HbtHyN6vcQlHRfXCcRKXLRuONNmtrAFGJKzLddeI8zZjU06Zw26QRl1Nw5fPY69BOKBbkdJZL6Cx5mFyqJ579kgQv9vpYKzVqkcVht7alBtx65pXVXsX9eCeuawGlRgZ1R18bdgQ+rG3avAc4szAtGwI0B7P0f7V/XxvZ4nxaz3TaNez2ku816MXk93VLq7eCSnBJgEMMIuHpoENkUG6+L9AlWo7Kxo5cagAAAAAElFTkSuQmCC) no-repeat center;width:56.3rpx;height:29.58rpx;background-size:100% 100%;display:flex;align-items:center;margin-right:10rpx}.RoomID.data-v-f8f5a633{font-size:23rpx;color:#a3a3a3;line-height:38rpx}.Charm.data-v-f8f5a633{font-size:23rpx;color:#a3a3a3;line-height:38rpx;margin-right:12rpx;margin-left:20rpx}.charmValue.data-v-f8f5a633{font-size:23rpx;color:#161616;line-height:38rpx;font-weight:600}
.page.data-v-551e1e93{position:relative;width:750rpx;height:1620rpx}.HomeBackground.data-v-551e1e93{position:absolute;top:0;left:0;width:100%;height:100%;z-index:-1}.top-navigation-container.data-v-551e1e93{position:fixed;top:160rpx;left:0;width:100%;height:114.5rpx}.Advertisement.data-v-551e1e93{position:fixed;top:300rpx;left:0;width:100%;height:100rpx;z-index:100}.contentList.data-v-551e1e93{position:fixed;top:412rpx;left:0;bottom:114.5rpx;width:100%}.scroll.data-v-551e1e93{height:90%;display:flex;flex-direction:column;justify-content:center;align-items:center}.content-list.data-v-551e1e93{display:flex;align-items:center;width:712rpx;height:161rpx;background:#fff;border-radius:15rpx;margin-bottom:12rpx;margin-left:20rpx}.headShot.data-v-551e1e93{width:101rpx;height:101rpx;border-radius:50rpx;margin-left:30rpx;margin-right:33rpx}.content-list-info.data-v-551e1e93{display:flex;align-items:center}.cardname.data-v-551e1e93{font-size:31rpx;color:#161616;line-height:38rpx}.Genderimg.data-v-551e1e93{width:15rpx;height:15rpx;margin-left:10rpx;margin-right:10rpx}.age.data-v-551e1e93{color:#fff;font-size:14rpx}.Gendermale.data-v-551e1e93{background:url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/maleimg.png) no-repeat center;width:56.3rpx;height:29.58rpx;background-size:100% 100%;display:flex;align-items:center;margin-right:10rpx}.Genderfemale.data-v-551e1e93{background:url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/femaleimg.png) no-repeat center;width:56.3rpx;height:29.58rpx;background-size:100% 100%;display:flex;align-items:center;margin-right:10rpx}.RoomID.data-v-551e1e93{font-size:23rpx;color:#a3a3a3;line-height:38rpx}.Charm.data-v-551e1e93{font-size:23rpx;color:#a3a3a3;line-height:38rpx;margin-right:12rpx;margin-left:20rpx}.charmValue.data-v-551e1e93{font-size:23rpx;color:#161616;line-height:38rpx;font-weight:600}.no-content.data-v-551e1e93{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:28rpx;color:#a3a3a3;line-height:40rpx;text-align:center}