From 752600797e81bd30ff20f11bb26822ac8bb47fee Mon Sep 17 00:00:00 2001 From: zhangdongxue Date: Tue, 27 Dec 2022 16:34:12 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=85=AC=E5=91=8A=E3=80=81banner=E3=80=81?= =?UTF-8?q?=E8=87=AA=E7=94=B1=E6=9C=8D=E5=8A=A1=E5=8C=85=E4=B8=8B=E5=8D=95?= =?UTF-8?q?]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apis/interfaces/index.js | 22 +++++++ pages.json | 15 ++++- pages/index/free.vue | 95 ++++++++++++++++++++++++++++++ pages/index/index.vue | 121 +++++++++++++++++++++++++-------------- 4 files changed, 209 insertions(+), 44 deletions(-) create mode 100644 pages/index/free.vue diff --git a/apis/interfaces/index.js b/apis/interfaces/index.js index 1d05bdf..44af6ec 100644 --- a/apis/interfaces/index.js +++ b/apis/interfaces/index.js @@ -6,6 +6,12 @@ import { request } from '../index' +// 服务包首页app/services +const index = () =>{ + return request({ + url: "app/services" + }) +} // 金法分类 const categories = () =>{ return request({ @@ -27,6 +33,19 @@ const zf = (data) =>{ }) } +// 自由服务包详情 +const recharge = () =>{ + return request({ + url: "app/services/recharge" + }) +} +// // 自由服务包支付 +const zyPay = (id) =>{ + return request({ + url: "app/services/recharge/"+id+"/pay", + method:'post' + }) +} // 服务包详情 const fwbDetail = (service) =>{ @@ -40,5 +59,8 @@ export { jf, zf, fwbDetail, + index, + recharge, + zyPay, } diff --git a/pages.json b/pages.json index 5cf8479..ce0513a 100644 --- a/pages.json +++ b/pages.json @@ -12,7 +12,20 @@ "name": "Introduces", "style": { "navigationStyle": "custom", - "navigationBarTitleText": "介绍", + "navigationBarTitleText": "金法服务包介绍", + "app-plus": { + "titleNView": { + "backgroundColor": "#FFFFFF", + "type": "transparent" + } + } + } + },{ + "path": "pages/index/free", + "name": "FreeService", + "style": { + "navigationStyle": "custom", + "navigationBarTitleText": "自由服务包介绍", "app-plus": { "titleNView": { "backgroundColor": "#FFFFFF", diff --git a/pages/index/free.vue b/pages/index/free.vue new file mode 100644 index 0000000..d2fc93a --- /dev/null +++ b/pages/index/free.vue @@ -0,0 +1,95 @@ + + + diff --git a/pages/index/index.vue b/pages/index/index.vue index c63c425..86ad7a0 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -7,12 +7,14 @@ class="banner-swiper" :list="bannerArr" :indicator="true" + keyName="cover" previousMargin="20" nextMargin="20" circular radius="10" bgColor="#ffffff" height="100%" + @click='swiperClick' /> @@ -22,7 +24,9 @@ - + - @@ -61,7 +64,7 @@ > {{item.title}} - {{item.price}} + {{item.price}}定金 @@ -69,11 +72,10 @@ 综法产品 - - + 更多 - + 2022年尊享综法服务包 @@ -87,7 +89,7 @@ @@ -221,7 +250,7 @@ flex-direction: row; align-items: center; .notice-title{ - background-color: #ECF0FF; + background-color: #ececec; color: #000; height: 60rpx; line-height: 60rpx; @@ -359,6 +388,12 @@ text{ font-size: 80%; } + .ding{ + font-size: 64%; + margin-left: 4rpx; + position: relative; + bottom: 2rpx; + } } } }