(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["brandFullCoupon~coupons~fullCoupon"],{

/***/ "./src/api/coupons/index.js":
/*!**********************************!*\
  !*** ./src/api/coupons/index.js ***!
  \**********************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.getCouponBagInfo = exports.getWxShareCode = exports.getQueryUserAllRecords = exports.getActivityDragonCoupon = exports.getShopInfoList = exports.ryhTokenRefresh = exports.getaVerifyShopInfoList = exports.getActInfo = exports.getCouponBrandList = exports.getRecordList = exports.getBrandCoupon = exports.getShopMyProgress = exports.getWhetherLimitUser = exports.getMyProgress = exports.getBrandList = exports.getBrandActInfo = exports.getHeaders = exports.getCouponsBystatus = undefined;\n\nvar _toast = __webpack_require__(/*! vant/lib/toast */ \"./node_modules/vant/lib/toast/index.js\");\n\nvar _toast2 = _interopRequireDefault(_toast);\n\n__webpack_require__(/*! vant/lib/toast/style/less */ \"./node_modules/vant/lib/toast/style/less.js\");\n\nvar _index = __webpack_require__(/*! ./node_modules/@babel/runtime/regenerator/index.js */ \"./node_modules/@babel/runtime/regenerator/index.js\");\n\nvar _index2 = _interopRequireDefault(_index);\n\nvar _system = __webpack_require__(/*! ../system.config */ \"./src/api/system.config.js\");\n\nvar _configName = __webpack_require__(/*! ../../config/config-name */ \"./src/config/config-name.js\");\n\nvar _utils = __webpack_require__(/*! ../utils */ \"./src/api/utils.js\");\n\nvar _utils2 = __webpack_require__(/*! @api/setting/utils */ \"./src/api/setting/utils.js\");\n\nvar _superATools = __webpack_require__(/*! @utils/superATools */ \"./src/utils/superATools.js\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\nvar _getSystemConfig = (0, _system.getSystemConfig)(_configName.cmsNameSpace),\n    cmsDomain = _getSystemConfig.domain,\n    cmsGaiaKey = _getSystemConfig.gaiaKey;\n\nvar cmsBaseUrl = \"\".concat(cmsDomain);\nvar getCoupon = \"\".concat(cmsBaseUrl, \"/open/api/cms/coupon/v1/queryMyCouponList\");\n\nvar _getSystemConfig2 = (0, _system.getSystemConfig)(_configName.ryhActivityNameSpace),\n    ryhActivityDomain = _getSystemConfig2.domain,\n    ryhActivityGaiaKey = _getSystemConfig2.gaiaKey;\n\nvar _getSystemConfig3 = (0, _system.getSystemConfig)(_configName.ryhCouponNameSpace),\n    ryhCouponDomain = _getSystemConfig3.domain,\n    ryhCouponGaiaKey = _getSystemConfig3.gaiaKey;\n\nvar _getSystemConfig4 = (0, _system.getSystemConfig)(_configName.ryhAuthNameSpace),\n    ryhAuthDomain = _getSystemConfig4.domain,\n    ryhAuthGaiaKey = _getSystemConfig4.gaiaKey;\n\nvar _getSystemConfig5 = (0, _system.getSystemConfig)(_configName.ryhMiniappNameSpace),\n    ryhMiniappDomain = _getSystemConfig5.domain,\n    ryhMiniappGaiaKey = _getSystemConfig5.gaiaKey;\n\nvar getCouponsBystatus =\n/*#__PURE__*/\nexports.getCouponsBystatus = function () {\n  var _ref = _asyncToGenerator(\n  /*#__PURE__*/\n  _index2.default.mark(function _callee(params) {\n    return _index2.default.wrap(function _callee$(_context) {\n      while (1) {\n        switch (_context.prev = _context.next) {\n          case 0:\n            return _context.abrupt(\"return\", _utils.myAxios.post(getCoupon, params, {\n              headers: {\n                'X-GAIA-API-KEY': cmsGaiaKey\n              },\n              loading: false\n            }).then(function (res) {\n              return (0, _utils.handleResponse)(res, 'no-toast');\n            }));\n\n          case 1:\n          case \"end\":\n            return _context.stop();\n        }\n      }\n    }, _callee);\n  }));\n\n  return function getCouponsBystatus(_x) {\n    return _ref.apply(this, arguments);\n  };\n}();\n\nvar RYH_OK_CODE = 10000;\n\nvar getHeaders =\n/*#__PURE__*/\nexports.getHeaders = function () {\n  var _ref3 = _asyncToGenerator(\n  /*#__PURE__*/\n  _index2.default.mark(function _callee4(_ref2) {\n    var _ref2$dingxiang, dingxiang, _ref2$gaiaKey, gaiaKey, _ref2$captchaToken, captchaToken, _ref2$contentType, contentType, params, resObj, fingerprint, getAskConst;\n\n    return _index2.default.wrap(function _callee4$(_context4) {\n      while (1) {\n        switch (_context4.prev = _context4.next) {\n          case 0:\n            _ref2$dingxiang = _ref2.dingxiang, dingxiang = _ref2$dingxiang === void 0 ? false : _ref2$dingxiang, _ref2$gaiaKey = _ref2.gaiaKey, gaiaKey = _ref2$gaiaKey === void 0 ? '' : _ref2$gaiaKey, _ref2$captchaToken = _ref2.captchaToken, captchaToken = _ref2$captchaToken === void 0 ? '' : _ref2$captchaToken, _ref2$contentType = _ref2.contentType, contentType = _ref2$contentType === void 0 ? '' : _ref2$contentType;\n            _context4.next = 3;\n            return (0, _superATools.getParamsByNewSuperA)();\n\n          case 3:\n            params = _context4.sent;\n            console.log('getParamsByNewSuperA:', params); // if (!params.token || !params.channel) {\n            //   if (isNewSuperApp() || isSuperMini()) {\n            //   //  拉起登录\n            //     superAHandleToLogin(window.location.href)\n            //   }\n            // }\n\n            resObj = {\n              'X-GAIA-API-KEY': gaiaKey || '',\n              'user-token': params.token || ''\n            };\n            contentType && (resObj['content-type'] = contentType);\n\n            if (!dingxiang) {\n              _context4.next = 15;\n              break;\n            }\n\n            fingerprint = '';\n\n            getAskConst =\n            /*#__PURE__*/\n            function () {\n              var _ref4 = _asyncToGenerator(\n              /*#__PURE__*/\n              _index2.default.mark(function _callee3() {\n                return _index2.default.wrap(function _callee3$(_context3) {\n                  while (1) {\n                    switch (_context3.prev = _context3.next) {\n                      case 0:\n                        console.log('第一次获取设备指纹--开始');\n                        _context3.next = 3;\n                        return (0, _utils2.getConstId)(true);\n\n                      case 3:\n                        fingerprint = _context3.sent;\n                        console.log('第一次获取设备指纹--结束', fingerprint);\n\n                        if (!fingerprint) {\n                          _context3.next = 9;\n                          break;\n                        }\n\n                        return _context3.abrupt(\"return\", fingerprint);\n\n                      case 9:\n                        return _context3.abrupt(\"return\", new Promise(function (resolve, reject) {\n                          setTimeout(\n                          /*#__PURE__*/\n                          _asyncToGenerator(\n                          /*#__PURE__*/\n                          _index2.default.mark(function _callee2() {\n                            return _index2.default.wrap(function _callee2$(_context2) {\n                              while (1) {\n                                switch (_context2.prev = _context2.next) {\n                                  case 0:\n                                    _context2.prev = 0;\n                                    console.log('第二次获取设备指纹--开始');\n                                    _context2.next = 4;\n                                    return (0, _utils2.getConstId)();\n\n                                  case 4:\n                                    fingerprint = _context2.sent;\n                                    console.log('第二次获取设备指纹--结束', fingerprint);\n                                    resolve(fingerprint);\n                                    _context2.next = 14;\n                                    break;\n\n                                  case 9:\n                                    _context2.prev = 9;\n                                    _context2.t0 = _context2[\"catch\"](0);\n                                    (0, _toast2.default)('网络较弱，请重新进入页面');\n                                    console.log('获取设备指纹--报错--弹窗');\n                                    reject(_context2.t0);\n\n                                  case 14:\n                                  case \"end\":\n                                    return _context2.stop();\n                                }\n                              }\n                            }, _callee2, null, [[0, 9]]);\n                          })), 1500);\n                        }));\n\n                      case 10:\n                      case \"end\":\n                        return _context3.stop();\n                    }\n                  }\n                }, _callee3);\n              }));\n\n              return function getAskConst() {\n                return _ref4.apply(this, arguments);\n              };\n            }(); // try {\n\n\n            _context4.next = 12;\n            return getAskConst();\n\n          case 12:\n            fingerprint = _context4.sent;\n            console.log('获取设备指纹--结束', fingerprint); // } catch (e) {\n            //   console.log('获取设备指纹--报错--弹窗')\n            // }\n            // if (!fingerprint) {\n            //   Toast('网络较弱，请重新进入页面，获取答题次数')\n            // }\n\n            resObj = Object.assign(resObj, {\n              'const-id': fingerprint,\n              // 顶象\n              deviceId: fingerprint // 'X-LF-DXRisk-Captcha-Token': captchaToken // 图形验证码\n\n            });\n\n          case 15:\n            return _context4.abrupt(\"return\", resObj);\n\n          case 16:\n          case \"end\":\n            return _context4.stop();\n        }\n      }\n    }, _callee4);\n  }));\n\n  return function getHeaders(_x2) {\n    return _ref3.apply(this, arguments);\n  };\n}();\n\nvar getBrandActInfo =\n/*#__PURE__*/\nexports.getBrandActInfo = function () {\n  var _ref6 = _asyncToGenerator(\n  /*#__PURE__*/\n  _index2.default.mark(function _callee5(params) {\n    return _index2.default.wrap(function _callee5$(_context5) {\n      while (1) {\n        switch (_context5.prev = _context5.next) {\n          case 0:\n            _context5.t0 = _utils.myAxios;\n            _context5.t1 = \"\".concat(ryhActivityDomain, \"/activity/singleShopDragonCoupon/getActInfo\");\n            _context5.t2 = params;\n            _context5.next = 5;\n            return getHeaders({\n              gaiaKey: ryhActivityGaiaKey,\n              contentType: 'application/x-www-form-urlencoded'\n            });\n\n          case 5:\n            _context5.t3 = _context5.sent;\n            _context5.t4 = {\n              headers: _context5.t3,\n              loading: false\n            };\n            return _context5.abrupt(\"return\", _context5.t0.post.call(_context5.t0, _context5.t1, _context5.t2, _context5.t4).then(function (res) {\n              return (0, _utils.handleResponse)(res, [RYH_OK_CODE]);\n            }));\n\n          case 8:\n          case \"end\":\n            return _context5.stop();\n        }\n      }\n    }, _callee5);\n  }));\n\n  return function getBrandActInfo(_x3) {\n    return _ref6.apply(this, arguments);\n  };\n}();\n\nvar getBrandList =\n/*#__PURE__*/\nexports.getBrandList = function () {\n  var _ref7 = _asyncToGenerator(\n  /*#__PURE__*/\n  _index2.default.mark(function _callee6(params) {\n    return _index2.default.wrap(function _callee6$(_context6) {\n      while (1) {\n        switch (_context6.prev = _context6.next) {\n          case 0:\n            _context6.t0 = _utils.myAxios;\n            _context6.t1 = \"\".concat(ryhActivityDomain, \"/activity/singleShopDragonCoupon/getRuleDetailByGroup\");\n            _context6.t2 = params;\n            _context6.next = 5;\n            return getHeaders({\n              gaiaKey: ryhActivityGaiaKey\n            });\n\n          case 5:\n            _context6.t3 = _context6.sent;\n            _context6.t4 = {\n              headers: _context6.t3,\n              loading: false\n            };\n            return _context6.abrupt(\"return\", _context6.t0.post.call(_context6.t0, _context6.t1, _context6.t2, _context6.t4).then(function (res) {\n              return (0, _utils.handleResponse)(res, [RYH_OK_CODE]);\n            }));\n\n          case 8:\n          case \"end\":\n            return _context6.stop();\n        }\n      }\n    }, _callee6);\n  }));\n\n  return function getBrandList(_x4) {\n    return _ref7.apply(this, arguments);\n  };\n}();\n\nvar getMyProgress =\n/*#__PURE__*/\nexports.getMyProgress = function () {\n  var _ref8 = _asyncToGenerator(\n  /*#__PURE__*/\n  _index2.default.mark(function _callee7(params) {\n    return _index2.default.wrap(function _callee7$(_context7) {\n      while (1) {\n        switch (_context7.prev = _context7.next) {\n          case 0:\n            _context7.t0 = _utils.myAxios;\n            _context7.t1 = \"\".concat(ryhActivityDomain, \"/activity/singleShopDragonCoupon/getRateByActId\");\n            _context7.t2 = params;\n            _context7.next = 5;\n            return getHeaders({\n              gaiaKey: ryhActivityGaiaKey\n            });\n\n          case 5:\n            _context7.t3 = _context7.sent;\n            _context7.t4 = {\n              headers: _context7.t3,\n              loading: false\n            };\n            return _context7.abrupt(\"return\", _context7.t0.post.call(_context7.t0, _context7.t1, _context7.t2, _context7.t4).then(function (res) {\n              return (0, _utils.handleResponse)(res, [RYH_OK_CODE]);\n            }));\n\n          case 8:\n          case \"end\":\n            return _context7.stop();\n        }\n      }\n    }, _callee7);\n  }));\n\n  return function getMyProgress(_x5) {\n    return _ref8.apply(this, arguments);\n  };\n}();\n\nvar getWhetherLimitUser =\n/*#__PURE__*/\nexports.getWhetherLimitUser = function () {\n  var _ref9 = _asyncToGenerator(\n  /*#__PURE__*/\n  _index2.default.mark(function _callee8(params) {\n    return _index2.default.wrap(function _callee8$(_context8) {\n      while (1) {\n        switch (_context8.prev = _context8.next) {\n          case 0:\n            _context8.t0 = _utils.myAxios;\n            _context8.t1 = \"\".concat(ryhActivityDomain, \"/activity/singleShopDragonCoupon/getWhetherLimitUser\");\n            _context8.t2 = params;\n            _context8.next = 5;\n            return getHeaders({\n              gaiaKey: ryhActivityGaiaKey,\n              contentType: 'application/x-www-form-urlencoded'\n            });\n\n          case 5:\n            _context8.t3 = _context8.sent;\n            _context8.t4 = {\n              headers: _context8.t3,\n              loading: false\n            };\n            return _context8.abrupt(\"return\", _context8.t0.post.call(_context8.t0, _context8.t1, _context8.t2, _context8.t4).then(function (res) {\n              return (0, _utils.handleResponse)(res, [RYH_OK_CODE]);\n            }));\n\n          case 8:\n          case \"end\":\n            return _context8.stop();\n        }\n      }\n    }, _callee8);\n  }));\n\n  return function getWhetherLimitUser(_x6) {\n    return _ref9.apply(this, arguments);\n  };\n}();\n\nvar getShopMyProgress =\n/*#__PURE__*/\nexports.getShopMyProgress = function () {\n  var _ref10 = _asyncToGenerator(\n  /*#__PURE__*/\n  _index2.default.mark(function _callee9(params) {\n    return _index2.default.wrap(function _callee9$(_context9) {\n      while (1) {\n        switch (_context9.prev = _context9.next) {\n          case 0:\n            _context9.t0 = _utils.myAxios;\n            _context9.t1 = \"\".concat(ryhActivityDomain, \"/activity/singleShopDragonCoupon/getRateByShopId\");\n            _context9.t2 = params;\n            _context9.next = 5;\n            return getHeaders({\n              gaiaKey: ryhActivityGaiaKey\n            });\n\n          case 5:\n            _context9.t3 = _context9.sent;\n            _context9.t4 = {\n              headers: _context9.t3,\n              loading: false\n            };\n            return _context9.abrupt(\"return\", _context9.t0.post.call(_context9.t0, _context9.t1, _context9.t2, _context9.t4).then(function (res) {\n              return (0, _utils.handleResponse)(res, [RYH_OK_CODE]);\n            }));\n\n          case 8:\n          case \"end\":\n            return _context9.stop();\n        }\n      }\n    }, _callee9);\n  }));\n\n  return function getShopMyProgress(_x7) {\n    return _ref10.apply(this, arguments);\n  };\n}(); // 领取珑珠券\n\n\nvar getBrandCoupon =\n/*#__PURE__*/\nexports.getBrandCoupon = function () {\n  var _ref11 = _asyncToGenerator(\n  /*#__PURE__*/\n  _index2.default.mark(function _callee10(params) {\n    return _index2.default.wrap(function _callee10$(_context10) {\n      while (1) {\n        switch (_context10.prev = _context10.next) {\n          case 0:\n            _context10.t0 = _utils.myAxios;\n            _context10.t1 = \"\".concat(ryhActivityDomain, \"/activity/singleShopDragonCoupon/getActivityDragonCoupon\");\n            _context10.t2 = params;\n            _context10.next = 5;\n            return getHeaders({\n              gaiaKey: ryhActivityGaiaKey,\n              dingxiang: true,\n              contentType: 'application/x-www-form-urlencoded'\n            });\n\n          case 5:\n            _context10.t3 = _context10.sent;\n            _context10.t4 = {\n              headers: _context10.t3,\n              loading: false\n            };\n            return _context10.abrupt(\"return\", _context10.t0.post.call(_context10.t0, _context10.t1, _context10.t2, _context10.t4).then(function (res) {\n              return (0, _utils.handleResponse)(res, [RYH_OK_CODE]);\n            }));\n\n          case 8:\n          case \"end\":\n            return _context10.stop();\n        }\n      }\n    }, _callee10);\n  }));\n\n  return function getBrandCoupon(_x8) {\n    return _ref11.apply(this, arguments);\n  };\n}(); // 领取记录\n\n\nvar getRecordList =\n/*#__PURE__*/\nexports.getRecordList = function () {\n  var _ref12 = _asyncToGenerator(\n  /*#__PURE__*/\n  _index2.default.mark(function _callee11(params) {\n    return _index2.default.wrap(function _callee11$(_context11) {\n      while (1) {\n        switch (_context11.prev = _context11.next) {\n          case 0:\n            _context11.t0 = _utils.myAxios;\n            _context11.t1 = \"\".concat(ryhActivityDomain, \"/activity/singleShopDragonCoupon/userGetRecords?\").concat(new URLSearchParams(params).toString());\n            _context11.next = 4;\n            return getHeaders({\n              gaiaKey: ryhActivityGaiaKey\n            });\n\n          case 4:\n            _context11.t2 = _context11.sent;\n            _context11.t3 = {\n              headers: _context11.t2,\n              loading: false\n            };\n            return _context11.abrupt(\"return\", _context11.t0.get.call(_context11.t0, _context11.t1, _context11.t3).then(function (res) {\n              return (0, _utils.handleResponse)(res, [RYH_OK_CODE]);\n            }));\n\n          case 7:\n          case \"end\":\n            return _context11.stop();\n        }\n      }\n    }, _callee11);\n  }));\n\n  return function getRecordList(_x9) {\n    return _ref12.apply(this, arguments);\n  };\n}();\n\nvar getCouponBrandList =\n/*#__PURE__*/\nexports.getCouponBrandList = function () {\n  var _ref13 = _asyncToGenerator(\n  /*#__PURE__*/\n  _index2.default.mark(function _callee12(params) {\n    return _index2.default.wrap(function _callee12$(_context12) {\n      while (1) {\n        switch (_context12.prev = _context12.next) {\n          case 0:\n            _context12.t0 = _utils.myAxios;\n            _context12.t1 = \"\".concat(ryhCouponDomain, \"/coupon/center/api/coupon/merchant/list?\").concat(new URLSearchParams(params).toString());\n            _context12.next = 4;\n            return getHeaders({\n              gaiaKey: ryhCouponGaiaKey\n            });\n\n          case 4:\n            _context12.t2 = _context12.sent;\n            _context12.t3 = {\n              headers: _context12.t2,\n              loading: false\n            };\n            return _context12.abrupt(\"return\", _context12.t0.get.call(_context12.t0, _context12.t1, _context12.t3).then(function (res) {\n              return (0, _utils.handleResponse)(res, [RYH_OK_CODE]);\n            }));\n\n          case 7:\n          case \"end\":\n            return _context12.stop();\n        }\n      }\n    }, _callee12);\n  }));\n\n  return function getCouponBrandList(_x10) {\n    return _ref13.apply(this, arguments);\n  };\n}(); // 满额赠珑珠券活动信息===================================\n\n\nvar getActInfo =\n/*#__PURE__*/\nexports.getActInfo = function () {\n  var _ref14 = _asyncToGenerator(\n  /*#__PURE__*/\n  _index2.default.mark(function _callee13(params) {\n    return _index2.default.wrap(function _callee13$(_context13) {\n      while (1) {\n        switch (_context13.prev = _context13.next) {\n          case 0:\n            _context13.t0 = _utils.myAxios;\n            _context13.t1 = \"\".concat(ryhActivityDomain, \"/activity/fullAmountDragonCoupon/getActInfo\");\n            _context13.t2 = params;\n            _context13.next = 5;\n            return getHeaders({\n              gaiaKey: ryhActivityGaiaKey,\n              contentType: 'application/x-www-form-urlencoded'\n            });\n\n          case 5:\n            _context13.t3 = _context13.sent;\n            _context13.t4 = {\n              headers: _context13.t3,\n              loading: false\n            };\n            return _context13.abrupt(\"return\", _context13.t0.post.call(_context13.t0, _context13.t1, _context13.t2, _context13.t4).then(function (res) {\n              return (0, _utils.handleResponse)(res, [RYH_OK_CODE]);\n            }));\n\n          case 8:\n          case \"end\":\n            return _context13.stop();\n        }\n      }\n    }, _callee13);\n  }));\n\n  return function getActInfo(_x11) {\n    return _ref14.apply(this, arguments);\n  };\n}(); // 满额赠珑珠券活动信息\n\n\nvar getaVerifyShopInfoList =\n/*#__PURE__*/\nexports.getaVerifyShopInfoList = function () {\n  var _ref15 = _asyncToGenerator(\n  /*#__PURE__*/\n  _index2.default.mark(function _callee14(params) {\n    return _index2.default.wrap(function _callee14$(_context14) {\n      while (1) {\n        switch (_context14.prev = _context14.next) {\n          case 0:\n            _context14.t0 = _utils.myAxios;\n            _context14.t1 = \"\".concat(ryhCouponDomain, \"/coupon/center/api/coupon/merchant/logo/list\");\n            _context14.t2 = params;\n            _context14.next = 5;\n            return getHeaders({\n              gaiaKey: ryhCouponGaiaKey\n            });\n\n          case 5:\n            _context14.t3 = _context14.sent;\n            _context14.t4 = {\n              headers: _context14.t3,\n              loading: false\n            };\n            return _context14.abrupt(\"return\", _context14.t0.post.call(_context14.t0, _context14.t1, _context14.t2, _context14.t4).then(function (res) {\n              return (0, _utils.handleResponse)(res, [RYH_OK_CODE]);\n            }));\n\n          case 8:\n          case \"end\":\n            return _context14.stop();\n        }\n      }\n    }, _callee14);\n  }));\n\n  return function getaVerifyShopInfoList(_x12) {\n    return _ref15.apply(this, arguments);\n  };\n}();\n\nvar ryhTokenRefresh =\n/*#__PURE__*/\nexports.ryhTokenRefresh = function () {\n  var _ref16 = _asyncToGenerator(\n  /*#__PURE__*/\n  _index2.default.mark(function _callee15(params) {\n    return _index2.default.wrap(function _callee15$(_context15) {\n      while (1) {\n        switch (_context15.prev = _context15.next) {\n          case 0:\n            return _context15.abrupt(\"return\", _utils.myAxios.post(\"\".concat(ryhAuthDomain, \"/token/refresh\"), params, {\n              headers: {\n                'X-GAIA-API-KEY': ryhAuthGaiaKey\n              },\n              loading: false\n            }).then(function (res) {\n              return (0, _utils.handleResponse)(res, [RYH_OK_CODE]);\n            }));\n\n          case 1:\n          case \"end\":\n            return _context15.stop();\n        }\n      }\n    }, _callee15);\n  }));\n\n  return function ryhTokenRefresh(_x13) {\n    return _ref16.apply(this, arguments);\n  };\n}(); // 满额赠珑珠券-活动商户list\n\n\nvar getShopInfoList =\n/*#__PURE__*/\nexports.getShopInfoList = function () {\n  var _ref17 = _asyncToGenerator(\n  /*#__PURE__*/\n  _index2.default.mark(function _callee16(params) {\n    return _index2.default.wrap(function _callee16$(_context16) {\n      while (1) {\n        switch (_context16.prev = _context16.next) {\n          case 0:\n            _context16.t0 = _utils.myAxios;\n            _context16.t1 = \"\".concat(ryhActivityDomain, \"/single/activity/queryShopInfoList\");\n            _context16.t2 = params;\n            _context16.next = 5;\n            return getHeaders({\n              gaiaKey: ryhActivityGaiaKey\n            });\n\n          case 5:\n            _context16.t3 = _context16.sent;\n            _context16.t4 = {\n              headers: _context16.t3,\n              loading: false\n            };\n            return _context16.abrupt(\"return\", _context16.t0.post.call(_context16.t0, _context16.t1, _context16.t2, _context16.t4).then(function (res) {\n              return (0, _utils.handleResponse)(res, [RYH_OK_CODE]);\n            }));\n\n          case 8:\n          case \"end\":\n            return _context16.stop();\n        }\n      }\n    }, _callee16);\n  }));\n\n  return function getShopInfoList(_x14) {\n    return _ref17.apply(this, arguments);\n  };\n}(); // 满额赠珑珠券-领取券\n\n\nvar getActivityDragonCoupon =\n/*#__PURE__*/\nexports.getActivityDragonCoupon = function () {\n  var _ref18 = _asyncToGenerator(\n  /*#__PURE__*/\n  _index2.default.mark(function _callee17(params) {\n    return _index2.default.wrap(function _callee17$(_context17) {\n      while (1) {\n        switch (_context17.prev = _context17.next) {\n          case 0:\n            _context17.t0 = _utils.myAxios;\n            _context17.t1 = \"\".concat(ryhActivityDomain, \"/activity/fullAmountDragonCoupon/getActivityDragonCoupon\");\n            _context17.t2 = params;\n            _context17.next = 5;\n            return getHeaders({\n              gaiaKey: ryhActivityGaiaKey,\n              dingxiang: true,\n              contentType: 'application/x-www-form-urlencoded'\n            });\n\n          case 5:\n            _context17.t3 = _context17.sent;\n            _context17.t4 = {\n              headers: _context17.t3,\n              loading: false\n            };\n            return _context17.abrupt(\"return\", _context17.t0.post.call(_context17.t0, _context17.t1, _context17.t2, _context17.t4).then(function (res) {\n              return (0, _utils.handleResponse)(res, [RYH_OK_CODE]);\n            }));\n\n          case 8:\n          case \"end\":\n            return _context17.stop();\n        }\n      }\n    }, _callee17);\n  }));\n\n  return function getActivityDragonCoupon(_x15) {\n    return _ref18.apply(this, arguments);\n  };\n}(); // 满额赠珑珠券-用户信息\n\n\nvar getQueryUserAllRecords =\n/*#__PURE__*/\nexports.getQueryUserAllRecords = function () {\n  var _ref19 = _asyncToGenerator(\n  /*#__PURE__*/\n  _index2.default.mark(function _callee18(params) {\n    return _index2.default.wrap(function _callee18$(_context18) {\n      while (1) {\n        switch (_context18.prev = _context18.next) {\n          case 0:\n            _context18.t0 = _utils.myAxios;\n            _context18.t1 = \"\".concat(ryhActivityDomain, \"/activity/fullAmountDragonCoupon/queryUserAllRecords\");\n            _context18.t2 = params;\n            _context18.next = 5;\n            return getHeaders({\n              gaiaKey: ryhActivityGaiaKey,\n              contentType: 'application/x-www-form-urlencoded'\n            });\n\n          case 5:\n            _context18.t3 = _context18.sent;\n            _context18.t4 = {\n              headers: _context18.t3,\n              loading: false\n            };\n            return _context18.abrupt(\"return\", _context18.t0.post.call(_context18.t0, _context18.t1, _context18.t2, _context18.t4).then(function (res) {\n              return (0, _utils.handleResponse)(res, [RYH_OK_CODE]);\n            }));\n\n          case 8:\n          case \"end\":\n            return _context18.stop();\n        }\n      }\n    }, _callee18);\n  }));\n\n  return function getQueryUserAllRecords(_x16) {\n    return _ref19.apply(this, arguments);\n  };\n}(); // 满额赠珑珠券-分享信息\n\n\nvar getWxShareCode =\n/*#__PURE__*/\nexports.getWxShareCode = function () {\n  var _ref20 = _asyncToGenerator(\n  /*#__PURE__*/\n  _index2.default.mark(function _callee19(params) {\n    return _index2.default.wrap(function _callee19$(_context19) {\n      while (1) {\n        switch (_context19.prev = _context19.next) {\n          case 0:\n            _context19.t0 = _utils.myAxios;\n            _context19.t1 = \"\".concat(ryhMiniappDomain, \"/ryh/promote/share/qrcode/query\");\n            _context19.t2 = params;\n            _context19.t3 = Object;\n            _context19.next = 6;\n            return getHeaders({\n              gaiaKey: ryhMiniappGaiaKey\n            });\n\n          case 6:\n            _context19.t4 = _context19.sent;\n            _context19.t5 = _context19.t3.assign.call(_context19.t3, _context19.t4);\n            _context19.t6 = {\n              headers: _context19.t5,\n              loading: false\n            };\n            return _context19.abrupt(\"return\", _context19.t0.post.call(_context19.t0, _context19.t1, _context19.t2, _context19.t6).then(function (res) {\n              return (0, _utils.handleResponse)(res, [RYH_OK_CODE]);\n            }));\n\n          case 10:\n          case \"end\":\n            return _context19.stop();\n        }\n      }\n    }, _callee19);\n  }));\n\n  return function getWxShareCode(_x17) {\n    return _ref20.apply(this, arguments);\n  };\n}(); // 获取满额赠券包详情\n\n\nvar getCouponBagInfo =\n/*#__PURE__*/\nexports.getCouponBagInfo = function () {\n  var _ref21 = _asyncToGenerator(\n  /*#__PURE__*/\n  _index2.default.mark(function _callee20(params) {\n    return _index2.default.wrap(function _callee20$(_context20) {\n      while (1) {\n        switch (_context20.prev = _context20.next) {\n          case 0:\n            _context20.t0 = _utils.myAxios;\n            _context20.t1 = \"\".concat(ryhActivityDomain, \"/activity/fullAmountDragonCoupon/queryPackageDetail?\").concat(new URLSearchParams(params).toString());\n            _context20.next = 4;\n            return getHeaders({\n              gaiaKey: ryhActivityGaiaKey,\n              contentType: 'application/x-www-form-urlencoded'\n            });\n\n          case 4:\n            _context20.t2 = _context20.sent;\n            _context20.t3 = {\n              headers: _context20.t2,\n              loading: false\n            };\n            return _context20.abrupt(\"return\", _context20.t0.get.call(_context20.t0, _context20.t1, _context20.t3).then(function (res) {\n              return (0, _utils.handleResponse)(res, [RYH_OK_CODE]);\n            }));\n\n          case 7:\n          case \"end\":\n            return _context20.stop();\n        }\n      }\n    }, _callee20);\n  }));\n\n  return function getCouponBagInfo(_x18) {\n    return _ref21.apply(this, arguments);\n  };\n}();\n\nexports.default = {\n  getCouponsBystatus: getCouponsBystatus,\n  getaVerifyShopInfoList: getaVerifyShopInfoList,\n  getCouponBrandList: getCouponBrandList,\n  getWhetherLimitUser: getWhetherLimitUser,\n  getShopMyProgress: getShopMyProgress,\n  getMyProgress: getMyProgress,\n  getBrandList: getBrandList,\n  getBrandActInfo: getBrandActInfo,\n  getCouponBagInfo: getCouponBagInfo\n};\n\n//# sourceURL=webpack:///./src/api/coupons/index.js?");

/***/ })

}]);