From 58bf48cea61c6c5b4381a4b8ff5b4a39eb4671eb Mon Sep 17 00:00:00 2001
From: ZZJ <10913410+zzj2100@user.noreply.gitee.com>
Date: 星期五, 10 六月 2022 09:36:03 +0800
Subject: [PATCH] 国标摄像机信息接口

---
 src/pages/desktop/index/components/Desktop.vue |   83 +++++------------------------------------
 1 files changed, 10 insertions(+), 73 deletions(-)

diff --git a/src/pages/desktop/index/components/Desktop.vue b/src/pages/desktop/index/components/Desktop.vue
index d54701d..cf01e71 100644
--- a/src/pages/desktop/index/components/Desktop.vue
+++ b/src/pages/desktop/index/components/Desktop.vue
@@ -208,12 +208,13 @@
               <span>{{ item.orderMoney }} 鍏�</span>
             </div>
             <div class="desc">
+              <div>璁㈠崟鐢熸垚鏃ユ湡锛歿{ item.createTime }}</div>
               <div>浜у搧鍚嶇О锛歿{ prod.productName }}</div>
               <div>浜у搧绫诲瀷锛歿{ prod.productTypeName }}</div>
               <div>绯荤粺鐗堟湰锛歿{ prod.edition }}</div>
               <div>閫氶亾鏁伴噺锛歿{ prod.ChCount }}</div>
               <div>鎽勫儚鏈烘暟閲忥細{{ prod.cameraCount }}</div>
-              <div>鏈嶅姟鏃堕暱锛歿{ prod.serveYear }} 骞�</div>
+              <div>璧锋鏈嶅姟鏃堕棿 锛歿{ startAndEnd(item.createTime, prod.serveYear) }}</div>
             </div>
           </div>
         </div>
@@ -256,7 +257,7 @@
       showFreeVersion: false,
       activeDialog: false,
       countdown: 60,
-      innerDialog: true,
+      innerDialog: false,
       versionName: "",
       codeMsg: "鑾峰彇楠岃瘉鐮�",
       versionState: "灏氭湭婵�娲�",
@@ -268,76 +269,7 @@
       snExpire: false,
       timer: null,
       token: "",
-      orderList: [
-        {
-          id: "da09c92a-8bc0-4586-998e-4b6113f457fc",
-          orderMoney: 2320,
-          products: [
-            {
-              ChCount: 16,
-              activateCode: "E8B72-E0B09-5F44B-8BBC4-1C5AC",
-              activeTime: "",
-              appendix: [],
-              authCount: 16,
-              cameraCount: 0,
-              codeStatus: 0,
-              devCount: 1,
-              devIdList: ["407394c3-bc46-446b-88d5-ddf6d4694e32"],
-              devInstallLimit: 1,
-              edition: "",
-              moduleNames: [],
-              orderId: "",
-              productBaseDetail: null,
-              productId: "44aa3c6c-cb1a-445c-9c42-3af3f0d1bcf4",
-              productName: "SmartAI浜у搧瀵嗛挜",
-              productPrice: 0,
-              productType: 5,
-              productTypeName: "浜у搧瀵嗛挜",
-              productVersion: "",
-              sdkNames: [],
-              serveYear: 2,
-              targetPlatform: "",
-              usedCount: 0,
-              userId: "",
-            },
-          ],
-        },
-
-        {
-          id: "da09c92a-8bc0-4586-998e-4b6113f457fc",
-
-          orderMoney: 2320,
-          products: [
-            {
-              ChCount: 16,
-              activateCode: "E8B72-E0B09-5F44B-8BBC4-1C5AC",
-              activeTime: "",
-              appendix: [],
-              authCount: 16,
-              cameraCount: 0,
-              codeStatus: 0,
-              devCount: 1,
-              devIdList: ["407394c3-bc46-446b-88d5-ddf6d4694e32"],
-              devInstallLimit: 1,
-              edition: "",
-              moduleNames: [],
-              orderId: "",
-              productBaseDetail: null,
-              productId: "44aa3c6c-cb1a-445c-9c42-3af3f0d1bcf4",
-              productName: "SmartAI浜у搧瀵嗛挜",
-              productPrice: 0,
-              productType: 5,
-              productTypeName: "浜у搧瀵嗛挜",
-              productVersion: "",
-              sdkNames: [],
-              serveYear: 2,
-              targetPlatform: "",
-              usedCount: 0,
-              userId: "",
-            },
-          ],
-        },
-      ],
+      orderList: [ ],
       phone: {
         phoneNum: "",
         verifyCode: "",
@@ -354,6 +286,11 @@
     this.validateSn();
   },
   methods: {
+    startAndEnd(createTime,serveYear){
+      let year = createTime.split("-")[0]
+      let endTime = parseInt(year) + serveYear + createTime.slice(4)
+      return createTime + " - " + endTime
+    },
     activeVerByOrd() {
       activeByOrder({
         token: this.token,
@@ -427,7 +364,7 @@
             getShopOrderList({ token: this.token })
               .then((res) => {
                 if (res.code == 200) {
-                  // this.orderList = res.data.list;
+                  this.orderList = res.data.list;
                 } else {
                   this.$notify.error("鑾峰彇璁㈠崟鍒楄〃澶辫触");
                 }

--
Gitblit v1.8.0