Commit 6806f48a by 岑成威

Merge branch 'saas+v5.8.3' of 192.168.3.233:glsx/gl_tape into saas+v5.8.3

2 parents 4162e2f0 db63403a
......@@ -712,6 +712,7 @@ export default {
if (index == 0) {
this.$refs.messageRef.getMessageSummary()
this.getCustomerProfileGroupInfo()
this.getStrategyStatus()
}
this.previewOff = index != 0
this.$emit('changeTab', index)
......@@ -738,6 +739,7 @@ export default {
try {
const res = await uni.$api.activityApi.getActivityStatusAPI({ merchantId })
console.log('getStrategyStatus***', res)
if (!res) {
this.marketingActivityHasData = false
this.customerListHasData = false
......
......@@ -49,9 +49,7 @@ export default {
flagObject: {
goodsFlag: false,
scrollTop: 0
},
secondList: [],
secondName: ''
}
}
},
watch: {
......
......@@ -143,6 +143,7 @@ export default {
init () {
if (!this.show) return
let { optionals } = this.boutiqueMediaConfig[this.currentCar]
if(!optionals) return
optionals.map(e => e.checked = false)
this.optionalsList = optionals
console.log(this.optionalsList)
......
......@@ -53,8 +53,8 @@
</template>
<template v-else>
<view :class="['sku-box', isPreview ? 'preview' : '']">
<sku-box :currentCar="currentCarId" :defaultTabId="tabId"
:show="show && (tabIndex != tabs.length - 1)" @changePreView="changePreView" ref="sku" />
<sku-box :currentCar="currentCarId" :defaultTabId="tabId" :show="show && tabListId == 2"
@changePreView="changePreView" ref="sku" />
</view>
</template>
<view class="coupon-btn flex" v-if="!isPreview" @click="couponPopupRef.open(customerType, customerInfo)">
......@@ -159,17 +159,7 @@ export default {
handler(newval) {
if (newval) {
this.isSelect = false
let index = 0,
tabListId = 2
if (this.hasBeforeActivity || this.hasAfterActivity) {
index = 1
tabListId = 1
}
if (this.hasBeforeActivity && this.hasAfterActivity) {
index = 2
tabListId = 0
}
if (newval && this.currentItem && this.tabIndex == index) this.changePreView(this.currentItem, false, false)
if (newval && this.currentItem && this.tabListId == 2) this.changePreView(this.currentItem, false, false)
}
}
},
......@@ -285,8 +275,8 @@ export default {
this.currentCarId = item.carModelId
this.isSelect = false
this.updateViewKey = Date.now()
this.tabListId = this.tabs[0].id
this.clearCanvas()
if ( !this.$refs.sku && !this.hasBeforeActivity && !this.hasAfterActivity) this.changeTab(0, true, false)
},
changePreView(e, leave = true, clearBoard = true) {
let { currentItem } = this,
......@@ -367,13 +357,12 @@ export default {
if (this.hasBeforeActivity && this.hasAfterActivity) skuIndex = 2
if (this.tabIndex == skuIndex && this.currentItem && this.currentItem.carModelName) this.previewLeave(this.currentItem)
let goods = this.$refs.goodsBox
let skuRef = this.$refs.sku
this.tabIndex = index
this.currentItem = null
this.tabListId = this.tabs[index].id
this.tabListId = this.tabs[index].id
setTimeout(() => {
if (changeCar && goods && [0, 1].includes(this.tabListId)) goods.changeCar(this.currentCarId)
if (skuRef && skuIndex == index) skuRef.changeCar(this.currentCarId)
if (changeCar && goods && [0, 1].includes(this.tabListId)) goods.changeCar(this.currentCarId)
if (this.tabListId == 2) this.$refs.sku.changeCar(this.currentCarId)
this.clearCanvas()
}, 100)
},
......
......@@ -8,11 +8,13 @@
/>
</view>
<image
class="goods-img"
:src="displayMainImage"
mode="aspectFill"
/>
<scroll-view class="detail-scroll" scroll-y>
<image
class="goods-img"
:src="displayMainImage"
mode="widthFix"
/>
</scroll-view>
<image
class="prelearn-entrance"
......@@ -146,9 +148,13 @@ export default {
background-color: #000;
}
.detail-scroll {
width: 100%;
height: 100vh;
}
.goods-img {
width: 100%;
height: 100%;
display: block;
}
......
......@@ -10,7 +10,7 @@
<view class="detail-panel">
<view class="form-header">必填信息</view>
<view class="form-box flex">
<template v-for="(i, index) in customerForm">
<template v-for="(i, index) in customerForm" >
<view class="form-item flex" :key="index">
<view class="label flex">
<view class="required" v-if="i.required">*</view>{{ i.label }}
......@@ -225,7 +225,8 @@ const phoneRex = /^[1]([3-9])[0-9]{9}$/,
label: '建档日期',
valueKey: 'filingDate',
key: 'filingDate',
type: 'date'
type: 'date',
dateUnlimited: true
},{
label: '驻店零售',
valueKey: 'sellerName',
......
......@@ -308,7 +308,8 @@ const phoneRex = /^[1]([3-9])[0-9]{9}$/,
label: '建档日期',
valueKey: 'createdDate',
key: 'createdDate',
type: 'date'
type: 'date',
dateUnlimited: true
}],
default_groupForm = [ {
label: '客户群',
......
......@@ -745,7 +745,8 @@ export default {
activityProductId: this.goodsInfo.productId || this.prelearnContext.activityProductId,
})
console.log('[prelearnBridge] getPrelearnScriptBoardAPI res:', res)
return Number(res?.staffLearnStatus) === 1
const status = Number(res?.staffLearnStatus)
return status === 1 || status === 2
},
showMainPushBackTip() {
uni.showModal({
......@@ -764,6 +765,7 @@ export default {
if (Number(this.isMainPush) === 1) {
try {
const learned = await this.checkMainPushStaffLearnStatus()
console.log("学习状态查询***", learned);
if (learned) {
this.navigateBack()
return
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!