【修改】登录注册的小程序名称
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
import UserApi from '../../assets/js/http/userApi'
|
import UserApi from '../../assets/js/http/userApi'
|
||||||
import { encrypt } from '../../assets/js/jsencrypt/rsa'
|
import { encrypt } from '../../assets/js/jsencrypt/rsa'
|
||||||
import { wxBind } from '../../assets/js/common'
|
import { wxBind } from '../../assets/js/common'
|
||||||
|
import {appletName} from "../../assets/js/project.config"
|
||||||
var countdown = 60; // 倒计时秒数
|
var countdown = 60; // 倒计时秒数
|
||||||
Page({
|
Page({
|
||||||
data: {
|
data: {
|
||||||
@@ -11,6 +12,7 @@ Page({
|
|||||||
openId: '',
|
openId: '',
|
||||||
count: 60,
|
count: 60,
|
||||||
userInfoTemp: '',
|
userInfoTemp: '',
|
||||||
|
appletName:appletName,
|
||||||
rsaPublicKey: '',
|
rsaPublicKey: '',
|
||||||
showGetCaptcha: true,
|
showGetCaptcha: true,
|
||||||
authorize: false // 默认没有微信授权
|
authorize: false // 默认没有微信授权
|
||||||
@@ -176,6 +178,7 @@ Page({
|
|||||||
openId: encrypt(that.data.rsaPublicKey,res.result.openid),
|
openId: encrypt(that.data.rsaPublicKey,res.result.openid),
|
||||||
rsaPublicKey: that.data.rsaPublicKey
|
rsaPublicKey: that.data.rsaPublicKey
|
||||||
}
|
}
|
||||||
|
console.log(params.openId,'params.openiD');
|
||||||
UserApi.wxLogin(params).then(res=>{
|
UserApi.wxLogin(params).then(res=>{
|
||||||
if(res.success) {// 已经用手机号登录过,此时用微信快捷登录时,把微信的个人信息存进缓存(微信信息在缓存的userInfoTemp)
|
if(res.success) {// 已经用手机号登录过,此时用微信快捷登录时,把微信的个人信息存进缓存(微信信息在缓存的userInfoTemp)
|
||||||
wx.setStorageSync('userInfo', res.result.userInfo)
|
wx.setStorageSync('userInfo', res.result.userInfo)
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
<image class="bg-image" mode="scaleToFill" src="../../assets/images/login-bg.png"></image>
|
<image class="bg-image" mode="scaleToFill" src="../../assets/images/login-bg.png"></image>
|
||||||
<view class="bg-text">
|
<view class="bg-text">
|
||||||
<text>您好,欢迎使用</text>
|
<text>您好,欢迎使用</text>
|
||||||
<text>标准所协同工作平台</text>
|
<text>{{appletName}}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<form bindsubmit="formSubmit" class="form-box">
|
<form bindsubmit="formSubmit" class="form-box">
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
// pages/register/register.js
|
// pages/register/register.js
|
||||||
import UserApi from '../../assets/js/http/userApi'
|
import UserApi from '../../assets/js/http/userApi'
|
||||||
|
import {appletName} from "../../assets/js/project.config"
|
||||||
|
|
||||||
import {
|
import {
|
||||||
phoneReg,
|
phoneReg,
|
||||||
@@ -22,6 +23,7 @@ Page({
|
|||||||
statusBarHeight: wx.getSystemInfoSync()['statusBarHeight'],
|
statusBarHeight: wx.getSystemInfoSync()['statusBarHeight'],
|
||||||
showGetCaptcha: true, // 默认显示 获取验证阿门
|
showGetCaptcha: true, // 默认显示 获取验证阿门
|
||||||
phone: '',
|
phone: '',
|
||||||
|
appletName:appletName,
|
||||||
password: '',
|
password: '',
|
||||||
confirmPassword: '',
|
confirmPassword: '',
|
||||||
captcha: '',
|
captcha: '',
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
<image class="bg-image" mode="scaleToFill" src="../../assets/images/login-bg.png"></image>
|
<image class="bg-image" mode="scaleToFill" src="../../assets/images/login-bg.png"></image>
|
||||||
<view class="bg-text">
|
<view class="bg-text">
|
||||||
<text>您好,欢迎注册</text>
|
<text>您好,欢迎注册</text>
|
||||||
<text>标准所协同工作平台</text>
|
<text>{{appletName}}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<form bindsubmit="formSubmit" class="form-box">
|
<form bindsubmit="formSubmit" class="form-box">
|
||||||
|
|||||||
Reference in New Issue
Block a user