Commit 5f19314f by 前端

Merge branch 'wuwx_dev_V3.0' into 'develop'

Wuwx dev v3.0

See merge request !363
2 parents 07371469 aa40b06d
...@@ -141,6 +141,15 @@ const createdNameList = params => { ...@@ -141,6 +141,15 @@ const createdNameList = params => {
sign: true sign: true
}) })
} }
const templateDetail = params => {
params.method = `${path}template.detail`
return http({
url: URL,
method: 'POST',
data: params,
sign: true
})
}
export default { export default {
getCard, getCard,
merchant, merchant,
...@@ -155,5 +164,6 @@ export default { ...@@ -155,5 +164,6 @@ export default {
createdNameList, createdNameList,
templateUpdate, templateUpdate,
templateSave, templateSave,
templateDetail,
crowdfundingActivity crowdfundingActivity
} }
...@@ -304,6 +304,7 @@ ...@@ -304,6 +304,7 @@
:isDisabled="item.isDisabled" :isDisabled="item.isDisabled"
@selectProvince="e => handleSelectProvince(e, item)" @selectProvince="e => handleSelectProvince(e, item)"
@selectCity="e => handleSelectCity(e, item)" @selectCity="e => handleSelectCity(e, item)"
:provinceView="item.provinceView"
></Province> ></Province>
<el-input <el-input
style="flex: 1;" style="flex: 1;"
...@@ -565,6 +566,10 @@ export default { ...@@ -565,6 +566,10 @@ export default {
this.formObj[this.targetItem.attrObj.lng] = mapInfo.lnglat[0] this.formObj[this.targetItem.attrObj.lng] = mapInfo.lnglat[0]
// var fullAddress = mapInfo.geocoderAddress.addressComponent || this.formObj[this.targetItem.attrObj.fullAddress] // var fullAddress = mapInfo.geocoderAddress.addressComponent || this.formObj[this.targetItem.attrObj.fullAddress]
var fullAddress = mapInfo.geocoderAddress.addressComponent var fullAddress = mapInfo.geocoderAddress.addressComponent
if (!fullAddress) {
this.dialogMapVisible = false
return
}
var provincecode = mapInfo.geocoderAddress.adcode || this.formObj[this.targetItem.attrObj.provinceCode] var provincecode = mapInfo.geocoderAddress.adcode || this.formObj[this.targetItem.attrObj.provinceCode]
this.formObj[this.targetItem.attrObj.provinceCode] = provincecode this.formObj[this.targetItem.attrObj.provinceCode] = provincecode
// 获取省市 // 获取省市
......
...@@ -206,4 +206,4 @@ export default { ...@@ -206,4 +206,4 @@ export default {
margin-right: 6px; margin-right: 6px;
} }
} }
</style> </style>
\ No newline at end of file \ No newline at end of file
/*
* @Descripttion:
* @version:
* @Author: limin
* @Date: 2021-06-07 14:12:32
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2022-09-26 17:25:16
*/
// 根据环境引入不同配置 process.env.VUE_APP_ENV // 根据环境引入不同配置 process.env.VUE_APP_ENV
// let request = require('@/http/request.js') // let request = require('@/http/request.js')
let cfg = require('./conf.js') let cfg = require('./conf.js')
......
...@@ -309,6 +309,12 @@ export default { ...@@ -309,6 +309,12 @@ export default {
templateUpdateApi: this.$apis.welcomeword.templateUpdate, templateUpdateApi: this.$apis.welcomeword.templateUpdate,
templateSaveApi: this.$apis.welcomeword.templateSave, templateSaveApi: this.$apis.welcomeword.templateSave,
templateDetailApi: this.$apis.welcomeword.templateDetail templateDetailApi: this.$apis.welcomeword.templateDetail
},
{
name: '链接',
type: 'postLink',
funName: 'postLink',
uploadApi: this.$apis.common.pictureUpload
} }
], ],
basicForm: { basicForm: {
...@@ -497,6 +503,9 @@ export default { ...@@ -497,6 +503,9 @@ export default {
params.crowdFunding = true params.crowdFunding = true
} }
item.attContent = JSON.stringify(item.attContent) item.attContent = JSON.stringify(item.attContent)
} else if (item.attType == 4) {
params.crowdFunding = true
item.attContent = JSON.stringify(item.attContent)
} }
return item return item
}) })
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<template v-if="item.attType == 1"> <template v-if="item.attType == 1">
<div class="preview-text text" v-html="item.attContent"></div> <div class="preview-text text" v-html="item.attContent"></div>
</template> </template>
<template v-else-if="item.attType == 7 || item.attType == 4"> <template v-else-if="item.attType == 7">
<div class="preview-activity"> <div class="preview-activity">
<div class="activity-name">{{ item.attContent.marketingName }}</div> <div class="activity-name">{{ item.attContent.marketingName }}</div>
<img v-if="item.attContent.marketingType != 5 && item.attContent.marketingType != 6 && item.attContent.marketingType != 7" class="activity-logo" src="@/assets/guestCustom/activity-logo.png" alt /> <img v-if="item.attContent.marketingType != 5 && item.attContent.marketingType != 6 && item.attContent.marketingType != 7" class="activity-logo" src="@/assets/guestCustom/activity-logo.png" alt />
...@@ -19,6 +19,12 @@ ...@@ -19,6 +19,12 @@
</div> </div>
</div> </div>
</template> </template>
<template v-else-if="item.attType == 4">
<div class="preview-activity">
<div class="activity-name">{{ item.attContent.title }}</div>
<img class="link-logo" src="@/assets/guestCustom/link.png" alt />
</div>
</template>
<template v-else-if="item.attType == 2"> <template v-else-if="item.attType == 2">
<el-image style="width: 100px" :src="item.attContent" fit="contain"></el-image> <el-image style="width: 100px" :src="item.attContent" fit="contain"></el-image>
</template> </template>
...@@ -70,7 +76,7 @@ export default { ...@@ -70,7 +76,7 @@ export default {
val.forEach(item => { val.forEach(item => {
if (item.attType == 1) { if (item.attType == 1) {
const attContent = item.attContent const attContent = item.attContent
const htm = attContent.replace(/\[[\u4E00-\u9FA56]{1,4}]/gi, function (res) { const htm = attContent.replace(/\[[\u4E00-\u9FA56]{1,4}]/gi, function(res) {
let word = res.replace(/\[|\]/gi, '') let word = res.replace(/\[|\]/gi, '')
const list = emoji.flat(Infinity) const list = emoji.flat(Infinity)
let index = parseInt(list.indexOf(word)) + 1 let index = parseInt(list.indexOf(word)) + 1
......
...@@ -152,9 +152,8 @@ ...@@ -152,9 +152,8 @@
<el-option v-for="value in baseData.consultantList" :key="value.userOneid" :label="value.staffName" :value="value.userOneid"></el-option> <el-option v-for="value in baseData.consultantList" :key="value.userOneid" :label="value.staffName" :value="value.userOneid"></el-option>
</el-select> </el-select>
</el-radio> </el-radio>
<el-button v-show="!baseData.consultantList.length" type="text"></el-button> <p style="color: #5850ff;margin-left: 22px;" v-show="!baseData.consultantList.length" @click="handleNoServer">请在首页-跟进专员模块里添加类型为“在线客服”的跟进专员</p>
<p style="color: #5850ff;margin-left: 22px;" @click="handleNoServer">请在首页-跟进专员模块里添加类型为“在线客服”的跟进专员</p> <el-radio v-model="editForm.customerServerType" :label="2" :class="[!baseData.consultantList.length ? '' : 'haveConsultantList']">
<el-radio v-model="editForm.customerServerType" :label="2">
<!-- <el-radio v-model="editForm.customerServerType" v-if="showGh" :label="2"> --> <!-- <el-radio v-model="editForm.customerServerType" v-if="showGh" :label="2"> -->
<el-input placeholder="请输入链接" :disabled="editForm.customerServerType == 1" v-model="editForm.customerServerUrl" clearable @change="handleServerUrlChange"></el-input> <el-input placeholder="请输入链接" :disabled="editForm.customerServerType == 1" v-model="editForm.customerServerUrl" clearable @change="handleServerUrlChange"></el-input>
</el-radio> </el-radio>
...@@ -237,7 +236,6 @@ ...@@ -237,7 +236,6 @@
</relate-store-dialog> </relate-store-dialog>
</div> </div>
</template> </template>
<script> <script>
export default { export default {
name: 'homeSet', name: 'homeSet',
...@@ -494,7 +492,6 @@ export default { ...@@ -494,7 +492,6 @@ export default {
] ]
} }
}, },
mounted() { mounted() {
this.userInfo = this.$globalState.session this.userInfo = this.$globalState.session
this.getInfo() this.getInfo()
...@@ -511,7 +508,6 @@ export default { ...@@ -511,7 +508,6 @@ export default {
// let href = window.location.host // let href = window.location.host
// this.showGh = href.indexOf('cgacar') != -1 // this.showGh = href.indexOf('cgacar') != -1
}, },
methods: { methods: {
handleServerUrlChange(value) { handleServerUrlChange(value) {
this.editForm.customerServerType = value ? 2 : '' this.editForm.customerServerType = value ? 2 : ''
...@@ -933,37 +929,31 @@ export default { ...@@ -933,37 +929,31 @@ export default {
.home-set .home-set-form .item-box .wechat-container{ .home-set .home-set-form .item-box .wechat-container{
margin: 0 64px 0 20px !important; margin: 0 64px 0 20px !important;
} }
.home-set .home-set-form .item-box .banner-box{ .home-set .home-set-form .item-box .banner-box{
position: relative; position: relative;
padding-left: 20px; padding-left: 20px;
} }
.home-set .home-set-form .item-box .add-banner-btn { .home-set .home-set-form .item-box .add-banner-btn {
position: absolute; position: absolute;
top: 0; top: 0;
right: 0; right: 0;
z-index: 10; z-index: 10;
} }
.home-set .home-set-form .item-box .home-set-tabs .el-tabs__content{ .home-set .home-set-form .item-box .home-set-tabs .el-tabs__content{
border: 1px solid #E5E5E5; border: 1px solid #E5E5E5;
border-radius: 0 4px 4px 4px; border-radius: 0 4px 4px 4px;
border-top: none; border-top: none;
padding: 20px; padding: 20px;
} }
.home-set .banner-img{ .home-set .banner-img{
display: flex; display: flex;
} }
.home-set .banner-label{ .home-set .banner-label{
flex: 0 134px; flex: 0 134px;
text-align: right; text-align: right;
font-weight: 400; font-weight: 400;
color: #666; color: #666;
} }
.home-set .home-set-form .item-box .home-set-tabs.el-tabs--card>.el-tabs__header .el-tabs__nav{ .home-set .home-set-form .item-box .home-set-tabs.el-tabs--card>.el-tabs__header .el-tabs__nav{
border: none !important; border: none !important;
} }
...@@ -1171,4 +1161,8 @@ export default { ...@@ -1171,4 +1161,8 @@ export default {
width: 800px; width: 800px;
margin-left: 45px; margin-left: 45px;
} }
</style> .haveConsultantList {
display: block;
margin-top: 32px;
}
</style>
\ No newline at end of file \ No newline at end of file
<!-- 众筹分享弹窗 -->
<template>
<GLDialog title="分享" mode="mid" okText="关闭" :visible.sync="isShareVisible" :before-close="handleShareClose" :hasFooter="false">
<div class="share-dialog">
<div>
<img style="width: 220px; height: 310px;" :src="shareForm.posterUrl" />
<el-button style="display: block;margin-top: 12px;margin-left: 65px;" :size="size" type="primary" @click="handleSaveImg(shareForm.posterUrl)">下载海报</el-button>
</div>
<div>
<div class="code">
<div class="activity-code">
<div class="code-img">
<img style="width: 146px; height: 146px;" :src="shareForm.qrCodeUrl" />
</div>
<div>
<p class="code-text">活动二维码</p>
<el-button style="margin-top: 17px;" :size="size" type="primary" @click="handleSaveImg(shareForm.qrCodeUrl, '活动二维码')">下载二维码</el-button>
</div>
</div>
<div class="activity-code" style="margin-top: 14px;">
<div class="code-img">
<img style="width: 146px; height: 146px;" :src="shareForm.staffLoginQrCodeUrl" />
</div>
<div>
<p class="code-text">员工注册码</p>
<el-button style="margin-top: 17px;" :size="size" type="primary" @click="handleSaveImg(shareForm.staffLoginQrCodeUrl, '员工注册码')">下载注册码</el-button>
</div>
</div>
</div>
</div>
</div>
<div class="page-route">
<div>
<span class="share-txt">H5短链接:</span>
<span class="copy" @click="handleSaveTxt(shareForm.linkUrl)">复制</span>
<span class="copy" style="margin-left: 10px;width: 75px;" @click="handleSaveTxt(shareForm.originallinkUrl)">复制群发链接</span>
</div>
<p class="link" style="margin-bottom: 16px;">{{ shareForm.linkUrl }}</p>
<div>
<span class="share-txt">员工注册码链接:</span>
<span class="copy" @click="handleSaveTxt(shareForm.staffLoginLinkUrl)">复制</span>
</div>
<p class="link" style="margin-bottom: 16px;">{{ shareForm.staffLoginLinkUrl }}</p>
<div>
<span class="share-txt">活动ID:</span>
<span class="copy" @click="handleSaveTxt(shareForm.id)">复制</span>
</div>
<p class="link">{{ shareForm.id }}</p>
</div>
</GLDialog>
</template>
<script>
export default {
name: 'crowdFundingShare',
data() {
return {}
},
props: {
isShareVisible: {
type: Boolean,
default: false
},
shareForm: {
type: Object,
default: () => { }
}
},
mounted() { },
methods: {
handleSaveImg(url, downloadTxt = '海报') {
var alink = document.createElement('a')
alink.href = url
alink.setAttribute('target', '_blank')
alink.download = downloadTxt
alink.click()
alink.remove()
},
handleSaveTxt(txt) {
this.$message({
message: '复制成功',
type: 'success',
customClass: 'message-Z-zinde'
})
const input = document.createElement('input')
document.body.appendChild(input)
input.setAttribute('value', txt)
input.select()
document.execCommand('Copy')
document.body.removeChild(input)
},
handleShareClose() {
this.$emit('handleShareClose')
}
}
}
</script>
<style scoped>
.share-dialog {
display: flex;
}
.share-dialog .code {
height: 310px;
border-left: 1px dashed #DCDFE6;
margin-left: 20px;
}
.share-dialog .code .code-img {
width: 146px;
height: 146px;
border: 1px solid #E8E8EA;
margin-left: 20px;
margin-right: 36px;
}
.share-dialog .code .activity-code {
display: flex;
align-items: center;
}
.share-dialog .code .code-text {
font-family: PingFangSC-Regular;
font-size: 14px;
color: #333333;
}
.page-route {
margin-top: 20px;
background: #F4F6FC;
padding: 20px;
}
.page-route .link {
width: 492px;
font-family: PingFangSC-Medium;
font-size: 14px;
color: #5850FF;
line-height: 20px;
}
.page-route .share-txt {
font-family: PingFangSC-Regular;
font-size: 14px;
color: #333333;
}
.page-route .copy {
width: 40px;
height: 20px;
background: #5850FF;
border-radius: 2px;
font-family: PingFangSC-Regular;
font-size: 12px;
color: #FFFFFF;
display: inline-block;
line-height: 20px;
text-align: center;
cursor: pointer;
}
</style>
...@@ -93,17 +93,13 @@ ...@@ -93,17 +93,13 @@
</GLTable> </GLTable>
<!-- 表格区域 end --> <!-- 表格区域 end -->
</div> </div>
<!-- 分享 --> <!-- 众筹分享 -->
<share-dialog <crowdFundingShare :isShareVisible="isShareVisible" :shareForm="shareForm" @handleShareClose="handleShareClose"></crowdFundingShare>
:isShareVisible="isShareVisible"
:shareForm="shareForm"
@handleShareClose="handleShareClose"
></share-dialog>
</div> </div>
</template> </template>
<script> <script>
import shareDialog from '../productGroup/components/shareDialog' import crowdFundingShare from '../productGroup/components/crowdFundingShareDialog.vue'
import * as dayjs from 'dayjs' import * as dayjs from 'dayjs'
import url from '@/assets/empty.png' import url from '@/assets/empty.png'
import { exportFn } from '@/common/constant' import { exportFn } from '@/common/constant'
...@@ -370,7 +366,7 @@ export default { ...@@ -370,7 +366,7 @@ export default {
}, },
components: { components: {
shareDialog crowdFundingShare
}, },
mounted () { mounted () {
...@@ -412,6 +408,9 @@ export default { ...@@ -412,6 +408,9 @@ export default {
fn && fn() fn && fn()
this.handleSearch() this.handleSearch()
} }
if (res.code == '21') {
this.handleSearch()
}
}) })
} }
} }
......
File mode changed
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!