Commit d0c24dc1 by 前端

Merge branch 'wuwx_dev_V3.0' into 'master'

Wuwx dev v3.0

See merge request !364
2 parents 57d6708c aa40b06d
......@@ -141,6 +141,15 @@ const createdNameList = params => {
sign: true
})
}
const templateDetail = params => {
params.method = `${path}template.detail`
return http({
url: URL,
method: 'POST',
data: params,
sign: true
})
}
export default {
getCard,
merchant,
......@@ -155,5 +164,6 @@ export default {
createdNameList,
templateUpdate,
templateSave,
templateDetail,
crowdfundingActivity
}
......@@ -304,6 +304,7 @@
:isDisabled="item.isDisabled"
@selectProvince="e => handleSelectProvince(e, item)"
@selectCity="e => handleSelectCity(e, item)"
:provinceView="item.provinceView"
></Province>
<el-input
style="flex: 1;"
......@@ -565,6 +566,10 @@ export default {
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
if (!fullAddress) {
this.dialogMapVisible = false
return
}
var provincecode = mapInfo.geocoderAddress.adcode || this.formObj[this.targetItem.attrObj.provinceCode]
this.formObj[this.targetItem.attrObj.provinceCode] = provincecode
// 获取省市
......
......@@ -206,4 +206,4 @@ export default {
margin-right: 6px;
}
}
</style>
</style>
\ 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
// let request = require('@/http/request.js')
let cfg = require('./conf.js')
......
......@@ -309,6 +309,12 @@ export default {
templateUpdateApi: this.$apis.welcomeword.templateUpdate,
templateSaveApi: this.$apis.welcomeword.templateSave,
templateDetailApi: this.$apis.welcomeword.templateDetail
},
{
name: '链接',
type: 'postLink',
funName: 'postLink',
uploadApi: this.$apis.common.pictureUpload
}
],
basicForm: {
......@@ -497,6 +503,9 @@ export default {
params.crowdFunding = true
}
item.attContent = JSON.stringify(item.attContent)
} else if (item.attType == 4) {
params.crowdFunding = true
item.attContent = JSON.stringify(item.attContent)
}
return item
})
......
......@@ -7,7 +7,7 @@
<template v-if="item.attType == 1">
<div class="preview-text text" v-html="item.attContent"></div>
</template>
<template v-else-if="item.attType == 7 || item.attType == 4">
<template v-else-if="item.attType == 7">
<div class="preview-activity">
<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 />
......@@ -19,6 +19,12 @@
</div>
</div>
</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">
<el-image style="width: 100px" :src="item.attContent" fit="contain"></el-image>
</template>
......@@ -70,7 +76,7 @@ export default {
val.forEach(item => {
if (item.attType == 1) {
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, '')
const list = emoji.flat(Infinity)
let index = parseInt(list.indexOf(word)) + 1
......
......@@ -152,9 +152,8 @@
<el-option v-for="value in baseData.consultantList" :key="value.userOneid" :label="value.staffName" :value="value.userOneid"></el-option>
</el-select>
</el-radio>
<el-button v-show="!baseData.consultantList.length" type="text"></el-button>
<p style="color: #5850ff;margin-left: 22px;" @click="handleNoServer">请在首页-跟进专员模块里添加类型为“在线客服”的跟进专员</p>
<el-radio v-model="editForm.customerServerType" :label="2">
<p style="color: #5850ff;margin-left: 22px;" v-show="!baseData.consultantList.length" @click="handleNoServer">请在首页-跟进专员模块里添加类型为“在线客服”的跟进专员</p>
<el-radio v-model="editForm.customerServerType" :label="2" :class="[!baseData.consultantList.length ? '' : 'haveConsultantList']">
<!-- <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-radio>
......@@ -237,7 +236,6 @@
</relate-store-dialog>
</div>
</template>
<script>
export default {
name: 'homeSet',
......@@ -494,7 +492,6 @@ export default {
]
}
},
mounted() {
this.userInfo = this.$globalState.session
this.getInfo()
......@@ -511,7 +508,6 @@ export default {
// let href = window.location.host
// this.showGh = href.indexOf('cgacar') != -1
},
methods: {
handleServerUrlChange(value) {
this.editForm.customerServerType = value ? 2 : ''
......@@ -933,37 +929,31 @@ export default {
.home-set .home-set-form .item-box .wechat-container{
margin: 0 64px 0 20px !important;
}
.home-set .home-set-form .item-box .banner-box{
position: relative;
padding-left: 20px;
}
.home-set .home-set-form .item-box .add-banner-btn {
position: absolute;
top: 0;
right: 0;
z-index: 10;
}
.home-set .home-set-form .item-box .home-set-tabs .el-tabs__content{
border: 1px solid #E5E5E5;
border-radius: 0 4px 4px 4px;
border-top: none;
padding: 20px;
}
.home-set .banner-img{
display: flex;
}
.home-set .banner-label{
flex: 0 134px;
text-align: right;
font-weight: 400;
color: #666;
}
.home-set .home-set-form .item-box .home-set-tabs.el-tabs--card>.el-tabs__header .el-tabs__nav{
border: none !important;
}
......@@ -1171,4 +1161,8 @@ export default {
width: 800px;
margin-left: 45px;
}
</style>
.haveConsultantList {
display: block;
margin-top: 32px;
}
</style>
\ 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 @@
</GLTable>
<!-- 表格区域 end -->
</div>
<!-- 分享 -->
<share-dialog
:isShareVisible="isShareVisible"
:shareForm="shareForm"
@handleShareClose="handleShareClose"
></share-dialog>
<!-- 众筹分享 -->
<crowdFundingShare :isShareVisible="isShareVisible" :shareForm="shareForm" @handleShareClose="handleShareClose"></crowdFundingShare>
</div>
</template>
<script>
import shareDialog from '../productGroup/components/shareDialog'
import crowdFundingShare from '../productGroup/components/crowdFundingShareDialog.vue'
import * as dayjs from 'dayjs'
import url from '@/assets/empty.png'
import { exportFn } from '@/common/constant'
......@@ -370,7 +366,7 @@ export default {
},
components: {
shareDialog
crowdFundingShare
},
mounted () {
......@@ -412,6 +408,9 @@ export default {
fn && fn()
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!