完成了用户邀请码的生成,通过扫描可实现注册
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
// pages/personCenter/mine/mine.js
|
||||
const { baseUrl } = require("../../../request");
|
||||
const { globalImgUrl } = require("../../../request")
|
||||
|
||||
Page({
|
||||
|
||||
@ -96,11 +97,13 @@ Page({
|
||||
},
|
||||
success: res => {
|
||||
if (res.data.code === 1) {
|
||||
let result = res.data.data
|
||||
this.setData({
|
||||
currentBalance: res.data.data.currentBalance, // 当前余额
|
||||
withdrawalingBalance: res.data.data.withdrawalAmount, // 提现中的余额
|
||||
withdrawaledAmount: res.data.data.withdrawnAmount, // 已提现的余额
|
||||
totalIncome: res.data.data.totalIncome // 累计收入
|
||||
currentBalance: result.currentBalance, // 当前余额
|
||||
withdrawalingBalance: result.withdrawalAmount, // 提现中的余额
|
||||
withdrawaledAmount: result.withdrawnAmount, // 已提现的余额
|
||||
totalIncome: result.totalIncome, // 累计收入
|
||||
qrcode: globalImgUrl + result.inviteQrCode
|
||||
})
|
||||
} else {
|
||||
wx.showToast({
|
||||
|
Reference in New Issue
Block a user