Commit 8669edd309f4e5112e10f60bc8cca00493de1f5e
1 parent
ffaad52d
Exists in
master
feat: json文件放到项目里
Showing
2 changed files
with
162 additions
and
6 deletions
Show diff stats
| ... | ... | @@ -0,0 +1,154 @@ |
| 1 | +[{ | |
| 2 | + "title": "总书记寄语" | |
| 3 | + }, | |
| 4 | + { | |
| 5 | + "title": "中国轻纺城小学" | |
| 6 | + }, | |
| 7 | + { | |
| 8 | + "title": "鲁迅中学" | |
| 9 | + }, | |
| 10 | + { | |
| 11 | + "title": "中国轻纺城第二小学" | |
| 12 | + }, | |
| 13 | + { | |
| 14 | + "title": "柯岩中心小学" | |
| 15 | + }, | |
| 16 | + { | |
| 17 | + "title": "柯岩中学" | |
| 18 | + }, | |
| 19 | + { | |
| 20 | + "title": "鉴湖中学" | |
| 21 | + }, | |
| 22 | + { | |
| 23 | + "title": "财经旅游" | |
| 24 | + }, | |
| 25 | + { | |
| 26 | + "title": "湖塘中心小学" | |
| 27 | + }, | |
| 28 | + { | |
| 29 | + "title": "湖塘中学" | |
| 30 | + }, | |
| 31 | + { | |
| 32 | + "title": "夏履镇中学" | |
| 33 | + }, | |
| 34 | + { | |
| 35 | + "title": "夏履镇中心小学" | |
| 36 | + }, | |
| 37 | + { | |
| 38 | + "title": "杨汛桥中心小学" | |
| 39 | + }, | |
| 40 | + { | |
| 41 | + "title": "杨汛桥中学" | |
| 42 | + }, | |
| 43 | + { | |
| 44 | + "title": "浙光中学" | |
| 45 | + }, | |
| 46 | + { | |
| 47 | + "title": "钱清中学" | |
| 48 | + }, | |
| 49 | + { | |
| 50 | + "title": "浙光小学" | |
| 51 | + }, | |
| 52 | + { | |
| 53 | + "title": "安昌中心小学" | |
| 54 | + }, | |
| 55 | + { | |
| 56 | + "title": "安昌中学" | |
| 57 | + }, | |
| 58 | + { | |
| 59 | + "title": "职教中心" | |
| 60 | + }, | |
| 61 | + { | |
| 62 | + "title": "齐贤中心小学" | |
| 63 | + }, | |
| 64 | + { | |
| 65 | + "title": "齐贤中学" | |
| 66 | + }, | |
| 67 | + { | |
| 68 | + "title": "马鞍中学" | |
| 69 | + }, | |
| 70 | + { | |
| 71 | + "title": "马鞍中心小学" | |
| 72 | + }, | |
| 73 | + { | |
| 74 | + "title": "国杰实验学校" | |
| 75 | + }, | |
| 76 | + { | |
| 77 | + "title": "鲁迅外国语学校" | |
| 78 | + }, | |
| 79 | + { | |
| 80 | + "title": "秋瑾中学" | |
| 81 | + }, | |
| 82 | + { | |
| 83 | + "title": "秋瑾小学" | |
| 84 | + }, | |
| 85 | + { | |
| 86 | + "title": "豫才中学" | |
| 87 | + }, | |
| 88 | + { | |
| 89 | + "title": "平水镇中学" | |
| 90 | + }, | |
| 91 | + { | |
| 92 | + "title": "平水镇中心小学" | |
| 93 | + }, | |
| 94 | + { | |
| 95 | + "title": "稽东镇中心小学" | |
| 96 | + }, | |
| 97 | + { | |
| 98 | + "title": "稽东镇中学" | |
| 99 | + }, | |
| 100 | + { | |
| 101 | + "title": "王坛镇中学" | |
| 102 | + }, | |
| 103 | + { | |
| 104 | + "title": "王坛镇中心小学" | |
| 105 | + }, | |
| 106 | + { | |
| 107 | + "title": "越崎中学" | |
| 108 | + }, | |
| 109 | + { | |
| 110 | + "title": "鲁迅高级中学" | |
| 111 | + }, | |
| 112 | + { | |
| 113 | + "title": "兰亭中学" | |
| 114 | + }, | |
| 115 | + { | |
| 116 | + "title": "兰亭中心小学" | |
| 117 | + }, | |
| 118 | + { | |
| 119 | + "title": "漓渚镇中心小学" | |
| 120 | + }, | |
| 121 | + { | |
| 122 | + "title": "华甫中学" | |
| 123 | + }, | |
| 124 | + { | |
| 125 | + "title": "西藏民族中学" | |
| 126 | + }, | |
| 127 | + { | |
| 128 | + "title": "鉴湖小学" | |
| 129 | + }, | |
| 130 | + { | |
| 131 | + "title": "柯桥小学" | |
| 132 | + }, | |
| 133 | + { | |
| 134 | + "title": "实验中学" | |
| 135 | + }, | |
| 136 | + { | |
| 137 | + "title": "柯桥中学" | |
| 138 | + }, | |
| 139 | + { | |
| 140 | + "title": "实验小学" | |
| 141 | + }, | |
| 142 | + { | |
| 143 | + "title": "管宁实验小学" | |
| 144 | + }, | |
| 145 | + { | |
| 146 | + "title": "华舍中学" | |
| 147 | + }, | |
| 148 | + { | |
| 149 | + "title": "华舍小学" | |
| 150 | + }, | |
| 151 | + { | |
| 152 | + "title": "迈向新时代" | |
| 153 | + } | |
| 154 | +] | |
| 0 | 155 | \ No newline at end of file | ... | ... |
src/views/Yanxue/YanxuePage.vue
| ... | ... | @@ -56,6 +56,7 @@ |
| 56 | 56 | <script> |
| 57 | 57 | import axios from 'axios' |
| 58 | 58 | import Tabbar4 from '@/component/Tabbar4' |
| 59 | +import data from '@/assets/yanxue.json' | |
| 59 | 60 | export default { |
| 60 | 61 | data() { |
| 61 | 62 | return { |
| ... | ... | @@ -67,12 +68,13 @@ export default { |
| 67 | 68 | }, |
| 68 | 69 | methods: { |
| 69 | 70 | getList() { |
| 70 | - this.$toast.loading('加载中...') | |
| 71 | - axios.get(`https://payment.myjxt.com/zlb_assets/yanxue.json`).then((res) => { | |
| 72 | - this.$toast.clear() | |
| 73 | - console.log('列表:', res.data) | |
| 74 | - this.listData = res.data | |
| 75 | - }) | |
| 71 | + this.listData = data | |
| 72 | + // this.$toast.loading('加载中...') | |
| 73 | + // axios.get(`https://payment.myjxt.com/zlb_assets/yanxue.json`).then((res) => { | |
| 74 | + // this.$toast.clear() | |
| 75 | + // console.log('列表:', res.data) | |
| 76 | + // this.listData = res.data | |
| 77 | + // }) | |
| 76 | 78 | }, |
| 77 | 79 | handleItem(image) { |
| 78 | 80 | this.$router.push({ name: 'YanxueDetail', query: { image: image } }) | ... | ... |