Compare commits

..

No commits in common. "master" and "sort" have entirely different histories.
master ... sort

9 changed files with 45 additions and 97 deletions

View File

@ -5,8 +5,8 @@ source /etc/profile
npm install --prefer-offline --loglevel info --unsafe-perm=true --allow-root >> boundle.log
echo 'copy node_modules to /data/publish/node_packages' >> boundle.log
npm run build:prod
# npm run build:stage
# npm run build:prod
npm run build:stage
cd ./dist/ && tar -zcvf pop-sys.tar.gz ./
cd ..

View File

@ -29,7 +29,7 @@
</el-row>
<el-row
:gutter="24"
class="mgt-20 mgb-20 pics-wrap"
class="mgt-20 mgb-20"
>
<el-col :span="4">
<div class="img-box uploader-box">

View File

@ -5,8 +5,6 @@ import Layout from '@/layout'
const adRouter = {
path: '/ad',
component: Layout,
redirect: '/ad/list',
name: 'ad',
meta: {
title: '广告投放',
icon: 'ad',
@ -18,15 +16,6 @@ const adRouter = {
name: 'adList',
meta: {title: '广告管理'},
},
{
path: 'edit',
component: () => import('@/views/ad/edit'), // Parent router-view
name: 'adEdit',
hidden: true,
meta: {
title: '广告编辑',
},
},
{
path: 'jump',
component: () => import('@/views/ad/jump'), // Parent router-view
@ -43,6 +32,16 @@ const adRouter = {
title: 'AppID列表',
},
},
{
path: 'edit',
component: () => import('@/views/ad/edit'), // Parent router-view
name: 'adEdit',
hidden: true,
meta: {
title: '广告编辑',
},
},
],
}

View File

@ -5,12 +5,10 @@ import Layout from '@/layout'
const adminRouter = {
path: '/admin',
component: Layout,
redirect: '/admin/user-list',
name: 'admin',
meta: {
title: '系统管理',
icon: 'system',
roles: ['admin']
// roles: ['admin'],
},
children: [
// {
@ -27,30 +25,6 @@ const adminRouter = {
title: '用户列表',
},
},
// {
// path: 'ad-list',
// component: () => import('@/views/admin/ad-list'), // Parent router-view
// name: 'adminAdList',
// meta: {
// title: '广告列表',
// },
// },
// {
// path: 'jump',
// component: () => import('@/views/admin/jump'), // Parent router-view
// name: 'adminAdJump',
// meta: {
// title: '互跳管理',
// },
// },
// {
// path: 'game-list',
// component: () => import('@/views/admin/game-list'), // Parent router-view
// name: 'adminGameList',
// meta: {
// title: 'AppID列表',
// },
// },
],
}

View File

@ -42,7 +42,7 @@ import errRouter from './error'
export const constantRoutes = [
{
path: '/',
redirect: '/ad/list'
redirect: '/ad/ad-list',
},
{
path: '/login',
@ -58,10 +58,12 @@ export const constantRoutes = [
// dashboardRouter,
adRouter,
libRouter,
// comRouter,
// adminRouter,
errRouter,
userRouter,
adminRouter,
// comRouter,
// 404 page must be placed at the end !!!
{path: '*', redirect: '/404', hidden: true},
]
/**
@ -69,9 +71,9 @@ export const constantRoutes = [
* the routes that need to be dynamically loaded based on user roles
*/
export const asyncRoutes = [
adminRouter,
// 404 page must be placed at the end !!!
{path: '*', redirect: '/404', hidden: true},
// adminRouter,
// // 404 page must be placed at the end !!!
// {path: '*', redirect: '/404', hidden: true},
]
const createRouter = () =>

View File

@ -5,7 +5,6 @@ import Layout from '@/layout'
const libRouter = {
path: '/lib',
component: Layout,
name: 'lib',
meta: {
title: '资源库',
icon: 'pic',

View File

@ -5,7 +5,6 @@ import Layout from '@/layout'
const comRouter = {
path: '/user',
component: Layout,
redirect: 'user',
children: [
{
path: '',

View File

@ -80,10 +80,6 @@
size="mini"
@click="selectAllLocation"
>选择所有位置</el-button>
<el-button
size="mini"
@click="deselectAllLocation"
>清空</el-button>
</el-form-item>
<el-form-item
label="广告头像"
@ -100,24 +96,26 @@
:show-file-list="false"
:before-upload="beforeUpload"
>
<span @click="openModal">
<img
v-if="adForm.ad_image"
:src="adForm.ad_image"
class="uploader-img"
>
<i
v-else
class="el-icon-plus uploader-icon"
/>
</span>
<img
v-if="adForm.ad_image"
:src="adForm.ad_image"
class="uploader-img"
>
<i
v-else
class="el-icon-plus uploader-icon"
/>
</el-upload>
<span
class="ipt-tip"
style="margin-top: 6px;"
>只能上传小于 600k 的图片</span>
<el-button
type="primary"
size="mini"
@click="openModal"
:disabled="!writeable"
>选择图片</el-button>
</el-form-item>
<el-form-item
label="是否跳转"
@ -210,7 +208,6 @@
class="w100"
:disabled="!writeable"
/>
<span class="ipt-tip">当前最高优先级{{this.sortList[this.sortList.length-1]}}最低优先级{{this.sortList[0]}}</span>
</el-form-item>
<el-form-item
label="广告标题"
@ -381,7 +378,6 @@ export default {
modeList: {},
uploadUrl: `${process.env.VUE_APP_UPLOAD}`,
targetList: [],
sortList: [],
// form
adForm: {
name: '',
@ -429,13 +425,13 @@ export default {
ad_sort: [
{type: 'number', message: '广告优先级必须是数值', trigger: 'blur'},
],
// 'ad_property.jump_param': [
// {
// required: true,
// message: '广ad_channel',
// trigger: 'blur',
// },
// ],
'ad_property.jump_param': [
{
required: true,
message: '请填写广告特征码ad_channel',
trigger: 'blur',
},
],
'ad_property.appid': [
{required: true, validator: validateAppId, trigger: 'blur'},
],
@ -723,20 +719,6 @@ export default {
platform_id: this.adForm.channelid,
})
this.targetList = targetList.result
//
if (this.adForm.gameid) {
const adsRes = await this.getAd({
gameid: this.adForm.gameid,
})
const ads = adsRes.message || []
this.sortList = ads.map(item => {
return item.ad_sort
})
this.sortList.sort(function(a, b) {
return a - b
})
}
},
changeTarget(val) {
this.adForm.ad_property.link = ''
@ -806,9 +788,6 @@ export default {
})
this.adForm.locationid = locs
},
deselectAllLocation() {
this.adForm.locationid = []
},
// modal
openModal() {
this.modalVisible = true
@ -836,9 +815,5 @@ export default {
.scrollbar >>> .el-scrollbar__bar.is-horizontal {
display: none;
}
.scrollbar >>> .pics-wrap {
padding: 0 4px;
}
</style>

View File

@ -297,7 +297,7 @@ import {Promise, reject} from 'q'
import moment from 'moment'
export default {
name: 'adList',
name: 'AdminAdList',
data() {
return {
// common