diff --git a/README.md b/README.md index 561450b..4b1626d 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ @@ -252,8 +252,14 @@ update - 修改 最后一步按钮文案 - ## v1.0.29 `2023.3.13` -update -- 修改 正式环境金额 \ No newline at end of file +feat +- 增加 套餐列表从接口获取 + +## v1.0.30 +`2023.3.14` +feat +- cardInfo + - 增加 物联网卡套餐信息查询页面 + - 增加 加油包合基础套餐购买页面 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 c2be8bb..3882e82 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-20 14:05:54 * @FilePath: \TelpoH5FrontendWeb\src\config\models.js * @description: */ -export const VERSION_MODEL = '1.0.29F'; //版本号 +export const VERSION_MODEL = '1.0.30F'; //版本号 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/router/index.js b/src/router/index.js index b1cde61..66c6911 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -1,7 +1,7 @@ /* * @Date: 2023-02-25 16:34:35 * @LastEditors: JinxChen - * @LastEditTime: 2023-02-26 15:30:31 + * @LastEditTime: 2023-03-14 09:33:17 * @FilePath: \TelpoH5FrontendWeb\src\router\index.js * @description: */ @@ -25,6 +25,7 @@ const routes = [ { path: '/packageList', name: 'packageList', component: resolve => require(['@/views/package-list'], resolve) }, { path: '/payResult', name: 'payResult', component: resolve => require(['@/views/pay-result'], resolve) }, { path: '/cardInfo', name: 'cardInfo', component: resolve => require(['@/views/card-info'], resolve) }, + { path: '/packageBuy', name: 'packageBuy', component: resolve => require(['@/views/package-buy'], resolve) }, { path: '/buyRecord', name: 'buyRecord', component: resolve => require(['@/views/buy-record'], resolve) }, { path: '/activeStatus', name: 'activeStatus', component: resolve => require(['@/views/active-status'], resolve) }, { path: '/cardActive', name: 'cardActive', component: resolve => require(['@/views/card-active'], resolve) }, diff --git a/src/views/buy-record/index.vue b/src/views/buy-record/index.vue index d69706d..63fc945 100644 --- a/src/views/buy-record/index.vue +++ b/src/views/buy-record/index.vue @@ -93,10 +93,10 @@ export default { }) }, onNavBack() { - /* this.$router.push({ - name: "check", - query: { serialNo: this.$route.query.serialNo, iccid: this.$route.query.iccid, isShowMenu: true} - }); */ + this.$router.replace({ + name: "cardInfo", + query: { imei: this.$route.query.imei, iccid: this.$route.query.iccid, isShowMenu: true} + }); }, // 复制订单号 onCopy(type) { diff --git a/src/views/card-info/index.vue b/src/views/card-info/index.vue index 45e309d..e49a8ba 100644 --- a/src/views/card-info/index.vue +++ b/src/views/card-info/index.vue @@ -1,7 +1,7 @@ @@ -71,6 +71,9 @@ + + diff --git a/src/views/package-list/index.vue b/src/views/package-list/index.vue index b54d78e..ca9917e 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}}元