From b59670f0a9e22153b074e91e9cf7a441b6d9387b Mon Sep 17 00:00:00 2001
From: JinxChen <2183691628@qq.com>
Date: Sun, 5 Mar 2023 12:01:25 +0800
Subject: [PATCH 1/4] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20=E5=A5=97=E9=A4=90?=
=?UTF-8?q?=E5=88=97=E8=A1=A8=E5=B8=83=E5=B1=80?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/package-list/index.vue | 18 ++++++++++++------
1 file changed, 12 insertions(+), 6 deletions(-)
diff --git a/src/views/package-list/index.vue b/src/views/package-list/index.vue
index 397b3b5..f320dfa 100644
--- a/src/views/package-list/index.vue
+++ b/src/views/package-list/index.vue
@@ -1,7 +1,7 @@
@@ -52,11 +52,11 @@
合计{{item.packagePrice}}元
-
@@ -522,7 +527,7 @@ export default {
.package-order-container {
position: relative;
margin: 10px 0;
- padding: 0 20px;
+ /* padding: 0 20px; */
z-index: 999;
box-shadow: rgba(14, 30, 37, 0.12) 0 3px 5px 0,
rgba(14, 30, 37, 0.32) 0 2px 16px 0;
@@ -560,7 +565,7 @@ export default {
}
}
.order-content {
- padding: 15px 0;
+ padding: 15px 10px;
.title {
display: flex;
justify-content: flex-start;
@@ -618,10 +623,11 @@ export default {
}
}
.package-buy {
+ @include center();
padding: 5px 8px;
.buy-btn {
height: 40px;
- width: 150px;
+ width: 200px;
padding: 0 5px;
display: flex;
justify-content: center;
From 44130adb8cf340ea677dc3d9c68a30c97a2ab3d5 Mon Sep 17 00:00:00 2001
From: JinxChen <2183691628@qq.com>
Date: Mon, 13 Mar 2023 16:41:49 +0800
Subject: [PATCH 2/4] =?UTF-8?q?feat=20-=20=E5=A2=9E=E5=8A=A0=20=E5=A5=97?=
=?UTF-8?q?=E9=A4=90=E5=88=97=E8=A1=A8=E4=BB=8E=E6=8E=A5=E5=8F=A3=E8=8E=B7?=
=?UTF-8?q?=E5=8F=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
README.md | 8 ++-
src/api/core.js | 8 +++
src/config/models.js | 4 +-
src/http/webapi.js | 4 +-
src/views/package-list/index.vue | 91 ++++++++++++++++++--------------
5 files changed, 69 insertions(+), 46 deletions(-)
diff --git a/README.md b/README.md
index bae3cf4..c095e87 100644
--- a/README.md
+++ b/README.md
@@ -249,4 +249,10 @@ feature
## v1.0.28
`2023.3.2`
update
-- 修改 最后一步按钮文案
\ No newline at end of file
+- 修改 最后一步按钮文案
+
+
+## v1.0.29
+`2023.3.13`
+feat
+- 增加 套餐列表从接口获取
\ No newline at end of file
diff --git a/src/api/core.js b/src/api/core.js
index bdaa645..47ca481 100644
--- a/src/api/core.js
+++ b/src/api/core.js
@@ -28,6 +28,7 @@ export const APICore = {
payLiveBaseDevice, //微信统一下单
GpsDeviceFence, //围栏 redis
cardPackageList, //零川基础套餐列表
+ devicePayPackage,
}
/* const headerAuth = this.$store.getters.gatewayToken; */
// 获取告警详情
@@ -85,4 +86,11 @@ function cardPackageList(data) {
data,
});
}
+function devicePayPackage(imei) {
+ return service({
+ url: `${baseUrl}/core/api/v1/open/card/GetDevicePayPackage`,
+ method: 'get',
+ params: {imei},
+ })
+}
export default APICore;
diff --git a/src/config/models.js b/src/config/models.js
index 7f11c07..0b3bf58 100644
--- a/src/config/models.js
+++ b/src/config/models.js
@@ -1,11 +1,11 @@
/*
* @Date: 2021-11-20 10:26:39
* @LastEditors: JinxChen
- * @LastEditTime: 2023-02-27 09:59:02
+ * @LastEditTime: 2023-03-13 09:35:07
* @FilePath: \TelpoH5FrontendWeb\src\config\models.js
* @description:
*/
-export const VERSION_MODEL = '1.0.28F'; //版本号
+export const VERSION_MODEL = '1.0.29F'; //版本号
export const IMAGE_URL = {
production: 'http://zfb.ssjlai.com/web/',
test: 'http://zfb.ssjlai.com/web/',
diff --git a/src/http/webapi.js b/src/http/webapi.js
index 7427682..b5f1927 100644
--- a/src/http/webapi.js
+++ b/src/http/webapi.js
@@ -1,7 +1,7 @@
/*
* @Author: linwl
* @Date: 2020-04-13 14:47:59
- * @LastEditTime: 2023-02-24 10:47:44
+ * @LastEditTime: 2023-03-13 16:35:17
* @LastEditors: JinxChen
* @Description: axios请求配置
* @FilePath: \TelpoH5FrontendWeb\src\http\webapi.js
@@ -41,7 +41,7 @@ service.interceptors.request.use(
/* if (localStorage.getItem('webapiToken')) {
} */
- request.headers.AuthToken = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJVc2VySW5mbyI6eyJVc2VySWQiOiJjZTQzOWU1Yy03NWVjLTRhMTEtYWJmMC02YTdhM2IzY2UwMGQiLCJMb2dpbk5hbWUiOiIxODI3NzQyNjcxMiIsIkxvZ2luVHlwZSI6MX0sIkV4cCI6MTY4NDg5NTk5ODg4NS4wfQ.VK_fNU0QrCJwsc_Dxa_lPP1dvnxo73TfKzV_bJquqxU';
+ request.headers.AuthToken = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJVc2VySW5mbyI6eyJVc2VySWQiOiJjZTQzOWU1Yy03NWVjLTRhMTEtYWJmMC02YTdhM2IzY2UwMGQiLCJMb2dpbk5hbWUiOiIxODI3NzQyNjcxMiIsIkxvZ2luVHlwZSI6MX0sIkV4cCI6MTY4NjY0NTI1MTQ4NC4wfQ.cm3AblDTivfbuJ-OgDAglWVsJFWiJZyrpt_BmNq499g';
return request;
},
errorHandler
diff --git a/src/views/package-list/index.vue b/src/views/package-list/index.vue
index f320dfa..ff3b268 100644
--- a/src/views/package-list/index.vue
+++ b/src/views/package-list/index.vue
@@ -1,7 +1,7 @@
@@ -18,7 +18,7 @@
-
+
@@ -38,7 +38,7 @@
-
{{item.packageName}}
+
{{item.packageName}}