|
@@ -76,7 +76,7 @@ import { Component, Vue } from 'vue-property-decorator'
|
|
import Search from '@/components/Search.vue'
|
|
import Search from '@/components/Search.vue'
|
|
// import { Cell, CellGroup, Icon, Dialog, Toast } from 'vant'
|
|
// import { Cell, CellGroup, Icon, Dialog, Toast } from 'vant'
|
|
import { Icon } from 'vant'
|
|
import { Icon } from 'vant'
|
|
-// import { mapActions } from 'vuex'
|
|
|
|
|
|
+import { mapActions } from 'vuex'
|
|
// import { MixinTop } from '@/utils/mixin-top'
|
|
// import { MixinTop } from '@/utils/mixin-top'
|
|
@Component({
|
|
@Component({
|
|
name: 'home',
|
|
name: 'home',
|
|
@@ -88,18 +88,21 @@ import { Icon } from 'vant'
|
|
Search
|
|
Search
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- // ...mapActions({
|
|
|
|
- // ajaxData: 'main/getHome'
|
|
|
|
- // })
|
|
|
|
|
|
+ ...mapActions({
|
|
|
|
+ ajaxData: 'main/getHome'
|
|
|
|
+ })
|
|
}
|
|
}
|
|
})
|
|
})
|
|
|
|
|
|
export default class extends Vue {
|
|
export default class extends Vue {
|
|
- // protected ajaxData: any
|
|
|
|
pageData: any = {}
|
|
pageData: any = {}
|
|
|
|
+ ajaxData: any
|
|
|
|
|
|
created () {
|
|
created () {
|
|
console.log('111')
|
|
console.log('111')
|
|
|
|
+ this.ajaxData().then((res: any) => {
|
|
|
|
+ console.log(res)
|
|
|
|
+ })
|
|
this.pageData = {
|
|
this.pageData = {
|
|
new: [
|
|
new: [
|
|
{
|
|
{
|