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