From 5eedc7a0196b96d4a9c525e31f8fcfe68baff702 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=94=90=E6=98=8E=E6=98=8E?= <970899069@qq.com>
Date: Fri, 7 Jul 2023 18:57:50 +0800
Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E6=94=B6=E8=B5=8B=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.hbuilderx/launch.json | 2 +-
apis/index.js | 4 +-
apis/interfaces/empower.js | 48 ++++++++
pages.json | 24 +++-
pages/empower/buy.vue | 227 +++++++++++++++++++++++++++++++++++++
pages/empower/info.vue | 138 ++++++++++++++++++++++
pages/index/index.vue | 61 +++++-----
7 files changed, 463 insertions(+), 41 deletions(-)
create mode 100644 apis/interfaces/empower.js
create mode 100644 pages/empower/buy.vue
create mode 100644 pages/empower/info.vue
diff --git a/.hbuilderx/launch.json b/.hbuilderx/launch.json
index 9b0d791..4ccd172 100644
--- a/.hbuilderx/launch.json
+++ b/.hbuilderx/launch.json
@@ -13,7 +13,7 @@
"type" : "uniCloud"
},
{
- "playground" : "standard",
+ "playground" : "custom",
"type" : "uni-app:app-android"
}
]
diff --git a/apis/index.js b/apis/index.js
index 917ef93..bc86f66 100644
--- a/apis/index.js
+++ b/apis/index.js
@@ -10,8 +10,8 @@ import router from '../router'
// 基础配置
const config = {
- apiUrl : 'https://douhuo.douhuofalv.com/api/',
- // apiUrl : 'https://api.douhuotest.douhuofalv.com/api/', //测试环境
+ // apiUrl : 'https://douhuo.douhuofalv.com/api/',
+ apiUrl : 'https://api.douhuotest.douhuofalv.com/api/', //测试环境
timeout : 60000
}
diff --git a/apis/interfaces/empower.js b/apis/interfaces/empower.js
new file mode 100644
index 0000000..e865261
--- /dev/null
+++ b/apis/interfaces/empower.js
@@ -0,0 +1,48 @@
+
+/**
+ * Web唐明明
+ * 匆匆数载恍如梦,岁月迢迢华发增。
+ * 碌碌无为枉半生,一朝惊醒万事空。
+ * moduleName: 增收赋能
+ */
+
+import { request } from '../index'
+
+// 增收赋能列表
+const lists = () =>{
+ return request({
+ url : "empower/index"
+ })
+}
+
+// 增收赋能详情
+const info = id => {
+ return request({
+ url : "empower/" + id + "/show"
+ })
+}
+
+// 下单前置
+const buyInit = id => {
+ return request({
+ url : "empower/" + id + "/buy/init",
+ method : "POST"
+ })
+}
+
+// 下单购买
+const buy = data => {
+ return request({
+ url : "empower/buy/order",
+ method : "POST",
+ data
+ })
+}
+
+export {
+ lists,
+ info,
+ buyInit,
+ buy
+}
+
diff --git a/pages.json b/pages.json
index d15ec79..fd4ae17 100644
--- a/pages.json
+++ b/pages.json
@@ -768,15 +768,33 @@
"enablePullDownRefresh": false
}
}, {
- "path": "pages/synthesize/feeWrite",
- "name": "FeeWrite",
+ "path": "pages/synthesize/feeWrite",
+ "name": "FeeWrite",
"auth": true,
"style": {
"navigationBarTitleText": "个人法律咨询",
- "enablePullDownRefresh": false,
+ "enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#FFF"
}
+ }, {
+ "path": "pages/empower/info",
+ "name": "EmpowerInfo",
+ "auth": true,
+ "style": {
+ "navigationBarTitleText": "增收赋能",
+ "enablePullDownRefresh": false,
+ "navigationBarBackgroundColor": "#FFF"
+ }
+ }, {
+ "path": "pages/empower/buy",
+ "name": "EmpowerBuy",
+ "auth": true,
+ "style": {
+ "navigationBarTitleText": "报名",
+ "enablePullDownRefresh": false,
+ "navigationBarBackgroundColor": "#FFF"
+ }
}],
"globalStyle": {
"navigationBarTextStyle": "black",
diff --git a/pages/empower/buy.vue b/pages/empower/buy.vue
new file mode 100644
index 0000000..4ce526f
--- /dev/null
+++ b/pages/empower/buy.vue
@@ -0,0 +1,227 @@
+
+
+
+
+
+
+ {{empower.title}}
+ {{empower.sub_title}}
+ ¥{{empower.price}}
+
+
+
+ 报名人
+
+ 报名信息{{index + 1}}删除
+
+
+
+
+
+
+
+
+
+
+
+ {{semesters[item.index].title}}
+
+
+
+ 添加报名人
+
+
+
+
+
+
+
diff --git a/pages/empower/info.vue b/pages/empower/info.vue
new file mode 100644
index 0000000..e716ff9
--- /dev/null
+++ b/pages/empower/info.vue
@@ -0,0 +1,138 @@
+
+
+
+
+
+
+
+
+ {{ title }}
+ {{ subtitle }}
+
+
+
+ {{count.all || '-'}}期
+
+
+
+ {{count.over || 0}}期
+
+
+
+ {{semester.time.start || '-'}}
+
+
+
+ {{semester.price || '0.00'}}
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/index/index.vue b/pages/index/index.vue
index e747eae..fee1843 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -117,37 +117,11 @@
scroll-x="true"
scroll-with-animation="true"
:scroll-into-view='defaultViewId'
- @click="onToast()"
>
-
-
- 巅峰销售思维
- ¥2980
-
-
-
- 团队系统思维
- ¥3980
-
-
-
- 领袖演说思维
- ¥4980
-
-
-
- 卓越领袖能量思维
- ¥5980
-
-
-
- 激发内在无限潜能
- ¥9980
-
-
-
- 其他赋能培训会议
- 价格另议
+
+
+ {{item.title}}
+ ¥{{item.price}}
@@ -184,6 +158,7 @@