Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
D
doublescreen-back
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pengguangpu
doublescreen-back
Commits
96221b2a
Commit
96221b2a
authored
Feb 24, 2020
by
jiangjiantao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
后屏等待登录
parent
55845311
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
47 additions
and
0 deletions
+47
-0
actioncmd.js
const/actioncmd.js
+3
-0
login_wait_left.png
images/login_wait_left.png
+0
-0
login_waiting_right.png
images/login_waiting_right.png
+0
-0
index.acss
pages/index/index.acss
+30
-0
index.axml
pages/index/index.axml
+7
-0
index.js
pages/index/index.js
+7
-0
No files found.
const/actioncmd.js
View file @
96221b2a
...
...
@@ -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"
;
images/login_wait_left.png
0 → 100755
View file @
96221b2a
289 KB
images/login_waiting_right.png
0 → 100755
View file @
96221b2a
26.4 KB
pages/index/index.acss
View file @
96221b2a
.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 {
...
...
pages/index/index.axml
View file @
96221b2a
...
...
@@ -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
pages/index/index.js
View file @
96221b2a
...
...
@@ -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
})
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment