Commit 96221b2a authored by jiangjiantao's avatar jiangjiantao

后屏等待登录

parent 55845311
......@@ -36,3 +36,6 @@ export const ACTION_DIRECT_PAYMENT = "ACTION_DIRECT_PAYMENT";
//兑换券
export const ACTION_CONVERT_COUPON = "ACTION_CONVERT_COUPON";
//前屏登录完成
export const ACTION_LOGIN_OK = "ACTION_LOGIN_OK";
.login-waiting-page{
width: 100%;
height: 100%;
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
position: absolute
}
.login-waiting-left{
width: 50%;
height: 100%;
}
.login-waiting-right{
width: 50%;
height: 100%;
background-color: white;
display: flex;
flex-direction: row;
justify-content: center;
align-items: center
}
.login-waiting-right-image{
width: 287rpx;
height: 204rpx;
}
/* home样式 */
.homePage {
......
......@@ -283,4 +283,11 @@
<!-- 键盘 -->
<land-keybord scene="{{scene}}" onKeyBordFinished="onKeyBordFinished" onKeyBordClose="onKeyBordClose">
</land-keybord>
<!-- 等待前屏登录 -->
<view class="login-waiting-page">
<image class="login-waiting-left" mode="aspectFill" src="/images/login_wait_left.png"/>
<view class="login-waiting-right">
<image class="login-waiting-right-image" mode="aspectFit" src="/images/login_waiting_right.png"/>
</view>
</view>
\ No newline at end of file
......@@ -12,6 +12,7 @@ import { ACTION_GO_HOME } from '../../const/actioncmd'
import { ACTION_GET_ACCOUNT } from '../../const/actioncmd'
import { ACTION_DIRECT_PAYMENT } from '../../const/actioncmd'
import { ACTION_CONVERT_COUPON } from '../../const/actioncmd'
import { ACTION_LOGIN_OK } from '../../const/actioncmd'
Page({
......@@ -23,6 +24,8 @@ Page({
"waitoperate": false,
"payresult": false
},
// 前屏是否完成登录
isFrontScreenLoginOK:false,
storeName: "--",
/**支付结果页相关参数 */
payFailedReason: "xxxxxxxxxxx",
......@@ -80,6 +83,7 @@ Page({
onLoad(query) {
// 页面加载
console.info(`Page onLoad with query: ${JSON.stringify(query)}`);
},
onReady() {
// 页面加载完成
......@@ -172,6 +176,9 @@ Page({
if(null != res.data.msg){
context.setData({convertCouponMsg:res.data.msg})
}
}else if(res.action == ACTION_LOGIN_OK){
//前屏登录完成
context.setData({isFrontScreenLoginOK:true})
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment