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] =?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}}

每月200分钟通话时长,1G流量

@@ -46,10 +46,10 @@

- ¥{{(item.packagePrice/(item.packageIssue === 0 ? 1: item.packageIssue)).toFixed(0)}}元/月, + ¥{{(item.packagesPrice/(item.packageIssue === 0 ? 1: item.packageIssue)).toFixed(0)}}元/月,

- 合计{{item.packagePrice}}元 + 合计{{item.packagesPrice}}元