Commit b24c3da7 by 李伟康

commit 修改messageBox

1 parent 29a57c7a
...@@ -66,8 +66,8 @@ const phoneRex = /^[1]([3-9])[0-9]{9}$/; ...@@ -66,8 +66,8 @@ const phoneRex = /^[1]([3-9])[0-9]{9}$/;
export default { export default {
data () { data () {
return { return {
mobile: '15626599738', mobile: '',
code: '8888', code: '',
count: '', count: '',
}; };
}, },
......
...@@ -55,8 +55,8 @@ ...@@ -55,8 +55,8 @@
</template> </template>
</view> </view>
<MessageBox <MessageBox
ref="carBoxVisible"
position="bottom" position="bottom"
v-if="carBoxVisible"
:isFooter="false" :isFooter="false"
title="请选择车型" title="请选择车型"
@cancel="carBoxVisible = false" @cancel="carBoxVisible = false"
...@@ -73,26 +73,25 @@ ...@@ -73,26 +73,25 @@
</view> </view>
</view> </view>
</MessageBox> </MessageBox>
<template v-if="employeeBoxVisible"> <MessageBox
<MessageBox ref="employeeBoxVisible"
position="bottom" position="bottom"
:isFooter="false" :isFooter="false"
title="请选择销售" title="请选择销售"
@cancel="employeeBoxVisible = false" @cancel="employeeBoxVisible = false"
> >
<view class="select-box"> <view class="select-box">
<view <view
class="select-item" class="select-item"
:class="{ checked: customerInfo.salesUuid == item.uuid }" :class="{ checked: customerInfo.salesUuid == item.uuid }"
@click="handleSelect(item,'employeeBoxVisible')" @click="handleSelect(item,'employeeBoxVisible')"
v-for="(item, index) in employeeList" v-for="(item, index) in employeeList"
:key="index" :key="index"
> >
{{ item.staffName }} {{ item.staffName }}
</view>
</view> </view>
</MessageBox> </view>
</template> </MessageBox>
</view> </view>
</template> </template>
...@@ -169,7 +168,7 @@ export default { ...@@ -169,7 +168,7 @@ export default {
this.$store.dispatch('setCustomerInfo', this.customerInfo) this.$store.dispatch('setCustomerInfo', this.customerInfo)
}, },
showPopup (e) { showPopup (e) {
this[e] = true this.$refs[e].open()
}, },
} }
} }
......
...@@ -41,8 +41,8 @@ ...@@ -41,8 +41,8 @@
</template> </template>
<MessageBox <MessageBox
v-if="finishVisible" ref="finish"
@cancel="finishVisible = false" @cancel="$refs.finish.close()"
@confirm="done" @confirm="done"
content="是否返回首页并结束本次接待" content="是否返回首页并结束本次接待"
confirmBtnText="确认" confirmBtnText="确认"
...@@ -144,7 +144,7 @@ export default { ...@@ -144,7 +144,7 @@ export default {
this.$refs.pay.show(); this.$refs.pay.show();
}, },
back() { back() {
if (this.type != "preview") return (this.finishVisible = true); if (this.type != "preview") return this.$refs.finish.open()
this.$store.dispatch("clearCustomerInfo"); this.$store.dispatch("clearCustomerInfo");
uni.navigateBack(); uni.navigateBack();
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!