Commit 05ecc8f7 authored by jiangjiantao's avatar jiangjiantao

后端键盘错误提示

parent 594a2435
......@@ -136,4 +136,15 @@
.input-finished-text {
font-size: 24rpx;
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 @@
</view>
</view>
<view class="result-baseline">
<text class="err-msg" a:if="{{errMsg != ''}}">{{errMsg}}</text>
</view>
</view>
<view class="keybord-right">
......
......@@ -3,14 +3,15 @@ Component({
data: {
result: "",
scenes: 2,
errMsg:""
},
props: {
//场景 1.输入商品码 2.会员 3.收款 4.退款
scene: 1,
//错误提示
errMsg:''
},
didMount() { },
......@@ -22,6 +23,7 @@ Component({
if (nextProps.scene == 0) {
this.setData({
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