Commit 05ecc8f7 authored by jiangjiantao's avatar jiangjiantao

后端键盘错误提示

parent 594a2435
...@@ -136,4 +136,15 @@ ...@@ -136,4 +136,15 @@
.input-finished-text { .input-finished-text {
font-size: 24rpx; font-size: 24rpx;
color: white color: white
}
/* 错误提示 */
.err-msg {
font-size: 22rpx;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: rgba(249, 97, 70, 1);
line-height: 30rpx;
margin-top: 10rpx
} }
\ No newline at end of file
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
</view> </view>
</view> </view>
<view class="result-baseline"> <view class="result-baseline">
<text class="err-msg" a:if="{{errMsg != ''}}">{{errMsg}}</text>
</view> </view>
</view> </view>
<view class="keybord-right"> <view class="keybord-right">
......
...@@ -3,14 +3,15 @@ Component({ ...@@ -3,14 +3,15 @@ Component({
data: { data: {
result: "", result: "",
scenes: 2, scenes: 2,
errMsg:""
}, },
props: { props: {
//场景 1.输入商品码 2.会员 3.收款 4.退款 //场景 1.输入商品码 2.会员 3.收款 4.退款
scene: 1, scene: 1,
//错误提示
errMsg:''
}, },
didMount() { }, didMount() { },
...@@ -22,6 +23,7 @@ Component({ ...@@ -22,6 +23,7 @@ Component({
if (nextProps.scene == 0) { if (nextProps.scene == 0) {
this.setData({ this.setData({
result: '', result: '',
errMsg:'',
}); });
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment