优化页面

This commit is contained in:
pengxiaolong
2025-06-18 22:04:59 +08:00
parent ec9dcb486f
commit b73ddb0370
52 changed files with 268 additions and 140 deletions

View File

@@ -1 +1 @@
"use strict";const e=require("../../../common/vendor.js"),t=require("../../../components/request.js"),o=require("../../../components/formatDate.js"),s={data:()=>({title:"Hello",userinfo:{},page:0,triggered:!1,pointslist:[]}),onLoad(){e.index.getStorage({key:"userinfo",success:e=>{this.userinfo=e.data,this.onRefresherRefresh()}})},methods:{formatDate:o.formatDate,onRefresherRefresh(){this.page=0,this.triggered=!0,this.pointslist=[],this.getPointsDetail()},onScrollToLower(){this.page+=1,this.getPointsDetail()},getPointsDetail(){t.request({url:"user/pointsDetail",method:"POST",data:{userId:this.userinfo.id,page:this.page,size:10},userInfo:!0}).then((e=>{200===e.code?(this.pointslist.push(...e.data),this.triggered=!1):console.log(e.msg)}))},onBack(){e.index.navigateBack({delta:1})}}};if(!Array){e.resolveComponent("uni-card")()}const r=e._export_sfc(s,[["render",function(t,o,s,r,i,n){return{a:e.o$1(((...e)=>n.onBack&&n.onBack(...e))),b:e.f(i.pointslist,((t,o,s)=>({a:e.t(t.info),b:e.t(0==t.status?"-"+t.number:"+"+t.number),c:e.t(n.formatDate(t.time)),d:0==t.status?"#ff000011":"#11ff002b",e:o,f:"8ec73985-0-"+s}))),c:e.o$1(((...e)=>n.onRefresherRefresh&&n.onRefresherRefresh(...e))),d:e.o$1(((...e)=>n.onScrollToLower&&n.onScrollToLower(...e))),e:i.triggered}}],["__scopeId","data-v-8ec73985"]]);wx.createPage(r);
"use strict";const e=require("../../../common/vendor.js"),t=require("../../../components/request.js"),s=require("../../../components/formatDate.js"),o={data:()=>({title:"Hello",userinfo:{},page:0,triggered:!1,pointslist:[]}),onLoad(){e.index.getStorage({key:"userinfo",success:e=>{this.userinfo=e.data,this.onRefresherRefresh()}})},methods:{formatDate:s.formatDate,onRefresherRefresh(){this.page=0,this.triggered=!0,this.pointslist=[],this.getPointsDetail()},onScrollToLower(){this.page+=1,this.getPointsDetail()},getPointsDetail(){t.request({url:"user/pointsDetail",method:"POST",data:{userId:this.userinfo.id,page:this.page,size:10},userInfo:!0}).then((e=>{200===e.code?(this.pointslist.push(...e.data),this.triggered=!1):console.log(e.msg)}))},onBack(){e.index.navigateBack({delta:1})}}};if(!Array){e.resolveComponent("uni-card")()}const r=e._export_sfc(o,[["render",function(t,s,o,r,i,n){return e.e({a:e.o$1(((...e)=>n.onBack&&n.onBack(...e))),b:0!=i.pointslist.length},0!=i.pointslist.length?{c:e.f(i.pointslist,((t,s,o)=>({a:e.t(t.info),b:e.t(0==t.status?"-"+t.number:"+"+t.number),c:e.t(n.formatDate(t.time)),d:0==t.status?"#ff000011":"#11ff002b",e:s,f:"e1fb562b-0-"+o}))),d:e.o$1(((...e)=>n.onRefresherRefresh&&n.onRefresherRefresh(...e))),e:e.o$1(((...e)=>n.onScrollToLower&&n.onScrollToLower(...e))),f:i.triggered}:{},{g:0==i.pointslist.length},(i.pointslist.length,{}))}],["__scopeId","data-v-e1fb562b"]]);wx.createPage(r);

View File

@@ -1 +1 @@
<view class="points data-v-8ec73985"><view class="bg data-v-8ec73985"><image class="bgImg data-v-8ec73985" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/HomeBackground.png" mode="scaleToFill"/></view><view class="Return data-v-8ec73985" bindtap="{{a}}"><image class="ReturnImg data-v-8ec73985" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Return.png" mode="scaleToFill"/></view><view class="title data-v-8ec73985">积分</view><view class="content data-v-8ec73985"><scroll-view show-scrollbar="false" scroll-y="true" class="scroll data-v-8ec73985" refresher-enabled="true" refresher-threshold="40" bindrefresherrefresh="{{c}}" lower-threshold="100" bindscrolltolower="{{d}}" refresher-triggered="{{e}}"><uni-card wx:for="{{b}}" wx:for-item="item" wx:key="e" u-s="{{['d']}}" class="card data-v-8ec73985" u-i="{{item.f}}" bind:__l="__l"><view class="card-content data-v-8ec73985" style="{{'background-color:' + item.d}}"><view class="info data-v-8ec73985"><view class="data-v-8ec73985">{{item.a}}</view>  <view class="num data-v-8ec73985">{{item.b}}</view></view><view class="time data-v-8ec73985">{{item.c}}</view></view></uni-card></scroll-view></view></view>
<view class="points data-v-e1fb562b"><view class="bg data-v-e1fb562b"><image class="bgImg data-v-e1fb562b" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/HomeBackground.png" mode="scaleToFill"/></view><view class="Return data-v-e1fb562b" bindtap="{{a}}"><image class="ReturnImg data-v-e1fb562b" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Return.png" mode="scaleToFill"/></view><view class="title data-v-e1fb562b">积分</view><view class="content data-v-e1fb562b"><scroll-view wx:if="{{b}}" show-scrollbar="false" scroll-y="true" class="scroll data-v-e1fb562b" refresher-enabled="true" refresher-threshold="40" bindrefresherrefresh="{{d}}" lower-threshold="100" bindscrolltolower="{{e}}" refresher-triggered="{{f}}"><uni-card wx:for="{{c}}" wx:for-item="item" wx:key="e" u-s="{{['d']}}" class="card data-v-e1fb562b" u-i="{{item.f}}" bind:__l="__l"><view class="card-content data-v-e1fb562b" style="{{'background-color:' + item.d}}"><view class="info data-v-e1fb562b"><view class="data-v-e1fb562b">{{item.a}}</view>  <view class="num data-v-e1fb562b">{{item.b}}</view></view><view class="time data-v-e1fb562b">{{item.c}}</view></view></uni-card></scroll-view><view wx:if="{{g}}" class="empty data-v-e1fb562b">暂无积分记录</view></view></view>

View File

@@ -1 +1 @@
.bg.data-v-8ec73985{position:fixed;top:0;left:0;right:0;bottom:0;z-index:-1}.bgImg.data-v-8ec73985{width:100%;height:100%}.Return.data-v-8ec73985{position:absolute;top:110rpx;left:35rpx;width:46rpx;height:46rpx}.title.data-v-8ec73985{position:absolute;top:120rpx;left:335rpx;font-size:34rpx;color:#100e0f;font-weight:700}.ReturnImg.data-v-8ec73985{width:100%;height:100%}.content.data-v-8ec73985{position:absolute;top:250rpx;left:0rpx;right:0rpx;bottom:50rpx}.scroll.data-v-8ec73985{height:100%;width:750rpx}.card-content.data-v-8ec73985{display:flex;justify-content:space-between;align-items:center;height:100rpx;width:600rpx;padding:0 20rpx;border-radius:20rpx;margin-bottom:20rpx;margin-left:50rpx}.time.data-v-8ec73985{font-size:24rpx;color:#7b7b7b}.info.data-v-8ec73985{font-size:24rpx;color:#898989;display:flex}.num.data-v-8ec73985{font-size:24rpx;color:#000;font-weight:700}
.bg.data-v-e1fb562b{position:fixed;top:0;left:0;right:0;bottom:0;z-index:-1}.bgImg.data-v-e1fb562b{width:100%;height:100%}.Return.data-v-e1fb562b{position:absolute;top:110rpx;left:35rpx;width:46rpx;height:46rpx}.title.data-v-e1fb562b{position:absolute;top:120rpx;left:335rpx;font-size:34rpx;color:#100e0f;font-weight:700}.ReturnImg.data-v-e1fb562b{width:100%;height:100%}.content.data-v-e1fb562b{position:absolute;top:250rpx;left:0rpx;right:0rpx;bottom:50rpx}.scroll.data-v-e1fb562b{height:100%;width:750rpx}.empty.data-v-e1fb562b{height:100%;width:750rpx;line-height:1200rpx;text-align:center;font-size:28rpx;color:#898989}.card-content.data-v-e1fb562b{display:flex;justify-content:space-between;align-items:center;height:100rpx;width:600rpx;padding:0 20rpx;border-radius:20rpx;margin-bottom:20rpx;margin-left:50rpx}.time.data-v-e1fb562b{font-size:24rpx;color:#7b7b7b}.info.data-v-e1fb562b{font-size:24rpx;color:#898989;display:flex}.num.data-v-e1fb562b{font-size:24rpx;color:#000;font-weight:700}

View File

@@ -1 +1 @@
<view wx:if="{{a}}" class="{{['data-v-27992e59', F, 'Mask']}}" bindtap="{{G}}"><view catchtap="{{E}}" class="containers data-v-27992e59"><view class="container data-v-27992e59"><image class="Fork data-v-27992e59" bindtap="{{b}}" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Fork.png" mode="scaleToFill"/><view class="Titlecss data-v-27992e59"><view class="Star data-v-27992e59"></view><view class="Title data-v-27992e59"></view><view class="Star data-v-27992e59"></view></view><view class="AnchorSelection data-v-27992e59"><view class="NameAnchor data-v-27992e59"><input class="NameAnchorcss data-v-27992e59" cursor-color="#666666" placeholder-style="color:#666666" bindinput="{{c}}" placeholder="主播名称" bindblur="{{d}}" value="{{e}}"/><view wx:if="{{f}}" class="Hint data-v-27992e59">请检查主播名称是否正确</view></view><view class="AnchorSelectioncss data-v-27992e59" bindtap="{{g}}">选择我的主播</view></view><view class="Accountnumber data-v-27992e59"><view class="Coins country data-v-27992e59"><wht-select wx:if="{{j}}" class="data-v-27992e59" style="width:350rpx" bindchange="{{h}}" bindblur="{{i}}" u-i="27992e59-0" bind:__l="__l" u-p="{{j}}"/><view wx:if="{{k}}" class="Hint data-v-27992e59">请选择国家</view></view><view class="Gender data-v-27992e59"><view class="Gendercs data-v-27992e59"><view class="Gendercss data-v-27992e59"><wht-select wx:if="{{m}}" class="data-v-27992e59" style="width:300rpx" bindchange="{{l}}" u-i="27992e59-1" bind:__l="__l" u-p="{{m}}"/></view><view class="Gendericoncss data-v-27992e59"><image wx:if="{{n}}" class="Gendericon data-v-27992e59" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/ask.png" mode="scaleToFill"/><image wx:if="{{o}}" class="Gendericon data-v-27992e59" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/man.png" mode="scaleToFill"/><image wx:if="{{p}}" class="Gendericon data-v-27992e59" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/girl.png" mode="scaleToFill"/></view></view><view wx:if="{{q}}" class="Hintcss data-v-27992e59">请选择性别</view></view></view><view class="goldCoin data-v-27992e59"><view class="number-box data-v-27992e59"><view class="number-box-title data-v-27992e59">金币数量:</view><uni-number-box wx:if="{{s}}" class="data-v-27992e59" u-i="27992e59-2" bind:__l="__l" bindupdateModelValue="{{r}}" u-p="{{s}}"></uni-number-box><view class="number-box-title data-v-27992e59">单位:</view><view class="number-box-unit data-v-27992e59">K</view></view><view wx:if="{{t}}" class="Hint data-v-27992e59">请填写金币数量</view></view><view class="time data-v-27992e59"><uni-datetime-picker wx:if="{{w}}" class="data-v-27992e59" u-i="27992e59-3" bind:__l="__l" bindupdateModelValue="{{v}}" u-p="{{w}}"/><view wx:if="{{x}}" class="Hint data-v-27992e59">请选择日期</view></view><view class="goldCoin data-v-27992e59"><view class="number-box data-v-27992e59"><view class="number-box-title data-v-27992e59">选择场数:</view><uni-number-box wx:if="{{z}}" class="data-v-27992e59" u-i="27992e59-4" bind:__l="__l" bindupdateModelValue="{{y}}" u-p="{{z}}"></uni-number-box><view class="number-box-title data-v-27992e59">次</view></view><view wx:if="{{A}}" class="Hint data-v-27992e59">请填写场数</view></view><view class="Remarkscss data-v-27992e59"><uni-easyinput wx:if="{{C}}" class="data-v-27992e59" u-i="27992e59-5" bind:__l="__l" bindupdateModelValue="{{B}}" u-p="{{C}}"></uni-easyinput></view><view class="Publish data-v-27992e59"><button bindtap="{{D}}" class="Publishcss data-v-27992e59">发布</button></view></view></view></view><uni-popup wx:if="{{N}}" class="r data-v-27992e59" u-s="{{['d']}}" u-r="popup" u-i="27992e59-6" bind:__l="__l" u-p="{{N}}"><view class="popup-container data-v-27992e59"><view class="popup-title data-v-27992e59">选择我的主播</view><scroll-view wx:if="{{H}}" show-scrollbar="false" scroll-y="true" class="scroll data-v-27992e59"><view wx:for="{{I}}" wx:for-item="item" wx:key="f" class="card data-v-27992e59"><view class="card-content data-v-27992e59" bindtap="{{item.d}}" style="{{'background:' + item.e}}"><view class="Avatarimg data-v-27992e59"><image class="avatar data-v-27992e59" src="{{item.a}}" mode="scaleToFill"/></view><view class="NameMoney data-v-27992e59"><view class="TimeMoney data-v-27992e59"><view class="NameMoney_Name data-v-27992e59">{{item.b}}</view></view><view class="TimeMoney data-v-27992e59"><view class="TimeMoney_country data-v-27992e59">{{item.c}}</view></view></view></view></view></scroll-view><view wx:if="{{J}}" class="no-data data-v-27992e59"><view class="no-data-text data-v-27992e59">暂无数据</view></view><view class="popup-btn data-v-27992e59"><button class="invite data-v-27992e59" type="primary" bindtap="{{K}}">确认</button><button class="cancel data-v-27992e59" type="default" bindtap="{{L}}">取消</button></view></view></uni-popup>
<view wx:if="{{a}}" class="{{['data-v-d0da91b0', F, 'Mask']}}" bindtap="{{G}}"><view catchtap="{{E}}" class="containers data-v-d0da91b0"><view class="container data-v-d0da91b0"><image class="Fork data-v-d0da91b0" bindtap="{{b}}" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Fork.png" mode="scaleToFill"/><view class="Titlecss data-v-d0da91b0"><view class="Star data-v-d0da91b0"></view><view class="Title data-v-d0da91b0"></view><view class="Star data-v-d0da91b0"></view></view><view class="AnchorSelection data-v-d0da91b0"><view class="NameAnchor data-v-d0da91b0"><input class="NameAnchorcss data-v-d0da91b0" cursor-color="#666666" placeholder-style="color:#666666" bindinput="{{c}}" placeholder="主播名称" bindblur="{{d}}" value="{{e}}"/><view wx:if="{{f}}" class="Hint data-v-d0da91b0">请检查主播名称是否正确</view></view><view class="AnchorSelectioncss data-v-d0da91b0" bindtap="{{g}}">选择我的主播</view></view><view class="Accountnumber data-v-d0da91b0"><view class="Coins country data-v-d0da91b0"><wht-select wx:if="{{j}}" class="data-v-d0da91b0" style="width:350rpx" bindchange="{{h}}" bindblur="{{i}}" u-i="d0da91b0-0" bind:__l="__l" u-p="{{j}}"/><view wx:if="{{k}}" class="Hint data-v-d0da91b0">请选择国家</view></view><view class="Gender data-v-d0da91b0"><view class="Gendercs data-v-d0da91b0"><view class="Gendercss data-v-d0da91b0"><wht-select wx:if="{{m}}" class="data-v-d0da91b0" style="width:300rpx" bindchange="{{l}}" u-i="d0da91b0-1" bind:__l="__l" u-p="{{m}}"/></view><view class="Gendericoncss data-v-d0da91b0"><image wx:if="{{n}}" class="Gendericon data-v-d0da91b0" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/ask.png" mode="scaleToFill"/><image wx:if="{{o}}" class="Gendericon data-v-d0da91b0" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/man.png" mode="scaleToFill"/><image wx:if="{{p}}" class="Gendericon data-v-d0da91b0" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/girl.png" mode="scaleToFill"/></view></view><view wx:if="{{q}}" class="Hintcss data-v-d0da91b0">请选择性别</view></view></view><view class="goldCoin data-v-d0da91b0"><view class="number-box data-v-d0da91b0"><view class="number-box-title data-v-d0da91b0">金币数量:</view><uni-number-box wx:if="{{s}}" class="data-v-d0da91b0" u-i="d0da91b0-2" bind:__l="__l" bindupdateModelValue="{{r}}" u-p="{{s}}"></uni-number-box><view class="number-box-title data-v-d0da91b0">单位:</view><view class="number-box-unit data-v-d0da91b0">K</view></view><view wx:if="{{t}}" class="Hint data-v-d0da91b0">请填写金币数量</view></view><view class="time data-v-d0da91b0"><uni-datetime-picker wx:if="{{w}}" class="data-v-d0da91b0" u-i="d0da91b0-3" bind:__l="__l" bindupdateModelValue="{{v}}" u-p="{{w}}"/><view wx:if="{{x}}" class="Hint data-v-d0da91b0">请选择日期</view></view><view class="goldCoin data-v-d0da91b0"><view class="number-box data-v-d0da91b0"><view class="number-box-title data-v-d0da91b0">选择场数:</view><uni-number-box wx:if="{{z}}" class="data-v-d0da91b0" u-i="d0da91b0-4" bind:__l="__l" bindupdateModelValue="{{y}}" u-p="{{z}}"></uni-number-box><view class="number-box-title data-v-d0da91b0">次</view></view><view wx:if="{{A}}" class="Hint data-v-d0da91b0">请填写场数</view></view><view class="Remarkscss data-v-d0da91b0"><uni-easyinput wx:if="{{C}}" class="data-v-d0da91b0" u-i="d0da91b0-5" bind:__l="__l" bindupdateModelValue="{{B}}" u-p="{{C}}"></uni-easyinput></view><view class="Publish data-v-d0da91b0"><button bindtap="{{D}}" class="Publishcss data-v-d0da91b0">发布</button></view></view></view></view><uni-popup wx:if="{{N}}" class="r data-v-d0da91b0" u-s="{{['d']}}" u-r="popup" u-i="d0da91b0-6" bind:__l="__l" u-p="{{N}}"><view class="popup-container data-v-d0da91b0"><view class="popup-title data-v-d0da91b0">点击选择我的主播</view><scroll-view wx:if="{{H}}" show-scrollbar="false" scroll-y="true" class="scroll data-v-d0da91b0"><view wx:for="{{I}}" wx:for-item="item" wx:key="f" class="card data-v-d0da91b0"><view class="card-content data-v-d0da91b0" bindtap="{{item.d}}" style="{{'background:' + item.e}}"><view class="Avatarimg data-v-d0da91b0"><image class="avatar data-v-d0da91b0" src="{{item.a}}" mode="scaleToFill"/></view><view class="NameMoney data-v-d0da91b0"><view class="TimeMoney data-v-d0da91b0"><view class="NameMoney_Name data-v-d0da91b0">{{item.b}}</view></view><view class="TimeMoney data-v-d0da91b0"><view class="TimeMoney_country data-v-d0da91b0">{{item.c}}</view></view></view></view></view></scroll-view><view wx:if="{{J}}" class="no-data data-v-d0da91b0"><view class="no-data-text data-v-d0da91b0">暂无数据</view></view><view class="popup-btn data-v-d0da91b0"><button class="invite data-v-d0da91b0" type="primary" bindtap="{{K}}">确认</button><button class="cancel data-v-d0da91b0" type="default" bindtap="{{L}}">取消</button></view></view></uni-popup>

File diff suppressed because one or more lines are too long