From 0c715eadef5d9bdfc0d9a0263f670bfeaf7e4b6f Mon Sep 17 00:00:00 2001
From: ltlzx <942659938@qq.com>
Date: Mon, 4 Jul 2022 18:19:46 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E6=8E=A5=E5=9C=B0=E5=9D=80=E5=88=97?=
=?UTF-8?q?=E8=A1=A8=E5=92=8C=E6=96=B0=E5=A2=9E=E5=9C=B0=E5=9D=80?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
api/index.js | 20 +++-
api/request.js | 15 ++-
pages/account/addAddress.vue | 207 ++++++++++++++++++++++++++++++-----
pages/account/address.vue | 22 ++--
pages/account/settings.vue | 1 -
5 files changed, 220 insertions(+), 45 deletions(-)
diff --git a/api/index.js b/api/index.js
index 0171f38..8e6a2fe 100644
--- a/api/index.js
+++ b/api/index.js
@@ -7,7 +7,8 @@ export const defaultRequest =query=>{
method:'post',
data:query,
errMsg:true,
- isCookies:false
+ isCookies:false,
+ isEncryption:false,
})
}
//默认请求地址 不显示错误信息
@@ -17,7 +18,8 @@ export const defaultRequest1 =query=>{
method:'post',
data:query,
errMsg:false,
- isCookies:false
+ isCookies:false,
+ isEncryption:false,
})
}
//默认请求地址 只用cookies请求数据
@@ -27,6 +29,18 @@ export const defaultRequest2 =query=>{
method:'post',
data:query,
errMsg:true,
- isCookies:true
+ isCookies:true,
+ isEncryption:false,
})
}
+//默认请求地址 只用cookies请求数据 对立面的对象进行加密
+export const defaultRequest3 =query=>{
+ return httpRequest({
+ url:'mapi/api_v2011.php?appcode=DOPE+',
+ method:'post',
+ data:query,
+ errMsg:true,
+ isCookies:true,
+ isEncryption:true,
+ })
+}
\ No newline at end of file
diff --git a/api/request.js b/api/request.js
index 1a4b950..c5a6856 100644
--- a/api/request.js
+++ b/api/request.js
@@ -19,14 +19,25 @@ const httpRequest = (params) => {
}
let data=Object.assign(json_data,params.data)
console.info(data)
- data=encryption(data)
+ let consignee
+ console.info(params.isEncryption)
+ if(params.isEncryption){
+ // console.info(JSON.parse(JSON.stringify(data.consignee)))
+ consignee=encryption(JSON.parse(JSON.stringify(data.consignee)))
+ // console.info(consignee)
+ data=encryption(data)
+ data.consignee=consignee
+ }else{
+ data=encryption(data)
+ }
+
+ // console.info(data)
//进行加密
// console.info(encryptDes(JSON.stringify(data),'6780f04cf2e211ec86a8005056c00008'))
// console.info(encrypt_by_des(JSON.stringify(data),'6780f04cf2e211ec86a8005056c00008'))
// data=Base64.encode(encryptDes(JSON.stringify(data),'6780f04cf2e211ec86a8005056c00008'));
data=encryptDes(JSON.stringify(data),'6780f04cf2e211ec86a8005056c00008');
// console.info(data)
-
// 解密
// let data2 =JSON.parse(decodeURIComponent (decryptDes(Base64.decode(data),'6780f04cf2e211ec86a8005056c00008'))) ;
// console.info(data2)
diff --git a/pages/account/addAddress.vue b/pages/account/addAddress.vue
index 9fb4d01..9a6c060 100644
--- a/pages/account/addAddress.vue
+++ b/pages/account/addAddress.vue
@@ -5,12 +5,15 @@
-
-
+
+
+
*Country/Region
- United States
-
+ {{countryText}}
+
+
+
@@ -21,7 +24,7 @@
-
+
@@ -31,17 +34,17 @@
-
+
- *Stree adderss or P.O.Box
+ *Stree adderss or P.O.Box
-
+
@@ -51,34 +54,63 @@
-
+
-
-
+
+
+
+
+ *City/Town
+ {{cityText}}
+
+
+
+
+
+
+ *City/Town
+
+
+
+
+
+
+
+
+
-
-
-
- State/Province
-
-
-
-
-
+
+
+
+ State/Province
+ {{provinceText}}
+
+
+
+
+
+ State/Province
+
+
+
+
+
+
+
@@ -88,38 +120,149 @@
-
+
Make this my default address
-
+
-
+
-
-
+
+