Commit 61e14d2e by 李伟康

替换qrcode

1 parent 2c6d8306
...@@ -183,14 +183,6 @@ ...@@ -183,14 +183,6 @@
"resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.11.tgz", "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.11.tgz",
"integrity": "sha512-okzr3f11N6WuqYtZSvm+F776mB41wRZMhKP+hc34YdW+KmtYYK9iqvHSwo2k9FEH3fhGXvOPV6yz2IcSrfRUDg==" "integrity": "sha512-okzr3f11N6WuqYtZSvm+F776mB41wRZMhKP+hc34YdW+KmtYYK9iqvHSwo2k9FEH3fhGXvOPV6yz2IcSrfRUDg=="
}, },
"decompress-response": {
"version": "6.0.0",
"resolved": "https://registry.npmmirror.com/decompress-response/-/decompress-response-6.0.0.tgz",
"integrity": "sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==",
"requires": {
"mimic-response": "^3.1.0"
}
},
"delayed-stream": { "delayed-stream": {
"version": "1.0.0", "version": "1.0.0",
"resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
...@@ -457,11 +449,6 @@ ...@@ -457,11 +449,6 @@
"resolved": "https://registry.npmjs.org/jpeg-js/-/jpeg-js-0.4.4.tgz", "resolved": "https://registry.npmjs.org/jpeg-js/-/jpeg-js-0.4.4.tgz",
"integrity": "sha512-WZzeDOEtTOBK4Mdsar0IqEU5sMr3vSV2RqkAIzUEV2BHnUfKGyswWFPFwK5EeDo93K3FohSHbLAjj0s1Wzd+dg==" "integrity": "sha512-WZzeDOEtTOBK4Mdsar0IqEU5sMr3vSV2RqkAIzUEV2BHnUfKGyswWFPFwK5EeDo93K3FohSHbLAjj0s1Wzd+dg=="
}, },
"js-binary-schema-parser": {
"version": "2.0.3",
"resolved": "https://registry.npmmirror.com/js-binary-schema-parser/-/js-binary-schema-parser-2.0.3.tgz",
"integrity": "sha512-xezGJmOb4lk/M1ZZLTR/jaBHQ4gG/lqQnJqdIv4721DMggsa1bDVlHXNeHYogaIEHD9vCRv0fcL4hMA+Coarkg=="
},
"jsbn": { "jsbn": {
"version": "0.1.1", "version": "0.1.1",
"resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz",
...@@ -542,11 +529,6 @@ ...@@ -542,11 +529,6 @@
"mime-db": "1.52.0" "mime-db": "1.52.0"
} }
}, },
"mimic-response": {
"version": "3.1.0",
"resolved": "https://registry.npmmirror.com/mimic-response/-/mimic-response-3.1.0.tgz",
"integrity": "sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ=="
},
"minimatch": { "minimatch": {
"version": "3.0.8", "version": "3.0.8",
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.8.tgz", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.8.tgz",
...@@ -647,11 +629,6 @@ ...@@ -647,11 +629,6 @@
"wrappy": "1" "wrappy": "1"
} }
}, },
"parenthesis": {
"version": "3.1.8",
"resolved": "https://registry.npmmirror.com/parenthesis/-/parenthesis-3.1.8.tgz",
"integrity": "sha512-KF/U8tk54BgQewkJPvB4s/US3VQY68BRDpH638+7O/n58TpnwiwnOtGIOsT2/i+M78s61BBpeC83STB88d8sqw=="
},
"parse-data-uri": { "parse-data-uri": {
"version": "0.2.0", "version": "0.2.0",
"resolved": "https://registry.npmjs.org/parse-data-uri/-/parse-data-uri-0.2.0.tgz", "resolved": "https://registry.npmjs.org/parse-data-uri/-/parse-data-uri-0.2.0.tgz",
...@@ -802,21 +779,6 @@ ...@@ -802,21 +779,6 @@
"resolved": "https://registry.npmjs.org/semver/-/semver-5.0.3.tgz", "resolved": "https://registry.npmjs.org/semver/-/semver-5.0.3.tgz",
"integrity": "sha512-5OkOBiw69xqmxOFIXwXsiY1HlE+om8nNptg1ZIf95fzcnfgOv2fLm7pmmGbRJsjJIqPpW5Kwy4wpDBTz5wQlUw==" "integrity": "sha512-5OkOBiw69xqmxOFIXwXsiY1HlE+om8nNptg1ZIf95fzcnfgOv2fLm7pmmGbRJsjJIqPpW5Kwy4wpDBTz5wQlUw=="
}, },
"simple-concat": {
"version": "1.0.1",
"resolved": "https://registry.npmmirror.com/simple-concat/-/simple-concat-1.0.1.tgz",
"integrity": "sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q=="
},
"simple-get": {
"version": "4.0.1",
"resolved": "https://registry.npmmirror.com/simple-get/-/simple-get-4.0.1.tgz",
"integrity": "sha512-brv7p5WgH0jmQJr1ZDDfKDOSeWWg+OVypG99A/5vYGPqJ6pxiaHLy8nxtFjBA7oMa01ebA9gfh1uMCFqOuXxvA==",
"requires": {
"decompress-response": "^6.0.0",
"once": "^1.3.1",
"simple-concat": "^1.0.0"
}
},
"source-map": { "source-map": {
"version": "0.6.1", "version": "0.6.1",
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
...@@ -867,14 +829,6 @@ ...@@ -867,14 +829,6 @@
"tweetnacl": "~0.14.0" "tweetnacl": "~0.14.0"
} }
}, },
"string-split-by": {
"version": "1.0.0",
"resolved": "https://registry.npmmirror.com/string-split-by/-/string-split-by-1.0.0.tgz",
"integrity": "sha512-KaJKY+hfpzNyet/emP81PJA9hTVSfxNLS9SFTWxdCnnW1/zOOwiV248+EfoX7IQFcBaOp4G5YE6xTJMF+pLg6A==",
"requires": {
"parenthesis": "^3.1.5"
}
},
"string_decoder": { "string_decoder": {
"version": "0.10.31", "version": "0.10.31",
"resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz",
...@@ -1083,47 +1037,6 @@ ...@@ -1083,47 +1037,6 @@
"vinyl": "^1.1.0" "vinyl": "^1.1.0"
} }
}, },
"vue-qr": {
"version": "4.0.9",
"resolved": "https://registry.npmmirror.com/vue-qr/-/vue-qr-4.0.9.tgz",
"integrity": "sha512-pAISV94T0MNEYA3NGjykUpsXRE2QfaNxlu9ZhEL6CERgqNc21hJYuP3hRVzAWfBQlgO18DPmZTbrFerJC3+Ikw==",
"requires": {
"glob": "^8.0.1",
"js-binary-schema-parser": "^2.0.2",
"simple-get": "^4.0.1",
"string-split-by": "^1.0.0"
},
"dependencies": {
"brace-expansion": {
"version": "2.0.1",
"resolved": "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-2.0.1.tgz",
"integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==",
"requires": {
"balanced-match": "^1.0.0"
}
},
"glob": {
"version": "8.1.0",
"resolved": "https://registry.npmmirror.com/glob/-/glob-8.1.0.tgz",
"integrity": "sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==",
"requires": {
"fs.realpath": "^1.0.0",
"inflight": "^1.0.4",
"inherits": "2",
"minimatch": "^5.0.1",
"once": "^1.3.0"
}
},
"minimatch": {
"version": "5.1.6",
"resolved": "https://registry.npmmirror.com/minimatch/-/minimatch-5.1.6.tgz",
"integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==",
"requires": {
"brace-expansion": "^2.0.1"
}
}
}
},
"webpack-spritesmith": { "webpack-spritesmith": {
"version": "1.1.0", "version": "1.1.0",
"resolved": "https://registry.npmjs.org/webpack-spritesmith/-/webpack-spritesmith-1.1.0.tgz", "resolved": "https://registry.npmjs.org/webpack-spritesmith/-/webpack-spritesmith-1.1.0.tgz",
......
...@@ -6,7 +6,6 @@ ...@@ -6,7 +6,6 @@
"hammerjs": "^2.0.8", "hammerjs": "^2.0.8",
"number-precision": "^1.6.0", "number-precision": "^1.6.0",
"prettier": "^3.3.2", "prettier": "^3.3.2",
"vue-qr": "^4.0.9",
"webpack-spritesmith": "^1.1.0" "webpack-spritesmith": "^1.1.0"
} }
} }
...@@ -7,10 +7,29 @@ ...@@ -7,10 +7,29 @@
--> -->
<template> <template>
<view> <view>
<MessageBox ref="couponPopup" type="center" :is-mask-click="false" animation :isFooter="false" :title="customerType == 1 ?'为客户发券' : '客户二维码'" :popupW="1200" :maxHeight="896"> <MessageBox
<view name="content" class="content"> ref="couponPopup"
<view class="form" v-if="customerType != 0"> type="center"
<view v-for="(i, index) in formObject" class="form-item" :key="index"> :is-mask-click="false"
animation
:isFooter="false"
:title="customerType == 1 ?'为客户发券' : '客户二维码'"
:popupW="1200"
:maxHeight="896"
>
<view
name="content"
class="content"
>
<view
class="form"
v-if="customerType != 0"
>
<view
v-for="(i, index) in formObject"
class="form-item"
: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}]">
<template v-if="i.type == 'input'"> <template v-if="i.type == 'input'">
...@@ -44,11 +63,18 @@ ...@@ -44,11 +63,18 @@
</view> </view>
</view> </view>
</view> </view>
<view class="customer-info" v-else> <view
class="customer-info"
v-else
>
<view class="customer-title">当前客户信息</view> <view class="customer-title">当前客户信息</view>
<view class="line"></view> <view class="line"></view>
<view class="customer-list"> <view class="customer-list">
<view class="customer-item" v-for="(j, idx) in formObject" :key="idx"> <view
class="customer-item"
v-for="(j, idx) in formObject"
:key="idx"
>
<view class="label">{{ j.label }}</view> <view class="label">{{ j.label }}</view>
<view class="value-text">{{ customerInfo[j.key] || '-----'}}</view> <view class="value-text">{{ customerInfo[j.key] || '-----'}}</view>
</view> </view>
...@@ -59,12 +85,18 @@ ...@@ -59,12 +85,18 @@
<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">
<image class="ok-status" src="@/assets/images/boutique/ok-status.webp"/> <image
class="ok-status"
src="@/assets/images/boutique/ok-status.webp"
/>
<view>客户领券成功</view> <view>客户领券成功</view>
</view> </view>
</template> </template>
<template v-if="!pageParams.received && pageParams.QRURL"> <template v-if="!pageParams.received && pageParams.QRURL">
<image class="qr-code-img" :src="pageParams.QRURL" /> <image
class="qr-code-img"
:src="pageParams.QRURL"
/>
</template> </template>
<template v-else> <template v-else>
<view class="no-data"> <view class="no-data">
...@@ -78,21 +110,41 @@ ...@@ -78,21 +110,41 @@
</template> </template>
</template> </template>
<template v-else> <template v-else>
<vue-qr ref="qrCode" :margin="10" :text="pageParams.customerCouponId" colorDark="black" colorLight="#F9F9F9" :size="200"></vue-qr> <!-- <vue-qr
ref="qrCode"
:margin="10"
:text="pageParams.customerCouponId"
colorDark="black"
colorLight="#F9F9F9"
:size="200"
></vue-qr> -->
</template> </template>
</view> </view>
<view class="ok-tips" v-if="pageParams.received"> <view
class="ok-tips"
v-if="pageParams.received"
>
<view>车主已领取该礼券</view> <view>车主已领取该礼券</view>
<view>请前往客户邀约列表查看</view> <view>请前往客户邀约列表查看</view>
</view> </view>
<view class="ok-tips" v-if="customerType == 0"> <view
class="ok-tips"
v-if="customerType == 0"
>
<view>驻点销售使用微信或企微</view> <view>驻点销售使用微信或企微</view>
<view>扫描此码新增客户工单</view> <view>扫描此码新增客户工单</view>
</view> </view>
</view> </view>
</view> </view>
<view name="footer" v-if="customerType == 1"> <view
<view class="footer-btn" @click="createCoupon" :class="{disabled: !isCheck}">生成专属二维码</view> name="footer"
v-if="customerType == 1"
>
<view
class="footer-btn"
@click="createCoupon"
:class="{disabled: !isCheck}"
>生成专属二维码</view>
</view> </view>
</MessageBox> </MessageBox>
<employee <employee
...@@ -126,7 +178,7 @@ ...@@ -126,7 +178,7 @@
<script type="text/ecmascript-6"> <script type="text/ecmascript-6">
import Employee from '@/components/Employee.vue' import Employee from '@/components/Employee.vue'
import VueQr from 'vue-qr' import qrcode from '@/utils/qrcode.js'
const phoneRex = /^[1]([3-9])[0-9]{9}$/; const phoneRex = /^[1]([3-9])[0-9]{9}$/;
const formObject_boutique = [{ const formObject_boutique = [{
label: "车主姓名", label: "车主姓名",
...@@ -177,22 +229,22 @@ export default { ...@@ -177,22 +229,22 @@ export default {
default: 1 default: 1
} }
}, },
components: { Employee, VueQr }, components: { Employee },
watch: { watch: {
watchCustomerInfo: { watchCustomerInfo: {
immediate: true, immediate: true,
handler(newval) { handler (newval) {
this.customerInfo = newval this.customerInfo = newval
this.pageParams.showDetail = false this.pageParams.showDetail = false
} }
}, },
}, },
computed: { computed: {
watchCustomerInfo() { watchCustomerInfo () {
return this.$store.state.user.customerInfo return this.$store.state.user.customerInfo
}, },
}, },
data() { data () {
return { return {
formObject: formObject_boutique, formObject: formObject_boutique,
customerInfo: {}, customerInfo: {},
...@@ -210,8 +262,11 @@ export default { ...@@ -210,8 +262,11 @@ export default {
isCheck: false isCheck: false
} }
}, },
mounted() { mounted () {
this.init() this.init()
console.log(qrcode.createQrCodeImg('id=10086', {
size: 200
}))
}, },
methods: { methods: {
init () { init () {
...@@ -268,10 +323,10 @@ export default { ...@@ -268,10 +323,10 @@ export default {
if (customerType == 0) return if (customerType == 0) return
this.$refs[e].open(); this.$refs[e].open();
}, },
open() { open () {
this.$refs.couponPopup.open() this.$refs.couponPopup.open()
}, },
close() { close () {
this.$refs.couponPopup.close() this.$refs.couponPopup.close()
}, },
handleSelect (item, popkey) { handleSelect (item, popkey) {
...@@ -310,7 +365,7 @@ export default { ...@@ -310,7 +365,7 @@ export default {
} }
return flag return flag
}, },
async createCoupon() { async createCoupon () {
try { try {
console.log(this.pageParams) console.log(this.pageParams)
const { pageParams: { clickFlag, couponId, carInfo }, customerInfo } = this, { const { pageParams: { clickFlag, couponId, carInfo }, customerInfo } = this, {
...@@ -404,12 +459,12 @@ export default { ...@@ -404,12 +459,12 @@ export default {
.footer-btn { .footer-btn {
width: 518rpx; width: 518rpx;
height: 96rpx; height: 96rpx;
background-image: linear-gradient(180deg, #61C0FF 0%, #2C66F7 100%); background-image: linear-gradient(180deg, #61c0ff 0%, #2c66f7 100%);
box-shadow: inset 0 0 32rpx 0 #ffffff80; box-shadow: inset 0 0 32rpx 0 #ffffff80;
border-radius: 16rpx; border-radius: 16rpx;
font-weight: 500; font-weight: 500;
font-size: 36rpx; font-size: 36rpx;
color: #FFFFFF; color: #ffffff;
line-height: 96rpx; line-height: 96rpx;
text-align: center; text-align: center;
margin: 0 auto; margin: 0 auto;
...@@ -425,7 +480,7 @@ export default { ...@@ -425,7 +480,7 @@ export default {
&-box { &-box {
height: 400rpx; height: 400rpx;
border-radius: 22.86rpx; border-radius: 22.86rpx;
background-color: #F9F9F9; background-color: #f9f9f9;
} }
&-img { &-img {
width: 343rpx; width: 343rpx;
...@@ -550,7 +605,7 @@ export default { ...@@ -550,7 +605,7 @@ export default {
} }
} }
.disabled { .disabled {
filter: opacity(0.5) filter: opacity(0.5);
} }
.ok { .ok {
display: flex; display: flex;
...@@ -578,7 +633,7 @@ export default { ...@@ -578,7 +633,7 @@ export default {
.customer-info { .customer-info {
flex: 1; flex: 1;
padding-top: 30rpx; padding-top: 30rpx;
background-color: #F9F9F9; background-color: #f9f9f9;
border-radius: 16rpx; border-radius: 16rpx;
padding: 48rpx; padding: 48rpx;
margin-top: 30rpx; margin-top: 30rpx;
...@@ -610,7 +665,7 @@ export default { ...@@ -610,7 +665,7 @@ export default {
text-align: right; text-align: right;
margin-right: 32rpx; margin-right: 32rpx;
font-size: 28rpx; font-size: 28rpx;
color: #6C6C70; color: #6c6c70;
line-height: 44rpx; line-height: 44rpx;
} }
.value-text { .value-text {
......
...@@ -5,11 +5,6 @@ ...@@ -5,11 +5,6 @@
:src="detailUrl" :src="detailUrl"
mode="widthFix" mode="widthFix"
/> />
<view class="nav-bar" v-show="isBack">
<view class="back" @click="back">
<uni-icons type="left" :size="32"></uni-icons>
</view>
</view>
</view> </view>
</template> </template>
...@@ -20,10 +15,6 @@ export default { ...@@ -20,10 +15,6 @@ export default {
imgUrl: { imgUrl: {
type: String, type: String,
default: '', default: '',
},
isBack: {
type: Boolean,
default: true
} }
}, },
data() { data() {
...@@ -37,10 +28,6 @@ export default { ...@@ -37,10 +28,6 @@ export default {
} }
}, },
methods: { methods: {
back() {
this.detailUrl = ''
this.$emit('back')
}
}, },
} }
</script> </script>
...@@ -50,6 +37,7 @@ export default { ...@@ -50,6 +37,7 @@ export default {
position: absolute; position: absolute;
top: 0; top: 0;
width: 100%; width: 100%;
z-index: 99;
} }
.nav-bar { .nav-bar {
position: fixed; position: fixed;
......
...@@ -22,7 +22,9 @@ ...@@ -22,7 +22,9 @@
<view <view
class="left-content" class="left-content"
:key="updateViewKey" :key="updateViewKey"
@click="showPicture(currentItem.detailImgUrl)"
> >
<image :src="currentItem.poster" class="poster" />
<view class="tips">* 点击图片查看详情 &gt;</view> <view class="tips">* 点击图片查看详情 &gt;</view>
</view> </view>
<view class="right-content"> <view class="right-content">
...@@ -49,6 +51,7 @@ ...@@ -49,6 +51,7 @@
:carInfo="carInfo" :carInfo="carInfo"
ref="couponPopup" ref="couponPopup"
/> />
<picture-box :imgUrl="currentImgUrl" />
</view> </view>
</template> </template>
...@@ -56,9 +59,10 @@ ...@@ -56,9 +59,10 @@
import SkuBox from './SkuBox.vue' import SkuBox from './SkuBox.vue'
import CarBrands from '@/components/CarBrands.vue' import CarBrands from '@/components/CarBrands.vue'
import CouponPop from './CouponPop.vue' import CouponPop from './CouponPop.vue'
import PictureBox from './Picture.vue'
export default { export default {
name: 'Reception', name: 'Reception',
components: { SkuBox, CarBrands, CouponPop }, components: { SkuBox, CarBrands, CouponPop, PictureBox },
props: { props: {
customerType: Number, customerType: Number,
show: Boolean, show: Boolean,
...@@ -72,7 +76,9 @@ export default { ...@@ -72,7 +76,9 @@ export default {
currentCarString: '', currentCarString: '',
customerInfo: {}, customerInfo: {},
updateViewKey: Date.now(), updateViewKey: Date.now(),
carInfo: {} carInfo: {},
currentImgUrl: '',
currentItem: {}
} }
}, },
watch: { watch: {
...@@ -126,6 +132,7 @@ export default { ...@@ -126,6 +132,7 @@ export default {
this.updateViewKey = Date.now() this.updateViewKey = Date.now()
}, },
changePreView (e) { changePreView (e) {
this.currentItem = e
this.updateViewKey = Date.now() this.updateViewKey = Date.now()
}, },
handleSelect (item) { handleSelect (item) {
...@@ -133,6 +140,9 @@ export default { ...@@ -133,6 +140,9 @@ export default {
this.customerInfo.carModel = item.name this.customerInfo.carModel = item.name
this.$store.dispatch('setCustomerInfo', this.customerInfo) this.$store.dispatch('setCustomerInfo', this.customerInfo)
this.carInfo = item this.carInfo = item
},
showPicture (e) {
this.currentImgUrl = e
} }
} }
} }
...@@ -207,8 +217,11 @@ export default { ...@@ -207,8 +217,11 @@ export default {
.left-content { .left-content {
width: 1328rpx; width: 1328rpx;
height: 100%; height: 100%;
background: #069;
position: relative; position: relative;
.poster{
width: 100%;
height: 100%;
}
.tips { .tips {
position: absolute; position: absolute;
right: 32rpx; right: 32rpx;
......
...@@ -90,7 +90,11 @@ export default { ...@@ -90,7 +90,11 @@ export default {
goodsId: '', goodsId: '',
contentHeight: '0', contentHeight: '0',
requested: false, requested: false,
test: '段落内容\n段落内容\n段落内容\n段\n#段落内容\n#段落内容\n#\n#段落内容\n#段落内容\n#段落内容\n#' currentItem: {
poster:'https://img02.glsx.com.cn/weapp/resource/app-tape/common/default-cover.webp',
detailImgUrl: 'https://wx.glsx.com.cn/upload/biz/d3c64724-3e0c-4401-aabe-56dc0060f6d6.png'
},
test: '·AITO汽车专享 3M车窗膜(全车)\n·M7专享天窗冰甲\n·AITO汽车专享 挡泥板(适配M7)\n·AITO汽车专享 底盘护板(适配M7)\n·AITO汽车专享 挡泥板(适配M7)\n·AITO汽车专享 M7中控屏钢化保护膜\n·M7专享后备箱垫'
} }
}, },
watch: { watch: {
...@@ -149,6 +153,7 @@ export default { ...@@ -149,6 +153,7 @@ export default {
async getSkuConfig () { async getSkuConfig () {
this.test = this.test.replace(/<\/?br\s*\/?>|\n/g, '<br>') this.test = this.test.replace(/<\/?br\s*\/?>|\n/g, '<br>')
// this.$forceUpdate() // this.$forceUpdate()
this.changeGoods(0)
}, },
setScrollHeight () { setScrollHeight () {
this.$nextTick(() => { this.$nextTick(() => {
...@@ -158,12 +163,12 @@ export default { ...@@ -158,12 +163,12 @@ export default {
}).exec() }).exec()
}) })
}, },
changeGoods(index){ changeGoods (index) {
this.goodsId = index this.goodsId = index
this.changePreView() this.changePreView()
}, },
changePreView(){ changePreView () {
this.$emit('changePreView') this.$emit('changePreView', this.currentItem)
} }
} }
} }
......
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
@choose="choose" @choose="choose"
@finish="open" @finish="open"
:id="id" :id="id"
toolStyle="top:144rpx;" toolStyle="top:calc(50% - 320rpx);"
/> />
</template> </template>
<finish-step <finish-step
...@@ -125,7 +125,12 @@ export default { ...@@ -125,7 +125,12 @@ export default {
}, },
back () { back () {
this.$refs?.toolRef?.hide(); this.$refs?.toolRef?.hide();
this.$emit("back"); // this.$emit("back");
if(this.id == 1) {
let [reception] = this.$refs.media1
if(reception.currentImgUrl) reception.showPicture('')
else this.$emit("back");
} else this.$emit("back");
}, },
done (e) { done (e) {
this.$refs.toolRef.hide(); this.$refs.toolRef.hide();
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!