Commit b3d647d1 by 前端

Merge branch 'SAAS+V4.46' of http://192.168.3.233:8090/glsx/gl_tape into SAAS+V4.46

2 parents a7218268 da91f5bc
...@@ -970,7 +970,7 @@ export default { ...@@ -970,7 +970,7 @@ export default {
position: absolute; position: absolute;
background: rgba(0, 0, 0, 0); background: rgba(0, 0, 0, 0);
pointer-events: none; pointer-events: none;
z-index: 9; z-index: 99;
} }
.draw-canvas { .draw-canvas {
pointer-events: auto; pointer-events: auto;
......
...@@ -47,6 +47,21 @@ ...@@ -47,6 +47,21 @@
<script type='text/ecmascript-6'> <script type='text/ecmascript-6'>
export default { export default {
name: 'CarBrands', name: 'CarBrands',
props: {
carBrandKey: {//品牌key
type: String,
default: 'carBrand'
},
carModelKey: {//车型key
type: String,
default: 'carModel'
},
echoData: {
type: Object,
default: () => ({})
},
customBoolean: Boolean
},
data () { data () {
return { return {
carlist: [], carlist: [],
...@@ -68,13 +83,13 @@ export default { ...@@ -68,13 +83,13 @@ export default {
return this.$store.state.user.historyStatus return this.$store.state.user.historyStatus
}, },
carModel () { carModel () {
return this.$store.state.user.customerInfo.carModel return this.customBoolean ? this.echoData[this.carModelKey] : this.$store.state.user.customerInfo.carModel
}, },
carBrandList () { carBrandList () {
return this.$store.state.user.carBrands || [] return this.$store.state.user.carBrands || []
}, },
carBrand () { carBrand () {
return this.$store.state.user.customerInfo.carBrand return this.customBoolean ? this.echoData[this.carBrandKey] : this.$store.state.user.customerInfo.carBrand
}, },
boutiqueDefaultCarBrandId () { boutiqueDefaultCarBrandId () {
return this.$store.state.user.boutiqueDefaultCarBrandId return this.$store.state.user.boutiqueDefaultCarBrandId
...@@ -127,7 +142,7 @@ export default { ...@@ -127,7 +142,7 @@ export default {
}, },
selectCar (e, auto = false, index, autoHideLoading = true) { selectCar (e, auto = false, index, autoHideLoading = true) {
let { clickFlga } = this let { clickFlga } = this
if (clickFlga) return if (clickFlga) return
this.clickFlga = true this.clickFlga = true
this.selectItem = { this.selectItem = {
carBrand: e.brandName, carBrand: e.brandName,
...@@ -192,19 +207,19 @@ export default { ...@@ -192,19 +207,19 @@ export default {
.select-box { .select-box {
margin: 40rpx 0; margin: 40rpx 0;
display: grid; display: grid;
grid-template-columns: repeat(3, 1fr); grid-template-columns: repeat(4, 1fr);
gap: 20rpx; gap: 32rpx;
overflow-y: scroll; overflow-y: scroll;
max-height: 50vh; max-height: 50vh;
padding-bottom: 60rpx; padding-bottom: 60rpx;
.select-item { .select-item {
text-align: center; text-align: center;
height: 68rpx; height: 68rpx;
line-height: 68rpx; line-height: 44rpx;
opacity: 1; opacity: 1;
border: 2rpx solid #dce0e6; border: 2rpx solid #dce0e6;
color: #292d33; color: #333;
font-size: 28rpx; font-size: 32rpx;
border-radius: 8rpx; border-radius: 8rpx;
&.checked { &.checked {
border: 2rpx solid #292d33; border: 2rpx solid #292d33;
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
ref="customerTagstVisible" ref="customerTagstVisible"
position="bottom" position="bottom"
:isFooter="false" :isFooter="false"
title="请选择客户标签" :title="title"
:maxHeight="1000" :maxHeight="1040"
@close="$emit('close')" @close="$emit('close')"
> >
<view class="select-views"> <view class="select-views">
...@@ -33,10 +33,10 @@ ...@@ -33,10 +33,10 @@
<view class="footer-btns"> <view class="footer-btns">
<view <view
class="btn cancel" class="btn cancel"
@click="close" @click="clearSwitch ? clear() : close()"
>取消</view> >{{cancelText}}</view>
<view <view
:class="['btn',{disabled:component_chooseList.length == 0}]" :class="['btn',{disabled: disabled}]"
@click="choose" @click="choose"
>确定</view> >确定</view>
</view> </view>
...@@ -47,7 +47,27 @@ ...@@ -47,7 +47,27 @@
export default { export default {
name: 'CustomerTags', name: 'CustomerTags',
props: { props: {
chooseList: Array chooseList: Array,
title: {
type: String,
default: '请选择客户标签'
},
disabledSwitch: {
type: Boolean,
default: true
},
cancelText: {
type: String,
default: '取消'
},
clearSwitch: {
type: Boolean,
default: false
},
sceneNumber: {
type: [Number, String],
default: -1
}
}, },
data () { data () {
return { return {
...@@ -73,6 +93,9 @@ export default { ...@@ -73,6 +93,9 @@ export default {
watchStatus () { watchStatus () {
return this.$store.state.user.historyStatus return this.$store.state.user.historyStatus
}, },
disabled () {
return this.disabledSwitch && this.component_chooseList.length == 0
}
}, },
mounted () { mounted () {
}, },
...@@ -80,10 +103,11 @@ export default { ...@@ -80,10 +103,11 @@ export default {
open () { open () {
this.$refs.customerTagstVisible.open() this.$refs.customerTagstVisible.open()
const userInfo = uni.$storage.get("userInfo"), const userInfo = uni.$storage.get("userInfo"),
{ sceneType } = userInfo; { sceneType } = userInfo,
{ sceneNumber } = this
uni.$api.customerApi uni.$api.customerApi
.findCustomerTags({ .findCustomerTags({
scene: sceneType, scene: sceneNumber > -1 ? sceneNumber : sceneType,
}) })
.then((res) => { .then((res) => {
this.list = res || [] this.list = res || []
...@@ -105,9 +129,14 @@ export default { ...@@ -105,9 +129,14 @@ export default {
return component_chooseList.findIndex(e => e.labelId == item.labelId) != -1 return component_chooseList.findIndex(e => e.labelId == item.labelId) != -1
}, },
choose () { choose () {
if (this.component_chooseList.length == 0) return if (this.disabled) return
this.$emit('select', this.component_chooseList) this.$emit('select', this.component_chooseList)
this.close(); this.close();
},
clear () {
console.log(123)
this.component_chooseList = []
this.$forceUpdate()
} }
} }
} }
...@@ -116,7 +145,7 @@ export default { ...@@ -116,7 +145,7 @@ export default {
<style scoped lang='scss'> <style scoped lang='scss'>
.select-views { .select-views {
overflow-y: scroll; overflow-y: scroll;
max-height: 50vh; max-height: 60vh;
position: relative; position: relative;
padding-bottom: 128rpx; padding-bottom: 128rpx;
.select-group { .select-group {
...@@ -129,20 +158,21 @@ export default { ...@@ -129,20 +158,21 @@ export default {
.select-box { .select-box {
display: grid; display: grid;
grid-template-columns: repeat(3, 1fr); grid-template-columns: repeat(4, 1fr);
gap: 20rpx; gap: 32rpx;
.select-item { .select-item {
text-align: center; text-align: center;
justify-content: center; justify-content: center;
opacity: 1; opacity: 1;
border: 2rpx solid #dce0e6; border: 2rpx solid #dce0e6;
color: #292d33; color: #333;
font-size: 28rpx; font-size: 32rpx;
border-radius: 8rpx; border-radius: 8rpx;
position: relative; position: relative;
box-sizing: border-box; box-sizing: border-box;
padding:13rpx 40rpx; padding: 13rpx 40rpx;
word-break: break-all; word-break: break-all;
line-height: 44rpx;
.sprite-icon { .sprite-icon {
display: none; display: none;
position: absolute; position: absolute;
......
...@@ -85,19 +85,19 @@ export default { ...@@ -85,19 +85,19 @@ export default {
.select-box { .select-box {
margin: 40rpx 0; margin: 40rpx 0;
display: grid; display: grid;
grid-template-columns: repeat(3, 1fr); grid-template-columns: repeat(4, 1fr);
gap: 20rpx; gap: 32rpx;
overflow-y: scroll; overflow-y: scroll;
max-height: 50vh; max-height: 50vh;
padding-bottom: 60rpx; padding-bottom: 60rpx;
.select-item { .select-item {
text-align: center; text-align: center;
height: 68rpx; height: 68rpx;
line-height: 68rpx; line-height: 44rpx;
opacity: 1; opacity: 1;
border: 2rpx solid #dce0e6; border: 2rpx solid #dce0e6;
color: #292d33; color: #333;
font-size: 28rpx; font-size: 32rpx;
border-radius: 8rpx; border-radius: 8rpx;
&.checked { &.checked {
border: 2rpx solid #292d33; border: 2rpx solid #292d33;
......
<template>
<view
class="case-item"
@click="jumpDetail(item)"
>
<image
class="img"
:src="item.cover"
:style="imgStyle"
mode="aspectFill"
></image>
<view class="case-info">
<view class="case-name text-hide">{{ item.title }}</view>
<template v-for="(j, ind) in caseInfo">
<view
class="case-text flex"
:key="ind"
>
<view class="case-label">{{ j.label }}:</view>
<view :class="['case-value', j.class]">
<template v-if="j.format">
{{ j.format(item) }}
</template>
<template v-else>
{{ item[j.key] || '--' }}
</template>
</view>
</view>
</template>
</view>
</view>
</template>
<script type='text/ecmascript-6'>
export default {
name: 'CaseItem',
props: {
item: Object,
source: {
type: Number,
default: 1
},
visitsId: [Number, String],
imgStyle: String
},
data () {
return {
caseInfo: [
{
label: '业务场景',
class: 'text-hide',
format: (val) => {
// 业务场景:0-会员权益/升级;1-精品升级;2-次新车转化;3-售后众筹;4-积分商城
return val ? {
0: '会员权益/升级',
1: '精品升级',
2: '次新车转化',
3: '售后众筹',
4: '积分商城'
}[val.scene] : '--'
}
},
{
label: '客户标签',
key: 'tags',
class: 'text-hide'
},
{
label: '适用套餐',
key: 'goods',
class: 'text-two-line'
},
],
}
},
mounted () {
},
methods: {
jumpDetail (item) {
const { source, visitsId } = this
let params = `id=${item.id}&source=${source}`
if (visitsId) params += `&visitsId=${visitsId}`
// 类型:0-图片;1-视频;2-pdf;3-富文本
let url = `/pages/common/caseDetail?${params}`
if (item.type != 3) {
let fileUrl = item?.detailInfos[0]?.image
if (item.type == 2) url = `/pages/common/webview?fileUrl=${fileUrl}&title=${item.title}&${params}`
if (item.type == 1 || item.type == 0) url = `/pages/boutique/preview?tabName=${item.title}&sourceType=${item.type == 1 ? 2 : 1}&detailUrl=${fileUrl}&${params}`
}
uni.navigateTo({
url: `${url}`
})
},
}
}
</script>
<style scoped lang='scss'>
.case-item {
width: 100%;
height: 100%;
background: #ffffff;
box-shadow: 0 8rpx 24rpx 0 #2c66f71a;
border-radius: 16rpx;
display: flex;
flex-direction: column;
overflow: hidden;
.img {
width: 100%;
height: 324rpx;
}
.case-name {
font-weight: 500;
font-size: 28rpx;
color: #333333;
line-height: 48rpx;
padding: 16rpx 32rpx 8rpx;
}
.case-text {
align-items: flex-start;
font-size: 24rpx;
color: #666666;
line-height: 40rpx;
padding: 0 32rpx;
margin-bottom: 2rpx;
}
.case-label {
width: 120rpx;
flex-shrink: 0;
}
}
</style>
\ No newline at end of file \ No newline at end of file
...@@ -89,6 +89,10 @@ ...@@ -89,6 +89,10 @@
<car-brands <car-brands
ref="carBrandVisible" ref="carBrandVisible"
@select="handleSelect($event,'carBrandVisible')" @select="handleSelect($event,'carBrandVisible')"
:echoData="customerInfo"
carBrandKey="carBrand"
carModelKey="brandModel"
customBoolean
/> />
<customer-tags <customer-tags
ref="customerTagstVisible" ref="customerTagstVisible"
...@@ -268,6 +272,7 @@ export default { ...@@ -268,6 +272,7 @@ export default {
if (popkey == 'carBrandVisible') { if (popkey == 'carBrandVisible') {
this.$refs.carBrandVisible.close() this.$refs.carBrandVisible.close()
this.customerInfo.brandModel = item.name this.customerInfo.brandModel = item.name
this.customerInfo.carBrand = item.carChildsBrandName
} else if (popkey == 'customerTagstVisible') { } else if (popkey == 'customerTagstVisible') {
let names = [], let names = [],
ids = [] ids = []
......
...@@ -25,12 +25,12 @@ ...@@ -25,12 +25,12 @@
export default { export default {
name: 'ReceptionSence', name: 'ReceptionSence',
props: { props: {
customerInfo:Object customerInfo: Object
}, },
data () { data () {
return { return {
list:[], list: [],
id:'' id: ''
} }
}, },
watch: { watch: {
...@@ -52,7 +52,7 @@ export default { ...@@ -52,7 +52,7 @@ export default {
watchStatus () { watchStatus () {
return this.$store.state.user.historyStatus return this.$store.state.user.historyStatus
}, },
watchCustomerInfo() { watchCustomerInfo () {
return this.customerInfo return this.customerInfo
}, },
}, },
...@@ -70,7 +70,7 @@ export default { ...@@ -70,7 +70,7 @@ export default {
}) })
.then((res) => { .then((res) => {
this.list = res || [] this.list = res || []
}).catch(err =>{ }).catch(err => {
this.list = [] this.list = []
}) })
}, },
...@@ -90,15 +90,15 @@ export default { ...@@ -90,15 +90,15 @@ export default {
.select-box { .select-box {
margin: 40rpx 0; margin: 40rpx 0;
display: grid; display: grid;
grid-template-columns: repeat(3, 1fr); grid-template-columns: repeat(4, 1fr);
gap: 20rpx; gap: 32rpx;
overflow-y: scroll; overflow-y: scroll;
max-height: 50vh; max-height: 50vh;
padding-bottom: 60rpx; padding-bottom: 60rpx;
.select-item { .select-item {
text-align: center; text-align: center;
height: 68rpx; height: 68rpx;
line-height: 68rpx; line-height: 44rpx;
opacity: 1; opacity: 1;
border: 2rpx solid #dce0e6; border: 2rpx solid #dce0e6;
color: #292d33; color: #292d33;
......
const target = ["ip", "dev", "uat", "prod", "beta"]; const target = ["ip", "dev", "uat", "prod", "beta"];
const index = 2; const index = 1;
/** /**
* *
0本地 0本地
......
export default { export default {
data() { data () {
return { return {
goodsId: '', goodsId: '',
visitsId: '' visitsId: '',
source: 1
} }
}, },
onLoad(options) { onLoad (options) {
this.visitsId = options.visitsId this.visitsId = options.visitsId || ''
this.goodsId = options.id this.goodsId = options.id
if (options.source) this.source = options.source
this.addRecord() this.addRecord()
}, },
methods: { methods: {
addRecord() { addRecord () {
const { shopMerchantId: merchantId, shopMerchantName: merchantName } = uni.$storage.get('userInfo') const { shopMerchantId: merchantId, shopMerchantName: merchantName } = uni.$storage.get('userInfo')
const params = { const params = {
goodsId: this.goodsId, goodsId: this.goodsId,
goodsType: 0, goodsType: 0,
merchantId, merchantId,
merchantName, merchantName,
visitsId: this.visitsId searchSource: this.source
} }
if (this.visitsId) params.visitsId = this.visitsId
uni.$api.commonApi.addRecord(params).then(res => { uni.$api.commonApi.addRecord(params).then(res => {
this.addId = res this.addId = res
}) })
} }
}, },
onUnload() { onUnload () {
const params = { const params = {
id: this.addId, id: this.addId
visitsId: this.visitsId
} }
if (this.visitsId) params.visitsId = this.visitsId
uni.$api.commonApi.leaveRecord(params).then(res => { uni.$api.commonApi.leaveRecord(params).then(res => {
console.log(res, 888) console.log(res, 888)
}) })
......
<template> <template>
<view class="container" @click="hideSelect"> <view
<view class="bg"></view> class="container"
<view class="box"> @click="hideSelect"
<view class="select-box"> >
<view class="select" @click.stop="selectType"> <wnCanvas
{{selectIndex}} :canvasId="`c-${madiaId}`"
<view class="sprite-icon icon-arrow-bottom"></view> :drawStatus="penSwitch"
</view> custom
<view class="pop-box" v-show="isSelect"> :scaleSwitch="false"
<view v-for="i in selectList" :key="i.label" class="type-item" :class="i.value == selectIndex ? 'active' : ''" @click="chooseType(i)">{{i.label}}</view> ref="caseCanvas"
<!-- <view class="type-item active">全部</view> >
<template slot="customContent">
<view class="bg"></view>
<view class="box">
<view class="select-box">
<view
class="select"
@click.stop="selectType"
>
{{selectIndex}}
<view class="sprite-icon icon-arrow-bottom"></view>
</view>
<view
class="pop-box"
v-show="isSelect"
>
<view
v-for="i in selectList"
:key="i.label"
class="type-item"
:class="i.value == selectIndex ? 'active' : ''"
@click="chooseType(i)"
>{{i.label}}</view>
<!-- <view class="type-item active">全部</view>
<view class="type-item">视频</view> <view class="type-item">视频</view>
<view class="type-item">图片</view> <view class="type-item">图片</view>
<view class="type-item">PDF</view> --> <view class="type-item">PDF</view> -->
</view> </view>
</view> </view>
<view class="input-box"> <view class="input-box">
<input <input
type="text" type="text"
class="input" class="input"
v-model="name" v-model="name"
maxlength="50" maxlength="50"
@blur="input($event)" @blur="input($event)"
@focus="focus" @focus="focus"
/> />
<view <view
class="input-tips" class="input-tips"
v-if="!isSearch" v-if="!isSearch"
>搜索图片/视频名称<uni-icons >搜索图片/视频名称<uni-icons
type="search" type="search"
class="icon" class="icon"
color="#999" color="#999"
size="20" size="20"
></uni-icons></view> ></uni-icons></view>
<uni-icons <uni-icons
v-if="isSearch" v-if="isSearch"
type="closeempty" type="closeempty"
class="close" class="close"
color="#999" color="#999"
@click="handleClear" @click="handleClear"
size="20" size="20"
></uni-icons> ></uni-icons>
</view> </view>
<scroll-view <scroll-view
class="record-box" class="record-box"
scroll-y scroll-y
:scroll-top="scrollTop" :scroll-top="scrollTop"
> >
<view class="list"> <view class="list">
<template v-if="list.length"> <template v-if="list.length">
<template v-for="item in list"> <template v-for="item in list">
<view <view
class="item" class="item"
:key="item.id" :key="item.id"
> >
<view <view
class="item-autio" class="item-autio"
@click="playVideo(item)" @click="playVideo(item)"
> >
<image
:src="item.thumbnailUrl"
class="cover-box"
></image>
<image
v-if="item.materialFormat == 1"
src="../../assets/images/boutique/play.png"
class="play-box"
></image>
</view>
<view class="item-desc">{{ item.name }}</view>
</view>
</template>
</template>
<template v-else>
<view class="nothing flex">
<image <image
:src="item.thumbnailUrl" class="icon"
class="cover-box" src="../../assets/images/home/nothing.webp"
></image> />
<image 暂无数据
v-if="item.materialFormat == 1"
src="../../assets/images/boutique/play.png"
class="play-box"
></image>
</view> </view>
<view class="item-desc">{{ item.name }}</view> </template>
</view>
</template>
</template>
<template v-else>
<view class="nothing flex">
<image
class="icon"
src="../../assets/images/home/nothing.webp"
/>
暂无数据
</view> </view>
</template> </scroll-view>
</view> </view>
</scroll-view> </template>
</view> </wnCanvas>
<view <view
class="popup-box" class="popup-box"
v-if="popupShow" v-if="popupShow"
...@@ -110,7 +135,7 @@ ...@@ -110,7 +135,7 @@
></video> ></video>
</view> </view>
</view> </view>
</view> </view>
</template> </template>
<script type="text/ecmascript-6"> <script type="text/ecmascript-6">
...@@ -137,11 +162,9 @@ export default { ...@@ -137,11 +162,9 @@ export default {
} }
}, },
props: { props: {
views: { show: Boolean,
type: Array, madiaId: Number,
default: () => [] penSwitch: Boolean,
},
show: Boolean
}, },
computed: { computed: {
watchStatus () { watchStatus () {
...@@ -150,7 +173,7 @@ export default { ...@@ -150,7 +173,7 @@ export default {
}, },
watch: { watch: {
watchStatus: { watchStatus: {
handler(val) { handler (val) {
this.selectIndex = '全部' this.selectIndex = '全部'
// console.log(val) // console.log(val)
// this.name = ''; // this.name = '';
...@@ -161,19 +184,19 @@ export default { ...@@ -161,19 +184,19 @@ export default {
immediate: true immediate: true
}, },
show: { show: {
handler(newValue) { handler (newValue) {
if(newValue) this.init() if (newValue) this.init()
}, },
immediate:true immediate: true
} }
}, },
mounted() { mounted () {
this.init() this.init()
this.getCategory() this.getCategory()
}, },
methods: { methods: {
playVideo (item) { playVideo (item) {
this.$emit('preview',item) this.$emit('preview', item)
}, },
focus () { focus () {
this.isSearch = true this.isSearch = true
...@@ -192,27 +215,30 @@ export default { ...@@ -192,27 +215,30 @@ export default {
this.name = '' this.name = ''
this.isSearch = false this.isSearch = false
this.getCaseList(this.selectIndex == '全部' ? '' : this.selectIndex) this.getCaseList(this.selectIndex == '全部' ? '' : this.selectIndex)
this.clearCanvas()
}, },
input(e) { input (e) {
this.name = e.detail.value this.name = e.detail.value
if (this.name == '') if (this.name == '')
this.isSearch = false this.isSearch = false
// this.list = this.searchList.filter(i => i.name.includes(this.name)) // this.list = this.searchList.filter(i => i.name.includes(this.name))
this.getCaseList(this.selectIndex == '全部' ? '' : this.selectIndex, this.name) this.getCaseList(this.selectIndex == '全部' ? '' : this.selectIndex, this.name)
this.clearCanvas()
}, },
selectType() { selectType () {
this.isSelect = !this.isSelect this.isSelect = !this.isSelect
}, },
hideSelect() { hideSelect () {
this.isSelect = false this.isSelect = false
}, },
chooseType(val) { chooseType (val) {
console.log(val) console.log(val)
this.selectIndex = val.value this.selectIndex = val.value
this.isSelect = false this.isSelect = false
this.getCaseList(this.selectIndex == '全部' ? '' : this.selectIndex, this.name) this.getCaseList(this.selectIndex == '全部' ? '' : this.selectIndex, this.name)
this.clearCanvas()
}, },
async getCaseList(category = '', name = '') { async getCaseList (category = '', name = '') {
const userInfo = uni.$storage.get("userInfo"), const userInfo = uni.$storage.get("userInfo"),
{ shopMerchantId } = userInfo; // 44217687 { shopMerchantId } = userInfo; // 44217687
const params = { merchantId: shopMerchantId, category } const params = { merchantId: shopMerchantId, category }
...@@ -226,7 +252,7 @@ export default { ...@@ -226,7 +252,7 @@ export default {
this.scrollTop = 0 this.scrollTop = 0
}, 100); }, 100);
}, },
async getCategory() { async getCategory () {
const userInfo = uni.$storage.get("userInfo"), const userInfo = uni.$storage.get("userInfo"),
{ shopMerchantId } = userInfo; { shopMerchantId } = userInfo;
const res = await uni.$api.boutiqueApi.getCategory({ merchantId: shopMerchantId }) const res = await uni.$api.boutiqueApi.getCategory({ merchantId: shopMerchantId })
...@@ -238,7 +264,10 @@ export default { ...@@ -238,7 +264,10 @@ export default {
} }
}) })
this.selectList = [...this.selectList, ..._list] this.selectList = [...this.selectList, ..._list]
} },
clearCanvas () {
this.$refs.caseCanvas.clearBoard()
},
}, },
} }
</script> </script>
...@@ -282,7 +311,7 @@ export default { ...@@ -282,7 +311,7 @@ export default {
.pop-box { .pop-box {
width: 368rpx; width: 368rpx;
// height: 248rpx; // height: 248rpx;
background: #FFFFFF; background: #ffffff;
border-radius: 16rpx; border-radius: 16rpx;
padding: 16rpx 0; padding: 16rpx 0;
.type-item { .type-item {
...@@ -294,7 +323,7 @@ export default { ...@@ -294,7 +323,7 @@ export default {
margin-bottom: 0; margin-bottom: 0;
} }
&.active { &.active {
background-color: #ECF1FF; background-color: #ecf1ff;
} }
} }
} }
...@@ -380,7 +409,7 @@ export default { ...@@ -380,7 +409,7 @@ export default {
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
display: -webkit-box; display: -webkit-box;
-webkit-line-clamp: 2; // 控制多行的行数 -webkit-line-clamp: 2; // 控制多行的行数
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
padding-bottom: 0; padding-bottom: 0;
} }
......
...@@ -85,7 +85,7 @@ ...@@ -85,7 +85,7 @@
<template v-if="customerType == 1"> <template v-if="customerType == 1">
<template v-if="pageParams.received"> <template v-if="pageParams.received">
<view class="ok"> <view class="ok">
<view class="ok-status"></view> <view class="ok-status"></view>
<!-- <image <!-- <image
class="ok-status" class="ok-status"
src="@/assets/images/boutique/ok-status.webp" src="@/assets/images/boutique/ok-status.webp"
...@@ -94,11 +94,15 @@ ...@@ -94,11 +94,15 @@
</view> </view>
</template> </template>
<template v-else> <template v-else>
<image v-if="pageParams.QRURL" <image
v-if="pageParams.QRURL"
class="qr-code-img" class="qr-code-img"
:src="pageParams.QRURL" :src="pageParams.QRURL"
/> />
<view v-else class="no-data"> <view
v-else
class="no-data"
>
<view class="no-data-img"></view> <view class="no-data-img"></view>
<!-- <image <!-- <image
src="@/assets/images/boutique/no-data.webp" src="@/assets/images/boutique/no-data.webp"
...@@ -231,7 +235,7 @@ export default { ...@@ -231,7 +235,7 @@ export default {
watch: { watch: {
watchCustomerInfo: { watchCustomerInfo: {
immediate: true, immediate: true,
handler(newval) { handler (newval) {
this.customerInfo = Object.assign(this.customerInfo, newval) this.customerInfo = Object.assign(this.customerInfo, newval)
try { try {
// 监听完成接待修改数据,同步修改生成优惠券按钮状态 // 监听完成接待修改数据,同步修改生成优惠券按钮状态
...@@ -246,7 +250,7 @@ export default { ...@@ -246,7 +250,7 @@ export default {
}, },
watchStatus: { watchStatus: {
immediate: true, immediate: true,
handler(newval) { handler (newval) {
this.close() this.close()
this.closeAllPopup() this.closeAllPopup()
this.pageParams.QRURL = '' this.pageParams.QRURL = ''
...@@ -260,7 +264,7 @@ export default { ...@@ -260,7 +264,7 @@ export default {
} }
} }
}, },
show() { show () {
this.closeAllPopup() this.closeAllPopup()
} }
}, },
...@@ -293,7 +297,7 @@ export default { ...@@ -293,7 +297,7 @@ export default {
} }
}, },
mounted () { mounted () {
}, },
methods: { methods: {
init () { init () {
...@@ -332,7 +336,7 @@ export default { ...@@ -332,7 +336,7 @@ export default {
const { customerName, phoneNumber, staffName } = this.customerInfo const { customerName, phoneNumber, staffName } = this.customerInfo
this.isCheck = customerName && phoneNumber && staffName this.isCheck = customerName && phoneNumber && staffName
}, },
chooseCoupon(item) { chooseCoupon (item) {
this.pageParams.couponId = item.id this.pageParams.couponId = item.id
this.customerInfo.couponTypeName = item.couponTypeName this.customerInfo.couponTypeName = item.couponTypeName
this.$store.dispatch('setCustomerInfo', this.customerInfo) this.$store.dispatch('setCustomerInfo', this.customerInfo)
...@@ -349,12 +353,12 @@ export default { ...@@ -349,12 +353,12 @@ export default {
this.$refs[e].open(); this.$refs[e].open();
this.$emit('hideTool') this.$emit('hideTool')
}, },
open(customerType, customerCouponId) { open (customerType, customerCouponId) {
this.$refs.couponPopup.open() this.$refs.couponPopup.open()
this.customerType = customerType this.customerType = customerType
if (customerCouponId) { if (customerCouponId) {
this.pageParams.customerCouponId = customerCouponId this.pageParams.customerCouponId = customerCouponId
this.pageParams.customerQr = qrcode.createQrCodeImg(`couponId=${customerCouponId}`, {size: 200}) this.pageParams.customerQr = qrcode.createQrCodeImg(`couponId=${customerCouponId}`, { size: 200 })
} }
this.init() this.init()
try { try {
...@@ -367,7 +371,7 @@ export default { ...@@ -367,7 +371,7 @@ export default {
close () { close () {
this.$refs.couponPopup?.close() this.$refs.couponPopup?.close()
}, },
handleSelect(item, popkey) { handleSelect (item, popkey) {
console.log(item, popkey) console.log(item, popkey)
this.$refs[popkey].close(); this.$refs[popkey].close();
if (popkey == "employeeBoxVisible") { if (popkey == "employeeBoxVisible") {
...@@ -404,7 +408,7 @@ export default { ...@@ -404,7 +408,7 @@ export default {
} }
return flag return flag
}, },
async createCoupon() { async createCoupon () {
if (this.pageParams.received) return if (this.pageParams.received) return
if (!this.isCheck) return // 按钮置灰的情况 if (!this.isCheck) return // 按钮置灰的情况
try { try {
...@@ -620,8 +624,8 @@ export default { ...@@ -620,8 +624,8 @@ export default {
.select-box { .select-box {
margin: 40rpx 0; margin: 40rpx 0;
display: grid; display: grid;
grid-template-columns: repeat(3, 1fr); grid-template-columns: repeat(4, 1fr);
gap: 20rpx; gap: 32rpx;
overflow-y: scroll; overflow-y: scroll;
max-height: 50vh; max-height: 50vh;
padding-bottom: 60rpx; padding-bottom: 60rpx;
......
...@@ -146,7 +146,7 @@ export default { ...@@ -146,7 +146,7 @@ export default {
}, },
methods: { methods: {
init () { init () {
if(!this.show) return if (!this.show) return
let { optionals } = this.boutiqueMediaConfig[this.currentCar] let { optionals } = this.boutiqueMediaConfig[this.currentCar]
optionals.map(e => e.checked = false) optionals.map(e => e.checked = false)
this.optionalsList = optionals this.optionalsList = optionals
...@@ -172,6 +172,7 @@ export default { ...@@ -172,6 +172,7 @@ export default {
height: calc(100vh - 236rpx); height: calc(100vh - 236rpx);
box-sizing: border-box; box-sizing: border-box;
margin: 236rpx auto 0; margin: 236rpx auto 0;
animation: show-view-opacity 0.15s forwards;
.views-title-box { .views-title-box {
height: 96rpx; height: 96rpx;
background: #edf2ff; background: #edf2ff;
......
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
:canvasId="`c-${madiaId}`" :canvasId="`c-${madiaId}`"
:drawStatus="penSwitch" :drawStatus="penSwitch"
custom custom
@scale="$emit('scale',$event)"
:scaleSwitch="false" :scaleSwitch="false"
ref="receptionCanvas" ref="receptionCanvas"
> >
...@@ -186,7 +185,7 @@ export default { ...@@ -186,7 +185,7 @@ export default {
immediate: true, immediate: true,
handler (newval) { handler (newval) {
if (newval) { if (newval) {
if (newval && this.currentItem && this.tabIndex == 0) this.changePreView(this.currentItem, false) if (newval && this.currentItem && this.tabIndex == 0) this.changePreView(this.currentItem, false, false)
} }
} }
} }
...@@ -222,7 +221,7 @@ export default { ...@@ -222,7 +221,7 @@ export default {
}, },
hasOptionals () { hasOptionals () {
let flag = false let flag = false
if(this.show) flag = this.boutiqueMediaConfig[this.currentCarString].optionals && this.boutiqueMediaConfig[this.currentCarString].optionals.length if (this.show) flag = this.boutiqueMediaConfig[this.currentCarString].optionals && this.boutiqueMediaConfig[this.currentCarString].optionals.length
return flag return flag
} }
...@@ -235,7 +234,7 @@ export default { ...@@ -235,7 +234,7 @@ export default {
this.updateViewKey = Date.now() this.updateViewKey = Date.now()
this.clearCanvas() this.clearCanvas()
}, },
changePreView (e, leave = true) { changePreView (e, leave = true, clearBoard = true) {
let { currentItem } = this, let { currentItem } = this,
{ id, carModelName, name, materialType } = e, { id, carModelName, name, materialType } = e,
key = `${carModelName}_${id}`, key = `${carModelName}_${id}`,
...@@ -244,7 +243,7 @@ export default { ...@@ -244,7 +243,7 @@ export default {
this.currentItem = e this.currentItem = e
this.updateViewKey = Date.now() this.updateViewKey = Date.now()
if (this.isPreview) return if (this.isPreview) return
this.clearCanvas() if (clearBoard) this.clearCanvas()
if (value) { if (value) {
value.openCount += 1 value.openCount += 1
value.entryTime = Date.now() value.entryTime = Date.now()
...@@ -374,6 +373,7 @@ export default { ...@@ -374,6 +373,7 @@ export default {
height: calc(100vh - 144rpx); height: calc(100vh - 144rpx);
margin-top: 144rpx; margin-top: 144rpx;
padding: 0 0 64rpx 64rpx; padding: 0 0 64rpx 64rpx;
animation: show-view-opacity 0.15s forwards;
.left-content { .left-content {
width: 1328rpx; width: 1328rpx;
height: 100%; height: 100%;
......
...@@ -433,13 +433,5 @@ export default { ...@@ -433,13 +433,5 @@ export default {
} }
} }
} }
@keyframes show-view-opacity {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
</style> </style>
\ No newline at end of file \ No newline at end of file
<template> <template>
<view class="container"> <view class="container">
<view class="bg"></view> <wnCanvas
<view class="box"> :canvasId="`c-${madiaId}`"
<view class="data-tabs-box"> :drawStatus="penSwitch"
<view class="data-tabs"> custom
<template v-for="(item, index) in dateList"> :scaleSwitch="false"
<view ref="historyCanvas"
:class="['tab flex', { active: groupIndex == item.id }]" >
:key="index" <template slot="customContent">
@click="changeIndex(item.id)" <view class="bg"></view>
>{{ item.text }}</view> <view class="box">
</template> <view class="data-tabs-box">
<view :class="['active-btn', `active-btn-${groupIndex - 1}`]"></view> <view class="data-tabs">
</view> <template v-for="(item, index) in dateList">
</view>
<scroll-view
class="record-box"
scroll-y
@scrolltolower="pageonReachBottom"
>
<view class="list">
<template v-if="flag">
<template v-if="list.length">
<template v-for="item in list">
<view <view
class="item" :class="['tab flex', { active: groupIndex == item.id }]"
:key="item.id" :key="index"
@click="handleLook(item.goodsList)" @click="changeIndex(item.id)"
> >{{ item.text }}</view>
<image </template>
class="image-box" <view :class="['active-btn', `active-btn-${groupIndex - 1}`]"></view>
v-if="item.payVouchers.length" </view>
:src="item.payVouchers[0].payVoucher" </view>
/> <scroll-view
<image class="record-box"
v-else scroll-y
class="image-box photo" @scrolltolower="pageonReachBottom"
src="../../assets/images/boutique/photos.png" >
/> <view class="list">
<view class="gradient-overlay"></view> <template v-if="flag">
<view class="box-desc"> <template v-if="list.length">
<view class="name"> <template v-for="item in list">
{{ item.customerName.substring(0, 1) + "*" || "-" }} <view
</view> class="item"
<view class="goods-name flex"> :key="item.id"
<view class="goods-label">{{ @click="handleLook(item.goodsList)"
>
<image
class="image-box"
v-if="item.payVouchers.length"
:src="item.payVouchers[0].payVoucher"
/>
<image
v-else
class="image-box photo"
src="../../assets/images/boutique/photos.png"
/>
<view class="gradient-overlay"></view>
<view class="box-desc">
<view class="name">
{{ item.customerName.substring(0, 1) + "*" || "-" }}
</view>
<view class="goods-name flex">
<view class="goods-label">{{
item.goodsList.length item.goodsList.length
? item.goodsList[0].goodsName ? item.goodsList[0].goodsName
: "-" : "-"
}}</view> }}</view>
X{{ item.goodsList.length }}件 X{{ item.goodsList.length }}件
<image <image
class="image-look" class="image-look"
src="../../assets/images/boutique/look.png" src="../../assets/images/boutique/look.png"
/> />
</view> </view>
<template v-for="(k, ind) in itemObject"> <template v-for="(k, ind) in itemObject">
<view <view
class="info flex" class="info flex"
:key="ind" :key="ind"
> >
<view class="label">{{ k.label }}</view> <view class="label">{{ k.label }}</view>
<view :class="{ value: true, bold: k.isBold }">{{ <view :class="{ value: true, bold: k.isBold }">{{
k.format k.format
? formatTime(item[k.key]) ? formatTime(item[k.key])
: item[k.key] || "-" : item[k.key] || "-"
}}</view> }}</view>
</view> </view>
</template> </template>
<view class="info flex"> <view class="info flex">
<view class="label">支付方式</view> <view class="label">支付方式</view>
<view class="value"> <view class="value">
<image <image
class="image-pay" class="image-pay"
:src=" :src="
require(`@/assets/images/boutique/pay_${item.payType}.png`) require(`@/assets/images/boutique/pay_${item.payType}.png`)
" "
/> />
</view>
</view>
<view class="info flex">
<view class="label">实收金额</view>
<view class="value bold">¥ <text>{{ item.totalPrice.toFixed(2) }}</text></view>
</view>
</view> </view>
</view> </view>
<view class="info flex"> </template>
<view class="label">实收金额</view> </template>
<view class="value bold">¥ <text>{{ item.totalPrice.toFixed(2) }}</text></view> <template v-else>
</view> <view class="nothing flex">
<image
class="icon"
src="../../assets/images/home/nothing.webp"
/>
暂无数据
</view> </view>
</view> </template>
</template> </template>
</view>
<template v-if="nothing">
<view class="end-text">到底了!</view>
</template> </template>
<template v-else> </scroll-view>
<view class="nothing flex">
<image
class="icon"
src="../../assets/images/home/nothing.webp"
/>
暂无数据
</view>
</template>
</template>
</view> </view>
<template v-if="nothing"> </template>
<view class="end-text">到底了!</view> </wnCanvas>
</template>
</scroll-view>
</view>
<MessageBox <MessageBox
ref="historyRef" ref="historyRef"
title="订单商品" title="订单商品"
...@@ -145,7 +155,9 @@ export default { ...@@ -145,7 +155,9 @@ export default {
name: '', name: '',
mixins: [Record], mixins: [Record],
props: { props: {
show: Boolean show: Boolean,
madiaId: Number,
penSwitch: Boolean,
}, },
data () { data () {
return { return {
...@@ -214,6 +226,7 @@ export default { ...@@ -214,6 +226,7 @@ export default {
this.pageNum = 1 this.pageNum = 1
this.groupIndex = index this.groupIndex = index
this.getRecordList() this.getRecordList()
if (!isStart) this.$refs.historyCanvas.clearBoard()
}, },
getRecordList () { getRecordList () {
const { pageNum, pageSize, groupIndex } = this, const { pageNum, pageSize, groupIndex } = this,
......
...@@ -268,6 +268,7 @@ export default { ...@@ -268,6 +268,7 @@ export default {
e.optionals?.map(item => { e.optionals?.map(item => {
item.checked = false item.checked = false
item.warranty = item.warranty?.replace(/<\/?br\s*\/?>|\n/g, '<br>')
}) })
boutiqueMediaConfig[e.carModelName].optionals = e.optionals boutiqueMediaConfig[e.carModelName].optionals = e.optionals
}) })
......
<template> <template>
<view class="container"> <view class="container">
<view class="bg"></view> <wnCanvas
<view class="box"> :canvasId="`c-${madiaId}`"
<view class="input-box"> :drawStatus="penSwitch"
<input custom
type="text" :scaleSwitch="false"
class="input" ref="invitationCanvas"
v-model="customerNameOrPhone" >
maxlength="11" <template slot="customContent">
@blur="input($event)" <view class="bg"></view>
@focus="focus" <view class="box">
/> <view class="input-box">
<view class="input-tips" v-if="!isSearch" <input
>搜索客户姓名/电话<uni-icons type="text"
type="search" class="input"
class="icon" v-model="customerNameOrPhone"
color="#999" maxlength="11"
size="20" @blur="input($event)"
></uni-icons @focus="focus"
></view> />
<uni-icons <view
v-if="isSearch" class="input-tips"
type="closeempty" v-if="!isSearch"
class="close" >搜索客户姓名/电话<uni-icons
color="#999" type="search"
@click="handleClear" class="icon"
size="20" color="#999"
></uni-icons> size="20"
</view> ></uni-icons></view>
<scroll-view <uni-icons
class="record-box" v-if="isSearch"
scroll-y type="closeempty"
@scrolltolower="pageonReachBottom" class="close"
> color="#999"
<view class="list"> @click="handleClear"
<template v-if="flag"> size="20"
<template v-if="list.length"> ></uni-icons>
<template v-for="item in list"> </view>
<view class="item" :key="item.id" @click="reception(item)"> <scroll-view
<view class="record-box"
:class="['status flex', 'status_' + formatInvite(item)]" scroll-y
>{{ inviteStatus[formatInvite(item)] }}</view @scrolltolower="pageonReachBottom"
> >
<view class="name"> <view class="list">
{{ item.customerName }} <template v-if="flag">
</view> <template v-if="list.length">
<template v-for="(k, ind) in itemObject"> <template v-for="item in list">
<view class="info flex" :key="ind"> <view
<view class="label">{{ k.label }}</view> class="item"
<view class="value">{{ :key="item.id"
@click="reception(item)"
>
<view :class="['status flex', 'status_' + formatInvite(item)]">{{ inviteStatus[formatInvite(item)] }}</view>
<view class="name">
{{ item.customerName }}
</view>
<template v-for="(k, ind) in itemObject">
<view
class="info flex"
:key="ind"
>
<view class="label">{{ k.label }}</view>
<view class="value">{{
k.format k.format
? formatTime(item[k.key], k.key) ? formatTime(item[k.key], k.key)
: item[k.key] || "-" : item[k.key] || "-"
}}</view> }}</view>
</view>
</template>
</view> </view>
</template> </template>
</view> </template>
<template v-else>
<view class="nothing flex">
<image
class="icon"
src="../../assets/images/home/nothing.webp"
/>
暂无数据
</view>
</template>
</template> </template>
</view>
<template v-if="nothing">
<view class="end-text">到底了!</view>
</template> </template>
<template v-else> </scroll-view>
<view class="nothing flex">
<image
class="icon"
src="../../assets/images/home/nothing.webp"
/>
暂无数据
</view>
</template>
</template>
</view> </view>
<template v-if="nothing"> </template>
<view class="end-text">到底了!</view> </wnCanvas>
</template>
</scroll-view>
</view>
<MessageBox <MessageBox
ref="receptionTips" ref="receptionTips"
content="是否接待当前客户,确定接待直接进入\n「车型加装选购页」" content="是否接待当前客户,确定接待直接进入\n「车型加装选购页」"
...@@ -89,7 +104,9 @@ import Record from "@/mixin/record"; ...@@ -89,7 +104,9 @@ import Record from "@/mixin/record";
export default { export default {
mixins: [Record], mixins: [Record],
props: { props: {
show: Boolean show: Boolean,
madiaId: Number,
penSwitch: Boolean,
}, },
data () { data () {
return { return {
...@@ -107,26 +124,26 @@ export default { ...@@ -107,26 +124,26 @@ export default {
chooseItem: {} chooseItem: {}
} }
}, },
watch:{ watch: {
show:{ show: {
handler(val) { handler (val) {
if(val) this.init() if (val) this.init()
this.$refs.receptionTips?.close() this.$refs.receptionTips?.close()
}, },
immediate:true immediate: true
} }
}, },
methods: { methods: {
init () { init () {
this.customerNameOrPhone = ''; this.customerNameOrPhone = '';
console.log('init') console.log('init')
setTimeout(()=>{ setTimeout(() => {
this.isSearch = false this.isSearch = false
this.pageNum = 1 this.pageNum = 1
this.flag = false this.flag = false
this.getRecordList() this.getRecordList()
},300) }, 300)
}, },
//已预约的并且预约时间小于当前时间的,显示超时未到店,否则显示已预约 //已预约的并且预约时间小于当前时间的,显示超时未到店,否则显示已预约
...@@ -158,12 +175,14 @@ export default { ...@@ -158,12 +175,14 @@ export default {
this.pageNum = 1 this.pageNum = 1
this.flag = false this.flag = false
this.getRecordList() this.getRecordList()
this.clearCanvas()
}, },
focus () { focus () {
this.isSearch = true this.isSearch = true
}, },
handleClear () { handleClear () {
this.init() this.init()
this.clearCanvas()
}, },
getRecordList () { getRecordList () {
const { pageNum, pageSize, customerNameOrPhone } = this, const { pageNum, pageSize, customerNameOrPhone } = this,
...@@ -184,7 +203,11 @@ export default { ...@@ -184,7 +203,11 @@ export default {
this.$emit('reception', { this.$emit('reception', {
item: this.chooseItem item: this.chooseItem
}) })
}, 200) }, 200),
clearCanvas () {
this.$refs.invitationCanvas.clearBoard()
},
}, },
} }
</script> </script>
...@@ -203,7 +226,7 @@ export default { ...@@ -203,7 +226,7 @@ export default {
height: 800rpx; height: 800rpx;
position: absolute; position: absolute;
left: 0; left: 0;
background-image: url("../../assets/images/boutique/record-bg.png"); background-image: url('../../assets/images/boutique/record-bg.png');
background-size: 100% 100%; background-size: 100% 100%;
top: 0; top: 0;
} }
......
...@@ -94,11 +94,11 @@ export default { ...@@ -94,11 +94,11 @@ export default {
mounted () { mounted () {
}, },
methods: { methods: {
search () { search () {
this.edit = false this.edit = false
console.log(this.searchValue) console.log(this.searchValue)
}, },
openInput () { openInput () {
this.edit = true this.edit = true
this.inputFocus = true this.inputFocus = true
}, },
...@@ -141,7 +141,7 @@ export default { ...@@ -141,7 +141,7 @@ export default {
width: 100%; width: 100%;
height: 80rpx; height: 80rpx;
background: #ffffff; background: #ffffff;
border: 3rpx solid #A8C1FF;; border: 3rpx solid #a8c1ff;
border-radius: 16rpx; border-radius: 16rpx;
box-sizing: border-box; box-sizing: border-box;
color: #333; color: #333;
...@@ -179,8 +179,8 @@ export default { ...@@ -179,8 +179,8 @@ export default {
.select-box { .select-box {
margin: 32rpx 0; margin: 32rpx 0;
display: grid; display: grid;
grid-template-columns: repeat(3, 1fr); grid-template-columns: repeat(4, 1fr);
gap: 20rpx; gap: 32rpx;
overflow-y: scroll; overflow-y: scroll;
max-height: 50vh; max-height: 50vh;
padding-bottom: 60rpx; padding-bottom: 60rpx;
......
...@@ -61,31 +61,11 @@ ...@@ -61,31 +61,11 @@
<view <view
class="case-item" class="case-item"
:key="item.id" :key="item.id"
@click="jumpDetail(item)"
> >
<image <case-item
class="img" :item="item"
:src="item.cover" :visitsId="visitsId"
></image> />
<view class="case-info">
<view class="case-name text-hide">{{ item.title }}</view>
<template v-for="(j, ind) in caseInfo">
<view
class="case-text flex"
:key="ind"
>
<view class="case-label">{{ j.label }}:</view>
<view :class="['case-value', j.class]">
<template v-if="j.format">
{{ j.format(item) }}
</template>
<template v-else>
{{ item[j.key] || '--' }}
</template>
</view>
</view>
</template>
</view>
</view> </view>
</template> </template>
</template> </template>
...@@ -115,9 +95,11 @@ ...@@ -115,9 +95,11 @@
<script type="text/ecmascript-6"> <script type="text/ecmascript-6">
import dayjs from 'dayjs' import dayjs from 'dayjs'
import PackagePopup from './components/PackagePopup.vue' import PackagePopup from './components/PackagePopup.vue'
import CaseItem from '@/components/HomeFrame/components/CaseItem.vue'
export default { export default {
components: { components: {
PackagePopup PackagePopup,
CaseItem
}, },
data () { data () {
return { return {
...@@ -277,28 +259,6 @@ export default { ...@@ -277,28 +259,6 @@ export default {
animationDuration: 100 animationDuration: 100
}) })
}, },
jumpDetail (item) {
// 类型:0-图片;1-视频;2-pdf;3-富文本
let url = `/pages/common/caseDetail?id=${item.id}&visitsId=${this.visitsId}`
if (item.type != 3) {
let fileUrl = item?.detailInfos[0]?.image
if (item.type == 2) {
// uni.downloadFile({
// url: fileUrl,
// success (res) {
// var filePath = res.tempFilePath;
// }
// })
// return
url = `/pages/common/webview?fileUrl=${fileUrl}&title=${item.title}&id=${item.id}&visitsId=${this.visitsId}`
}
if (item.type == 1 || item.type == 0) url = `/pages/boutique/preview?tabName=${item.title}&sourceType=${item.type == 1 ? 2 : 1}&detailUrl=${fileUrl}&id=${item.id}&visitsId=${this.visitsId}`
}
uni.navigateTo({
url: `${url}`
})
},
pageonReachBottom () { pageonReachBottom () {
let { currentPage, total, nothing, pageSize } = this let { currentPage, total, nothing, pageSize } = this
if (!nothing) nothing = 'nothing' if (!nothing) nothing = 'nothing'
...@@ -463,35 +423,6 @@ export default { ...@@ -463,35 +423,6 @@ export default {
.case-item { .case-item {
width: 496rpx; width: 496rpx;
height: 588rpx; height: 588rpx;
background: #ffffff;
box-shadow: 0 8rpx 24rpx 0 #2c66f71a;
border-radius: 16rpx;
display: flex;
flex-direction: column;
overflow: hidden;
.img {
width: 100%;
height: 324rpx;
}
.case-name {
font-weight: 500;
font-size: 28rpx;
color: #333333;
line-height: 48rpx;
padding: 16rpx 32rpx 8rpx;
}
.case-text {
align-items: flex-start;
font-size: 24rpx;
color: #666666;
line-height: 40rpx;
padding: 0 32rpx;
margin-bottom: 2rpx;
}
.case-label {
width: 120rpx;
flex-shrink: 0;
}
} }
} }
} }
......
...@@ -8,10 +8,12 @@ ...@@ -8,10 +8,12 @@
font-family: 'number-700'; font-family: 'number-700';
src: url('https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/font/D-DIN-PRO-700-Bold.ttf'); src: url('https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/font/D-DIN-PRO-700-Bold.ttf');
} }
@font-face { @font-face {
font-family: 'number-400'; font-family: 'number-400';
src: url('https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/font/D-DIN-PRO-400-Regular.ttf'); src: url('https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/font/D-DIN-PRO-400-Regular.ttf');
} }
@keyframes show-view { @keyframes show-view {
0% { 0% {
opacity: 0; opacity: 0;
...@@ -73,10 +75,29 @@ ...@@ -73,10 +75,29 @@
} }
@media screen and (min-width: 500px){ @media screen and (min-width: 500px) {
.fixforpc-width{ .fixforpc-width {
min-width: auto !important; min-width: auto !important;
width: fit-content !important; width: fit-content !important;
padding: 20rpx 46rpx !important; padding: 20rpx 46rpx !important;
} }
}
.select-box {
.select-item {
display: flex;
justify-content: center;
align-items: center;
}
}
@keyframes show-view-opacity {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
} }
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!