directusDomain
This commit is contained in:
@@ -33,10 +33,10 @@
|
||||
<div v-for="worksheet in wsLiteracy" :key="wsLiteracy.id" class="grid">
|
||||
<div class="grid place-items-center">
|
||||
<div class="bg-gray-200 w-56 h-72 relative -rotate-6 rounded-tl-xl rounded-br-xl shadow-xl">
|
||||
<img class="w-56 h-72 rotate-6 relative" v-if="worksheet.img" :src="'https://curriculum-app-api.beanstalkedu.com/assets/'+ worksheet.img" alt=""/>
|
||||
<img class="w-56 h-72 rotate-6 relative" v-if="worksheet.img" :src="'https://management.beanstalkedu.com/assets/'+ worksheet.img" alt=""/>
|
||||
</div>
|
||||
<h1 class="text-center pt-8 w-fit">{{worksheet.title}}</h1>
|
||||
<!-- <a :href="'https://curriculum-app-api.beanstalkedu.com/assets/'+ worksheet.file+'?download'" class="bg-blue-700 p-1 text-white pl-4 pr-4 rounded-tl-lg rounded-br-lg ml-6 mt-8"><img class="w-5 pr-1 inline" src="/img/download.png" alt="">Download</a> -->
|
||||
<!-- <a :href="'https://management.beanstalkedu.com/assets/'+ worksheet.file+'?download'" class="bg-blue-700 p-1 text-white pl-4 pr-4 rounded-tl-lg rounded-br-lg ml-6 mt-8"><img class="w-5 pr-1 inline" src="/img/download.png" alt="">Download</a> -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
<div v-for="worksheet in wsfLiteracy" :key="wsfLiteracy.id" class="grid">
|
||||
<div class="grid place-items-center">
|
||||
<div class="bg-gray-200 w-56 h-72 relative -rotate-6 rounded-tl-xl rounded-br-xl shadow-xl">
|
||||
<img class="w-56 h-72 rotate-6 relative" v-if="worksheet.img" :src="'https://curriculum-app-api.beanstalkedu.com/assets/'+ worksheet.img" alt=""/>
|
||||
<img class="w-56 h-72 rotate-6 relative" v-if="worksheet.img" :src="'https://management.beanstalkedu.com/assets/'+ worksheet.img" alt=""/>
|
||||
</div>
|
||||
<h1 class="text-center pt-8 w-fit">{{worksheet.title}}</h1>
|
||||
<button class="bg-blue-700 p-1 text-white pl-4 pr-4 rounded-tl-lg rounded-br-lg ml-6 mt-8 "><img class="w-5 pr-1 inline" src="/img/download.png" alt="">Download</button>
|
||||
@@ -131,13 +131,13 @@ export default {
|
||||
// this.selected = event.target.value;
|
||||
},
|
||||
getWorksheets(age=2){
|
||||
fetch('https://curriculum-app-api.beanstalkedu.com/items/worksheet_menu?filter[age][_eq]='+age+'&filter[Category][_eq]=literacy')
|
||||
fetch('https://management.beanstalkedu.com/items/worksheet_menu?filter[age][_eq]='+age+'&filter[Category][_eq]=literacy')
|
||||
.then(resp => resp.json())
|
||||
.then(worksheets => {
|
||||
this.wsLiteracy=worksheets.data.reverse().slice(0, 4)
|
||||
// console.log(this.wsLiteracy)
|
||||
})
|
||||
fetch('https://curriculum-app-api.beanstalkedu.com/items/worksheet_menu?filter[age][_eq]='+age+'&filter[Category][_eq]=literacy')
|
||||
fetch('https://management.beanstalkedu.com/items/worksheet_menu?filter[age][_eq]='+age+'&filter[Category][_eq]=literacy')
|
||||
.then(resp => resp.json())
|
||||
.then(worksheets => {
|
||||
this.wsfLiteracy=worksheets.data.reverse().slice(4, 16)
|
||||
|
||||
Reference in New Issue
Block a user