Commit 732c56ff by 前端

Merge branch 'SAAS+V4.47.0' into 'master'

上线合并

See merge request !77
2 parents 04a7e22a 0e3b0804
...@@ -284,7 +284,7 @@ const liveroomOverview = params => { ...@@ -284,7 +284,7 @@ const liveroomOverview = params => {
const getCrowdfundingParams = params => { const getCrowdfundingParams = params => {
params.method = 'scrm.api.shopmall.crowdfunding.activity.parameter.list' params.method = 'scrm.api.shopmall.crowdfunding.activity.parameter.list'
/**1秒杀 2直播间活动 3众筹 4膨胀金 */ /**1秒杀 2直播间活动 3众筹 4膨胀金 */
params.marketingType = 3 params.marketingType = params.marketingType || 3
return http({ return http({
url: 'rop-scrm-shopmall/router', url: 'rop-scrm-shopmall/router',
method: 'POST', method: 'POST',
......
...@@ -11,6 +11,11 @@ ...@@ -11,6 +11,11 @@
</el-popover> </el-popover>
: :
</span> </span>
<span v-else-if="!item.isHide && item.tipsClick" class="tips-block" slot="label" @click="item.tipsClick">
<span class="tips-label">{{ item.label }}</span>
<img slot="reference" class="tips-icon" src="./images/icon-tip.png" />
:
</span>
<span v-else-if="!item.isHide && item.label && !item.tips" slot="label"> <span v-else-if="!item.isHide && item.label && !item.tips" slot="label">
<span class="combi-form-label" :style="{ width: item.labelWidth || labelWidth }">{{ item.label }}:</span> <span class="combi-form-label" :style="{ width: item.labelWidth || labelWidth }">{{ item.label }}:</span>
</span> </span>
......
...@@ -25,3 +25,5 @@ start() ...@@ -25,3 +25,5 @@ start()
export { bootstrap, mount, unmount } from '@/setup' export { bootstrap, mount, unmount } from '@/setup'
export const http = params => Vue.prototype.$http(params) export const http = params => Vue.prototype.$http(params)
export const http_common = params => Vue.prototype.$http_common(params) export const http_common = params => Vue.prototype.$http_common(params)
export const http_merchant = params => Vue.prototype.$http_merchant(params)
...@@ -12,7 +12,7 @@ let instance = null ...@@ -12,7 +12,7 @@ let instance = null
Vue.use(ElementUI) Vue.use(ElementUI)
Vue.use(GLTable) Vue.use(GLTable)
export async function bootstrap({ history, common, messenger, globalState, routerBase }) { export async function bootstrap({ history, common, messenger, globalState, routerBase }) {
const { response, request, sign, secret, sign_common, request_common, merchantId, saasOrder } = await fetchConfig(common) const { response, request, sign, secret, sign_common, request_common, merchantId, saasOrder,request_merchant, channelVideoList } = await fetchConfig(common)
Vue.prototype.$history = history Vue.prototype.$history = history
Vue.prototype.$merchantId = merchantId Vue.prototype.$merchantId = merchantId
Vue.prototype.$saasOrder = saasOrder Vue.prototype.$saasOrder = saasOrder
...@@ -24,6 +24,8 @@ export async function bootstrap({ history, common, messenger, globalState, route ...@@ -24,6 +24,8 @@ export async function bootstrap({ history, common, messenger, globalState, route
Vue.prototype.$messageBox = messageBox Vue.prototype.$messageBox = messageBox
Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: globalState.session.token } }) Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: globalState.session.token } })
Vue.prototype.$http_common = new common.Http({ response, signWay: 'md5', request: request_common, sign: sign_common, secret, alert: ElementUI.Message.error, headers: { TGT: globalState.session.token } }) Vue.prototype.$http_common = new common.Http({ response, signWay: 'md5', request: request_common, sign: sign_common, secret, alert: ElementUI.Message.error, headers: { TGT: globalState.session.token } })
Vue.prototype.$http_merchant = new common.Http({ response, request: request_merchant, sign, secret, alert: ElementUI.Message.error, headers: { token: globalState.session.token } })
Vue.prototype.$channelVideoList = channelVideoList
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState // Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
// routes = getRoutes(routesData) // routes = getRoutes(routesData)
// subscribe({ messenger }) // subscribe({ messenger })
......
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="page-route"> <div class="page-route" v-if="shareForm.marketingType != 6">
<div> <div>
<span class="share-txt">H5短链接:</span> <span class="share-txt">H5短链接:</span>
<span <span
......
<template>
<GLDialog
title="提示"
mode="mid"
:visible.sync="dialogVisible"
:hasFooter="false"
>
<template v-if="dialogVisible">
<div class="tips-box">
<img
class="pic"
:src="typeList[type].pic"
:style="typeList[type].picStyle"
>
<div class="info">
<div class="info-title">{{typeList[type].title}}</div>
<template v-for="(i,index) in typeList[type].desc">
<div
:key="index"
class="info-desc"
>
{{i}}
</div>
</template>
</div>
</div>
</template>
</GLDialog>
</template>
<script>
export default {
name: 'ChannelTipsDialog',
props: {
type: Number
},
data () {
return {
typeList: {
1: {
pic: 'https://img02.glsx.com.cn/weapp/resource/saas/scrm/activity/media-1.png',
title: '卡片名称',
desc: ['转发到群里的卡片样式的卡片名称和卡片缩略图均可自行更换'],
picStyle: 'width: 251px;height: 447px;'
},
2: {
pic: 'https://img02.glsx.com.cn/weapp/resource/saas/scrm/activity/media-1.png',
title: '卡片缩略图',
desc: ['转发到群里的卡片样式的卡片名称和卡片缩略图均可自行更换'],
picStyle: 'width: 251px;height: 447px;'
},
3: {
pic: 'https://img02.glsx.com.cn/weapp/resource/saas/scrm/activity/media-2.png',
title: '视频Toke',
desc: ['当微信号变成小程序的开发者,进入视频号点击转发按钮时可获取对应的视频Token'],
picStyle: 'width: 202px;height: 437.77px;'
},
4: {
pic: 'https://img02.glsx.com.cn/weapp/resource/saas/scrm/activity/media-3.png',
title: '授权手机号',
desc: ['授权手机号配置为开,则用户点击播放按钮后会弹出授权手机号控件!',
'授权手机号配置为关,则用户点击播放按钮直接进入视频号页面!'],
picStyle: 'width: 202px;height: 436.76px;'
}
},
dialogVisible: false
}
},
mounted () { },
methods: {
open () {
this.dialogVisible = true
},
handleClose () {
}
}
}
</script>
<style scoped lang='scss'>
.tips-box {
display: flex;
padding-bottom: 20px;
.pic {
flex-shrink: 0;
margin: 0 20px 0 64px;
}
.info {
&-title {
font-weight: 500;
font-size: 17px;
color: #333333;
margin-bottom: 16px;
}
&-desc {
max-width: 294px;
font-size: 14px;
color: #666666;
line-height: 20px;
margin-bottom: 16px;
}
}
}
</style>
...@@ -238,7 +238,8 @@ export default { ...@@ -238,7 +238,8 @@ export default {
searchForm: { searchForm: {
activityNames: [], activityNames: [],
activityStatus: '', activityStatus: '',
merchantNames: [] merchantNames: [],
marketingType: ''
}, },
tableSearchForm: {}, tableSearchForm: {},
// 搜索 // 搜索
...@@ -280,6 +281,16 @@ export default { ...@@ -280,6 +281,16 @@ export default {
optionList: [], optionList: [],
optionId: 'confId', optionId: 'confId',
optionLabel: 'confName' optionLabel: 'confName'
},
{
label: '活动类型',
name: 'marketingType',
type: 'select',
width: '215px',
optionList: [],
optionId: 'confId',
optionLabel: 'confName',
optionsName: 'marketingTypeList'
} }
], ],
// 表格按钮 // 表格按钮
...@@ -311,6 +322,28 @@ export default { ...@@ -311,6 +322,28 @@ export default {
} }
}, },
{ {
type: 'el-button',
name: '查看',
attrs: {
type: 'text',
},
condition: row => {
return row.marketingType == 6
},
listeners: {
click: row => {
this.$router.push({
path: '/seckillActivity/editCrowdFund',
query: {
id: row.id,
addOrEdit: 'edit',
activeName: '2'
}
})
}
}
},
{
type: 'GLButton', type: 'GLButton',
name: '编辑', name: '编辑',
attrs: { attrs: {
...@@ -319,7 +352,8 @@ export default { ...@@ -319,7 +352,8 @@ export default {
}, },
condition: row => { condition: row => {
// 结束的直播不能再开 // 结束的直播不能再开
return [1, 2, 3].includes(+row.activityStatus) //
return [1, 2, 3].includes(+row.activityStatus) && row.marketingType != 6
}, },
listeners: { listeners: {
click: row => { click: row => {
...@@ -376,6 +410,9 @@ export default { ...@@ -376,6 +410,9 @@ export default {
attrs: { attrs: {
type: 'text' type: 'text'
}, },
condition: row => {
return row.marketingType != 6
},
listeners: { listeners: {
click: row => { click: row => {
this.handleEdit('copy', row) this.handleEdit('copy', row)
...@@ -424,6 +461,16 @@ export default { ...@@ -424,6 +461,16 @@ export default {
confId: '3', confId: '3',
confName: '已结束' confName: '已结束'
} }
],
marketingTypeList: [
{
confName: '众筹活动',
confId: '3'
},
{
confName: '营销素材',
confId: '6'
},
] ]
}, },
hideStatus: true, hideStatus: true,
...@@ -486,7 +533,10 @@ export default { ...@@ -486,7 +533,10 @@ export default {
}, },
{ {
label: '销量', label: '销量',
prop: 'saleAmount' prop: 'saleAmount',
formatter: cellValue => {
return cellValue.marketingType == 6 ? '--' : cellValue.saleAmount || 0
}
}, },
{ {
label: '活动名称', label: '活动名称',
...@@ -495,6 +545,17 @@ export default { ...@@ -495,6 +545,17 @@ export default {
fixed: 'left' fixed: 'left'
}, },
{ {
label: '活动类型',
width: 100,
fixed: 'left',
formatter: cellValue => {
return {
3: '众筹活动',
6: '营销素材',
}[cellValue.marketingType]
}
},
{
label: '门店', label: '门店',
prop: 'merchantName', prop: 'merchantName',
width: 220, width: 220,
...@@ -544,11 +605,17 @@ export default { ...@@ -544,11 +605,17 @@ export default {
}, },
{ {
label: '退单数', label: '退单数',
prop: 'chargebackNumber' prop: 'chargebackNumber',
formatter: cellValue => {
return cellValue.marketingType == 6 ? '--' : cellValue.chargebackNumber || 0
}
}, },
{ {
label: '核销数', label: '核销数',
prop: 'verificationNumber' prop: 'verificationNumber',
formatter: cellValue => {
return cellValue.marketingType == 6 ? '--' : cellValue.verificationNumber || 0
}
}, },
{ {
label: '定金/元', label: '定金/元',
...@@ -742,6 +809,7 @@ export default { ...@@ -742,6 +809,7 @@ export default {
handleShare (row) { handleShare (row) {
this.$apis.seckillActivity.getCrowdSharedApi({ id: row.id }).then(res => { this.$apis.seckillActivity.getCrowdSharedApi({ id: row.id }).then(res => {
res.marketingType = row.marketingType
this.shareForm = res this.shareForm = res
this.handleShareClose() this.handleShareClose()
}) })
...@@ -782,11 +850,7 @@ export default { ...@@ -782,11 +850,7 @@ export default {
}, },
handleReset () { handleReset () {
this.searchForm = { this.searchForm = this.$options.data.call(this).searchForm
activityNames: [],
activityStatus: '',
merchantNames: []
}
this.handleSearch() this.handleSearch()
}, },
...@@ -799,7 +863,8 @@ export default { ...@@ -799,7 +863,8 @@ export default {
/**参数类型 1:众筹活动名称(返回类型String),2:众筹活动门店 */ /**参数类型 1:众筹活动名称(返回类型String),2:众筹活动门店 */
if (parameterTypeList.includes(1)) { if (parameterTypeList.includes(1)) {
const activity = await this.$apis.seckillActivity.getCrowdfundingParams({ const activity = await this.$apis.seckillActivity.getCrowdfundingParams({
parameterType: 1 parameterType: 1,
marketingType: '3,6'
}) })
let activityNameList = [] let activityNameList = []
if (activity?.parameters && activity.parameters.length) { if (activity?.parameters && activity.parameters.length) {
...@@ -814,7 +879,8 @@ export default { ...@@ -814,7 +879,8 @@ export default {
} }
if (parameterTypeList.includes(2)) { if (parameterTypeList.includes(2)) {
const merchant = await this.$apis.seckillActivity.getCrowdfundingParams({ const merchant = await this.$apis.seckillActivity.getCrowdfundingParams({
parameterType: 2 parameterType: 2,
marketingType: '3,6'
}) })
let merchantNameList = [] let merchantNameList = []
if (merchant?.parameters && merchant.parameters.length) { if (merchant?.parameters && merchant.parameters.length) {
...@@ -930,13 +996,16 @@ export default { ...@@ -930,13 +996,16 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.el-select .el-select__tags > span { .marketing {
/deep/.el-select {
.el-select__tags > span {
display: flex !important; display: flex !important;
width: 80%; width: 80%;
} }
.el-tag {
.el-select .el-tag { // max-width: 55% !important;
max-width: 55% !important; }
}
} }
.line-ellipsis { .line-ellipsis {
......
...@@ -4,6 +4,14 @@ ...@@ -4,6 +4,14 @@
v-loading="loading" v-loading="loading"
class="edit-activity" class="edit-activity"
> >
<GLTabs
v-model="activeName"
:tabPaneList="tabPaneList"
@tab-click="handleClick"
class="tabs"
v-if="routeInfo.addOrEdit != 'edit'"
></GLTabs>
<template v-if="activeName == 1">
<!-- 导航 --> <!-- 导航 -->
<el-tabs <el-tabs
:tab-position="tabPosition" :tab-position="tabPosition"
...@@ -1149,6 +1157,10 @@ ...@@ -1149,6 +1157,10 @@
</el-row> --> </el-row> -->
</select-store> </select-store>
</div> </div>
</template>
<template v-else>
<channel-video :channelDetail="channelDetail" />
</template>
</div> </div>
</template> </template>
...@@ -1157,11 +1169,13 @@ import { limitPrice, businessType } from '@/common/constant' ...@@ -1157,11 +1169,13 @@ import { limitPrice, businessType } from '@/common/constant'
import { utils } from 'glsx-common' import { utils } from 'glsx-common'
import crowdEditWechat from './crowdEditWechat.vue' import crowdEditWechat from './crowdEditWechat.vue'
import selectStore from './components/selectStore' import selectStore from './components/selectStore'
import ChannelVideo from './components/ChannelVideo.vue'
export default { export default {
name: 'editActivity', name: 'editActivity',
components: { components: {
crowdEditWechat, crowdEditWechat,
selectStore selectStore,
ChannelVideo
}, },
data () { data () {
var validatorPhone = function (rule, value, callback) { var validatorPhone = function (rule, value, callback) {
...@@ -2221,7 +2235,19 @@ export default { ...@@ -2221,7 +2235,19 @@ export default {
baseData: { baseData: {
payList: [], payList: [],
payMerchatList: [] payMerchatList: []
} },
tabPaneList: [
{
label: '众筹活动',
name: '1'
},
{
label: '营销素材',
name: '2'
},
],
activeName: '1',//活动类型
channelDetail:{}//视频号详情
} }
}, },
filters: { filters: {
...@@ -2236,6 +2262,7 @@ export default { ...@@ -2236,6 +2262,7 @@ export default {
this.getLiveList() this.getLiveList()
this.setMinHeight('.crowd-config') this.setMinHeight('.crowd-config')
this.routeInfo = this.$route.query this.routeInfo = this.$route.query
if (this.routeInfo.activeName) this.activeName = this.routeInfo.activeName
this.routeInfo.addOrEdit != 'add' ? this.getInfo() : this.getPayList() this.routeInfo.addOrEdit != 'add' ? this.getInfo() : this.getPayList()
var id = this.routeInfo.id var id = this.routeInfo.id
if (id) { if (id) {
...@@ -2795,6 +2822,10 @@ export default { ...@@ -2795,6 +2822,10 @@ export default {
this.$apis.seckillActivity this.$apis.seckillActivity
.getActivityDetailApi({ id: this.routeInfo.id }) .getActivityDetailApi({ id: this.routeInfo.id })
.then(res => { .then(res => {
if(this.activeName != 1) {
this.channelDetail = res
return
}
var info = res, var info = res,
selectedProInfo = [], selectedProInfo = [],
goodsList = [] goodsList = []
...@@ -3824,4 +3855,8 @@ export default { ...@@ -3824,4 +3855,8 @@ export default {
display: block; display: block;
margin: 0 auto; margin: 0 auto;
} }
.tabs {
transform: translateY(-16px);
padding: 6px 0 2px;
}
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!