Commit 02540f16 by 李伟康

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

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