Browse Source

登录

master
kola-web 2 weeks ago
parent
commit
dae3217087
  1. 12
      src/pages/login/index.ts

12
src/pages/login/index.ts

@ -9,9 +9,9 @@ Page({
codeText: '发送验证码', codeText: '发送验证码',
check1: false, check1: true,
check2: false, check2: true,
check3: false, check3: true,
}, },
onLoad() {}, onLoad() {},
getCode() { getCode() {
@ -34,7 +34,7 @@ Page({
} }
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=wtx/login/send-verify-code', url: '?r=xd/login/send-verify-code',
data: { data: {
mobile, mobile,
}, },
@ -76,7 +76,7 @@ Page({
const { mobile, code } = this.data const { mobile, code } = this.data
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=wtx/login/reg-login', url: '?r=xd/login/reg-login',
data: { data: {
mobile, mobile,
code, code,
@ -90,7 +90,7 @@ Page({
if (iv && encryptedData) { if (iv && encryptedData) {
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=wtx/login/wx-reg-login', url: '?r=xd/login/wx-reg-login',
data: { data: {
iv: encodeURIComponent(iv), iv: encodeURIComponent(iv),
encryptedData: encodeURIComponent(encryptedData), encryptedData: encodeURIComponent(encryptedData),

Loading…
Cancel
Save