|
@@ -970,34 +970,6 @@ const _getCommonConsult = () => { |
|
@@ -970,34 +970,6 @@ const _getCommonConsult = () => { |
970
|
});
|
970
|
});
|
971
|
};
|
971
|
};
|
972
|
|
972
|
|
973
|
-/**
|
|
|
974
|
- * 获取秒杀列表
|
|
|
975
|
- */
|
|
|
976
|
-const getSeckillData = (param) => {
|
|
|
977
|
- let params = {
|
|
|
978
|
- method: 'app.seckill.data',
|
|
|
979
|
- product_skn: param.productskn
|
|
|
980
|
- };
|
|
|
981
|
-
|
|
|
982
|
- return api.get('', params, {
|
|
|
983
|
- code: 200
|
|
|
984
|
- })
|
|
|
985
|
-
|
|
|
986
|
- // mock
|
|
|
987
|
- .catch()
|
|
|
988
|
- .then(result => {
|
|
|
989
|
- let data = {};
|
|
|
990
|
-
|
|
|
991
|
- if (result.data) {
|
|
|
992
|
- data = result.data;
|
|
|
993
|
- } else {
|
|
|
994
|
- data.status = 0;
|
|
|
995
|
- }
|
|
|
996
|
-
|
|
|
997
|
- return data;
|
|
|
998
|
- });
|
|
|
999
|
-};
|
|
|
1000
|
-
|
|
|
1001
|
let getProductData = (data) => {
|
973
|
let getProductData = (data) => {
|
1002
|
let finalResult = {};
|
974
|
let finalResult = {};
|
1003
|
|
975
|
|
|
@@ -1102,6 +1074,5 @@ let _productInfoBySkns = (skns) => { |
|
@@ -1102,6 +1074,5 @@ let _productInfoBySkns = (skns) => { |
1102
|
module.exports = {
|
1074
|
module.exports = {
|
1103
|
getProductData,
|
1075
|
getProductData,
|
1104
|
getUserProfile: _getUserProfile,
|
1076
|
getUserProfile: _getUserProfile,
|
1105
|
- getSeckillData,
|
|
|
1106
|
productInfoBySkns: _productInfoBySkns
|
1077
|
productInfoBySkns: _productInfoBySkns
|
1107
|
}; |
1078
|
}; |