Commit adc5fea5 by xinla

--no commit message

1 parent 6938a4a2
......@@ -115,20 +115,13 @@ export default {
<el-form-item label="跳转类型">
<el-radio-group v-model="form.jumpType">
<el-radio-button :label="1">跳入微信</el-radio-button>
<el-tooltip
:value="currentActive == 0"
manual
class="item"
transition="normal"
effect="light"
content="尽情期待"
placement="top">
<!-- manual
:value="currentActive == 0"
transition="normal" -->
<el-tooltip class="item" effect="light" content="尽情期待" placement="top">
<el-radio-button :label="2" disabled>跳出微信</el-radio-button>
</el-tooltip>
</el-radio-group>
<!-- <el-tooltip :value="true" class="item" effect="light" content="尽情期待" placement="top">
<el-button :label="2">跳出微信</el-button>
</el-tooltip> -->
</el-form-item>
<el-form-item label="推广类型">
<el-radio-group v-model="form.extensionType" @change="extensionTypeChange">
......
......@@ -44,6 +44,7 @@ export default {
qrCodeVisible: false,
storeLoading: false,
isLoadForm: false,
}
},
computed: {
......@@ -52,7 +53,14 @@ export default {
},
},
watch: {
'form.type'(val) {
'form.type'(val, oldVal) {
// 触达类型改变时情况已有表单数据
if (!this.form.id || this.isLoadForm) {
debugger
this.$refs.form.resetFields()
}
this.isLoadForm = true
// <!-- 门店导购活码,门店群活码 -->
if ([6, 8].includes(+val)) {
this.storeLoading = true
getCode({ 6: 1, 8: 2 }[val])
......@@ -65,6 +73,9 @@ export default {
})
}
},
'form.id'(val) {
this.isLoadForm = true
},
},
created() {},
mounted() {},
......@@ -148,7 +159,7 @@ export default {
<!-- 员工活码,客群活码 -->
<template v-else-if="[4, 5].includes(+form.type)">
<el-form-item prop="qrCodeId" :label="touchTypeDict[form.type].name">
<el-form-item prop="qrCode" :label="touchTypeDict[form.type].name">
<!-- 员工活码,客群活码 -->
<el-button v-if="!form.qrCode" type="primary" plain @click="choiceQqcode(form.type)">
{{ '选择' + touchTypeDict[form.type].name }}
......@@ -167,7 +178,10 @@ export default {
</template>
<!-- 门店导购活码,门店群活码 -->
<el-form-item v-else-if="[6, 8].includes(+form.type)" prop="5" :label="'选择' + touchTypeDict[form.type].name">
<el-form-item
v-else-if="[6, 8].includes(+form.type)"
prop="qrCode"
:label="'选择' + touchTypeDict[form.type].name">
<el-button
v-if="!form.qrCode"
v-loading="storeLoading"
......
......@@ -37,9 +37,9 @@ export default {
<!-- 个人小程序,企业小程序 -->
<template v-if="[7, 9].includes(+data.type)">
<div class="mt10">{{ data.name || '小程序' }}</div>
<div class="mt20 mb20">
<el-image style="width: 120px; height: 120px" :src="data.avatar"></el-image>
</div>
<el-image
style="width: 120px; height: 120px; display: block; margin: 20px auto 30px"
:src="data.avatar"></el-image>
<el-button type="primary">点击打开{{ data.name || '小程序' }}</el-button>
</template>
<template v-else>
......@@ -54,8 +54,8 @@ export default {
<div class="tips mt20 toe">{{ data.describe || '描述' }}</div>
</div>
<el-image style="width: 120px; height: 120px; margin: 20px 0" :src="data.qrCode" fit="fit"></el-image>
<div class="mt20">长按二维码{{ touchTypeDict[data.type].previewMobileTitle }}</div>
<el-image style="width: 120px; height: 120px; margin: 20px 0 30px" :src="data.qrCode" fit="fit"></el-image>
<div class="">长按二维码{{ touchTypeDict[data.type].previewMobileTitle }}</div>
</template>
</div>
</PhoneTemplate>
......
......@@ -9,10 +9,9 @@
<!-- 个人小程序,企业小程序 -->
<template v-if="[7, 9].includes(+data.type)">
<div class="">{{ data.name || '小程序' }}</div>
<div class="mt20 mb20">
<image style="width: 150px; height: 150px" :src="data.avatar" show-menu-by-longpress fit="fit"></image>
</div>
<button type="primary" @tap="open()">点击打开{{ data.name || '小程序' }}</button>
<image style="width: 200px; height: 200px; display: block; margin: 20px auto 30px;" :src="data.avatar"
show-menu-by-longpress fit="fit"></image>
<button class="" type="primary" @tap="open()">点击打开{{ data.name || '小程序' }}</button>
</template>
<template v-else>
......@@ -27,9 +26,9 @@
<div class="tips mt20 toe">{{ data.describe || '描述' }}</div>
</div>
<image style="width: 180px; height: 180px; margin: 20px 0" :src="data.qrCode" show-menu-by-longpress>
<image style="width: 200px; height: 200px; margin: 20px 0 30px" :src="data.qrCode" show-menu-by-longpress>
</image>
<div class="mt20">长按二维码{{ touchTypeDict[data.type].previewMobileTitle }}</div>
<div class="">长按二维码{{ touchTypeDict[data.type].previewMobileTitle }}</div>
</template>
</div>
</view>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!