|
|
@@ -6,6 +6,7 @@ export default class DealSeoData {
|
|
|
this.redirect = redirect
|
|
|
this.error = error
|
|
|
this.consultDetail= {}
|
|
|
+ this.from = ''
|
|
|
}
|
|
|
|
|
|
async dealData() {
|
|
|
@@ -19,6 +20,7 @@ export default class DealSeoData {
|
|
|
const uid = params.id || ''
|
|
|
const saleId = query.saleId || ''
|
|
|
const act = query.act || ''
|
|
|
+ this.from = query.from || ''
|
|
|
|
|
|
// 重定向
|
|
|
if (path.indexOf('/frontend/consult/user') > -1) {
|
|
|
@@ -40,6 +42,7 @@ export default class DealSeoData {
|
|
|
/** 获取咨询服务详情 */
|
|
|
async _getConsultDetail (uid, sale_id = '') {
|
|
|
const data = { uid }
|
|
|
+ // 预览时仅展示一条咨询
|
|
|
if (sale_id) {
|
|
|
data.sale_id = sale_id
|
|
|
}
|
|
|
@@ -56,6 +59,11 @@ export default class DealSeoData {
|
|
|
} else {
|
|
|
item.showExpand = false
|
|
|
}
|
|
|
+ // 产品指定默认展开的咨询服务
|
|
|
+ const defaultExpandConsult = ['33', '1009']
|
|
|
+ if (defaultExpandConsult.indexOf(item.sale_id) > -1 && this.from == 'example') {
|
|
|
+ item.expand = true
|
|
|
+ }
|
|
|
// 可预约的时间数组
|
|
|
item.orderTime = []
|
|
|
if (sale_id) {
|