优化页面

This commit is contained in:
pengxiaolong
2025-06-13 22:13:15 +08:00
parent de99d32c01
commit 0f2a48b450
86 changed files with 4383 additions and 671 deletions

View File

@@ -1 +1 @@
"use strict";const o=require("../../common/vendor.js"),e=require("../../components/request.js"),t=require("../../components/formatDate.js"),n=require("../../components/TimeFormatting.js"),a={data:()=>({userinfo:{},pkInformationdata:[],myPkRecorddata:[]}),onShow(){o.index.getStorage({key:"userinfo",success:o=>{this.userinfo=o.data,console.log(this.userinfo),this.getpkInformation(),this.getmyPkRecord()}})},methods:{formatDate:t.formatDate,TimeFormatting:n.TimeFormatting,getpkInformation(){e.request({url:"user/queryMyAllPkData",method:"POST",data:{userId:this.userinfo.id,page:0,size:4},userInfo:!0}).then((o=>{200==o.code?(this.pkInformationdata=o.data,console.log(this.pkInformationdata)):console.log(o.msg)}))},getmyPkRecord(){e.request({url:"user/handlePkInfo",method:"POST",data:{type:1,userId:this.userinfo.id,page:0,size:4},userInfo:!1}).then((o=>{200==o.code?(this.myPkRecorddata=o.data,console.log(this.myPkRecorddata)):console.log(o.msg)}))},pkInformation(){o.index.navigateTo({url:"/pages/Mine/minecomponents/pkInformation"})},pkRecord(){o.index.navigateTo({url:"/pages/Mine/minecomponents/pkRecord"})},contact(){o.index.navigateTo({url:"/pages/Mine/minecomponents/contact"})},goSetting(){o.index.navigateTo({url:"/pages/Setting/Setting"})},serviceProtocol(){o.index.navigateTo({url:"/pages/Mine/minecomponents/serviceProtocol"})},logout(){o.index.clearStorage(),o.A.logout(),o.index.reLaunch({url:"/pages/login/login"})}},components:{tabBar:()=>"../../components/tabBar/tabBar.js"}};if(!Array){o.resolveComponent("tabBar")()}Math;const r=o._export_sfc(a,[["render",function(e,t,n,a,r,i){return o.e({a:r.userinfo.headerIcon,b:o.t(r.userinfo.nickName),c:o.o$1(((...o)=>i.goSetting&&i.goSetting(...o))),d:o.o$1(((...o)=>i.pkInformation&&i.pkInformation(...o))),e:0!==r.pkInformationdata.length},0!==r.pkInformationdata.length?{f:o.f(r.pkInformationdata,((e,t,n)=>({a:e.anchorIcon,b:o.t(i.formatDate(e.pkTime)),c:o.t(e.coin),d:t})))}:{},{g:0===r.pkInformationdata.length},(r.pkInformationdata.length,{}),{h:o.o$1(((...o)=>i.pkRecord&&i.pkRecord(...o))),i:0!==r.myPkRecorddata.length},0!==r.myPkRecorddata.length?{j:o.f(r.myPkRecorddata,((e,t,n)=>o.e({a:e.anchorIconA,b:e.winnerAnchorId!==e.anchorIdA},(e.winnerAnchorId!==e.anchorIdA||(e.winnerAnchorId,e.anchorIdA),{}),{c:e.winnerAnchorId===e.anchorIdA,d:o.t(e.pkNumber),e:o.t(i.TimeFormatting(e.pkTime)),f:t})))}:{},{k:0===r.myPkRecorddata.length},(r.myPkRecorddata.length,{}),{l:o.o$1(((...o)=>i.contact&&i.contact(...o))),m:o.o$1(((...o)=>i.serviceProtocol&&i.serviceProtocol(...o))),n:o.o$1(((...o)=>i.logout&&i.logout(...o))),o:o.p({tabIndex:4})})}],["__scopeId","data-v-d61e5b2e"]]);wx.createPage(r);
"use strict";const t=require("../../common/vendor.js"),e=require("../../components/request.js"),o=require("../../components/formatDate.js"),n=require("../../components/TimeFormatting.js"),a={data:()=>({userinfo:{},pkInformationdata:[],myPkRecorddata:[],SignStatus:null,AnchorList:[]}),onShow(){t.index.getStorage({key:"userinfo",success:t=>{this.userinfo=t.data,console.log(this.userinfo),this.getpkInformation(),this.getmyPkRecord(),this.getSignStatus(),this.getAnchorList()}})},methods:{getAnchorList(){e.request({url:"anchor/list",method:"POST",data:{userId:this.userinfo.id},userInfo:!0}).then((t=>{200==t.code?this.AnchorList=t.data.slice(0,4):console.log(t.msg)}))},getSignStatus(){e.request({url:"user/checkSignStatus",method:"GET",data:{userId:this.userinfo.id},userInfo:!0}).then((t=>{200==t.code?this.SignStatus=t.data:console.log(t.msg)}))},sign(){e.request({url:"user/signIn",method:"POST",data:{userId:this.userinfo.id},userInfo:!0}).then((e=>{200==e.code?(t.index.showToast({title:"签到成功",icon:"none",duration:2e3}),this.getSignStatus()):console.log(e.msg)}))},formatDate:o.formatDate,TimeFormatting:n.TimeFormatting,getpkInformation(){e.request({url:"user/queryMyAllPkData",method:"POST",data:{userId:this.userinfo.id,page:0,size:4},userInfo:!0}).then((t=>{200==t.code?(this.pkInformationdata=t.data,console.log(this.pkInformationdata)):console.log(t.msg)}))},getmyPkRecord(){e.request({url:"user/handlePkInfo",method:"POST",data:{type:1,userId:this.userinfo.id,page:0,size:4},userInfo:!1}).then((t=>{200==t.code?(this.myPkRecorddata=t.data,console.log(this.myPkRecorddata)):console.log(t.msg)}))},anchorLibrary(){t.index.navigateTo({url:"/pages/Mine/minecomponents/anchorLibrary"})},pkInformation(){t.index.navigateTo({url:"/pages/Mine/minecomponents/pkInformation"})},pkRecord(){t.index.navigateTo({url:"/pages/Mine/minecomponents/pkRecord"})},contact(){t.index.navigateTo({url:"/pages/Mine/minecomponents/contact"})},goSetting(){t.index.navigateTo({url:"/pages/Setting/Setting"})},serviceProtocol(){t.index.navigateTo({url:"/pages/Mine/minecomponents/serviceProtocol"})},logout(){t.index.clearStorage(),t.A.logout(),t.index.reLaunch({url:"/pages/login/login"})}},components:{tabBar:()=>"../../components/tabBar/tabBar.js"}};if(!Array){t.resolveComponent("tabBar")()}Math;const r=t._export_sfc(a,[["render",function(e,o,n,a,r,i){return t.e({a:r.userinfo.headerIcon,b:t.t(r.userinfo.nickName),c:!0===r.SignStatus},!0===r.SignStatus?{d:t.o$1(((...t)=>i.sign&&i.sign(...t)))}:{},{e:!1===r.SignStatus},(r.SignStatus,{}),{f:t.o$1(((...t)=>i.goSetting&&i.goSetting(...t))),g:t.o$1(((...t)=>i.anchorLibrary&&i.anchorLibrary(...t))),h:0!==r.AnchorList.length},0!==r.AnchorList.length?{i:t.f(r.AnchorList,((e,o,n)=>({a:e.headerIcon,b:t.t(e.anchorId),c:t.t(e.country),d:o})))}:{},{j:0===r.AnchorList.length},(r.AnchorList.length,{}),{k:t.o$1(((...t)=>i.pkInformation&&i.pkInformation(...t))),l:0!==r.pkInformationdata.length},0!==r.pkInformationdata.length?{m:t.f(r.pkInformationdata,((e,o,n)=>({a:e.anchorIcon,b:t.t(i.formatDate(e.pkTime)),c:t.t(e.coin),d:o})))}:{},{n:0===r.pkInformationdata.length},(r.pkInformationdata.length,{}),{o:t.o$1(((...t)=>i.pkRecord&&i.pkRecord(...t))),p:0!==r.myPkRecorddata.length},0!==r.myPkRecorddata.length?{q:t.f(r.myPkRecorddata,((e,o,n)=>t.e({a:e.anchorIconA,b:e.winnerAnchorId!==e.anchorIdA},(e.winnerAnchorId!==e.anchorIdA||(e.winnerAnchorId,e.anchorIdA),{}),{c:e.winnerAnchorId===e.anchorIdA,d:t.t(e.pkNumber),e:t.t(i.TimeFormatting(e.pkTime)),f:o})))}:{},{r:0===r.myPkRecorddata.length},(r.myPkRecorddata.length,{}),{s:t.o$1(((...t)=>i.contact&&i.contact(...t))),t:t.o$1(((...t)=>i.serviceProtocol&&i.serviceProtocol(...t))),v:t.o$1(((...t)=>i.logout&&i.logout(...t))),w:t.p({tabIndex:4})})}],["__scopeId","data-v-a35a4a7f"]]);wx.createPage(r);

File diff suppressed because one or more lines are too long

View File

@@ -1 +1 @@
.bg.data-v-d61e5b2e{position:fixed;top:0;left:0;right:0;bottom:0;z-index:-1}.bgImg.data-v-d61e5b2e{width:100%;height:100%}.PersonalInformation.data-v-d61e5b2e{position:absolute;top:150rpx;left:0;right:0;height:144.5rpx;display:flex;align-items:center}.header.data-v-d61e5b2e{width:144.5rpx;height:144.5rpx;border-radius:72.25rpx;background-color:#fff;margin-left:32.5rpx;margin-right:39.5rpx}.Settings.data-v-d61e5b2e{width:46rpx;height:46rpx;margin-left:30rpx}.SettingsIcon.data-v-d61e5b2e{width:100%;height:100%}.name.data-v-d61e5b2e{width:400rpx;font-size:36.26rpx;font-weight:500;color:#161616;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.content.data-v-d61e5b2e{position:absolute;top:294.5rpx;left:0;right:0;height:100%;display:flex;flex-direction:column;align-items:center}.PKInformation.data-v-d61e5b2e,.myPkRecord.data-v-d61e5b2e{margin-top:48.5rpx}.title.data-v-d61e5b2e{width:682rpx;height:33.4rpx;display:flex;align-items:center}.titleText.data-v-d61e5b2e{font-size:34.35rpx;font-weight:700;color:#100e0f}.titleLine.data-v-d61e5b2e{width:40.08rpx;height:14.31rpx;margin-left:-40rpx;margin-top:25rpx;border-radius:7.16rpx 0rpx 7.16rpx 7.16rpx;background-color:rgba(145,227,228,.545)}.titleMore.data-v-d61e5b2e{margin-left:400rpx;font-size:28.63rpx;color:#333}.myPkRecordMore.data-v-d61e5b2e{margin-left:330rpx;font-size:28.63rpx;color:#333}.card.data-v-d61e5b2e{width:689.03rpx;height:208.02rpx;background-color:#fff;border-radius:10rpx;margin-top:26.5rpx;display:flex;align-items:center}.card .cardContent.data-v-d61e5b2e:first-child{margin-left:30rpx}.cardContent.data-v-d61e5b2e{width:100rpx;display:flex;flex-direction:column;justify-content:center;align-items:center;margin-left:83rpx}.cardImg.data-v-d61e5b2e{width:80rpx;height:80rpx;border-radius:40rpx;background-color:#cdcdcd}.Time.data-v-d61e5b2e,.gold.data-v-d61e5b2e{font-size:18rpx;text-align:center;margin-top:10rpx}.Failure.data-v-d61e5b2e{width:56.3rpx;height:29.58rpx;background-image:url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/maleimg.png);background-position-x:center;background-position-y:center;background-repeat:no-repeat;background-size:100% 100%;color:#fff;font-size:17.18rpx;text-align:center;line-height:29.58rpx;margin-top:-20rpx}.Result.data-v-d61e5b2e{width:56.3rpx;height:29.58rpx;background-image:url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/femaleimg.png);background-position-x:center;background-position-y:center;background-repeat:no-repeat;background-size:100% 100%;color:#fff;font-size:17.18rpx;text-align:center;line-height:29.58rpx;margin-top:-20rpx}.Session.data-v-d61e5b2e{font-weight:700;font-size:18rpx;margin-top:10rpx}.service.data-v-d61e5b2e{width:200rpx;display:flex;flex-direction:column;justify-content:center;align-items:center}.cardtext.data-v-d61e5b2e{margin-top:20rpx;font-size:28.63rpx;color:#333;font-weight:400}.copyright.data-v-d61e5b2e{font-size:23rpx;color:#929292;text-align:center;position:fixed;bottom:250rpx;left:0;right:0;height:50rpx}.no-content.data-v-d61e5b2e{width:100%;height:100%;display:flex;justify-content:center;align-items:center;font-size:28.63rpx;color:#333}
.bg.data-v-a35a4a7f{position:fixed;top:0;left:0;right:0;bottom:0;z-index:-1}.bgImg.data-v-a35a4a7f{width:100%;height:100%}.PersonalInformation.data-v-a35a4a7f{position:absolute;top:150rpx;left:0;right:0;height:144.5rpx;display:flex;align-items:center}.header.data-v-a35a4a7f{width:144.5rpx;height:144.5rpx;border-radius:72.25rpx;background-color:#fff;margin-left:32.5rpx;margin-right:39.5rpx}.Settings.data-v-a35a4a7f{width:46rpx;height:46rpx;margin-left:30rpx}.SettingsIcon.data-v-a35a4a7f{width:100%;height:100%}.name.data-v-a35a4a7f{width:280rpx;font-size:36.26rpx;font-weight:500;color:#161616;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.Sign.data-v-a35a4a7f{width:100rpx;height:50rpx;background-color:#91e3e4;border-radius:20rpx;font-size:20rpx;color:#fff;text-align:center;line-height:50rpx;margin-left:30rpx}.content.data-v-a35a4a7f{position:absolute;top:294.5rpx;left:0;right:0;height:100%;display:flex;flex-direction:column;align-items:center}.scroll.data-v-a35a4a7f{position:absolute;top:0;left:0;right:0;height:100%;display:flex;flex-direction:column;align-items:center}.PKInformation.data-v-a35a4a7f,.myPkRecord.data-v-a35a4a7f{margin-top:48.5rpx}.title.data-v-a35a4a7f{width:682rpx;height:33.4rpx;display:flex;align-items:center}.titleText.data-v-a35a4a7f{font-size:34.35rpx;font-weight:700;color:#100e0f}.titleLine.data-v-a35a4a7f{width:40.08rpx;height:14.31rpx;margin-left:-40rpx;margin-top:25rpx;border-radius:7.16rpx 0rpx 7.16rpx 7.16rpx;background-color:rgba(145,227,228,.545)}.AnchorMore.data-v-a35a4a7f{margin-left:390rpx;font-size:28.63rpx;color:#333}.titleMore.data-v-a35a4a7f{margin-left:400rpx;font-size:28.63rpx;color:#333}.myPkRecordMore.data-v-a35a4a7f{margin-left:330rpx;font-size:28.63rpx;color:#333}.card.data-v-a35a4a7f{width:689.03rpx;height:208.02rpx;background-color:#fff;border-radius:10rpx;margin-top:26.5rpx;display:flex;align-items:center}.card .cardContent.data-v-a35a4a7f:first-child{margin-left:30rpx}.cardContent.data-v-a35a4a7f{width:100rpx;display:flex;flex-direction:column;justify-content:center;align-items:center;margin-left:83rpx}.cardImg.data-v-a35a4a7f{width:80rpx;height:80rpx;border-radius:40rpx;background-color:#cdcdcd}.Time.data-v-a35a4a7f,.gold.data-v-a35a4a7f{font-size:18rpx;text-align:center;margin-top:10rpx}.Failure.data-v-a35a4a7f{width:56.3rpx;height:29.58rpx;background-image:url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/maleimg.png);background-position-x:center;background-position-y:center;background-repeat:no-repeat;background-size:100% 100%;color:#fff;font-size:17.18rpx;text-align:center;line-height:29.58rpx;margin-top:-20rpx}.Result.data-v-a35a4a7f{width:56.3rpx;height:29.58rpx;background-image:url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/femaleimg.png);background-position-x:center;background-position-y:center;background-repeat:no-repeat;background-size:100% 100%;color:#fff;font-size:17.18rpx;text-align:center;line-height:29.58rpx;margin-top:-20rpx}.Session.data-v-a35a4a7f{font-weight:700;font-size:18rpx;margin-top:10rpx}.service.data-v-a35a4a7f{width:200rpx;display:flex;flex-direction:column;justify-content:center;align-items:center}.cardtext.data-v-a35a4a7f{margin-top:20rpx;font-size:28.63rpx;color:#333;font-weight:400}.copyright.data-v-a35a4a7f{font-size:23rpx;color:#929292;text-align:center;position:absolute;bottom:0rpx;left:0;right:0;height:50rpx}.no-content.data-v-a35a4a7f{width:100%;height:100%;display:flex;justify-content:center;align-items:center;font-size:28.63rpx;color:#333}

View File

@@ -0,0 +1 @@
"use strict";const e=require("../../../common/vendor.js"),a={data:()=>({title:"Hello"}),onLoad(){},methods:{onBack(){e.wx$1.navigateBack({delta:1})}}};const o=e._export_sfc(a,[["render",function(a,o,t,n,c,r){return{a:e.o$1(((...e)=>r.onBack&&r.onBack(...e)))}}],["__scopeId","data-v-b34fd0a7"]]);wx.createPage(o);

View File

@@ -0,0 +1,4 @@
{
"navigationBarTitleText": "主播库",
"usingComponents": {}
}

View File

@@ -0,0 +1 @@
<view class="anchor-library data-v-b34fd0a7"><view class="bg data-v-b34fd0a7"><image class="bgImg data-v-b34fd0a7" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/HomeBackground.png" mode="scaleToFill"/></view><view class="Return data-v-b34fd0a7" bindtap="{{a}}"><image class="ReturnImg data-v-b34fd0a7" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Return.png" mode="scaleToFill"/></view><view class="title data-v-b34fd0a7">主播库</view></view>

View File

@@ -0,0 +1 @@
.bg.data-v-b34fd0a7{position:fixed;top:0;left:0;right:0;bottom:0;z-index:-1}.bgImg.data-v-b34fd0a7{width:100%;height:100%}.Return.data-v-b34fd0a7{position:absolute;top:110rpx;left:35rpx;width:46rpx;height:46rpx}.title.data-v-b34fd0a7{position:absolute;top:120rpx;left:315rpx;font-size:34rpx;color:#100e0f;font-weight:500}.ReturnImg.data-v-b34fd0a7{width:100%;height:100%}