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
4beee349
Commit
4beee349
authored
Feb 19, 2020
by
gaodapeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了UI,调整了事件
parent
54036739
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
9 deletions
+16
-9
index.acss
pages/index/index.acss
+9
-1
index.axml
pages/index/index.axml
+3
-3
index.js
pages/index/index.js
+4
-5
No files found.
pages/index/index.acss
View file @
4beee349
...
...
@@ -15,11 +15,19 @@
flex-direction: column;
width: 100%;
height: 100%;
align-items: center;
background: #F3F7F9;
}
.homeTopView{
position: relative;
width: 768rpx;
height: 60rpx;
background: #ffffff;
box-shadow:0rpx 2rpx 7rpx 0rpx rgba(153,153,153,0.16);
}
.store{
display: flex;
flex-direction: row;
...
...
pages/index/index.axml
View file @
4beee349
<view>
<view class="homePage" hidden="{{!pageShow['home']}}">
<view class="
t
opView">
<view class="
homeT
opView">
<view class="store">
<image mode="aspectFit" style="position:absolute;width:24rpx;height:21rpx;left: 19rpx;top:19rpx;" src="/images/icon_store.png"/>
<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;top:19rpx;width:100%;text-align:center;">首页</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>
<image mode="aspectFit" src="/images/icon_exit.png" style="position:relative;width:19rpx;height:19rpx;margin-right:8rpx;margin-top:1rpx;"/>
...
...
@@ -14,7 +14,7 @@
</view>
<view class="homeBodyView">
<!-- 还需要加一层swiper -->
<view class="homeGridItem"
on
Tap="sendGoToCollections">
<view class="homeGridItem"
catch
Tap="sendGoToCollections">
<image mode="aspectFit" src="/images/collections.png" class="homeItemImage"/>
<view class="homeItemText">收银</view>
</view>
...
...
pages/index/index.js
View file @
4beee349
...
...
@@ -117,8 +117,8 @@ Page({
}
else
if
(
res
.
action
==
ACTION_GO_SCAN
)
{
//跳转到
context
.
goPage
(
"landscan"
);
}
else
if
(
res
.
action
==
ACTION_GO_BALANCE
)
{
this
.
goPage
(
"landscan"
);
}
else
if
(
res
.
action
==
ACTION_GO_BALANCE
)
{
//跳转
this
.
goPage
(
"waitoperate"
)
}
else
if
(
res
.
action
==
ACTION_ON_PAY_SUCCESS
)
{
...
...
@@ -203,12 +203,11 @@ Page({
target
:
getApp
().
globalData
.
frontScreenAppId
,
data
:
commonRequest
,
success
:
(
res
)
=>
{
console
.
log
(
"发送收银事件到前屏小程序
成功
===》"
+
JSON
.
stringify
(
res
));
console
.
log
(
"发送收银事件到前屏小程序 ===》"
+
JSON
.
stringify
(
res
));
},
fail
:
(
res
)
=>
{
console
.
log
(
"发送收银事件到前屏小程序 失败 ===》 "
+
JSON
.
stringify
(
res
));
//发送失败重试
// context.sendGoToCollections();
}
});
},
...
...
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