完成小程序前端部分
This commit is contained in:
@ -16,7 +16,22 @@ Page({
|
||||
currentBalance: "", // 当前余额
|
||||
withdrawalAmount: "", // 提现中的余额
|
||||
withdrawnAmount: "", // 已提现的余额
|
||||
totalIncome:"" // 累计收入
|
||||
totalIncome:"", // 累计收入
|
||||
showPopup: false, // 控制弹窗显示与否
|
||||
qrcode: "https://img.picui.cn/free/2025/05/29/6837c53582068.gif", // 设置二维码图片的路径
|
||||
},
|
||||
// 点击二维码时,显示弹窗
|
||||
showPromoPopup() {
|
||||
this.setData({
|
||||
showPopup: true
|
||||
});
|
||||
},
|
||||
|
||||
// 关闭弹窗
|
||||
closePopup() {
|
||||
this.setData({
|
||||
showPopup: false
|
||||
});
|
||||
},
|
||||
myteam(){
|
||||
wx.navigateTo({
|
||||
|
@ -1,3 +1,5 @@
|
||||
{
|
||||
"usingComponents": {}
|
||||
}
|
||||
"usingComponents": {
|
||||
"InvitationCodePop": "/pages/personCenter/component/InvitationCodePop/InvitationCodePop"
|
||||
}
|
||||
}
|
||||
|
@ -25,6 +25,7 @@
|
||||
class="image_2"
|
||||
src="./images/erweima.png"
|
||||
mode="aspectFill"
|
||||
bindtap="showPromoPopup"
|
||||
/>
|
||||
<text class="font_3 text_4 mt-6">二维码邀请</text>
|
||||
</view>
|
||||
@ -164,4 +165,7 @@
|
||||
/>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 调用弹窗组件 -->
|
||||
<InvitationCodePop show="{{showPopup}}" bind:close="closePopup" qrcode="{{qrcode}}"/>
|
Reference in New Issue
Block a user