From ee1ac2688341b339acddbff4631c3de61c01d303 Mon Sep 17 00:00:00 2001
From: Ling53666 <14656070+ling53666@user.noreply.gitee.com>
Date: Fri, 16 May 2025 11:02:59 +0800
Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E4=BA=86=E5=B7=B2=E7=9F=A5?=
=?UTF-8?q?=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app.json | 3 +-
pages/mypage/mypage.js | 6 ++-
pages/mypage/mypage.wxml | 3 ++
pages/mypage/mypage.wxss | 12 ++++-
pages/tuiguangma/tuiguangma.js | 78 ++++++++++++++++++++++++++++++++
pages/tuiguangma/tuiguangma.json | 4 ++
pages/tuiguangma/tuiguangma.wxml | 14 ++++++
pages/tuiguangma/tuiguangma.wxss | 42 +++++++++++++++++
project.private.config.json | 5 +-
9 files changed, 162 insertions(+), 5 deletions(-)
create mode 100644 pages/tuiguangma/tuiguangma.js
create mode 100644 pages/tuiguangma/tuiguangma.json
create mode 100644 pages/tuiguangma/tuiguangma.wxml
create mode 100644 pages/tuiguangma/tuiguangma.wxss
diff --git a/app.json b/app.json
index c3ad2ff..32cd4e6 100644
--- a/app.json
+++ b/app.json
@@ -14,7 +14,8 @@
"pages/findxiangqing/findxiangqing",
"pages/wodetuandui/wodetuandui",
"pages/wodejiedan/wodejiedan",
- "pages/index/index"
+ "pages/index/index",
+ "pages/tuiguangma/tuiguangma"
],
"window": {
"navigationBarTextStyle": "black",
diff --git a/pages/mypage/mypage.js b/pages/mypage/mypage.js
index 27d874a..3311339 100644
--- a/pages/mypage/mypage.js
+++ b/pages/mypage/mypage.js
@@ -20,7 +20,11 @@ Page({
onReady() {
},
-
+ tiaozhuan(){
+ wx.navigateTo({
+ url: '/pages/tuiguangma/tuiguangma',
+ })
+ },
onShow() {
console.log("页面展示 onShow");
try {
diff --git a/pages/mypage/mypage.wxml b/pages/mypage/mypage.wxml
index bf1a07d..b29300f 100644
--- a/pages/mypage/mypage.wxml
+++ b/pages/mypage/mypage.wxml
@@ -25,6 +25,9 @@
src="/image/shaiixuan.png"
/>
+
+
+
当前金额:
diff --git a/pages/mypage/mypage.wxss b/pages/mypage/mypage.wxss
index 042c4a4..5d62ac3 100644
--- a/pages/mypage/mypage.wxss
+++ b/pages/mypage/mypage.wxss
@@ -13,6 +13,15 @@
.ml-7 {
margin-left: 13.46rpx;
}
+.maweizhi{
+ position: absolute;
+ left: 600rpx;
+ top: 80rpx;
+}
+.erweimasize{
+ width: 30px;
+ height: 30px;
+}
.page {
background-color: #ffffff;
height: 100%;
@@ -192,13 +201,14 @@
}
.section_8 {
margin-top: 30.77rpx;
- padding: 11.54rpx 19.23rpx 338.46rpx 46.15rpx;
+ padding: 11.54rpx 19.23rpx 58.46rpx 46.15rpx;
background-color: #ffffff;
border-radius: 19.23rpx 19.23rpx 0 0;
border-left: solid 1.92rpx #e5e5e5;
border-right: solid 1.92rpx #e5e5e5;
border-top: solid 1.92rpx #e5e5e5;
border-bottom: solid 1.92rpx #e5e5e5;
+ border-radius: 10rpx;
}
.group_9 {
padding: 26.92rpx 0 11.54rpx;
diff --git a/pages/tuiguangma/tuiguangma.js b/pages/tuiguangma/tuiguangma.js
new file mode 100644
index 0000000..12ad952
--- /dev/null
+++ b/pages/tuiguangma/tuiguangma.js
@@ -0,0 +1,78 @@
+// pages/tuiguangma/tuiguangma.js
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad(options) {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow() {
+ console.log("页面展示 onShow");
+ try {
+ const userInfo = wx.getStorageSync('usermessage');
+ console.log('用户信息:', userInfo);
+ this.setData({
+ nickName: userInfo.nickName || '',
+ phoneNumber: userInfo.phoneNumber || '',
+ invitationCode: userInfo.invitationCode || '',
+ userAvatar: userInfo.userAvatar || 'https://tse2-mm.cn.bing.net/th/id/OIP-C.jHUH4s7TQ48X_B-1iozuJgHaHa?w=207&h=207&c=7&r=0&o=5&dpr=1.5&pid=1.7'
+ });
+ } catch (e) {
+ console.error('读取缓存失败:', e);
+ }
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload() {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh() {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom() {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage() {
+
+ }
+})
\ No newline at end of file
diff --git a/pages/tuiguangma/tuiguangma.json b/pages/tuiguangma/tuiguangma.json
new file mode 100644
index 0000000..72cbff9
--- /dev/null
+++ b/pages/tuiguangma/tuiguangma.json
@@ -0,0 +1,4 @@
+{
+ "navigationBarTitleText": "我的推广码",
+ "usingComponents": {}
+}
\ No newline at end of file
diff --git a/pages/tuiguangma/tuiguangma.wxml b/pages/tuiguangma/tuiguangma.wxml
new file mode 100644
index 0000000..1341fdc
--- /dev/null
+++ b/pages/tuiguangma/tuiguangma.wxml
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+ {{nickName}}
+ 扫一扫下面的二维码,和我一起赚钱
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/tuiguangma/tuiguangma.wxss b/pages/tuiguangma/tuiguangma.wxss
new file mode 100644
index 0000000..ff3f782
--- /dev/null
+++ b/pages/tuiguangma/tuiguangma.wxss
@@ -0,0 +1,42 @@
+.box{
+ width: 100%;
+ height: 100%;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ flex-direction: column;
+ padding-bottom: 200rpx;
+}
+.shangmian{
+ width: 260px;
+ height: 80px;
+ display: flex;
+}
+.imagesize{
+ width: 260px;
+ height: 260px;
+}
+.minbox{
+ width: 100%;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ flex-direction: column;
+}
+.touxiangsize{
+ width: 50px;
+ height: 50px;
+ border-radius: 10rpx;
+}
+.zuobox{
+ width: 25%;
+ height: 100%;
+ display: flex;
+ align-items: center;
+}
+.youbox{
+ width: 75%;
+ height: 100%;
+ display: flex;
+ flex-direction: column;
+}
diff --git a/project.private.config.json b/project.private.config.json
index 1f002a9..6f8497c 100644
--- a/project.private.config.json
+++ b/project.private.config.json
@@ -1,6 +1,6 @@
{
"description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
- "projectname": "qingcheng",
+ "projectname": "%E9%9D%92%E6%A9%99",
"setting": {
"compileHotReLoad": true,
"urlCheck": false,
@@ -18,5 +18,6 @@
}
]
}
- }
+ },
+ "libVersion": "trial"
}
\ No newline at end of file