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
242d45e7
Commit
242d45e7
authored
Feb 24, 2020
by
pengguangpu
Browse files
Options
Browse Files
Download
Plain Diff
合并远程代码;
parents
739c603c
f606d418
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
49 additions
and
2 deletions
+49
-2
app.json
app.json
+1
-1
actioncmd.js
const/actioncmd.js
+4
-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
-1
No files found.
app.json
View file @
242d45e7
{
{
"pages"
:
[
"pages"
:
[
"pages/printlastorder/printlastorder"
,
"pages/index/index"
,
"pages/index/index"
,
"pages/printlastorder/printlastorder"
,
"pages/poster/poster"
,
"pages/poster/poster"
,
"pages/home/home"
,
"pages/home/home"
,
"pages/poster/poster"
,
"pages/poster/poster"
,
...
...
const/actioncmd.js
View file @
242d45e7
...
@@ -36,6 +36,10 @@ export const ACTION_DIRECT_PAYMENT = "ACTION_DIRECT_PAYMENT";
...
@@ -36,6 +36,10 @@ export const ACTION_DIRECT_PAYMENT = "ACTION_DIRECT_PAYMENT";
//兑换券
//兑换券
export
const
ACTION_CONVERT_COUPON
=
"ACTION_CONVERT_COUPON"
;
export
const
ACTION_CONVERT_COUPON
=
"ACTION_CONVERT_COUPON"
;
//前屏登录完成
export
const
ACTION_LOGIN_OK
=
"ACTION_LOGIN_OK"
;
//退款操作
//退款操作
export
const
ACTION_REFUND
=
"ACTION_REFUND"
;
export
const
ACTION_REFUND
=
"ACTION_REFUND"
;
...
...
images/login_wait_left.png
0 → 100755
View file @
242d45e7
289 KB
images/login_waiting_right.png
0 → 100755
View file @
242d45e7
26.4 KB
pages/index/index.acss
View file @
242d45e7
.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样式 */
/* home样式 */
.homePage {
.homePage {
...
...
pages/index/index.axml
View file @
242d45e7
...
@@ -283,6 +283,13 @@
...
@@ -283,6 +283,13 @@
<!-- 键盘 -->
<!-- 键盘 -->
<land-keybord scene="{{scene}}" onKeyBordFinished="onKeyBordFinished" onKeyBordClose="onKeyBordClose">
<land-keybord scene="{{scene}}" onKeyBordFinished="onKeyBordFinished" onKeyBordClose="onKeyBordClose">
</land-keybord>
</land-keybord>
<!-- 等待前屏登录 -->
<view class="login-waiting-page" a:if="{{!isFrontScreenLoginOK}}">
<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 hidden="{{!pageShow['operateResult']}}">
<view hidden="{{!pageShow['operateResult']}}">
<view class="operateTopView"></view>
<view class="operateTopView"></view>
...
...
pages/index/index.js
View file @
242d45e7
...
@@ -12,6 +12,7 @@ import { ACTION_GO_HOME } from '../../const/actioncmd'
...
@@ -12,6 +12,7 @@ import { ACTION_GO_HOME } from '../../const/actioncmd'
import
{
ACTION_GET_ACCOUNT
}
from
'../../const/actioncmd'
import
{
ACTION_GET_ACCOUNT
}
from
'../../const/actioncmd'
import
{
ACTION_DIRECT_PAYMENT
}
from
'../../const/actioncmd'
import
{
ACTION_DIRECT_PAYMENT
}
from
'../../const/actioncmd'
import
{
ACTION_CONVERT_COUPON
}
from
'../../const/actioncmd'
import
{
ACTION_CONVERT_COUPON
}
from
'../../const/actioncmd'
import
{
ACTION_LOGIN_OK
}
from
'../../const/actioncmd'
import
{
ACTION_REFUND
}
from
'../../const/actioncmd'
import
{
ACTION_REFUND
}
from
'../../const/actioncmd'
import
{
ACTION_REFUND_SUCCESS
}
from
'../../const/actioncmd'
import
{
ACTION_REFUND_SUCCESS
}
from
'../../const/actioncmd'
import
{
ACTION_REFUND_FAILED
}
from
'../../const/actioncmd'
import
{
ACTION_REFUND_FAILED
}
from
'../../const/actioncmd'
...
@@ -27,6 +28,8 @@ Page({
...
@@ -27,6 +28,8 @@ Page({
"payresult"
:
false
,
"payresult"
:
false
,
"operateResult"
:
false
"operateResult"
:
false
},
},
// 前屏是否完成登录
isFrontScreenLoginOK
:
false
,
flowType
:
""
,
//流程类型:用于区分易混淆的流程,以及共同界面使用时用该标识位作为区分
flowType
:
""
,
//流程类型:用于区分易混淆的流程,以及共同界面使用时用该标识位作为区分
storeName
:
"--"
,
storeName
:
"--"
,
/**支付结果页相关参数 */
/**支付结果页相关参数 */
...
@@ -91,6 +94,7 @@ Page({
...
@@ -91,6 +94,7 @@ Page({
onLoad
(
query
)
{
onLoad
(
query
)
{
// 页面加载
// 页面加载
console
.
info
(
`Page onLoad with query:
${
JSON
.
stringify
(
query
)}
`
);
console
.
info
(
`Page onLoad with query:
${
JSON
.
stringify
(
query
)}
`
);
},
},
onReady
()
{
onReady
()
{
// 页面加载完成
// 页面加载完成
...
@@ -186,6 +190,9 @@ Page({
...
@@ -186,6 +190,9 @@ Page({
if
(
null
!=
res
.
data
.
msg
){
if
(
null
!=
res
.
data
.
msg
){
context
.
setData
({
convertCouponMsg
:
res
.
data
.
msg
})
context
.
setData
({
convertCouponMsg
:
res
.
data
.
msg
})
}
}
}
else
if
(
res
.
action
==
ACTION_LOGIN_OK
){
//前屏登录完成
context
.
setData
({
isFrontScreenLoginOK
:
true
})
}
else
if
(
res
.
action
==
ACTION_REFUND_SUCCESS
){
}
else
if
(
res
.
action
==
ACTION_REFUND_SUCCESS
){
//跳转到成功页面
//跳转到成功页面
context
.
goPage
(
'operateResult'
);
context
.
goPage
(
'operateResult'
);
...
@@ -194,7 +201,6 @@ Page({
...
@@ -194,7 +201,6 @@ Page({
context
.
setData
({
context
.
setData
({
isPaySuccess
:
false
,
isPaySuccess
:
false
,
});
});
context
.
goPage
(
'operateResult'
);
context
.
goPage
(
'operateResult'
);
}
}
...
...
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