Commit 2c6d8306 by 李伟康

commit 提交

1 parent 021c1dfa
...@@ -26,34 +26,35 @@ ...@@ -26,34 +26,35 @@
.icon-first-nav { width: 464rpx; height: 176rpx; background-position: -830rpx -191rpx;} .icon-first-nav { width: 464rpx; height: 176rpx; background-position: -830rpx -191rpx;}
.icon-home-active { width: 112rpx; height: 112rpx; background-position: -127rpx -726rpx;} .icon-home-active { width: 112rpx; height: 112rpx; background-position: -127rpx -726rpx;}
.icon-home { width: 112rpx; height: 112rpx; background-position: -254rpx -726rpx;} .icon-home { width: 112rpx; height: 112rpx; background-position: -254rpx -726rpx;}
.icon-icon-arrow { width: 32rpx; height: 32rpx; background-position: -1160rpx -668rpx;} .icon-icon-arrow { width: 32rpx; height: 32rpx; background-position: -1215rpx -668rpx;}
.icon-icon-close { width: 72rpx; height: 72rpx; background-position: -285rpx -964rpx;} .icon-icon-close { width: 72rpx; height: 72rpx; background-position: -285rpx -964rpx;}
.icon-icon-female { width: 32rpx; height: 32rpx; background-position: -1207rpx -668rpx;} .icon-icon-female { width: 32rpx; height: 32rpx; background-position: -1262rpx -668rpx;}
.icon-icon-male { width: 32rpx; height: 32rpx; background-position: -1254rpx -668rpx;} .icon-icon-male { width: 32rpx; height: 32rpx; background-position: -781rpx -415rpx;}
.icon-icon-shop { width: 32rpx; height: 32rpx; background-position: -781rpx -415rpx;} .icon-icon-shop { width: 32rpx; height: 32rpx; background-position: -781rpx -462rpx;}
.icon-icon-upload { width: 128rpx; height: 128rpx; background-position: -503rpx -415rpx;} .icon-icon-upload { width: 128rpx; height: 128rpx; background-position: -503rpx -415rpx;}
.icon-icon-weixin { width: 32rpx; height: 32rpx; background-position: -781rpx -462rpx;} .icon-icon-weixin { width: 32rpx; height: 32rpx; background-position: -594rpx -853rpx;}
.icon-invisible { width: 40rpx; height: 40rpx; background-position: -885rpx -668rpx;} .icon-info_shield { width: 40rpx; height: 40rpx; background-position: -885rpx -668rpx;}
.icon-kf-0 { width: 32rpx; height: 32rpx; background-position: -594rpx -853rpx;} .icon-invisible { width: 40rpx; height: 40rpx; background-position: -940rpx -668rpx;}
.icon-kf-1 { width: 32rpx; height: 32rpx; background-position: -641rpx -853rpx;} .icon-kf-0 { width: 32rpx; height: 32rpx; background-position: -641rpx -853rpx;}
.icon-kf-2 { width: 32rpx; height: 32rpx; background-position: -688rpx -853rpx;} .icon-kf-1 { width: 32rpx; height: 32rpx; background-position: -688rpx -853rpx;}
.icon-kf-3 { width: 32rpx; height: 32rpx; background-position: -735rpx -853rpx;} .icon-kf-2 { width: 32rpx; height: 32rpx; background-position: -735rpx -853rpx;}
.icon-kf-3 { width: 32rpx; height: 32rpx; background-position: -782rpx -853rpx;}
.icon-logo { width: 160rpx; height: 160rpx; background-position: -1041rpx -382rpx;} .icon-logo { width: 160rpx; height: 160rpx; background-position: -1041rpx -382rpx;}
.icon-mask-del { width: 80rpx; height: 80rpx; background-position: -95rpx -964rpx;} .icon-mask-del { width: 80rpx; height: 80rpx; background-position: -95rpx -964rpx;}
.icon-mask-edit { width: 80rpx; height: 80rpx; background-position: -190rpx -964rpx;} .icon-mask-edit { width: 80rpx; height: 80rpx; background-position: -190rpx -964rpx;}
.icon-no-insurance-data { width: 488rpx; height: 296rpx; background-position: 0rpx -415rpx;} .icon-no-insurance-data { width: 488rpx; height: 296rpx; background-position: 0rpx -415rpx;}
.icon-pause { width: 40rpx; height: 40rpx; background-position: -940rpx -668rpx;} .icon-pause { width: 40rpx; height: 40rpx; background-position: -995rpx -668rpx;}
.icon-pen-active { width: 120rpx; height: 120rpx; background-position: -646rpx -415rpx;} .icon-pen-active { width: 120rpx; height: 120rpx; background-position: -646rpx -415rpx;}
.icon-pen { width: 120rpx; height: 120rpx; background-position: -503rpx -558rpx;} .icon-pen { width: 120rpx; height: 120rpx; background-position: -503rpx -558rpx;}
.icon-play { width: 40rpx; height: 40rpx; background-position: -995rpx -668rpx;} .icon-play { width: 40rpx; height: 40rpx; background-position: -1050rpx -668rpx;}
.icon-qr-success { width: 96rpx; height: 96rpx; background-position: -1190rpx -726rpx;} .icon-qr-success { width: 96rpx; height: 96rpx; background-position: -1190rpx -726rpx;}
.icon-qw { width: 48rpx; height: 48rpx; background-position: -765rpx -558rpx;} .icon-qw { width: 48rpx; height: 48rpx; background-position: -765rpx -558rpx;}
.icon-record-active { width: 112rpx; height: 112rpx; background-position: -381rpx -726rpx;} .icon-record-active { width: 112rpx; height: 112rpx; background-position: -381rpx -726rpx;}
.icon-record { width: 112rpx; height: 112rpx; background-position: -508rpx -726rpx;} .icon-record { width: 112rpx; height: 112rpx; background-position: -508rpx -726rpx;}
.icon-scan { width: 32rpx; height: 32rpx; background-position: -782rpx -853rpx;} .icon-scan { width: 32rpx; height: 32rpx; background-position: -829rpx -853rpx;}
.icon-scene-0 { width: 96rpx; height: 96rpx; background-position: 0rpx -853rpx;} .icon-scene-0 { width: 96rpx; height: 96rpx; background-position: 0rpx -853rpx;}
.icon-scene-1 { width: 96rpx; height: 96rpx; background-position: -111rpx -853rpx;} .icon-scene-1 { width: 96rpx; height: 96rpx; background-position: -111rpx -853rpx;}
.icon-search { width: 40rpx; height: 40rpx; background-position: -1050rpx -668rpx;} .icon-search { width: 40rpx; height: 40rpx; background-position: -1105rpx -668rpx;}
.icon-second-nav { width: 480rpx; height: 176rpx; background-position: -830rpx 0rpx;} .icon-second-nav { width: 480rpx; height: 176rpx; background-position: -830rpx 0rpx;}
.icon-setting { width: 64rpx; height: 64rpx; background-position: -372rpx -964rpx;} .icon-setting { width: 64rpx; height: 64rpx; background-position: -372rpx -964rpx;}
.icon-store { width: 96rpx; height: 96rpx; background-position: -222rpx -853rpx;} .icon-store { width: 96rpx; height: 96rpx; background-position: -222rpx -853rpx;}
...@@ -61,5 +62,5 @@ ...@@ -61,5 +62,5 @@
.icon-tool-file { width: 60rpx; height: 60rpx; background-position: -451rpx -964rpx;} .icon-tool-file { width: 60rpx; height: 60rpx; background-position: -451rpx -964rpx;}
.icon-tool-finish { width: 60rpx; height: 60rpx; background-position: -526rpx -964rpx;} .icon-tool-finish { width: 60rpx; height: 60rpx; background-position: -526rpx -964rpx;}
.icon-tool-pay { width: 60rpx; height: 60rpx; background-position: -601rpx -964rpx;} .icon-tool-pay { width: 60rpx; height: 60rpx; background-position: -601rpx -964rpx;}
.icon-total { width: 32rpx; height: 32rpx; background-position: -829rpx -853rpx;}
.icon-visible { width: 40rpx; height: 40rpx; background-position: -1105rpx -668rpx;}
\ No newline at end of file \ No newline at end of file
.icon-total { width: 32rpx; height: 32rpx; background-position: -876rpx -853rpx;}
.icon-visible { width: 40rpx; height: 40rpx; background-position: -1160rpx -668rpx;}
\ No newline at end of file \ No newline at end of file

1.2 MB | W: | H:

1.2 MB | W: | H:

assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -80,9 +80,9 @@ export default { ...@@ -80,9 +80,9 @@ export default {
mounted () { mounted () {
}, },
methods: { methods: {
autoSelect () { autoSelect (index = 0) {
const { carBrandList } = this const { carBrandList } = this
if (carBrandList.length) this.selectCar(carBrandList[0], true) if (carBrandList.length) this.selectCar(carBrandList[0], true, index)
}, },
open () { open () {
const userInfo = uni.$storage.get("userInfo"), const userInfo = uni.$storage.get("userInfo"),
...@@ -116,7 +116,7 @@ export default { ...@@ -116,7 +116,7 @@ export default {
this.$refs.carBrandListVisible.open() this.$refs.carBrandListVisible.open()
this.carBrandListOff = true this.carBrandListOff = true
}, },
selectCar (e, auto = false) { selectCar (e, auto = false, index) {
let { clickFlga } = this let { clickFlga } = this
if (clickFlga) return if (clickFlga) return
this.clickFlga = true this.clickFlga = true
...@@ -129,7 +129,7 @@ export default { ...@@ -129,7 +129,7 @@ export default {
const carList = uni.getStorageSync(`${e.id}_${e.brandId}_carlist`) const carList = uni.getStorageSync(`${e.id}_${e.brandId}_carlist`)
if (carList) { if (carList) {
this.carlist = carList this.carlist = carList
if (auto && carList.length) this.handleSelect(carList[0]) if (auto && carList.length) this.handleSelect(carList[index])
else this.$refs.carBoxVisible.open() else this.$refs.carBoxVisible.open()
} else { } else {
if (!auto) uni.showLoading({ if (!auto) uni.showLoading({
...@@ -144,7 +144,7 @@ export default { ...@@ -144,7 +144,7 @@ export default {
this.carlist = res this.carlist = res
if (res) uni.setStorageSync(`${e.id}_${e.brandId}_carlist`, res) if (res) uni.setStorageSync(`${e.id}_${e.brandId}_carlist`, res)
if (!carList) { if (!carList) {
if (auto && res.length) this.handleSelect(res[0]) if (auto && res.length) this.handleSelect(res[index])
else this.$refs.carBoxVisible.open() else this.$refs.carBoxVisible.open()
} }
this.clickFlga = false this.clickFlga = false
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
:key="index" :key="index"
> >
<view :class="['label',{required:i.required}]">{{ i.label }}</view> <view :class="['label',{required:i.required}]">{{ i.label }}</view>
<view :class="['value', { error: showError(i.key) && i.required },{disabled:customerType == 0}]"> <view :class="['value', { error: showError(i.key) && i.required },{disabled:customerType == 0 || i.disabled}]">
<template v-if="i.type == 'input'"> <template v-if="i.type == 'input'">
<input <input
:type="i.inputType" :type="i.inputType"
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
<template v-else> <template v-else>
<view <view
:class="['select', `${formData[i.key]? '' : 'placeholder'}`]" :class="['select', `${formData[i.key]? '' : 'placeholder'}`]"
@click="showPopup(i.popKey)" @click="showPopup(i)"
> >
{{ formData[i.key] || i.placeholder }} {{ formData[i.key] || i.placeholder }}
<uni-icons <uni-icons
...@@ -118,7 +118,8 @@ const formObject_boutique = [{ ...@@ -118,7 +118,8 @@ const formObject_boutique = [{
key: "carModel", key: "carModel",
type: "select", type: "select",
popKey: "carBrandListVisible", popKey: "carBrandListVisible",
placeholder: '请选择品牌车型' placeholder: '请选择品牌车型',
disabled: true
}, },
{ {
label: "车主电话", label: "车主电话",
...@@ -221,7 +222,7 @@ export default { ...@@ -221,7 +222,7 @@ export default {
tips () { tips () {
let { sceneType, titleTips } = this, let { sceneType, titleTips } = this,
text = titleTips || '检测到“交车告知书”中未填写客户档案,请填写后再完成接待。' text = titleTips || '检测到“交车告知书”中未填写客户档案,请填写后再完成接待。'
if (sceneType == 1) text = '请确认“精品加装服务说明页”中的客户信息,并点击完成接待结束客户接待。' if (sceneType == 1) text = '请确认“加装选购页”中的客户信息,并点击完成接待结束客户接待。'
return text return text
} }
}, },
...@@ -245,10 +246,10 @@ export default { ...@@ -245,10 +246,10 @@ export default {
if (key == 'phoneNumber' && this.formData[key]) flag = !phoneRex.test(this.formData[key]) if (key == 'phoneNumber' && this.formData[key]) flag = !phoneRex.test(this.formData[key])
return this.errorTip && flag return this.errorTip && flag
}, },
showPopup (e) { showPopup ({ popKey, disabled }) {
let { customerType } = this let { customerType } = this
if (customerType == 0) return if (customerType == 0 || disabled) return
this.$refs[e].open(); this.$refs[popKey].open();
}, },
// 取消 // 取消
cancel () { cancel () {
......
<template> <template>
<view class="layout"> <view class="layout">
<view class="tab-box flex" v-if="customerType == 1 || isPreview"> <view
class="tab-box flex"
v-if="customerType == 1 || isPreview"
>
<template v-for="(item, index) in carList"> <template v-for="(item, index) in carList">
<view <view
:key="index" :key="index"
:class="['tab',`${currentIndex == index ? 'active' : ''}`]" :class="['tab',`${currentIndex == index ? 'active' : ''}`]"
@click="currentCarString = item" @click="changeCar(item)"
> >
{{item}} {{item}}
</view> </view>
</template> </template>
</view> </view>
<view class="risk-informed flex">
风险告知
<view class="sprite-icon icon-info_shield"></view>
</view>
<view class="content-box flex"> <view class="content-box flex">
<view class="left-content"></view> <view
class="left-content"
:key="updateViewKey"
>
<view class="tips">* 点击图片查看详情 &gt;</view>
</view>
<view class="right-content"> <view class="right-content">
<view :class="['sku-box',isPreview ? 'preview' : '']"> <view :class="['sku-box',isPreview ? 'preview' : '']">
<sku-box <sku-box
:currentCar="currentCarString" :currentCar="currentCarString"
:defaultTabId="tabId" :defaultTabId="tabId"
:show="show" :show="show"
@changePreView="changePreView"
/> />
</view> </view>
<view <view
class="coupon-btn flex" class="coupon-btn flex"
v-if="!isPreview" v-if="!isPreview"
@click="$refs.couponPopup.open()"
>{{couponText}}</view> >{{couponText}}</view>
</view> </view>
</view> </view>
<car-brands
ref="carBrandRef"
@select="handleSelect"
/>
<coupon-pop
:carInfo="carInfo"
ref="couponPopup"
/>
</view> </view>
</template> </template>
<script type='text/ecmascript-6'> <script type='text/ecmascript-6'>
import SkuBox from './SkuBox.vue' import SkuBox from './SkuBox.vue'
import CarBrands from '@/components/CarBrands.vue'
import CouponPop from './CouponPop.vue'
export default { export default {
name: 'Reception', name: 'Reception',
components: { SkuBox }, components: { SkuBox, CarBrands, CouponPop },
props: { props: {
customerType: Number, customerType: Number,
show: Boolean, show: Boolean,
...@@ -47,6 +71,8 @@ export default { ...@@ -47,6 +71,8 @@ export default {
carList: ['M5', 'M7', 'M9'], carList: ['M5', 'M7', 'M9'],
currentCarString: '', currentCarString: '',
customerInfo: {}, customerInfo: {},
updateViewKey: Date.now(),
carInfo: {}
} }
}, },
watch: { watch: {
...@@ -59,6 +85,7 @@ export default { ...@@ -59,6 +85,7 @@ export default {
watchStatus: { watchStatus: {
immediate: true, immediate: true,
handler (newval) { handler (newval) {
} }
}, },
currentCar: { currentCar: {
...@@ -66,7 +93,14 @@ export default { ...@@ -66,7 +93,14 @@ export default {
handler (newval) { handler (newval) {
this.currentCarString = newval this.currentCarString = newval
} }
},
currentCarString: {
immediate: true,
handler (newval) {
if (this.show && newval && !this.isPreview && this.customerType == 1) this.$refs.carBrandRef.autoSelect(this.carList.findIndex(e => e == newval))
}
} }
}, },
computed: { computed: {
watchCustomerInfo () { watchCustomerInfo () {
...@@ -81,12 +115,25 @@ export default { ...@@ -81,12 +115,25 @@ export default {
isPreview () { isPreview () {
return this.type == 'preview' return this.type == 'preview'
}, },
couponText(){ couponText () {
return this.customerType == 0 ? '查看客户券码' : '为客户发券' return this.customerType == 0 ? '查看客户券码' : '为客户发券'
} }
}, },
methods: { methods: {
changeCar (item) {
this.currentCarString = item
this.updateViewKey = Date.now()
},
changePreView (e) {
this.updateViewKey = Date.now()
},
handleSelect (item) {
console.log(item)
this.customerInfo.carModel = item.name
this.$store.dispatch('setCustomerInfo', this.customerInfo)
this.carInfo = item
}
} }
} }
</script> </script>
...@@ -99,6 +146,18 @@ export default { ...@@ -99,6 +146,18 @@ export default {
position: absolute; position: absolute;
top: 0; top: 0;
left: 0; left: 0;
.risk-informed {
position: absolute;
right: 24rpx;
top: 72rpx;
font-weight: 500;
font-size: 32rpx;
color: #333333;
line-height: 48rpx;
.sprite-icon {
margin-left: 8rpx;
}
}
.tab-box { .tab-box {
padding-top: 66rpx; padding-top: 66rpx;
position: fixed; position: fixed;
...@@ -144,11 +203,29 @@ export default { ...@@ -144,11 +203,29 @@ export default {
.content-box { .content-box {
height: calc(100vh - 144rpx); height: calc(100vh - 144rpx);
margin-top: 144rpx; margin-top: 144rpx;
padding: 0 0 64rpx 64rpx; padding: 0 0 64rpx 64rpx;
.left-content { .left-content {
width: 1328rpx; width: 1328rpx;
height: 100%; height: 100%;
background: #069; background: #069;
position: relative;
.tips {
position: absolute;
right: 32rpx;
bottom: 32rpx;
animation: tips-show 0.15s forwards;
font-size: 24rpx;
color: #999999;
line-height: 36rpx;
}
@keyframes tips-show {
0% {
transform: scale(0.1);
}
100% {
transform: scale(1);
}
}
} }
.right-content { .right-content {
width: calc(100% - 1362rpx); width: calc(100% - 1362rpx);
......
...@@ -37,12 +37,12 @@ ...@@ -37,12 +37,12 @@
enable-flex enable-flex
> >
<view class="thirdly-type-box flex"> <view class="thirdly-type-box flex">
<template v-for="(i,index) in 20"> <template v-for="(i,index) in 3">
<view <view
:class="['thirdly-type-item flex',thirdlyIndex == index ? 'active' : '']" :class="['thirdly-type-item flex',thirdlyIndex == index ? 'active' : '']"
:key="index" :key="index"
@click="thirdlyIndex = index" @click="thirdlyIndex = index"
>{{i}}一二三四五一二三四</view> >{{i}}</view>
</template> </template>
<view class="padding-right"></view> <view class="padding-right"></view>
</view> </view>
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
<view <view
:class="['goods-item',goodsId == index ? 'active' : '']" :class="['goods-item',goodsId == index ? 'active' : '']"
:key="index" :key="index"
@click="goodsId = index" @click="changeGoods(index)"
> >
<view class="goods-title">一二三四五一二三四五一二三四五一二三四五一二三四五一二三四五一二三四五一二三四五一二三四五一二三四五</view> <view class="goods-title">一二三四五一二三四五一二三四五一二三四五一二三四五一二三四五一二三四五一二三四五一二三四五一二三四五</view>
<view class="goods-description"> <view class="goods-description">
...@@ -157,6 +157,13 @@ export default { ...@@ -157,6 +157,13 @@ export default {
this.contentHeight = `calc(100% - ${data.top - 72}px)` this.contentHeight = `calc(100% - ${data.top - 72}px)`
}).exec() }).exec()
}) })
},
changeGoods(index){
this.goodsId = index
this.changePreView()
},
changePreView(){
this.$emit('changePreView')
} }
} }
} }
......
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
@choose="choose" @choose="choose"
@finish="open" @finish="open"
:id="id" :id="id"
toolStyle="top:48rpx;" toolStyle="top:144rpx;"
/> />
</template> </template>
<finish-step <finish-step
...@@ -147,15 +147,15 @@ export default { ...@@ -147,15 +147,15 @@ export default {
}); });
return return
} }
this.$store.dispatch('setCustomerInfo', { let customer = {
customerName: item.customerName, customerName: item.customerName,
carModel: item.carSeriesName, carModel: item.carSeriesName,
phoneNumber: item.customerPhone, phoneNumber: item.customerPhone,
salesUuid: item.userId, salesUuid: item.userId,
staffName: item.employeeName, staffName: item.employeeName,
receiveCouponDate: item.receiveCouponDate receiveCouponDate: item.receiveCouponDate
}) }
this.$emit('reception') this.$emit('reception', customer)
}, },
backInvitation () { backInvitation () {
this.jumpPage({ id: 3 }) this.jumpPage({ id: 3 })
......
...@@ -168,7 +168,7 @@ export default { ...@@ -168,7 +168,7 @@ export default {
url: m9, url: m9,
configList: [] configList: []
}], }],
currentCar: 'M7', currentCar: '',
currentIndex: 0, currentIndex: 0,
bannerAutoplay: true, bannerAutoplay: true,
mediaConfigList: [] mediaConfigList: []
...@@ -276,7 +276,7 @@ export default { ...@@ -276,7 +276,7 @@ export default {
this.$refs.home.finishRef.close(); this.$refs.home.finishRef.close();
this.id = ""; this.id = "";
this.type = ""; this.type = "";
this.currentCar = this.carBannerList[1].title this.currentCar = ''
this.bannerAutoplay = true this.bannerAutoplay = true
this.customerType = -1 this.customerType = -1
this.clearHistory(); this.clearHistory();
...@@ -339,11 +339,12 @@ export default { ...@@ -339,11 +339,12 @@ export default {
if (index == 0) this.init() if (index == 0) this.init()
}, },
/**客户邀约接待 */ /**客户邀约接待 */
reception () { reception (customer) {
let { customerType } = this let { customerType } = this
if (customerType == -1) this.start(false) //开始接待 if (customerType == -1) this.start(false) //开始接待
this.customerType = 0 this.customerType = 0
this.jumpPage() this.jumpPage()
this.$nextTick(() => this.$store.dispatch('setCustomerInfo', customer))
}, },
swiperChange (e) { swiperChange (e) {
this.currentIndex = e.detail.current this.currentIndex = e.detail.current
......
...@@ -109,8 +109,8 @@ export default { ...@@ -109,8 +109,8 @@ export default {
}, },
watch:{ watch:{
show:{ show:{
handler() { handler(val) {
this.init() if(val) this.init()
this.$refs.receptionTips?.close() this.$refs.receptionTips?.close()
}, },
immediate:true immediate:true
......
...@@ -25,9 +25,9 @@ export default { ...@@ -25,9 +25,9 @@ export default {
paymentType: [], paymentType: [],
haveCustomerAccess: false, haveCustomerAccess: false,
boutiqueMediaConfig: { boutiqueMediaConfig: {
M5:[], M5: [],
M7:[], M7: [],
M9:[] M9: []
} }
}; };
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!