Commit 0868e302 by cen

Merge branch 'V4.56.0' of http://192.168.3.233:8090/glsx/gl_tape into V4.56.0

2 parents 5e5c1f98 811068d0
......@@ -46,7 +46,7 @@
</template>
</scroll-view>
<view class="letter-list">
<template v-for="(i, index) in list">
<template v-for="(i, index) in listData">
<view
class="letter-item"
:key="index"
......@@ -85,7 +85,7 @@ export default {
data = await uni.$api.popupApi.getMerchantCarBrandList({
merchantId: shopMerchantId
})
if (data && data.length) this.updateParams(params, data)
this.updateParams(params, data || [])
},
initData (carData) {
let { params: { idKey }, data: { customer } } = this,
......
......@@ -88,7 +88,7 @@ export default {
yqMerchantId: merchantId,
orderByType: 9
})
if (data && data.length) this.updateParams(params, data)
this.updateParams(params, data || [])
},
initData (data) {
let couponTypeList = Array.from(new Set([...data.map((e) => e.couponInfo.couponType)])),
......
......@@ -36,7 +36,7 @@ export default {
const data = await uni.$api.popupApi.getDiversionMerchantRef({
merchantId: shopMerchantId
})
if (data && data.length) this.updateParams(params, data)
this.updateParams(params, data || [])
},
initData (data) {
this.list = data
......
......@@ -40,9 +40,9 @@ export default {
sceneList: params.idKey == 'sellerUserId' ? '' : [sceneType],
name: searchValue
})
if (data && data.length) this.updateParams(params, data)
this.updateParams(params, data || [])
},
initData(data){
initData (data) {
this.list = data
this.$emit('onComplete')
},
......
......@@ -4,11 +4,18 @@
<template v-if="listData.length">
<template v-for="(i, index) in listData">
<template v-if="isDefeatOrder">
<view class="item-box" :key="index">
<view
class="item-box"
:key="index"
>
<view class="goods-title flex">{{ i.goodsTypeName }}|建议价</view>
<view class="defeat-goods-list">
<template v-for="(item, ind) in i.upgradeGoodsList">
<view :class="['item flex', { active: checkActive(item) }]" :key="`${index}_${ind}`" @click="choose(item)">
<view
:class="['item flex', { active: checkActive(item) }]"
:key="`${index}_${ind}`"
@click="choose(item)"
>
<view class="sprite-icon icon-tag-checked"></view>
<text class="goods-name text-hide">
{{ replaceItemText(item, 'upgradeGoodsAlias') || replaceItemText(item, 'upgradeGoodsName') || replaceItemText(item.goodsInfo, 'goodsName') }}
......@@ -26,7 +33,11 @@
</view>
</template>
<template v-else>
<view :key="index" @click="choose(i)" :class="['item flex', { active: checkActive(i) }]">
<view
:key="index"
@click="choose(i)"
:class="['item flex', { active: checkActive(i) }]"
>
<view class="sprite-icon icon-tag-checked"></view>
<text class="goods-name text-hide">
{{ replaceItemText(i.goods, 'goodsAlias') || replaceItemText(i.goods, 'upgradeGoodsName') || replaceItemText(i.goodsInfo, 'goodsName') }}
......@@ -76,7 +87,7 @@ export default {
}
isDefeatOrder ? apiParams.upradeFlag = 'N' : apiParams.sceneType = sceneType
const data = await uni.$api.popupApi[apiName](apiParams)
if (data && data.length) this.updateParams(params, data)
this.updateParams(params, data || [])
},
handleSearch (searchValue) {
let { isDefeatOrder } = this
......
......@@ -67,7 +67,7 @@ export default {
merchantId: shopMerchantId,
sceneType
})
if (data && data.length) this.updateParams(params, data)
this.updateParams(params, data || [])
},
handleSearch (searchValue) {
if (!searchValue) this.searchStatus = false
......
......@@ -123,7 +123,7 @@ export default {
merchantId: shopMerchantId,
sceneType
})
if (data && data.length) this.updateParams(params, data)
this.updateParams(params, data || [])
},
handleSearch (searchValue) {
if (!searchValue) this.searchStatus = false
......@@ -241,7 +241,7 @@ export default {
},
async watchAllChose (index, cancel) {
let {
list: goodsList,
listData: goodsList,
} = this;
let result = goodsList[index].multipleSpecificationsGoods.specificationList.every(item => item.value)
if (result) {
......
......@@ -282,6 +282,7 @@ export default {
const productFields = ['frontGear', 'frontWindow', 'rearGear', 'rearWindow', 'sunRoof', 'package', 'skuGoods']
if (productFields.includes(val.value)) {
this.valueKey = val.value
this.externalData = utils.deepClone(this.goodsList)
}
console.log(this.popupType, this.externalData, '-------------')
this.$refs.orderPopup.open()
......@@ -297,6 +298,7 @@ export default {
// 弹窗确认回调
onConfirm(val) {
console.log(val, 'onConfirm')
this.externalData = []
// const { chooseContent } = val
const chooseContent = utils.deepClone(val.chooseContent)
// 根据popupTypeEnum优化处理
......@@ -687,6 +689,7 @@ export default {
merchantId: userInfo.shopMerchantId,
sceneType: userInfo.sceneType
})
this.goodsList = res
// 分类映射
const posMap = {
......
......@@ -37,6 +37,10 @@ class Track {
if (data.businessId) item.businessId = data.businessId
trackList.push(item)
uni.setStorageSync('TRACK_LIST', trackList)
if (!TRACK_TIME) {
console.log('---------------- 重新打开定时埋点 ----------------')
this.sendTrack() //开启定时埋点
}
if (trackList.length > 9) this.sendTrackData()
}
......@@ -52,8 +56,11 @@ class Track {
const recordList = uni.getStorageSync('TRACK_LIST') || []
if (recordList.length) {
const res = await uni.$api.commonApi.recordInsert({ recordList })
if (res)
uni.setStorageSync('TRACK_LIST', [])
if (res) uni.setStorageSync('TRACK_LIST', [])
} else {
clearInterval(TRACK_TIME)
TRACK_TIME = null
console.log('---------------- 暂停定时埋点 ----------------')
}
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!