|
|
@@ -68,6 +68,7 @@
|
|
|
</template>
|
|
|
<script>
|
|
|
import { getTags, getArticleList } from '../../api/index.js'
|
|
|
+import { serverAPI } from '../../../../utils/vaildInterfacefn.js'
|
|
|
import Tabbar from '../../components/Tabbar.vue'
|
|
|
export default {
|
|
|
components: { Tabbar },
|
|
|
@@ -98,7 +99,7 @@ export default {
|
|
|
} else if (type == 'dynamic') {
|
|
|
data.columnCode = 'dynamic'
|
|
|
}
|
|
|
- const res = await getArticleList(data)
|
|
|
+ const res = await serverAPI('zpsmzjlbtcxjk', data)
|
|
|
if (type == 'image') {
|
|
|
this.banner = res.rows
|
|
|
} else if (type == 'dynamic') {
|
|
|
@@ -114,6 +115,40 @@ export default {
|
|
|
}
|
|
|
this.loading = false
|
|
|
}
|
|
|
+ console.log(res, '拿到的数据')
|
|
|
+ return
|
|
|
+ try {
|
|
|
+ vaildInterfacefn(
|
|
|
+ this.$appId,
|
|
|
+ 'zpsmzjlbtcxjk',
|
|
|
+ JSON.stringify(data),
|
|
|
+ '2',
|
|
|
+ 'https://' + this.$urlCreatesign,
|
|
|
+ 'https://' + this.$urlGateway
|
|
|
+ ).then((value) => {
|
|
|
+ const res = JSON.parse(value)
|
|
|
+ console.log(res, 'res')
|
|
|
+ if (res.code == '200') {
|
|
|
+ if (type == 'image') {
|
|
|
+ this.banner = res.rows
|
|
|
+ } else if (type == 'dynamic') {
|
|
|
+ if (this.pageNum == 1) {
|
|
|
+ this.info = res.rows
|
|
|
+ } else {
|
|
|
+ this.info = this.info.concat(res.rows)
|
|
|
+ }
|
|
|
+ if (this.info.length >= res.total) {
|
|
|
+ this.finished = true
|
|
|
+ } else {
|
|
|
+ this.pageNum++
|
|
|
+ }
|
|
|
+ this.loading = false
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ }
|
|
|
+ })
|
|
|
+ } catch (error) {}
|
|
|
+ // const res = await getArticleList(data)
|
|
|
},
|
|
|
onLoad() {
|
|
|
this.getList('dynamic')
|