解决了已知问题
This commit is contained in:
parent
74e97e9052
commit
ee1ac26883
3
app.json
3
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",
|
||||
|
|
|
@ -20,7 +20,11 @@ Page({
|
|||
onReady() {
|
||||
|
||||
},
|
||||
|
||||
tiaozhuan(){
|
||||
wx.navigateTo({
|
||||
url: '/pages/tuiguangma/tuiguangma',
|
||||
})
|
||||
},
|
||||
onShow() {
|
||||
console.log("页面展示 onShow");
|
||||
try {
|
||||
|
|
|
@ -25,6 +25,9 @@
|
|||
src="/image/shaiixuan.png"
|
||||
/>
|
||||
</view>
|
||||
<view class="maweizhi" bind:tap="tiaozhuan">
|
||||
<image class="erweimasize" src="/image/1a3b2db58d7a4912e97e11e769fc1dc5.png" mode="aspectFill"/>
|
||||
</view>
|
||||
<view class="flex-row justify-between items-center self-stretch group_3">
|
||||
<view class="group_4">
|
||||
<text class="font_2 text_4">当前金额:</text>
|
||||
|
|
|
@ -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;
|
||||
|
|
78
pages/tuiguangma/tuiguangma.js
Normal file
78
pages/tuiguangma/tuiguangma.js
Normal file
|
@ -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() {
|
||||
|
||||
}
|
||||
})
|
4
pages/tuiguangma/tuiguangma.json
Normal file
4
pages/tuiguangma/tuiguangma.json
Normal file
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"navigationBarTitleText": "我的推广码",
|
||||
"usingComponents": {}
|
||||
}
|
14
pages/tuiguangma/tuiguangma.wxml
Normal file
14
pages/tuiguangma/tuiguangma.wxml
Normal file
|
@ -0,0 +1,14 @@
|
|||
<view class="box">
|
||||
<view class="shangmian">
|
||||
<view class="zuobox">
|
||||
<image class="touxiangsize" src="{{userAvatar}}" mode="aspectFill"/>
|
||||
</view>
|
||||
<view class="youbox">
|
||||
<text style="font-size:20px;margin-top:20rpx;">{{nickName}}</text>
|
||||
<text style="font-size: 12px;margin-top: 10rpx;color: rgb(175, 170, 170);" >扫一扫下面的二维码,和我一起赚钱</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="minbox">
|
||||
<image class="imagesize" src="/image/1a3b2db58d7a4912e97e11e769fc1dc5.png" mode=""/>
|
||||
</view>
|
||||
</view>
|
42
pages/tuiguangma/tuiguangma.wxss
Normal file
42
pages/tuiguangma/tuiguangma.wxss
Normal file
|
@ -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;
|
||||
}
|
|
@ -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"
|
||||
}
|
Loading…
Reference in New Issue
Block a user