Commit 02540f16 by 李伟康

feat(boutique): 更新接待页面功能配置

- 修改条件渲染逻辑,使用 tabs 长度判断显示选项卡
- 更新客户功能标题为创建客户档案和录入客户订单
- 移除默认加装和选装标签数组
- 调整优惠券文本为录入客户订单和创建客户档案
- 添加选装功能判断属性
1 parent d0ea8c0c
......@@ -82,7 +82,7 @@
:currentCar="currentCarId"
:show="show && tabIndex == 1"
></optional-table>
<template v-if="hasOptionals">
<template v-if="tabs.length > 1">
<view class="tabs-box flex">
<template v-for="(i,index) in tabs">
<view
......@@ -108,7 +108,7 @@
:show="show"
@hideTool="$emit('hideTool')"
tips="微信扫码进入客户录单页"
:title="customerType == 1 ?'为客户发券' : '客户小程序码'"
:title="customerType == 1 ?'创建客户档案' : '录入客户订单'"
/>
<risk-informed-box
ref="riskInformedPop"
......@@ -144,7 +144,7 @@ export default {
carInfo: {},
currentImgUrl: '',
currentItem: null,
tabs: ['加装', '选装'],
tabs: [],
tabIndex: 0,
isSelect: false,
currentCarId: ''
......@@ -207,7 +207,7 @@ export default {
return this.type == 'preview'
},
couponText () {
return this.customerType == 0 ? '查看客户券码' : '为客户发券'
return this.customerType == 0 ? '录入客户订单' : '创建客户档案'
},
couponPopupRef () {
return this.$refs.couponPopup
......@@ -221,6 +221,7 @@ export default {
boutiqueMediaConfig () {
return this.$store.state.user.boutiqueMediaConfig
},
/**选装 */
hasOptionals () {
let flag = false
if (this.show) flag = this.boutiqueMediaConfig[this.currentCarId].optionals && this.boutiqueMediaConfig[this.currentCarId].optionals.length
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!