Commit 0a53c0f6 by 前端

Merge branch 'SAAS+V5.1.0' into 'master'

上线合并

See merge request !33
2 parents 665cb3be 0cafb342
...@@ -354,5 +354,15 @@ module.exports = { ...@@ -354,5 +354,15 @@ module.exports = {
projectName: 'boutique', projectName: 'boutique',
...data ...data
}) })
},
/**
* 查询商户套餐推荐配置列表
*/
getBoutiquePackageList(data){
return http.post({
method: 'dj.api.smartcarlife.receptionMaterialRecommendPackageConfig.getByMerchantId',
projectName: 'boutique',
...data
})
} }
} }
...@@ -11,7 +11,7 @@ const HOST = { ...@@ -11,7 +11,7 @@ const HOST = {
scrm: domain, scrm: domain,
dj: djDomain, dj: djDomain,
merchant: merchantDomain, merchant: merchantDomain,
ip: "http://192.168.1.169:8292", ip: "http://192.168.1.67:8392",
}; };
class Request { class Request {
get (params, returnAll = false, hostType) { get (params, returnAll = false, hostType) {
......
No preview for this file type
No preview for this file type
...@@ -33,14 +33,20 @@ ...@@ -33,14 +33,20 @@
<view class="module-box box-class"> <view class="module-box box-class">
<view class="common-title">产品介绍</view> <view class="common-title">产品介绍</view>
<view class="content-box"> <view class="content-box">
<swiper-component <template v-if="swiperCustom">
:moduleList="moduleList" <slot name="swiperCustom" />
@click="swiperClick" </template>
:stopAutoPlay="previewOff" <template v-else>
:imgKey="bannerKey" <swiper-component
:loadComplete="loadComplete" :moduleList="moduleList"
:noDataObject="swiperNoDataObject" @click="swiperClick"
></swiper-component> :stopAutoPlay="previewOff"
:imgKey="bannerKey"
:loadComplete="loadComplete"
:noDataObject="swiperNoDataObject"
>
</swiper-component>
</template>
</view> </view>
</view> </view>
<view class="tool-box box-class"> <view class="tool-box box-class">
...@@ -205,7 +211,8 @@ export default { ...@@ -205,7 +211,8 @@ export default {
checkRecordAudio: { checkRecordAudio: {
type: Boolean, type: Boolean,
default: true default: true
} },
swiperCustom: Boolean,
}, },
data () { data () {
return { return {
...@@ -377,9 +384,9 @@ export default { ...@@ -377,9 +384,9 @@ export default {
} }
}, },
swiperClick (e) { swiperClick (e) {
uni.$track.add({ if (this.sceneType == 0) uni.$track.add({
eventCode: 'app_product_Introduction' eventCode: 'app_product_Introduction'
}) }) //轻改场景不埋点
this.previewOff = true this.previewOff = true
this.$emit('swiperClick', e) this.$emit('swiperClick', e)
}, },
......
<template> <template>
<view class="swiper-box"> <view :class="['swiper-box',{'type-2':swiperType == 2}]">
<template v-if="loadComplete"> <template v-if="loadComplete">
<template v-if="moduleList.length"> <template v-if="moduleList.length">
<movable-area <movable-area
class="swiper-carousel" class="swiper-carousel"
...@@ -15,19 +14,28 @@ ...@@ -15,19 +14,28 @@
@click.stop="changeBlock(item)" @click.stop="changeBlock(item)"
direction="horizontal" direction="horizontal"
@change="change" @change="change"
:disabled="item.class != 'block-center'" :disabled="item.class != 'block-center' || moduleList.length == 1"
:x="item.class != 'block-center' ? 0 : viewX" :x="item.class != 'block-center' ? 0 : viewX"
:data-index="item.isIndex" :data-index="item.isIndex"
v-if="item.imgUrl"
> >
<image <template v-if="custom">
class="image-block" <slot
:src="item.imgUrl" :content="item"
@load="item.hide = true" name="swiper"
/> ></slot>
<view </template>
class="bg" <template v-else>
v-if="item.hide" <image
></view> class="image-block"
:src="item.imgUrl"
@load="item.hide = true"
/>
<view
class="bg"
v-if="item.hide"
></view>
</template>
<!-- <view :class="['error-block',{hide:item.hide}]"> <!-- <view :class="['error-block',{hide:item.hide}]">
<uni-icons <uni-icons
:type="icon" :type="icon"
...@@ -82,7 +90,6 @@ ...@@ -82,7 +90,6 @@
</template> </template>
<script> <script>
import utils from "@/utils/utils.js"; import utils from "@/utils/utils.js";
export default { export default {
name: 'SwiperComponent', name: 'SwiperComponent',
props: { props: {
...@@ -115,11 +122,20 @@ export default { ...@@ -115,11 +122,20 @@ export default {
default: false default: false
}, },
loadComplete: Boolean, loadComplete: Boolean,
noDataObject: Object noDataObject: {
type: Object,
default: () => ({})
},
custom: Boolean,
swiperType: [Number, String]
}, },
watch: { watch: {
moduleList: { moduleList: {
handler (val) { handler (val) {
if (!val.length) {
this.datalist = []
this.imagelist = []
}
if (val.length && !this.imagelist.length) this.getDatalist() if (val.length && !this.imagelist.length) this.getDatalist()
}, },
deep: true deep: true
...@@ -133,7 +149,7 @@ export default { ...@@ -133,7 +149,7 @@ export default {
}, },
computed: { computed: {
moduleTitle () { moduleTitle () {
return this.moduleList[this.currentIndex]?.detailTitle return this.moduleList[this.currentIndex]?.detailTitle || ''
} }
}, },
created () { created () {
...@@ -167,6 +183,7 @@ export default { ...@@ -167,6 +183,7 @@ export default {
methods: { methods: {
getDatalist () { getDatalist () {
if (this.moduleList) { if (this.moduleList) {
this.currentIndex = 0
this.datalist = JSON.parse(JSON.stringify(this.moduleList)) this.datalist = JSON.parse(JSON.stringify(this.moduleList))
let num = 3 let num = 3
let diff = num - this.moduleList.length let diff = num - this.moduleList.length
...@@ -181,18 +198,20 @@ export default { ...@@ -181,18 +198,20 @@ export default {
} }
}, },
getImagelist () { getImagelist () {
let { datalist, autoplay } = this let { datalist, autoplay, style_object } = this
this.imagelist = JSON.parse(JSON.stringify(this.style_object)) this.imagelist = JSON.parse(JSON.stringify(style_object))
this.imagelist.forEach((item, index) => { this.imagelist.forEach((item, index) => {
const dataIndex = index - 1 < 0 ? datalist.length - 1 : index - 1 const dataIndex = index - 1 < 0 ? datalist.length - 1 : index - 1
item.isIndex = dataIndex item.isIndex = dataIndex
item.isToor = index item.isToor = index
item.imgUrl = datalist[dataIndex]?.[this.imgKey] || '' item.imgUrl = datalist[dataIndex]?.[this.imgKey] || ''
item.originalData = datalist[dataIndex]
item.x = 0 item.x = 0
}) })
if (autoplay) this.autoPlayFunction() if (autoplay) this.autoPlayFunction()
}, },
autoPlayFunction () { autoPlayFunction () {
if (!this.autoplay) return
if (this.stopAutoPlay || !this.playStatus) { if (this.stopAutoPlay || !this.playStatus) {
if (this.autoPlayTimer) { if (this.autoPlayTimer) {
clearTimeout(this.autoPlayTimer); clearTimeout(this.autoPlayTimer);
...@@ -208,42 +227,56 @@ export default { ...@@ -208,42 +227,56 @@ export default {
this.autoPlayTimer = null; this.autoPlayTimer = null;
return; return;
} }
// 执行轮播动画并递归调用自身 // 执行轮播动画并递归调用自身
this.updateCarouselPositions(); this.updateCarouselPositions();
this.autoPlayFunction(); this.autoPlayFunction();
}, this.interval); }, this.interval);
}, },
updateCarouselPositions (direction = 'left') { updateCarouselPositions (direction = 'left') {
let { imagelist, datalist } = this, let { imagelist, datalist, moduleList } = this,
len = datalist.length - 1, len = datalist.length - 1,
list = JSON.parse(JSON.stringify(this.style_object)) list = JSON.parse(JSON.stringify(this.style_object))
this.imagelist.forEach(item => { if (moduleList.length == 2) {
let toor = direction == 'left' ? this.imagelist.forEach((item, index) => {
(item.isToor - 1) < 0 ? imagelist.length - 1 : item.isToor - 1 if (index != 0) {
: (item.isToor + 1) > imagelist.length - 1 ? 0 : item.isToor + 1 let toor = item.isToor == 1 ? 2 : 1
item.isToor = toor item.isToor = toor
item.imgUrl = '' item.imgUrl = ''
item.class = list[toor].class item.class = list[toor].class
item.x = 0 item.x = 0
let isIndex = item.isIndex let isIndex = item.isIndex
item.isIndex = isIndex
if (direction == 'left' && item.class == 'block-right') { item.imgUrl = datalist[isIndex][this.imgKey] || ''
if (isIndex == len) isIndex = 2 item.index = list[toor].index
else if (isIndex == len - 1) isIndex = 1 }
else isIndex += 3 })
if (isIndex > len) isIndex = 0 } else {
} this.imagelist.forEach(item => {
if (direction == 'right' && item.class == 'block-left') { let toor = direction == 'left' ?
if (isIndex == 1) isIndex = len - 1 (item.isToor - 1) < 0 ? imagelist.length - 1 : item.isToor - 1
else if (isIndex == 0) isIndex = len - 2 : (item.isToor + 1) > imagelist.length - 1 ? 0 : item.isToor + 1
else isIndex -= 3 item.isToor = toor
if (isIndex < 0) isIndex = len item.imgUrl = ''
} item.class = list[toor].class
item.isIndex = isIndex item.x = 0
item.imgUrl = datalist[isIndex][this.imgKey] || '' let isIndex = item.isIndex
item.index = list[toor].index if (direction == 'left' && item.class == 'block-right') {
}) if (isIndex == len) isIndex = 2
else if (isIndex == len - 1) isIndex = 1
else isIndex += 3
if (isIndex > len) isIndex = 0
}
if (direction == 'right' && item.class == 'block-left') {
if (isIndex == 1) isIndex = len - 1
else if (isIndex == 0) isIndex = len - 2
else isIndex -= 3
if (isIndex < 0) isIndex = len
}
item.isIndex = isIndex
item.imgUrl = datalist[isIndex][this.imgKey] || ''
item.index = list[toor].index
})
}
let currentIndex = this.imagelist.findIndex(item => item.index == 1) let currentIndex = this.imagelist.findIndex(item => item.index == 1)
this.currentIndex = this.imagelist[currentIndex].isIndex this.currentIndex = this.imagelist[currentIndex].isIndex
}, },
...@@ -263,6 +296,8 @@ export default { ...@@ -263,6 +296,8 @@ export default {
} }
}, },
ends (e) { ends (e) {
let { moduleList } = this
if (moduleList.length == 1) return
let { blockX, ismove } = this let { blockX, ismove } = this
let pageX = e.changedTouches[0].pageX let pageX = e.changedTouches[0].pageX
let nums = ismove - pageX let nums = ismove - pageX
...@@ -275,8 +310,6 @@ export default { ...@@ -275,8 +310,6 @@ export default {
} }
if (nums > 50 || blockX < -30) this.updateCarouselPositions() if (nums > 50 || blockX < -30) this.updateCarouselPositions()
if (nums < -50 || blockX > 30) this.updateCarouselPositions('right') if (nums < -50 || blockX > 30) this.updateCarouselPositions('right')
this.endTimer = setTimeout(() => { this.endTimer = setTimeout(() => {
if (!this.playStatus) { if (!this.playStatus) {
this.playStatus = true this.playStatus = true
...@@ -359,7 +392,6 @@ export default { ...@@ -359,7 +392,6 @@ export default {
justify-content: center; justify-content: center;
z-index: 1; z-index: 1;
} }
.hide { .hide {
opacity: 0; opacity: 0;
} }
...@@ -369,7 +401,6 @@ export default { ...@@ -369,7 +401,6 @@ export default {
top: toRpx(68); top: toRpx(68);
height: toRpx(306); height: toRpx(306);
width: toRpx(468); width: toRpx(468);
transition: all 0.1s; transition: all 0.1s;
} }
.block-left { .block-left {
...@@ -424,4 +455,38 @@ export default { ...@@ -424,4 +455,38 @@ export default {
height: toRpx(236); height: toRpx(236);
} }
} }
</style> .type-2 {
.swiper-carousel {
height: toRpx(460);
.carousel-block {
border: none;
}
.block-left,
.block-right {
top: toRpx(68);
height: toRpx(306);
width: toRpx(604);
transition: all 0.1s;
}
.block-left {
left: toRpx(88);
z-index: 10;
}
.block-right {
left: toRpx(508);
z-index: 15;
}
.block-center {
left: toRpx(180);
top: toRpx(10);
width: toRpx(848);
height: toRpx(428);
}
}
flex-direction: column;
.icon {
width: toRpx(344);
height: toRpx(236);
}
}
</style>
\ No newline at end of file \ No newline at end of file
const target = ['ip', 'dev', 'uat', 'prod', 'beta'] const target = ['ip', 'dev', 'uat', 'prod', 'beta']
const index = 2 const index = 3
/** /**
* *
0本地 0本地
...@@ -64,7 +64,7 @@ const evaluationDomain = { ...@@ -64,7 +64,7 @@ const evaluationDomain = {
dev: 'http://gsc.dev.glsx.com.cn', dev: 'http://gsc.dev.glsx.com.cn',
beta: 'https://dj.beta.glsx.com.cn', //预发布 appid: wx9f91c1ec493eb425 beta: 'https://dj.beta.glsx.com.cn', //预发布 appid: wx9f91c1ec493eb425
uat: 'http://gsc.test.glsx.com.cn', //测试 appid: wxe10067a63c1856ac uat: 'http://gsc.test.glsx.com.cn', //测试 appid: wxe10067a63c1856ac
prod: 'https://dj.glsx.com.cn', prod: 'https://gsc.glsx.com.cn',
pet: 'https://cdptest.glsx.com.cn' //压测 appid: wx7ce755e425603084 pet: 'https://cdptest.glsx.com.cn' //压测 appid: wx7ce755e425603084
}[target[index]] }[target[index]]
......
<template>
<uni-popup
ref="packageDetailPopupRef"
type="center"
:is-mask-click="false"
animation
class="center-popup"
>
<view class="box">
<view class="title flex">
<view class="text">套餐详情</view>
<view
class="icon-close-box flex"
@click="close"
>
<uni-icons
class="icon-close"
type="closeempty"
:size="20"
color="#1A1A1A"
></uni-icons>
</view>
</view>
<view class="content">
<slot />
</view>
</view>
</uni-popup>
</template>
<script type='text/ecmascript-6'>
export default {
name: 'PackageDetailPopup',
props: {
},
data () {
return {
}
},
mounted () {
},
methods: {
open () {
this.$refs.packageDetailPopupRef.open();
},
close () {
this.$refs.packageDetailPopupRef.close();
this.$emit('cancel')
},
}
}
</script>
<style scoped lang='scss'>
.center-popup {
z-index: 99 !important;
}
.box {
width: toRpx(1400);
max-height: 80vh;
min-height: 32vh;
background: #ffffff;
border-radius: toRpx(48);
overflow: auto;
.title {
width: 100%;
height: toRpx(160);
background-color: #fff;
background-image: url('@/assets/images/boutique/customer-type-bg.webp');
background-repeat: no-repeat;
background-size: 100% 100%;
position: sticky;
top: 0;
z-index: 2;
.text {
font-weight: 500;
font-size: toRpx(40);
color: #1a1a1a;
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
}
.icon-close-box {
height: 100%;
margin-left: auto;
padding: 0 toRpx(48);
font-weight: 700;
}
}
.content {
width: 100%;
// height: toRpx(768);
}
}
</style>
\ No newline at end of file \ No newline at end of file
...@@ -72,6 +72,7 @@ ...@@ -72,6 +72,7 @@
> >
<view class="label">{{ k.label }}</view> <view class="label">{{ k.label }}</view>
<view class="value">{{ <view class="value">{{
k.formatter ? k.formatter(item[k.key]):
k.format k.format
? formatTime(item[k.key], k.key) ? formatTime(item[k.key], k.key)
: item[k.key] || "-" : item[k.key] || "-"
...@@ -140,6 +141,14 @@ export default { ...@@ -140,6 +141,14 @@ export default {
{ label: '礼券名称', key: 'couponName' }, { label: '礼券名称', key: 'couponName' },
{ label: '领券时间', key: 'receiveCouponDate', format: true }, { label: '领券时间', key: 'receiveCouponDate', format: true },
{ label: '销售顾问', key: 'employeeName' }, { label: '销售顾问', key: 'employeeName' },
{
label: '流量有效性', key: 'trafficEffectiveness', formatter: (val) => {
return {
1: '有效客户',
2: '无效客户'
}[val] || '-'
}
},
], ],
chooseItem: {} chooseItem: {}
} }
......
...@@ -570,6 +570,9 @@ export default { ...@@ -570,6 +570,9 @@ export default {
if (this.query.type == 'edit') { if (this.query.type == 'edit') {
this.title = '编辑评估单' this.title = '编辑评估单'
this.getDetail(this.query.evalOrderNo) this.getDetail(this.query.evalOrderNo)
uni.$track.add({ eventCode: 'app_edit_evaluation_from' })
} else {
uni.$track.add({ eventCode: 'app_add_evaluation_from' })
} }
this.formData.carBaseReqDTO.ownerTypeName = '个人' this.formData.carBaseReqDTO.ownerTypeName = '个人'
this.formData.carBaseReqDTO.usageTypeName = '非营运' this.formData.carBaseReqDTO.usageTypeName = '非营运'
...@@ -578,7 +581,6 @@ export default { ...@@ -578,7 +581,6 @@ export default {
this.formData.carBaseReqDTO.emissionStandardName = '国6' this.formData.carBaseReqDTO.emissionStandardName = '国6'
this.formData.carBaseReqDTO.overallRatingName = '优' this.formData.carBaseReqDTO.overallRatingName = '优'
this.userInfo = uni.$storage.get('userInfo') || {} this.userInfo = uni.$storage.get('userInfo') || {}
uni.$track.add({ eventCode: 'app_add_evaluation_from' })
}, },
methods: { methods: {
loadCachedData() { loadCachedData() {
......
...@@ -693,6 +693,7 @@ export default { ...@@ -693,6 +693,7 @@ export default {
}) })
}, },
switchTabByKey(key) { switchTabByKey(key) {
uni.$track.add({ eventCode: 'app_evaluation_tabChange' })
// 确保切换的key存在于当前的tabs数组中 // 确保切换的key存在于当前的tabs数组中
const tabExists = this.tabs.some(tab => tab.key === key) const tabExists = this.tabs.some(tab => tab.key === key)
if (tabExists) { if (tabExists) {
......
...@@ -235,6 +235,7 @@ export default { ...@@ -235,6 +235,7 @@ export default {
} }
}, },
mounted() { mounted() {
uni.$track.add({ eventCode: 'app_evaluation_from' })
this.getStatByStatus() this.getStatByStatus()
}, },
methods: { methods: {
......
...@@ -155,8 +155,10 @@ export default { ...@@ -155,8 +155,10 @@ export default {
// 打开弹窗 // 打开弹窗
this.$refs.notice.open() this.$refs.notice.open()
}, },
backPage () { async backPage () {
this.openNotice() const openNotice = await this.checkReport()
if (openNotice) this.openNotice()
else uni.navigateBack()
}, },
// name:跳转组件名,val:跳转参数 // name:跳转组件名,val:跳转参数
jump (name, val) { jump (name, val) {
...@@ -165,16 +167,18 @@ export default { ...@@ -165,16 +167,18 @@ export default {
this.transmissionOfData = val this.transmissionOfData = val
} }
}, },
changeDate (e) { async checkReport () {
if(e.fullDate == this.currentDate) return
let dailyReportRef = this.$refs['detail-DailyReport-Ref'] let dailyReportRef = this.$refs['detail-DailyReport-Ref']
if(dailyReportRef){ if (dailyReportRef) {
let { isDateWithin7Days , orderObj , isFilled} = dailyReportRef let { isDateWithin7Days, isFilled } = dailyReportRef
if((!isDateWithin7Days && !orderObj.id )|| isFilled) { if (!isDateWithin7Days || isFilled) return false
this.$refs.calendar.manualChangeDate(e)
return
}
} }
return true
},
async changeDate (e) {
if (e.fullDate == this.currentDate) return
const openNotice = await this.checkReport()
if (!openNotice) return this.$refs.calendar.manualChangeDate(e)
this.openNotice(null, false, _ => { this.openNotice(null, false, _ => {
this.$refs.calendar.manualChangeDate(e) this.$refs.calendar.manualChangeDate(e)
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!