完成了用户邀请码的生成,通过扫描可实现注册
This commit is contained in:
parent
313bb8d728
commit
484d75dda5
|
@ -5,6 +5,15 @@ import { validate } from "../../../utils/validate";
|
|||
// pages/loginModule/register/register.js
|
||||
Page({
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad(options) {
|
||||
const scene = decodeURIComponent(options.scene)
|
||||
let [key, value] = scene.split('=');
|
||||
this.setData({inviteCode: value})
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
|
@ -138,12 +147,6 @@ Page({
|
|||
url: '/pages/loginModule/pwdLogin/pwdLogin',
|
||||
})
|
||||
},
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad(options) {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面初次渲染完成
|
||||
|
|
|
@ -69,6 +69,7 @@
|
|||
width: 300rpx;
|
||||
height: 300rpx;
|
||||
margin: 40rpx auto 0;
|
||||
border-radius: 50%;
|
||||
border-radius: 16rpx;
|
||||
box-shadow: 0 4rpx 24rpx rgba(255, 111, 0, 0.08);
|
||||
background: #fff;
|
||||
|
|
BIN
pages/personCenter/component/InvitationCodePop/images/cha.png
Normal file
BIN
pages/personCenter/component/InvitationCodePop/images/cha.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
|
@ -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({
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
export const local='http://localhost:3456';
|
||||
export const ip = 'http://1.94.237.210:3457';
|
||||
export const baseUrl = local;
|
||||
|
||||
|
||||
export const globalImgUrl = baseUrl + '/file/download/'
|
Loading…
Reference in New Issue
Block a user