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
-
+
-
+
-
-
+
+