From e840e6c00bdb3fd8ce1b20298dd5abc62a543d23 Mon Sep 17 00:00:00 2001
From: maclien <421129572@qq.com>
Date: Mon, 23 Jun 2025 23:40:14 +0800
Subject: [PATCH] =?UTF-8?q?feat(score):=20=E6=B7=BB=E5=8A=A0=E7=A7=AF?=
=?UTF-8?q?=E5=88=86=E9=A1=B5=E9=9D=A2=E5=8A=9F=E8=83=BD=E5=8F=8A=E6=A0=B7?=
=?UTF-8?q?=E5=BC=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 新增积分页面布局和交互逻辑
- 添加自定义图标样式文件
- 实现月份选择器和标签切换功能
- 增加文本斜体样式
---
commons/css/base/textRender.wxss | 3 +-
commons/css/common.wxss | 1 +
commons/css/custom/customIcon.wxss | 21 ++++++++++++
pages/customer/score/index.js | 30 ++++++++++++++++-
pages/customer/score/index.wxml | 52 +++++++++++++++++++++++++++++-
pages/customer/score/index.wxss | 5 ++-
6 files changed, 108 insertions(+), 4 deletions(-)
create mode 100644 commons/css/custom/customIcon.wxss
diff --git a/commons/css/base/textRender.wxss b/commons/css/base/textRender.wxss
index b0b8147..7491b37 100644
--- a/commons/css/base/textRender.wxss
+++ b/commons/css/base/textRender.wxss
@@ -11,4 +11,5 @@
.text-shadow{text-shadow:1rpx 3rpx 3rpx rgba(0,0,0,.8);}
.text-spacing-10{letter-spacing:10rpx}
.space-nowrap{white-space:nowrap;}
-.space-normal{white-space:normal;}
\ No newline at end of file
+.space-normal{white-space:normal;}
+.text-italic{font-style: italic;}
\ No newline at end of file
diff --git a/commons/css/common.wxss b/commons/css/common.wxss
index ced120a..d4d7d1d 100644
--- a/commons/css/common.wxss
+++ b/commons/css/common.wxss
@@ -11,3 +11,4 @@
@import "base/padding.wxss";
@import "base/radius.wxss";
@import "base/animate.wxss";
+@import "custom/customIcon.wxss";
diff --git a/commons/css/custom/customIcon.wxss b/commons/css/custom/customIcon.wxss
new file mode 100644
index 0000000..f2b556c
--- /dev/null
+++ b/commons/css/custom/customIcon.wxss
@@ -0,0 +1,21 @@
+
+.custom-icon{
+ background-size: 100% 100%;
+ background-repeat: no-repeat;
+ background-position: center;
+}
+.custom-icon-filtersearch{
+ width: 32rpx;
+ height: 32rpx;
+ background-image: url('https://img.liche.cn/lichebao/icon-filtersearch.png');
+}
+.custom-icon-logout{
+ width: 32rpx;
+ height: 32rpx;
+ background-image: url('https://img.liche.cn/lichebao/icon-logout.png');
+}
+.custom-icon-scancode{
+ width: 32rpx;
+ height: 32rpx;
+ background-image: url('https://img.liche.cn/lichebao/icon-scancode.png');
+}
\ No newline at end of file
diff --git a/pages/customer/score/index.js b/pages/customer/score/index.js
index b93b953..07c020b 100644
--- a/pages/customer/score/index.js
+++ b/pages/customer/score/index.js
@@ -1,11 +1,33 @@
// pages/customer/score/index.js
+import _ from '../../../commons/js/commons'
+const app = getApp()
Page({
/**
* 页面的初始数据
*/
data: {
-
+ imgUrl: _.config.imgUrl,
+ cur_month: '',
+ cur_tab_index: 0,
+ tab_list: [
+ {
+ name: '全部',
+ id: 1
+ },
+ {
+ name: '充值',
+ id: 2
+ },
+ {
+ name: '消耗',
+ id: 3
+ }
+ ],
+ list: [],
+ loading: true,
+ end: false,
+ noData: false
},
/**
@@ -62,5 +84,11 @@ Page({
*/
onShareAppMessage() {
+ },
+
+ bindDateChange(e){
+ this.setData({
+ cur_month: e.detail.value
+ })
}
})
\ No newline at end of file
diff --git a/pages/customer/score/index.wxml b/pages/customer/score/index.wxml
index 315c000..63fafcd 100644
--- a/pages/customer/score/index.wxml
+++ b/pages/customer/score/index.wxml
@@ -1,2 +1,52 @@
-pages/customer/score/index.wxml
\ No newline at end of file
+
+
+ 8082
+ 余额
+
+
+
+
+
+ 8593
+ 充值
+
+
+ 8593
+ 消耗
+
+
+
+ {{cur_month||'请选择月份'}}
+
+
+
+
+
+
+
+ {{item.name}}
+
+
+
+
+
+ {{'+40'}}
+ {{'L:138****1234'}}
+ {{'2025.02.25'}}
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/customer/score/index.wxss b/pages/customer/score/index.wxss
index ce455b0..18d588b 100644
--- a/pages/customer/score/index.wxss
+++ b/pages/customer/score/index.wxss
@@ -1 +1,4 @@
-/* pages/customer/score/index.wxss */
\ No newline at end of file
+/* pages/customer/score/index.wxss */
+.bg-picker{
+
+}
\ No newline at end of file