Commit 3f013f7e authored by wangwei's avatar wangwei

编写

parent 60642ef2
......@@ -200,6 +200,8 @@
item_category_ids:[],
cover:0,
};
this.imageList = [];
this.selectedLessonList = [];
this.selectedBoxList = [];
break;
......
......@@ -61,9 +61,9 @@
width="250"
label="操作">
<template slot-scope="scope">
<el-button size="mini" plain type="primary" @click="detail(scope.row)">
查看详情
</el-button>
<!--<el-button size="mini" plain type="primary" @click="detail(scope.row)">-->
<!--查看详情-->
<!--</el-button>-->
<el-button size="mini" plain type="warning" @click="edit(scope.row)">
编辑
</el-button>
......
This diff is collapsed.
......@@ -58,8 +58,7 @@
},
methods:{
addMould(data){
this.selectedMould.push(data)
console.log(this.selectedMould)
this.selectedMould.push(JSON.parse(JSON.stringify(data)))
}
}
}
......
......@@ -67,8 +67,7 @@
},
methods:{
getList(){
console.log(this.id)
getCateListApi(this.id).then(res=>{
getCateListApi({category_id:this.id}).then(res=>{
this.list = res.list
})
},
......
<template>
</template>
<script>
export default {
name: "menu"
}
</script>
<style scoped>
</style>
<template>
</template>
<script>
export default {
name: "weChatResource"
}
</script>
<style scoped>
</style>
......@@ -9,6 +9,7 @@ import login from '@/components/login'
import resources from '@/components/resources'
import admin from '@/components/system/admin'
import role from '@/components/system/role'
import menu from '@/components/system/menu'
import user from '@/components/user'
import teacher from '@/components/teacher'
import lesson from '@/components/lesson'
......@@ -24,6 +25,7 @@ import weChat from '@/components/weChat'
import help from '@/components/help'
import sysConfig from '@/components/system/sysConfig'
import autoReply from '@/components/weChat/autoReply'
import weChatResource from '@/components/weChat/weChatResource'
Vue.use(Router);
......@@ -51,6 +53,14 @@ const router =new Router({
path: '/help',
name:'help',
component: help
},{
path: '/weChatResource',
name:'weChatResource',
component: weChatResource
},{
path: '/menu',
name:'menu',
component: menu
},{
path: '/focusReply',
name:'focusReply',
......
......@@ -153,9 +153,9 @@ export const sortCategoryApi = function (json) {
return Vue.prototype.$patch(sortCategoryUrl,json)
};
//获取分类下的元素列表
const getCateDetailListUrl = `${_baseUrl}api/admin/element/list/0?category_id=`;
const getCateDetailListUrl = `${_baseUrl}api/admin/element/list/0`;
export const getCateListApi = function (id) {
return Vue.prototype.$fetch(`${getCateDetailListUrl}${id}`)
return Vue.prototype.$fetch(getCateDetailListUrl,id)
};
// 获取单品列表
const getSingleListUrl = `${_baseUrl}api/admin/item/stock/list`;
......
import axios from 'axios';
import md5 from 'js-md5';
import { MessageBox ,Message } from 'element-ui';
import router from '../router'
import Cookie from '../util/cookie'
// 默认超时设置
axios.defaults.timeout = 5000;
......
......@@ -119,6 +119,11 @@ export default [
value:'公众号',
routerName:'weChat',
path:'/weChat'
},
{
value:'素材管理',
routerName:'weChatResource',
path:'/weChatResource'
}
]
},{
......@@ -135,9 +140,9 @@ export default [
routerName:'role',
path:'/role'
},{
value:'权限管理',
routerName:'permission',
path:'/permission'
value:'菜单管理',
routerName:'menu',
path:'/menu'
},{
value:'系统配置',
routerName:'sysConfig',
......
......@@ -13,6 +13,21 @@ import look1_title1 from '../assets/mould/look1/title1.png'
import look1_title2 from '../assets/mould/look1/title2.png'
import look1_xuxian from '../assets/mould/look1/xuxian.png'
import look1_yun from '../assets/mould/look1/yun.png'
import radio1_bg from '../assets/mould/radio1/bg.png'
import radio1_backLookBtn from '../assets/mould/radio1/backLookBtn.png'
import radio1_CD from '../assets/mould/radio1/CD.png'
import radio1_contentBg from '../assets/mould/radio1/contentBg.png'
import radio1_loading from '../assets/mould/radio1/loading.png'
import radio1_near from '../assets/mould/radio1/near.png'
import radio1_next from '../assets/mould/radio1/next.png'
import radio1_play from '../assets/mould/radio1/play.png'
import radio1_showBtn from '../assets/mould/radio1/showBtn.png'
import playTitle from '../assets/mould/radio1/title.png'
import play1_bg from '../assets/mould/video/bg.png'
import play1_back from '../assets/mould/video/back.png'
import play1_next from '../assets/mould/video/next.png'
import play1_paly from '../assets/mould/video/paly.png'
import play1_radio from '../assets/mould/video/radio.png'
export default {
look1:{
bg:look1_bg,
......@@ -30,5 +45,24 @@ export default {
title2:look1_title2,
xuxian:look1_xuxian,
yun:look1_yun
},
radio1:{
bg:radio1_bg,
backLookBtn:radio1_backLookBtn,
CD:radio1_CD,
contentBg:radio1_contentBg,
loading:radio1_loading,
near:radio1_near,
next:radio1_next,
play:radio1_play,
showBtn:radio1_showBtn,
title:playTitle
},
play1:{
bg:play1_bg,
backBtn:play1_back,
next:play1_next,
radio:play1_radio,
play:play1_paly,
}
}
......@@ -20,7 +20,17 @@ export const MOULDLIST = [
title:'宝贝玩一玩',
imgUrl:playRadioUrl,
name:'玩-radio-1',
key:'radio1'
key:'radio1',
content:{
radio:[
{
radioUrl:'',
name:'',
title:'',
}
],
timeLang: 0
}
},{
title:'宝贝玩一玩',
imgUrl:playVideoUrl,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment