|
@@ -1,6 +1,7 @@
|
|
<template>
|
|
<template>
|
|
<view class="ezy-login-page">
|
|
<view class="ezy-login-page">
|
|
- <view class="ezy-login-wrap" >
|
|
|
|
|
|
+
|
|
|
|
+<!-- <view class="ezy-login-wrap" >
|
|
<view class="login-body-box">
|
|
<view class="login-body-box">
|
|
<view class="login-title-img"></view>
|
|
<view class="login-title-img"></view>
|
|
<view class="yzm-show">验证码已发送至:{{data.phoneNumber}}</view>
|
|
<view class="yzm-show">验证码已发送至:{{data.phoneNumber}}</view>
|
|
@@ -15,7 +16,7 @@
|
|
<text class="login-text">无法收到验证码</text>
|
|
<text class="login-text">无法收到验证码</text>
|
|
<text class="login-text">客服电话:400-052-2130</text>
|
|
<text class="login-text">客服电话:400-052-2130</text>
|
|
</view>
|
|
</view>
|
|
- </view>
|
|
|
|
|
|
+ </view> -->
|
|
|
|
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
@@ -36,22 +37,37 @@
|
|
timeLeft: 60, // 初始倒计时时间(秒)
|
|
timeLeft: 60, // 初始倒计时时间(秒)
|
|
intervalId: null, // 定时器ID
|
|
intervalId: null, // 定时器ID
|
|
isDisabled: false, // 按钮是否禁用
|
|
isDisabled: false, // 按钮是否禁用
|
|
- buttonText: '重新发送' // 按钮文本
|
|
|
|
|
|
+ buttonText: '重新发送' ,// 按钮文本
|
|
|
|
+ sliderObj:{},
|
|
})
|
|
})
|
|
|
|
|
|
onLoad((options) => {
|
|
onLoad((options) => {
|
|
- startCountdown();
|
|
|
|
|
|
+ console.log(JSON.parse(options.data),'options');
|
|
|
|
+ // startCountdown();
|
|
|
|
+ // init(options);
|
|
// getYzmBtn();
|
|
// getYzmBtn();
|
|
})
|
|
})
|
|
|
|
|
|
/********* 验证码 *********/
|
|
/********* 验证码 *********/
|
|
|
|
+ const init = (options) => {
|
|
|
|
+ let encodedJsonString = options;
|
|
|
|
+ console.log(options.slider,'options.slider');
|
|
|
|
+ // 解码URL参数
|
|
|
|
+ data.sliderObj = JSON.parse(decodeURIComponent(encodedJsonString.slider));
|
|
|
|
+ console.log(data.sliderObj,'data.sliderObj');
|
|
|
|
+ // data.phoneNumber =
|
|
|
|
+ }
|
|
|
|
+
|
|
const getYzmBtn = () => {
|
|
const getYzmBtn = () => {
|
|
return request({
|
|
return request({
|
|
url: "/common/app/send/code",
|
|
url: "/common/app/send/code",
|
|
method: "POST",
|
|
method: "POST",
|
|
data: {
|
|
data: {
|
|
phone: 18842603074,
|
|
phone: 18842603074,
|
|
- sign: ''
|
|
|
|
|
|
+ appkey: 'FFFF0N00000000007EC0',
|
|
|
|
+ sign: '',
|
|
|
|
+ sessionid: '',
|
|
|
|
+
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}
|
|
}
|