Commit 7aa39fd7 by 李伟康

commit 提交

1 parent 04a7e22a
......@@ -11,6 +11,11 @@
</el-popover>
:
</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 class="combi-form-label" :style="{ width: item.labelWidth || labelWidth }">{{ item.label }}:</span>
</span>
......
......@@ -25,3 +25,5 @@ start()
export { bootstrap, mount, unmount } from '@/setup'
export const http = params => Vue.prototype.$http(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
Vue.use(ElementUI)
Vue.use(GLTable)
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.$merchantId = merchantId
Vue.prototype.$saasOrder = saasOrder
......@@ -24,6 +24,8 @@ export async function bootstrap({ history, common, messenger, globalState, route
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_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
// routes = getRoutes(routesData)
// subscribe({ messenger })
......
......@@ -64,7 +64,7 @@
</div>
</div>
</div>
<div class="page-route">
<div class="page-route" v-if="shareForm.marketingType != 6">
<div>
<span class="share-txt">H5短链接:</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 {
searchForm: {
activityNames: [],
activityStatus: '',
merchantNames: []
merchantNames: [],
marketingType: ''
},
tableSearchForm: {},
// 搜索
......@@ -280,6 +281,16 @@ export default {
optionList: [],
optionId: 'confId',
optionLabel: 'confName'
},
{
label: '活动分类',
name: 'marketingType',
type: 'select',
width: '215px',
optionList: [],
optionId: 'confId',
optionLabel: 'confName',
optionsName: 'marketingTypeList'
}
],
// 表格按钮
......@@ -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',
name: '编辑',
attrs: {
......@@ -319,7 +352,8 @@ export default {
},
condition: row => {
// 结束的直播不能再开
return [1, 2, 3].includes(+row.activityStatus)
//
return [1, 2, 3].includes(+row.activityStatus) && row.marketingType != 6
},
listeners: {
click: row => {
......@@ -376,6 +410,9 @@ export default {
attrs: {
type: 'text'
},
condition: row => {
return row.marketingType != 6
},
listeners: {
click: row => {
this.handleEdit('copy', row)
......@@ -424,6 +461,16 @@ export default {
confId: '3',
confName: '已结束'
}
],
marketingTypeList: [
{
confName: '众筹活动',
confId: '3'
},
{
confName: '营销素材',
confId: '6'
},
]
},
hideStatus: true,
......@@ -495,6 +542,17 @@ export default {
fixed: 'left'
},
{
label: '活动分类',
width: 100,
fixed: 'left',
formatter: cellValue => {
return {
3: '众筹活动',
6: '营销素材',
}[cellValue.marketingType]
}
},
{
label: '门店',
prop: 'merchantName',
width: 220,
......@@ -742,6 +800,7 @@ export default {
handleShare (row) {
this.$apis.seckillActivity.getCrowdSharedApi({ id: row.id }).then(res => {
res.marketingType = row.marketingType
this.shareForm = res
this.handleShareClose()
})
......@@ -782,11 +841,7 @@ export default {
},
handleReset () {
this.searchForm = {
activityNames: [],
activityStatus: '',
merchantNames: []
}
this.searchForm = this.$options.data.call(this).searchForm
this.handleSearch()
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!