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