第一次上传

This commit is contained in:
Ls
2026-03-09 16:39:03 +08:00
commit 3d9efaf15c
924 changed files with 326227 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="12" cy="12" r="12" fill="white" fill-opacity="0.2"/>
<path d="M14 7L9 12L14 17" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
</svg>

After

Width:  |  Height:  |  Size: 280 B

View File

@@ -0,0 +1,239 @@
<template>
<view style="padding: 20rpx;">
<!-- 当前积分区域 -->
<view class="current-points-section">
<text class="points-label">当前积分</text>
<text class="points-value">{{accInfo?.integral}}</text>
</view>
<!-- 积分获取规则 -->
<view class="rules-section">
<text class="section-title">积分获取规则</text>
<view class="rule-item">
<view class="flex-center" style=" border-radius: 50%; padding: 20rpx; background-color: #F9FAFB; ">
<image :src="Service.GetIconImg('/static/userFunc/intergration/shop.png')" class="service-icon">
</image>
</view>
<view class="" style="margin-left: 20rpx;">
<view class="rule-title">消费获得积分</view>
<view class="rule-desc">每消费1元得1分</view>
</view>
</view>
<view class="rule-item">
<view class="flex-center" style=" border-radius: 50%; padding: 20rpx; background-color: #F9FAFB; ">
<image :src="Service.GetIconImg('/static/userFunc/intergration/share.png')" class="service-icon">
</image>
</view>
<view class="" style="margin-left: 20rpx;">
<view class="rule-title">分享商品</view>
<view class="rule-desc">每次分享得5分</view>
</view>
</view>
</view>
<!-- 积分明细 -->
<view class="points-detail-section">
<text class="section-title">积分明细</text>
<view class="points-list">
<view class="points-item" v-for="(item, index) in pointsList" :key="index">
<text :class="['points-number', item.code=='收入' ? 'positive' : 'negative']">
{{ item.code=='收入' ? '+' : '-' }}{{ item.amount }}
</text>
<view class="" style="margin-left: 20rpx;">
<view class="points-type">{{ item.name }}</view>
<view class="points-date">{{ Service.formatDate(item.addTime,1) }}</view>
</view>
</view>
</view>
</view>
<up-loadmore :status="status" />
</view>
</template>
<script setup lang="ts">
import { ref } from 'vue';
import { Service } from "@/Service/Service"
import { vpUserService } from '@/Service/vp/vpUserService'
import { onLoad, onReachBottom } from '@dcloudio/uni-app';
// 积分明细数据类型
interface PointsItem {
amount:number
code:string
name:string
addTime:string
}
interface accInfo{
account:number
integral:number
userId:string
}
let accInfo=ref<accInfo>()
let status=ref('loadmore')
let page=ref(1)
// 积分明细数据
const pointsList = ref<PointsItem[]>([
]);
onLoad(() => {
getUseraccInfo()
})
onReachBottom(()=>{
getList()
})
const getUseraccInfo = () => {
status.value = 'loadmore'
page.value = 1
pointsList.value=[]
getList()
}
const getList=()=>{
if (status.value !== 'loadmore') {
return
}
status.value = 'loading'
vpUserService.GetUserAccInfo(page.value).then(res => {
accInfo.value = res.data.accInfo
pointsList.value=[...pointsList.value,...res.data.logList]
status.value = res.data.logList.length == 10 ? 'loadmore' : 'nomore'
page.value++
})
}
</script>
<style lang="scss">
page {
background-color: #f6f6f6;
}
.service-icon {
width: 40rpx;
height: 40rpx;
}
/* 当前积分区域 */
.current-points-section {
background-color: #ffffff;
padding: 60rpx 0;
text-align: center;
margin-bottom: 30rpx;
border-radius: 20rpx;
}
.points-label {
font-size: 32rpx;
color: #666666;
display: block;
margin-bottom: 20rpx;
}
.points-value {
font-size: 64rpx;
color: #FF6600;
font-weight: bold;
}
/* 积分获取规则 */
.rules-section {
background-color: #ffffff;
padding: 30rpx;
margin-bottom: 30rpx;
border-radius: 20rpx;
}
.section-title {
font-size: 36rpx;
color: #333333;
font-weight: bold;
display: block;
margin-bottom: 30rpx;
}
.rule-item {
display: flex;
align-items: center;
margin-bottom: 36rpx;
}
.rule-item:last-child {
margin-bottom: 0;
}
.rule-icon {
margin-right: 24rpx;
}
.rule-title {
font-size: 32rpx;
color: #333333;
margin-right: 24rpx;
}
.rule-desc {
font-size: 28rpx;
color: #999999;
}
/* 积分明细 */
.points-detail-section {
background-color: #ffffff;
padding: 30rpx;
border-radius: 20rpx;
}
.points-list {
gap: 36rpx;
}
.points-item {
display: flex;
align-items: center;
margin: 20rpx 0;
}
.points-item:last-child {
border-bottom: none;
padding-bottom: 0;
}
.points-type {
font-size: 32rpx;
color: #333333;
flex: 1;
}
.points-number {
font-size: 32rpx;
font-weight: bold;
margin-right: 24rpx;
min-width: 80rpx;
text-align: right;
}
.points-number.positive {
color: #4CD964;
}
.points-number.negative {
color: #FF4D4F;
}
.points-date {
font-size: 28rpx;
color: #999999;
}
</style>

View File

@@ -0,0 +1,57 @@
<template>
<view style="padding: 20rpx;">
<view class="" @click="Service.GoPage('/pages/article/articleCom')"
style=" padding: 20rpx; margin-top: 20rpx; border-radius: 20rpx; box-shadow: 0 0 10rpx 4rpx #e2e2e2; ">
<view class="" style="display: flex; align-items: center; ">
<view class="tag"
style=" color: #fff; border-radius: 12rpx; background-color: #FF6B35; padding: 4rpx 20rpx; ">
<img :src="Service.GetIconImg('/static/index/community/top.png')"
style="width: 30rpx; height: 30rpx; " alt="" />
<text style="margin-left: 10rpx; font-size: 24rpx;">置顶</text>
</view>
<text style="font-size: 32rpx; font-weight: 600;">【重要】社区发帖规范更新通知</text>
</view>
<view class=""
style=" margin: 16rpx 0; color: #666666; font-size: 26rpx; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; ">
为营造健康社区环境,即日起发帖需实名认证。请各位用户知悉并配合执行新的发帖规范。
</view>
<view class="" style=" font-size: 22rpx; color: #999999; display: flex; align-items: center;">
<text>2小时前</text>
<text style="margin: 0 15rpx;">·</text>
<view class="" style="display: flex;align-items: center;">
<img :src="Service.GetIconImg('/static/index/community/see.png')"
style="width: 30rpx; height: 30rpx; " alt="" />
<text style="margin-left: 10rpx;">1200人阅读</text>
</view>
</view>
</view>
<up-loadmore :status="status" />
</view>
</template>
<script setup lang="ts">
import { onShow, onLoad } from "@dcloudio/uni-app";
import { Service } from "@/Service/Service"
import { ref } from "vue";
let status = ref('nomore')
onLoad(() => {
});
onShow(() => {
});
</script>
<style lang="scss">
.tag {
display: flex;
align-items: center;
justify-content: center;
width: fit-content;
font-size: 24rpx;
}
</style>