liukang 1 year ago
parent
commit
807e00748e
4 changed files with 26 additions and 28 deletions
  1. BIN
      smdz.rar
  2. 7 21
      src/App.vue
  3. 2 2
      src/api/http.js
  4. 17 5
      src/view/smdz-pc/down.vue

BIN
smdz.rar


+ 7 - 21
src/App.vue

@@ -56,33 +56,19 @@ export default {
 		getUrl() {
 			let url = window.location.href
 			let p = url.split('?')[1].split('#')[0]
+			console.log('p=',p);
+			if(p.slice(-1) == '=') {
+				p = p.slice(0,-1)
+			}
 			var privateKey = "02487CCB5C46B750B21D753A70953A03D9A894C4085CF6ED94E8A6396F3436E1";
 			var encrText = p; 
 			const cipherMode = 1
 			let decryptData = sm2.doDecrypt(encrText, privateKey, cipherMode) // 解密结果
 			p = decryptData
-			/* var key = CryptoJS.enc.Utf8.parse('1463587320654321'); //为了避免补位,直接用16位的秘钥
-			var iv = CryptoJS.enc.Utf8.parse('1758326540123456'); //16位初始向量
-			var encrypted = CryptoJS.AES.decrypt(p, key, {
-				iv: iv,
-				mode:CryptoJS.mode.CBC,
-				padding:CryptoJS.pad.Pkcs7
-			}); 
-			p = encrypted.toString(CryptoJS.enc.Utf8) */
-
-
-			/* let keyValue = p
-			let obj = {}
-			for(var i=0;i<keyValue.length;i++) {
-				let item = keyValue[i].split('=');
-				let key = item[0];
-				let value = item[1];
-				obj[key] = value;
-			} */
-
-
+			console.log('p=',p);
+			console.log('p=',p);
 			let id = p.split('=')[1];
-			console.log(id);
+			console.log('id=',id);
 			window.localStorage.setItem('id',id)
 			
         // return decryptData ;

+ 2 - 2
src/api/http.js

@@ -1,4 +1,4 @@
-const baseUrl = 'https://sweep.hdlkeji.com' //测试环境
+// const baseUrl = 'https://sweep-away.hdlkeji.com/' //测试环境
 
-// const baseUrl = '' //正式环境
+const baseUrl = 'https://storage.ultrahub.com.cn/' //正式环境
 export { baseUrl }

+ 17 - 5
src/view/smdz-pc/down.vue

@@ -53,13 +53,17 @@
           </div>
         </el-checkbox-group>
       </div>
-      <div class="bottom hflex jbetween">
-        <div class="hflex" style="height: 20px">
-          <el-checkbox v-model="checkAll" @change="handleCheckAllChange"></el-checkbox>
-          <div class="text2">全选</div>
+      <div class="bottom vflex aend">
+        <div class="hflex jbetween" style="width: 100%">
+          <div class="hflex" style="height: 20px">
+            <el-checkbox v-model="checkAll" @change="handleCheckAllChange"></el-checkbox>
+            <div class="text2">全选</div>
+          </div>
+          <div class="btn" @click="down">下载文件</div> 
         </div>
-        <div class="btn" @click="down">下载文件</div> 
+        <div class="text">如果下载失败请尝试其他浏览器</div>
       </div>
+
     </div>
   </div>
   
@@ -416,6 +420,14 @@ import download from "downloadjs"
     bottom: 0;
     z-index: 99;
   }
+  .content .bottom .text {
+    font-size: 14px;
+    font-family: PingFangSC-Medium, PingFang SC;
+    font-weight: 500;
+    color: #666666;
+    line-height: 20px;
+    padding-top: 5px;
+  }
   .content .btn {
     width: 107px;
     height: 40px;