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
c228b6f2
Commit
c228b6f2
authored
Feb 26, 2020
by
jiangjiantao
Browse files
Options
Browse Files
Download
Plain Diff
bugfix
parents
6d241afb
757ec9df
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
411 additions
and
116 deletions
+411
-116
actioncmd.js
const/actioncmd.js
+7
-3
landkeybord.js
pages/components/landkeybord/landkeybord.js
+3
-5
index.acss
pages/index/index.acss
+103
-5
index.axml
pages/index/index.axml
+55
-47
index.js
pages/index/index.js
+243
-56
No files found.
const/actioncmd.js
View file @
c228b6f2
...
@@ -16,6 +16,9 @@ export const ACTION_REQUEST_GOOD_INFO = "ACTION_REQUEST_GOOD_INFO";
...
@@ -16,6 +16,9 @@ export const ACTION_REQUEST_GOOD_INFO = "ACTION_REQUEST_GOOD_INFO";
//去扫码页面
//去扫码页面
export
const
ACTION_GO_SCAN
=
"ACTION_GO_SCAN"
;
export
const
ACTION_GO_SCAN
=
"ACTION_GO_SCAN"
;
//会员登录
export
const
ACTION_MEMBER
=
"ACTION_MEMBER"
;
//获取店铺信息
//获取店铺信息
export
const
ACTION_STORE_INFO
=
"ACTION_STORE_INFO"
;
export
const
ACTION_STORE_INFO
=
"ACTION_STORE_INFO"
;
...
@@ -56,9 +59,10 @@ export const ACTION_PRINT_LAST_ORDER = "ACTION_PRINT_LAST_ORDER";
...
@@ -56,9 +59,10 @@ export const ACTION_PRINT_LAST_ORDER = "ACTION_PRINT_LAST_ORDER";
export
const
ACTION_USE_COUPON
=
"ACTION_USE_COUPON"
;
export
const
ACTION_USE_COUPON
=
"ACTION_USE_COUPON"
;
const
FLOW_IDLE
=
"idle"
;
const
FLOW_IDLE
=
"idle"
;
const
FLOW_COLLECTIONS
=
"collections"
;
const
FLOW_COLLECTIONS
=
"collections"
;
//收款
const
FLOW_REFUND
=
"refund"
;
const
FLOW_REFUND
=
"refund"
;
//退款
const
FLOW_DIRECT_PAYMENT
=
"direct_payment"
export
{
export
{
FLOW_IDLE
,
FLOW_COLLECTIONS
,
FLOW_REFUND
FLOW_IDLE
,
FLOW_COLLECTIONS
,
FLOW_REFUND
,
FLOW_DIRECT_PAYMENT
}
}
pages/components/landkeybord/landkeybord.js
View file @
c228b6f2
...
@@ -29,8 +29,6 @@ Component({
...
@@ -29,8 +29,6 @@ Component({
scenes
:
nextProps
.
scene
,
scenes
:
nextProps
.
scene
,
});
});
console
.
log
(
"scenes:"
+
this
.
data
.
scenes
);
},
},
methods
:
{
methods
:
{
...
...
pages/index/index.acss
View file @
c228b6f2
...
@@ -222,6 +222,16 @@
...
@@ -222,6 +222,16 @@
font-size: 19rpx
font-size: 19rpx
}
}
.land-scan-member {
margin-left: 19rpx;
text-align: left;
font-size: 19rpx;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: rgba(51, 51, 51, 1);
line-height: 21rpx;
}
/* 顶部收银字体样式 */
/* 顶部收银字体样式 */
.cashier-text {
.cashier-text {
...
@@ -619,11 +629,32 @@
...
@@ -619,11 +629,32 @@
border: 2px solid red;
border: 2px solid red;
}
}
/* 结算页 */
/* 等待操作页 */
.waitOperate {
display: flex;
flex-direction: column;
position: absolute;
width: 100%;
height: 100%;
left: 0rpx;
top: 0rpx;
}
.waitOperateBackButton {
color: #333333;
font-size: 19rpx;
line-height: 60rpx;
height: 60rpx;
width: 110rpx;
text-align: center;
/* border: 2px solid red; */
position: relative;
}
.balanceTopView {
.balanceTopView {
position: relative;
position: relative;
width: 7
68
rpx;
width: 7
50
rpx;
height: 60rpx;
height: 60rpx;
background: rgba(255, 255, 255, 1);
background: rgba(255, 255, 255, 1);
/* border: 2px solid red; */
/* border: 2px solid red; */
...
@@ -634,11 +665,11 @@
...
@@ -634,11 +665,11 @@
display: flex;
display: flex;
flex-direction: row;
flex-direction: row;
position: relative;
position: relative;
width: 7
68
rpx;
width: 7
50
rpx;
height: 3
7
2rpx;
height: 3
6
2rpx;
box-sizing: border-box;
box-sizing: border-box;
align-items: center;
align-items: center;
background: #F
3F7F9
;
background: #F
FFFFF
;
}
}
.leftBody {
.leftBody {
...
@@ -647,6 +678,7 @@
...
@@ -647,6 +678,7 @@
position: relative;
position: relative;
width: 52.8%;
width: 52.8%;
height: 100%;
height: 100%;
background: rgba(243, 247, 249, 1);
box-sizing: border-box;
box-sizing: border-box;
}
}
...
@@ -960,3 +992,69 @@
...
@@ -960,3 +992,69 @@
position: absolute;
position: absolute;
top: 89rpx;
top: 89rpx;
}
}
/* 取消等待操作页的操作。名称为recheck*/
.recheckPage {
width: 100%;
height: 100%;
position: absolute;
background: rgba(0, 0, 0, 0.65);
display: flex;
flex-direction: column;
align-items: center;
z-index: 1;
}
.recheckDialog {
width: 516rpx;
height: 292rpx;
background: rgba(255, 255, 255, 1);
border-radius: 5px;
margin-top: 65rpx;
display: flex;
position: relative;
flex-direction: column;
align-items: center;
}
.recheckRemind {
font-size: 21rpx;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: rgba(51, 51, 51, 1);
line-height: 26rpx;
margin-top: 60rpx;
}
.recheckButtonConfirm {
width: 246rpx;
height: 60rpx;
background: rgba(0, 122, 255, 1);
border-radius: 5rpx;
position: relative;
box-sizing: border-box;
margin-top: 32rpx;
}
.recheckButtonCancel {
width: 252rpx;
height: 60rpx;
background: rgba(255, 255, 255, 1);
border-radius: 5rpx;
border: 2rpx solid rgba(0, 122, 255, 1);
position: relative;
box-sizing: border-box;
margin-top: 19rpx;
}
.recheckButtonText {
width: 100%;
height: 60rpx;
margin: 0 auto;
text-align: center;
font-size: 24rpx;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
line-height: 60rpx;
}
\ No newline at end of file
pages/index/index.axml
View file @
c228b6f2
...
@@ -6,10 +6,10 @@
...
@@ -6,10 +6,10 @@
<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>
<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>
<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="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;width:auto;background:#ffffff;">
<
!-- <
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;">退出</view>
<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;"/>
<image mode="aspectFit" src="/images/icon_exit.png" style="position:relative;width:19rpx;height:19rpx;margin-right:8rpx;margin-top:1rpx;"/>
</view>
</view>
-->
</view>
</view>
<view class="homeBodyView" style="height:100%;">
<view class="homeBodyView" style="height:100%;">
<swiper indicator-dots="{{true}}">
<swiper indicator-dots="{{true}}">
...
@@ -118,7 +118,8 @@
...
@@ -118,7 +118,8 @@
<view hidden="{{!pageShow['landscan']}}">
<view hidden="{{!pageShow['landscan']}}">
<view class="{{scene != 0 ? 'pfilter' : 'pageland' }}">
<view class="{{scene != 0 ? 'pfilter' : 'pageland' }}">
<view class="land-scan-top">
<view class="land-scan-top">
<button class="land-scan-top-member-login" size="default" type="ghost">会员登陆</button>
<button class="land-scan-top-member-login" size="default" type="ghost" catchTap="onMemberTap" a:if="{{memberPhoneShown == ''}}">会员登录</button>
<view class="land-scan-member" hidden="{{memberPhoneShown == ''}}">会员,{{memberPhoneShown}}</view>
<text class="cashier-text">收银</text>
<text class="cashier-text">收银</text>
<view onTap="goHome">
<view onTap="goHome">
<image class="go-home-icon" mode="aspectFit" src="/images/icon_home.png"/>
<image class="go-home-icon" mode="aspectFit" src="/images/icon_home.png"/>
...
@@ -204,11 +205,11 @@
...
@@ -204,11 +205,11 @@
</view>
</view>
</view>
</view>
</view>
</view>
<!--
结算
页 -->
<!--
等待操作
页 -->
<view class="
balanc
e" hidden="{{!pageShow['waitoperate']}}">
<view class="
waitOperat
e" hidden="{{!pageShow['waitoperate']}}">
<view class="balanceTopView">
<view class="balanceTopView">
<!--back button-->
<!--back button-->
<view catchTap="waitOperateBack" class="
b
ackButton">
<view catchTap="waitOperateBack" class="
waitOperateB
ackButton">
<image mode="aspectFit" style="position:absolute;width:11rpx;height:17rpx;left: 18rpx;top:22rpx;" src="/images/icon_back.png"/>
<image mode="aspectFit" style="position:absolute;width:11rpx;height:17rpx;left: 18rpx;top:22rpx;" src="/images/icon_back.png"/>
<text>返回</text>
<text>返回</text>
</view>
</view>
...
@@ -216,26 +217,27 @@
...
@@ -216,26 +217,27 @@
<!-- 界面主体 -->
<!-- 界面主体 -->
<view class="bodyContainer">
<view class="bodyContainer">
<view class="leftBody">
<view class="leftBody">
<view class="contentLine" style="margin-top:29rpx;">
<view class="contentLine" style="margin-top:29rpx;"
hidden="{{flowType!='collections'}}"
>
<view class="descText">合计金额:</view>
<view class="descText">合计金额:</view>
<view class="totalPrice">¥{{totalPrice}}</view>
<view class="totalPrice">¥{{totalPrice}}</view>
</view>
</view>
<view class="contentLine" style="margin-top: 14.5rpx;">
<view class="contentLine" style="margin-top: 14.5rpx;"
hidden="{{flowType!='collections'}}"
>
<view class="descText">商家优惠:</view>
<view class="descText">商家优惠:</view>
<view class="totalCoupon">¥{{
totalDisc
}}</view>
<view class="totalCoupon">¥{{
discCouponPrice
}}</view>
</view>
</view>
<view style="position: absolute;display: flex;flex-direction: row;align-items: baseline;bottom:22rpx;left:0rpx;padding-left: 29rpx;">
<view style="position: absolute;display: flex;flex-direction: row;align-items: baseline;bottom:22rpx;left:0rpx;padding-left: 29rpx;">
<view class="descText">
应收款:
</view>
<view class="descText">
{{waitOperateMoneyRemind}}
</view>
<view class="moneySign">¥</view>
<view class="moneySign">¥</view>
<view class="payPrice">{{totalPrice - totalDisc}}</view>
<view class="descText">(共{{totalQuantity}}件)</view>
<view class="payPrice">{{waitOperateAmount}}</view>
<view class="descText" hidden="{{flowType!='collections'}}">(共{{totalQuantity}}件)</view>
</view>
</view>
</view>
</view>
<view class="rightBody">
<view class="rightBody">
<view class="remindText">
等待顾客付款…
</view>
<view class="remindText">
{{waitOperateRemindText}}
</view>
<image mode="aspectFit" style="width:166rpx;height:143rpx;margin-top:39rpx;" src="/images/icon_wait_operate.png"/>
<image mode="aspectFit" style="width:166rpx;height:143rpx;margin-top:39rpx;" src="/images/icon_wait_operate.png"/>
<view catchTap="waitOperate
Back
" style="width:252rpx;height:60rpx;background:rgba(255,255,255,1);border-radius:5rpx;border:2rpx solid rgba(0,122,255,1);position:relative;box-sizing: border-box;margin-top:32rpx;">
<view catchTap="waitOperate
Cancel
" style="width:252rpx;height:60rpx;background:rgba(255,255,255,1);border-radius:5rpx;border:2rpx solid rgba(0,122,255,1);position:relative;box-sizing: border-box;margin-top:32rpx;">
<view
catchTap="cancelCollect" style="width:100%;height:60rpx;margin:0 auto;text-align:center;font-size:24rpx;font-family:PingFangSC-Medium,PingFang SC;font-weight:500;color:rgba(0,122,255,1);line-height:60rpx;">取消收款
</view>
<view
style="width:100%;height:60rpx;margin:0 auto;text-align:center;font-size:24rpx;font-family:PingFangSC-Medium,PingFang SC;font-weight:500;color:rgba(0,122,255,1);line-height:60rpx;">{{waitOperateCancelText}}
</view>
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -349,12 +351,6 @@
...
@@ -349,12 +351,6 @@
<!-- 键盘 -->
<!-- 键盘 -->
<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>
...
@@ -365,7 +361,7 @@
...
@@ -365,7 +361,7 @@
<view class="operateResultDesc">{{operateSuccessDesc}}</view>
<view class="operateResultDesc">{{operateSuccessDesc}}</view>
<view class="operateResultBtnContainer">
<view class="operateResultBtnContainer">
<view class="operateResultConfirmBtn">
<view class="operateResultConfirmBtn">
<view class="operateResultConfirmBtnText
">确定</view>
<view class="operateResultConfirmBtnText" onTap="operateResultClose
">确定</view>
</view>
</view>
</view>
</view>
</block>
</block>
...
@@ -375,13 +371,25 @@
...
@@ -375,13 +371,25 @@
<view class="operateResultDesc">{{operateFailedDesc}}</view>
<view class="operateResultDesc">{{operateFailedDesc}}</view>
<view class="operateResultBtnContainer">
<view class="operateResultBtnContainer">
<view class="operateResultCloseBtn">
<view class="operateResultCloseBtn">
<view class="operateResultCloseBtnText
">关闭</view>
<view class="operateResultCloseBtnText" onTap="operateResultClose
">关闭</view>
</view>
</view>
<view class="operateResultConfirmBtn">
<view class="operateResultConfirmBtn">
<view class="operateResultConfirmBtnText">重新退款
</view>
<view class="operateResultConfirmBtnText" onTap="operateResultReOperate">{{operateReDo}}
</view>
</view>
</view>
</view>
</view>
</block>
</block>
</view>
</view>
</view>
</view>
<!-- 重新检查弹窗 -->
<view class="recheckPage" hidden="{{!recheckShow}}">
<view class="recheckDialog">
<view class="recheckRemind">{{recheckRemind}}</view>
<view class="recheckButtonConfirm" onTap="recheckConfirm">
<view class="recheckButtonText" style="color:#ffffff;">确定</view>
</view>
<view class="recheckButtonCancel" onTap="recheckCancel">
<view class="recheckButtonText" style="color:rgba(0,122,255,1);">取消</view>
</view>
</view>
</view>
</view>
</view>
\ No newline at end of file
pages/index/index.js
View file @
c228b6f2
This diff is collapsed.
Click to expand it.
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