|
|
@@ -95,9 +95,12 @@ function checkHandleRequest() {
|
|
|
// 公告类别
|
|
|
break;
|
|
|
default:
|
|
|
- if (path.indexOf('/api/market/newpackorderlistdetail') > -1) {
|
|
|
+ if (path.indexOf('/api/market/packlistdetail') > -1) {
|
|
|
+ // 产品详情
|
|
|
+ handlePacklistDetail();
|
|
|
+ }else if (path.indexOf('/api/market/newpackorderlistdetail') > -1) {
|
|
|
// 产品列表
|
|
|
- handleNewpacklistDetail();
|
|
|
+ handleNewpackOrderListDetail();
|
|
|
}else if (path.indexOf('/api/market/newpacklist') > -1) {
|
|
|
// 产品类别
|
|
|
handleNewpacklist();
|
|
|
@@ -292,7 +295,7 @@ function handleNewpacklist(){
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-function handleNewpacklistDetail(){
|
|
|
+function handleNewpackOrderListDetail(){
|
|
|
let rspData = getResponsePlainData();
|
|
|
if (!rspData) {
|
|
|
return;
|
|
|
@@ -320,6 +323,33 @@ function handleNewpacklistDetail(){
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+function handlePacklistDetail(){
|
|
|
+ let rspData = getResponsePlainData();
|
|
|
+ if (!rspData) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (rspData.code != 1000) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ let itemData = rspData.data;
|
|
|
+ if(iData.lock_uid && iData.lock_uid > 0){
|
|
|
+ itemData.lock_uid = null;
|
|
|
+ itemData.lock_time = null;
|
|
|
+ itemData.pay_price = `${iData.pay_price}#u`;
|
|
|
+ itemData.pay_type1 = 1;
|
|
|
+ itemData.pay_type2 = 1;
|
|
|
+ itemData.pay_type3 = 1;
|
|
|
+ itemData.pay_type4 = 1;
|
|
|
+ }
|
|
|
+ const baseConfig = getBaseConfig();
|
|
|
+ if (baseConfig.encrypt) {
|
|
|
+ gRetBody = encryptAES(JSON.stringify(rspData), baseConfig.k, baseConfig.v);
|
|
|
+ } else {
|
|
|
+ gRetBody = rspData;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
function transformKeys(keyStr) {
|
|
|
let n = 3;
|
|
|
if (arguments.length > 1 && void 0 !== arguments[1]) {
|