Commit b24c3da7 by 李伟康

commit 修改messageBox

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