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
2b6dc7b2
Commit
2b6dc7b2
authored
Feb 19, 2020
by
gaodapeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改首页UI
parent
4beee349
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
8 deletions
+6
-8
index.axml
pages/index/index.axml
+2
-2
index.js
pages/index/index.js
+4
-6
No files found.
pages/index/index.axml
View file @
2b6dc7b2
...
...
@@ -6,8 +6,8 @@
<text style="position:absolute;font-size:19rpx;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:rgba(0,0,0,0.85);line-height:22rpx;left:55rpx;top:19rpx;">{{storeName}}</text>
</view>
<view style="position:absolute;font-size:22rpx;font-family:PingFangSC-Medium,PingFang SC;font-weight:500;color:rgba(51,51,51,1);line-height:22rpx;left:0rpx;top:19rpx;width:100%;text-align:center;">首页</view>
<view style="display:flex;flex-direction:row-reverse;position:absolute;right:19rpx;top:19rpx;">
<view style="font-size:19rpx;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:rgba(51,51,51,1);line-height:22rpx;">退出</view>
<view style="display:flex;flex-direction:row-reverse;position:absolute;right:19rpx;top:19rpx;
width:auto;background:#ffffff;
">
<view style="font-size:19rpx;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:rgba(51,51,51,1);line-height:22rpx;
margin-right:19rpx;
">退出</view>
<image mode="aspectFit" src="/images/icon_exit.png" style="position:relative;width:19rpx;height:19rpx;margin-right:8rpx;margin-top:1rpx;"/>
</view>
...
...
pages/index/index.js
View file @
2b6dc7b2
...
...
@@ -113,24 +113,22 @@ Page({
totalDisc
:
viewGoodsInfo
.
totalDisc
,
})
}
}
else
if
(
res
.
action
==
ACTION
)
{
}
else
if
(
res
.
action
==
ACTION_GO_SCAN
)
{
//跳转到
this
.
goPage
(
"landscan"
);
context
.
goPage
(
"landscan"
);
}
else
if
(
res
.
action
==
ACTION_GO_BALANCE
){
//跳转
this
.
goPage
(
"waitoperate"
)
context
.
goPage
(
"waitoperate"
)
}
else
if
(
res
.
action
==
ACTION_ON_PAY_SUCCESS
)
{
setData
({
isPaySuccess
:
true
})
this
.
goPage
(
"payresult"
);
context
.
goPage
(
"payresult"
);
}
else
if
(
res
.
action
==
ACTION_ON_PAY_FAILED
)
{
setData
({
isPaySuccess
:
false
})
this
.
goPage
(
"payresult"
);
context
.
goPage
(
"payresult"
);
}
else
{
//未知指令
}
...
...
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