Commit ec3df806 by 李伟康

commit 修复BUG

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