分享规则修改
This commit is contained in:
parent
f11ddbbd63
commit
5397eb8c56
@ -138,14 +138,14 @@ const gamesRouter = {
|
||||
meta: {title: '客服奖励'},
|
||||
},
|
||||
{
|
||||
path: 'ad-pos',
|
||||
component: () => import('@/views/games/details/adPos'),
|
||||
path: 'ad/ad-pos',
|
||||
component: () => import('@/views/games/details/ad/adPos'),
|
||||
name: 'GameDetailsAdPos',
|
||||
meta: {title: '广告位'},
|
||||
},
|
||||
{
|
||||
path: 'ad-uid',
|
||||
component: () => import('@/views/games/details/adUid'),
|
||||
path: 'ad/ad-uid',
|
||||
component: () => import('@/views/games/details/ad/adUid'),
|
||||
name: 'GameDetailsAdUid',
|
||||
meta: {title: '广告码'},
|
||||
},
|
||||
|
@ -37,11 +37,11 @@
|
||||
|
||||
<el-submenu
|
||||
v-if="uid !== 'new'"
|
||||
:index="`/games/details/${uid}/ad-pos`"
|
||||
:index="`/games/details/${uid}/ad/ad-pos`"
|
||||
>
|
||||
<template slot="title">广告</template>
|
||||
<el-menu-item :index="`/games/details/${uid}/ad-pos`">广告位</el-menu-item>
|
||||
<el-menu-item :index="`/games/details/${uid}/ad-uid`">广告码</el-menu-item>
|
||||
<el-menu-item :index="`/games/details/${uid}/ad/ad-pos`">广告位</el-menu-item>
|
||||
<el-menu-item :index="`/games/details/${uid}/ad/ad-uid`">广告码</el-menu-item>
|
||||
</el-submenu>
|
||||
<el-menu-item
|
||||
v-if="uid !== 'new'"
|
||||
|
@ -127,9 +127,18 @@
|
||||
<el-radio :label="2">只分享</el-radio>
|
||||
<el-radio :label="3">只广告</el-radio>
|
||||
<el-radio :label="4">关闭</el-radio>
|
||||
<el-radio :label="5">自定义</el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
<div v-if="!onlyAd">
|
||||
<el-form-item
|
||||
label="分享规则"
|
||||
prop="ad_cd.reg"
|
||||
v-if="shareForm.type === 5"
|
||||
>
|
||||
<el-input v-model="shareForm.ad_cd.reg" />
|
||||
<span class="ipt-tip">分享与广告交替规则,如分享2次后广告5次,填写: S-2,A-5</span>
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
label="分享次数"
|
||||
prop="share_count"
|
||||
@ -528,6 +537,7 @@ export default {
|
||||
ad_count: 0,
|
||||
ad_cd: {
|
||||
iscapture: false,
|
||||
reg: ''
|
||||
},
|
||||
type: 0,
|
||||
game_id: '',
|
||||
@ -570,6 +580,7 @@ export default {
|
||||
{required: true, message: '请至少添加一个分享组', trigger: 'blur'},
|
||||
],
|
||||
sex: [{required: true, message: '请选择性别', trigger: 'blur'}],
|
||||
'ad_cd.reg': [{required: true, message: '请填写分享规则', trigger: 'blur'}]
|
||||
},
|
||||
imageUrl: '',
|
||||
// modal - shareType
|
||||
@ -721,6 +732,7 @@ export default {
|
||||
if (typeof this.shareForm.ad_cd !== 'object') {
|
||||
this.shareForm.ad_cd = {
|
||||
iscapture: false,
|
||||
reg: ''
|
||||
}
|
||||
}
|
||||
|
||||
@ -862,6 +874,7 @@ export default {
|
||||
this.shareForm.share_image = ''
|
||||
this.shareForm.ad_cd = {
|
||||
iscapture: false,
|
||||
reg: ''
|
||||
}
|
||||
}
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user