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