Commit ec3df806 by 李伟康

commit 修复BUG

1 parent 7ea4bc76
......@@ -39,6 +39,7 @@
class="input"
:placeholder="i.placeholder"
:disabled="customerType == 0"
@input="inputCustomer"
/>
</template>
<template v-else>
......@@ -298,6 +299,9 @@ export default {
this.setReceptionStatus(receptionStatus);
this.$emit('submit', receptionStatus)
},
inputCustomer () {
this.$store.dispatch('setCustomerInfo', this.formData)
},
handleSelect (item, popkey) {
this.$refs[popkey].close();
if (popkey == "employeeBoxVisible") {
......
......@@ -7,17 +7,22 @@
class="qrPopup"
>
<view class="box">
<view
class="icon-close-box flex"
@click="close"
>
<uni-icons
class="icon-close"
type="closeempty"
:size="16"
color="#1A1A1A"
></uni-icons>
</view>
<template v-if="count > 0">
<view class="icon-close-box count">{{count}}</view>
</template>
<template v-else>
<view
class="icon-close-box flex"
@click="close"
>
<uni-icons
class="icon-close"
type="closeempty"
:size="16"
color="#1A1A1A"
></uni-icons>
</view>
</template>
<view class="content flex">
<view class="title flex">
<view class="sprite-icon icon-scan"></view>
......@@ -52,6 +57,7 @@ export default {
},
data () {
return {
count: 4
}
},
mounted () {
......@@ -59,11 +65,21 @@ export default {
methods: {
open () {
this.$refs.qr.open();
this.count = 3
this.countDown()
},
close () {
this.$refs.qr.close();
this.$emit('close')
},
countDown(){
setTimeout(() => {
if(this.count > 0){
this.count--
this.countDown()
}
}, 1000)
}
}
}
</script>
......@@ -84,6 +100,9 @@ export default {
top: 0;
right: 0;
}
.count{
color: #999999;
}
.content {
flex-direction: column;
......@@ -92,7 +111,7 @@ export default {
font-weight: 500;
font-size: 32rpx;
color: #333333;
.sprite-icon{
.sprite-icon {
margin-right: 12rpx;
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!