Commit 49845179 by 李伟康

commit 提交

1 parent 8942ff0b
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
/> />
</view> </view>
</template> </template>
<template v-if="type != 'preview'"> <template v-if="showTool()">
<tool-box <tool-box
ref="toolRef" ref="toolRef"
:data="toolList" :data="toolList"
...@@ -130,7 +130,10 @@ export default { ...@@ -130,7 +130,10 @@ export default {
}, },
receptionTrack () { receptionTrack () {
return this.$store.state.user.receptionTrack return this.$store.state.user.receptionTrack
} },
watchCustomerInfo () {
return this.$store.state.user.customerInfo
},
}, },
mounted () { mounted () {
}, },
...@@ -256,6 +259,15 @@ export default { ...@@ -256,6 +259,15 @@ export default {
flag = true flag = true
} }
return flag return flag
},
showTool () {
let { type, watchCustomerInfo, customerType } = this
let flag = false
if (type != 'preview') {
flag = true
if (customerType == 0 && !watchCustomerInfo.phoneNumber) flag = false
}
return flag
} }
}, },
}; };
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!