diff --git a/package.json b/package.json index ae2394d..52af90b 100644 --- a/package.json +++ b/package.json @@ -47,6 +47,7 @@ "flyio": "^0.6.14", "query-string": "^7.1.1", "regenerator-runtime": "^0.12.1", + "swiper": "^5.4.5", "uview-ui": "^1.7.8", "vue": "^2.6.11", "vuex": "^3.6.2" diff --git a/src/components/utils/list.js b/src/components/utils/list.js new file mode 100644 index 0000000..196e1d0 --- /dev/null +++ b/src/components/utils/list.js @@ -0,0 +1,36 @@ +import http from "./http"; + +class List { + constructor(action) { + this.action = action + this.current = 1 + this.total = 0 + this.list = [] + } + + getData(params) { + const {action} = this + return http.post(action, null, {params}) + } + + init(params) { + this.getData({...params, current: 1}).then(res => { + if (res?.data) { + this.list = res.data.records + this.total = res.data.total + } + }) + } + + loadMore(params) { + if (this.list.length < this.total) { + this.getData({...params, current: ++this.current}).then(res => { + if (res?.data) { + this.list = [...this.list, ...res.data.records] + } + }) + } + } +} + +export default List diff --git a/src/mods/publicity/AppAgProducts/AppAgProducts.vue b/src/mods/publicity/AppAgProducts/AppAgProducts.vue index 5c07453..c81864f 100644 --- a/src/mods/publicity/AppAgProducts/AppAgProducts.vue +++ b/src/mods/publicity/AppAgProducts/AppAgProducts.vue @@ -22,11 +22,11 @@
- 共{{ total }}个农产品 + 共{{ list.total }}个农产品
-
-
+
+
{{ item.title }}
@@ -47,7 +47,7 @@
- +
我要发布
@@ -57,6 +57,8 @@ @@ -299,7 +276,6 @@ export default { box-sizing: border-box; display: flex; align-items: center; - box-sizing: border-box; padding: 32px; & > img { diff --git a/src/project/fengdu/AppHome/AppHome.vue b/src/project/fengdu/AppHome/AppHome.vue new file mode 100644 index 0000000..5cb1299 --- /dev/null +++ b/src/project/fengdu/AppHome/AppHome.vue @@ -0,0 +1,491 @@ + + + + diff --git a/src/project/fengdu/AppHome/home.png b/src/project/fengdu/AppHome/home.png new file mode 100644 index 0000000..c39927f Binary files /dev/null and b/src/project/fengdu/AppHome/home.png differ diff --git a/src/project/fengdu/AppHome/home_selected.png b/src/project/fengdu/AppHome/home_selected.png new file mode 100644 index 0000000..a37c217 Binary files /dev/null and b/src/project/fengdu/AppHome/home_selected.png differ diff --git a/src/project/qujing/AppHome/AppHome.vue b/src/project/qujing/AppHome/AppHome.vue new file mode 100644 index 0000000..39f4a30 --- /dev/null +++ b/src/project/qujing/AppHome/AppHome.vue @@ -0,0 +1,497 @@ + + + + diff --git a/src/project/qujing/AppLegalLearning/AppLegalLearning.vue b/src/project/qujing/AppLegalLearning/AppLegalLearning.vue new file mode 100644 index 0000000..5c71117 --- /dev/null +++ b/src/project/qujing/AppLegalLearning/AppLegalLearning.vue @@ -0,0 +1,66 @@ + + + + + diff --git a/src/project/qujing/AppLegalLearning/classDetail.vue b/src/project/qujing/AppLegalLearning/classDetail.vue new file mode 100644 index 0000000..1d732fa --- /dev/null +++ b/src/project/qujing/AppLegalLearning/classDetail.vue @@ -0,0 +1,274 @@ + + + + + \ No newline at end of file diff --git a/src/project/qujing/AppLegalLearning/components/GeneralLawExam.vue b/src/project/qujing/AppLegalLearning/components/GeneralLawExam.vue new file mode 100644 index 0000000..71dc1a7 --- /dev/null +++ b/src/project/qujing/AppLegalLearning/components/GeneralLawExam.vue @@ -0,0 +1,242 @@ + + + + + diff --git a/src/project/qujing/AppLegalLearning/components/OnlineClass.vue b/src/project/qujing/AppLegalLearning/components/OnlineClass.vue new file mode 100644 index 0000000..aaaaad0 --- /dev/null +++ b/src/project/qujing/AppLegalLearning/components/OnlineClass.vue @@ -0,0 +1,111 @@ + + + + + diff --git a/src/project/qujing/AppLegalLearning/img/bg.png b/src/project/qujing/AppLegalLearning/img/bg.png new file mode 100644 index 0000000..e651656 Binary files /dev/null and b/src/project/qujing/AppLegalLearning/img/bg.png differ diff --git a/src/project/qujing/AppLegalLearning/img/bujige.png b/src/project/qujing/AppLegalLearning/img/bujige.png new file mode 100644 index 0000000..f9c54f7 Binary files /dev/null and b/src/project/qujing/AppLegalLearning/img/bujige.png differ diff --git a/src/project/qujing/AppLegalLearning/img/jige.png b/src/project/qujing/AppLegalLearning/img/jige.png new file mode 100644 index 0000000..1dc7c16 Binary files /dev/null and b/src/project/qujing/AppLegalLearning/img/jige.png differ diff --git a/src/project/qujing/AppLegalLearning/img/lianghao.png b/src/project/qujing/AppLegalLearning/img/lianghao.png new file mode 100644 index 0000000..29bae62 Binary files /dev/null and b/src/project/qujing/AppLegalLearning/img/lianghao.png differ diff --git a/src/project/qujing/AppLegalLearning/img/message.png b/src/project/qujing/AppLegalLearning/img/message.png new file mode 100644 index 0000000..f4af993 Binary files /dev/null and b/src/project/qujing/AppLegalLearning/img/message.png differ diff --git a/src/project/qujing/AppLegalLearning/img/navbar.png b/src/project/qujing/AppLegalLearning/img/navbar.png new file mode 100644 index 0000000..c95faaf Binary files /dev/null and b/src/project/qujing/AppLegalLearning/img/navbar.png differ diff --git a/src/project/qujing/AppLegalLearning/img/youxiu.png b/src/project/qujing/AppLegalLearning/img/youxiu.png new file mode 100644 index 0000000..0bfaa43 Binary files /dev/null and b/src/project/qujing/AppLegalLearning/img/youxiu.png differ diff --git a/src/project/qujing/AppLegalLearning/result.vue b/src/project/qujing/AppLegalLearning/result.vue new file mode 100644 index 0000000..cb624e0 --- /dev/null +++ b/src/project/qujing/AppLegalLearning/result.vue @@ -0,0 +1,143 @@ + + + + + \ No newline at end of file diff --git a/src/project/qujing/AppLegalLearning/testForm.vue b/src/project/qujing/AppLegalLearning/testForm.vue new file mode 100644 index 0000000..d5c871d --- /dev/null +++ b/src/project/qujing/AppLegalLearning/testForm.vue @@ -0,0 +1,233 @@ + + + + + \ No newline at end of file diff --git a/src/project/qujing/AppMine/AppMine.vue b/src/project/qujing/AppMine/AppMine.vue new file mode 100644 index 0000000..f01a285 --- /dev/null +++ b/src/project/qujing/AppMine/AppMine.vue @@ -0,0 +1,341 @@ + + + diff --git a/src/project/qujing/AppMine/img/header-banner.png b/src/project/qujing/AppMine/img/header-banner.png new file mode 100644 index 0000000..d6cceda Binary files /dev/null and b/src/project/qujing/AppMine/img/header-banner.png differ diff --git a/src/project/qujing/AppMine/img/jfmx.png b/src/project/qujing/AppMine/img/jfmx.png new file mode 100644 index 0000000..522025a Binary files /dev/null and b/src/project/qujing/AppMine/img/jfmx.png differ diff --git a/src/project/qujing/AppMine/img/ksjl.png b/src/project/qujing/AppMine/img/ksjl.png new file mode 100644 index 0000000..a80a2f1 Binary files /dev/null and b/src/project/qujing/AppMine/img/ksjl.png differ diff --git a/src/project/qujing/AppMine/img/wdzs.png b/src/project/qujing/AppMine/img/wdzs.png new file mode 100644 index 0000000..40a6eb0 Binary files /dev/null and b/src/project/qujing/AppMine/img/wdzs.png differ diff --git a/src/project/qujing/AppMine/img/xxjl.png b/src/project/qujing/AppMine/img/xxjl.png new file mode 100644 index 0000000..fcc5266 Binary files /dev/null and b/src/project/qujing/AppMine/img/xxjl.png differ diff --git a/src/project/qujing/AppMine/integralInfo.vue b/src/project/qujing/AppMine/integralInfo.vue new file mode 100644 index 0000000..772e2ba --- /dev/null +++ b/src/project/qujing/AppMine/integralInfo.vue @@ -0,0 +1,41 @@ + + + diff --git a/src/project/qujing/AppMine/studyList.vue b/src/project/qujing/AppMine/studyList.vue new file mode 100644 index 0000000..4abb2a1 --- /dev/null +++ b/src/project/qujing/AppMine/studyList.vue @@ -0,0 +1,158 @@ + + + diff --git a/src/project/qujing/AppMine/testList.vue b/src/project/qujing/AppMine/testList.vue new file mode 100644 index 0000000..588d7cb --- /dev/null +++ b/src/project/qujing/AppMine/testList.vue @@ -0,0 +1,108 @@ + + + diff --git a/src/project/qujing/AppMine/userInfo.vue b/src/project/qujing/AppMine/userInfo.vue new file mode 100644 index 0000000..5ef2332 --- /dev/null +++ b/src/project/qujing/AppMine/userInfo.vue @@ -0,0 +1,251 @@ + + + diff --git a/src/utils/config.js b/src/utils/config.js index f686029..f1a0528 100644 --- a/src/utils/config.js +++ b/src/utils/config.js @@ -16,7 +16,7 @@ const configs = { dev: { areaId: '341021104000', areaName: '郑村镇', - baseUrl: 'http://192.168.1.87:59998' + baseUrl: 'http://192.168.1.87:9000' } } // 当前选中配置