Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
梁建民
/
h5
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
5f25d487
authored
Jun 04, 2021
by
肖康
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
x
parent
edf76bda
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
3 deletions
src/api/index.js
src/store/modules/sample/index.js
view/app.js
src/api/index.js
View file @
5f25d487
...
@@ -491,6 +491,10 @@ export const apis = {
...
@@ -491,6 +491,10 @@ export const apis = {
*/
*/
ZiYingIndex
:
zyApi
+
'/search/ZiYing/index'
,
ZiYingIndex
:
zyApi
+
'/search/ZiYing/index'
,
/**
/**
* 自营搜索样片
*/
ZiYingIndexYp
:
zyApi
+
'/search/Sample/zyh'
,
/**
* 获取banner
* 获取banner
*/
*/
getsamplebanner
:
url
+
'/getsamplebanner'
,
getsamplebanner
:
url
+
'/getsamplebanner'
,
...
@@ -889,6 +893,9 @@ export const services = {
...
@@ -889,6 +893,9 @@ export const services = {
ZiYingIndex
(
params
)
{
ZiYingIndex
(
params
)
{
return
axios
.
post
(
apis
.
ZiYingIndex
,
params
)
return
axios
.
post
(
apis
.
ZiYingIndex
,
params
)
},
},
ZiYingIndexYp
(
params
)
{
return
axios
.
post
(
apis
.
ZiYingIndexYp
,
params
)
},
getsamplebanner
(
params
)
{
getsamplebanner
(
params
)
{
return
axios
.
post
(
apis
.
getsamplebanner
,
params
)
return
axios
.
post
(
apis
.
getsamplebanner
,
params
)
},
},
...
...
src/store/modules/sample/index.js
View file @
5f25d487
...
@@ -99,7 +99,7 @@ const actions = {
...
@@ -99,7 +99,7 @@ const actions = {
let
params
=
Util
.
getParams
(
obj
);
let
params
=
Util
.
getParams
(
obj
);
Services
.
ZiYingIndex
(
params
).
then
((
res
)
=>
{
Services
.
ZiYingIndex
Yp
(
params
).
then
((
res
)
=>
{
Toast
.
clear
();
Toast
.
clear
();
let
data
=
res
.
data
;
let
data
=
res
.
data
;
state
.
loading
=
false
;
state
.
loading
=
false
;
...
...
view/app.js
View file @
5f25d487
...
@@ -4180,7 +4180,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _nod
...
@@ -4180,7 +4180,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _nod
/***/
(
function
(
module
,
__webpack_exports__
,
__webpack_require__
)
{
/***/
(
function
(
module
,
__webpack_exports__
,
__webpack_require__
)
{
"use strict"
;
"use strict"
;
eval
(
"__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"productionUrlPc\", function() { return productionUrlPc; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"productionUrl\", function() { return productionUrl; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"productionUrlApi\", function() { return productionUrlApi; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"apis\", function() { return apis; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"services\", function() { return services; });\n/* harmony import */ var core_js_modules_es7_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es7.object.get-own-property-descriptors */ \"./node_modules/_core-js@2.6.12@core-js/modules/es7.object.get-own-property-descriptors.js\");\n/* harmony import */ var core_js_modules_es7_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es7_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/web.dom.iterable */ \"./node_modules/_core-js@2.6.12@core-js/modules/web.dom.iterable.js\");\n/* harmony import */ var core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es6.array.iterator */ \"./node_modules/_core-js@2.6.12@core-js/modules/es6.array.iterator.js\");\n/* harmony import */ var core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es6.object.keys */ \"./node_modules/_core-js@2.6.12@core-js/modules/es6.object.keys.js\");\n/* harmony import */ var core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var D_lxWork_h5_node_modules_babel_runtime_7_12_5_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.12.5@@babel/runtime/helpers/esm/defineProperty */ \"./node_modules/_@babel_runtime@7.12.5@@babel/runtime/helpers/esm/defineProperty.js\");\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! axios */ \"./node_modules/_axios@0.18.1@axios/index.js\");\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_5__);\n\n\n\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { Object(D_lxWork_h5_node_modules_babel_runtime_7_12_5_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n\n/**\r\n * www.ichunt.com 正式环境\r\n * sz.ichunt.com 测试环境\r\n * t.ichunt.com 预发布环境\r\n * www.liexin.com 本地环境\r\n * urlApi api环境\r\n * url 3.0环境\r\n * urlMarketing marketing营销系统接口\r\n */\n\nvar urlApi, url, urlPc, zyApi, lyApi;\n\nswitch (window.location.hostname) {\n case \"m.ichunt.com\":\n urlPc = 'https://www.ichunt.com/v3/';\n url = 'https://m.ichunt.com/v3/';\n urlApi = 'https://api.ichunt.com/';\n zyApi = 'https://so12.ichunt.com'; //搜索自营的域名\n\n lyApi = 'https://so12.ichunt.com'; //搜索联营的域名\n\n break;\n\n case \"szm.ichunt.com\":\n urlApi = 'https://szapi.ichunt.com/';\n url = 'https://szm.ichunt.com/v3/';\n urlPc = 'https://sz.ichunt.com/v3/';\n zyApi = 'https://szso.ichunt.com';\n lyApi = 'https://szso.ichunt.com';\n break;\n\n case \"tm.ichunt.com\":\n url = 'https://tm.ichunt.com/v3/';\n urlApi = 'https://api.ichunt.com/';\n urlPc = 'https://t.ichunt.com/v3/';\n zyApi = 'https://so12.ichunt.com';\n lyApi = 'https://so12.ichunt.com';\n break;\n\n case \"m.liexin.com\":\n url = 'http://m.liexin.com/v3/';\n urlApi = 'http://api.liexin.com/';\n urlPc = 'http://www.liexin.com/v3/';\n zyApi = 'http://soso12.liexin.com';\n lyApi = 'http://soso12.ichunt.com';\n break;\n\n default:\n //本地proxy配置参考vue.config.js\n url = '/m/v3/';\n urlApi = '/apis/';\n}\n\nvar productionUrlPc = urlPc;\nvar productionUrl = url;\nvar productionUrlApi = urlApi;\nvar apis = {\n /**wx分享签名接口**/\n wxShare: url + 'shareparams',\n\n /**\r\n /**\r\n * 首页\r\n */\n index: productionUrl + 'index',\n\n /***获取帮助中心列表***/\n getHelpCenterCatList: productionUrl + 'help/getHelpCenterCatList',\n\n /***获取帮助中心指定文章***/\n getQuestionInfo: productionUrl + 'help/getQuestionInfo',\n\n /**\r\n * 获取登录状态\r\n */\n loginCheck: productionUrlApi + 'login/check',\n\n /**\r\n * 获取购物车内赠品\r\n */\n getCartMZInfo: productionUrlApi + 'cart/getCartMZInfo',\n\n /**\r\n * 获取购物车数量\r\n */\n cartCount: productionUrlApi + 'cart/count',\n\n /**\r\n * 去结算行为统计\r\n */\n confirmBehavior: productionUrlApi + '/public/confirmBehavior',\n\n /**\r\n * 获取购物车列表\r\n */\n cartList: productionUrlApi + 'cart/lists',\n\n /**\r\n * 删除购物车\r\n */\n cartDelete: productionUrlApi + 'cart/delete',\n\n /**\r\n * 获取购物各种类型数量\r\n */\n allcount: productionUrlApi + 'cart/allcount',\n\n /**\r\n * 改变购物车商品数量\r\n */\n changenum: productionUrlApi + '/cart/changenum',\n\n /**\r\n * 客服统计处理\r\n */\n customsrService: productionUrlApi + 'public/customsrservice',\n\n /**\r\n * 获取php常量客服qq\r\n */\n getCommonParams: productionUrl + 'getcommonparams',\n\n /**\r\n * 微信授权\r\n */\n wxaccess: productionUrl + 'api/wxaccess',\n\n /**\r\n * 验证用户是否存在\r\n */\n checkAccountExists: productionUrlApi + 'public/checkAccountExists',\n\n /**\r\n * 获取sms验证码\r\n */\n customSmsVerify: productionUrlApi + 'public/customSmsVerify',\n\n /**\r\n * 提交报关信息\r\n */\n chainFind: productionUrl + 'Service/chainFind',\n\n /**\r\n *微信菜单文章锦集api\r\n */\n wechatArticle: productionUrlApi + 'Wechat/WechatArticleJinJi/article',\n\n /**\r\n *新闻列表api\r\n */\n newsArticle: productionUrlApi + 'Article/Article/index',\n\n /**\r\n * *\r\n * 新闻详情api\r\n * *\r\n */\n newsArticleDetail: productionUrlApi + 'Article/Article/details',\n\n /**\r\n * *\r\n * 新闻详情api\r\n * *\r\n */\n newsArticleDetailAd: productionUrl + 'api/newsdetailad',\n\n /**\r\n * *\r\n * 登录接口api\r\n * *\r\n */\n actionLogin: productionUrlApi + 'login/action',\n\n /**\r\n * *\r\n * 登录接口api\r\n * *\r\n */\n actionLogins: productionUrlApi + 'login/action',\n\n /**\r\n * *\r\n * 获取短信api\r\n * *\r\n */\n smsVerify: productionUrlApi + 'public/smsVerify',\n\n /**\r\n * *\r\n * 提交反馈api\r\n * *\r\n */\n feedback: productionUrlApi + 'help/help/feedback',\n\n /**\r\n * *\r\n * 获取当前积分api\r\n * *\r\n */\n getUserCurrentPoint: productionUrlApi + '/point/getUserCurrentPoint',\n\n /**\r\n * *\r\n * 是否签到api\r\n * *\r\n */\n isSignInToday: productionUrlApi + 'signIn/isSignInToday',\n\n /**\r\n * *\r\n * 签到api\r\n * *\r\n */\n signIn: productionUrlApi + 'signIn/signIn',\n\n /**\r\n * *\r\n * 积分商城是否填写信息完成api\r\n * *\r\n */\n checkMktScore: productionUrlApi + 'user/checkMktScore',\n\n /**\r\n * *\r\n * 积分商城是所有奖品api\r\n * *\r\n */\n getPointPrize: productionUrlApi + 'point/getPointPrize',\n\n /**\r\n * *\r\n * 积分商城兑换奖品api\r\n * *\r\n */\n exchangePrize: productionUrlApi + 'point/exchangePrize',\n\n /**\r\n * *\r\n * 积分商城积分明细api\r\n * *\r\n */\n getUserPointExchangeDetail: productionUrlApi + 'point/getUserPointExchangeDetail',\n\n /**\r\n * *\r\n * 收货地址api\r\n * *\r\n */\n recvlist: productionUrlApi + 'address/recvlist',\n\n /**\r\n * *\r\n * 新增收货地址api\r\n * *\r\n */\n createAddress: productionUrlApi + 'address/create',\n\n /**\r\n * *\r\n * 编辑收货地址api\r\n * *\r\n */\n updateAddress: productionUrlApi + 'address/update',\n\n /**\r\n * *\r\n * 选择兑换奖地址api\r\n * *\r\n */\n changeReceivePrizeAddress: productionUrlApi + 'point/changeReceivePrizeAddress',\n\n /**\r\n * *\r\n * 收货地址api\r\n * *\r\n */\n setdefault: productionUrlApi + 'address/setdefault',\n\n /**\r\n * *\r\n * 收货地址api\r\n * *\r\n */\n deleteAddress: productionUrlApi + 'address/delete',\n\n /**\r\n * *\r\n *单个 收货地址api\r\n * *\r\n */\n infoAddress: productionUrlApi + 'address/info',\n\n /**\r\n * *\r\n *获取港澳台地址选项\r\n * *\r\n */\n getOverseaMsgArea: productionUrlApi + '/reg/getOverseaMsgArea',\n\n /**\r\n * *\r\n * 积分规则api\r\n * *\r\n */\n pointruleApi: productionUrl + 'api/pointrule',\n\n /**\r\n * *\r\n * 积分收入支出明细api\r\n * *\r\n */\n getUserPointDetail: productionUrlApi + 'point/getUserPointDetail',\n\n /**\r\n * *\r\n * 积分兑换明细api\r\n * *\r\n */\n getUserPointExchangeList: productionUrlApi + 'point/getUserPointExchangeList',\n\n /**\r\n * 获取钱包信息api\r\n */\n getWalletInfo: productionUrlApi + 'wallet/info',\n\n /**\r\n * *\r\n * 激活钱包api\r\n * *\r\n */\n activateWallet: productionUrlApi + 'wallet/activate',\n\n /**\r\n * *\r\n * 发送安全手机验证码api\r\n * *\r\n */\n sendSafesms: productionUrlApi + 'wallet/safesms',\n\n /**\r\n * *\r\n * 重置支付密码验证环节api\r\n * *\r\n */\n verifyResetsms: productionUrlApi + 'wallet/verifyresetsms',\n\n /**\r\n * *\r\n * 修改钱包密码api\r\n * *\r\n */\n changeWalletpwd: productionUrlApi + 'wallet/changepwd',\n\n /**\r\n * *\r\n * 钱包明细列表api\r\n * *\r\n */\n walletListLog: productionUrlApi + 'wallet/log',\n\n /**\r\n * *\r\n * 钱包充值提现列表api\r\n * *\r\n */\n walletRecordList: productionUrlApi + 'wallet/lists',\n\n /**\r\n * *\r\n * 手机安全验证校验api\r\n * *\r\n */\n verifySafeMobile: productionUrlApi + 'wallet/verifysafe',\n\n /**\r\n * *\r\n * 校验银行卡获取短信验证码api\r\n * *\r\n */\n getBindBankmsg: productionUrlApi + 'wallet/getbankmsg',\n\n /**\r\n * *\r\n * 绑定银行卡api\r\n * *\r\n */\n bindBankCard: productionUrlApi + 'wallet/bindbankcard',\n\n /**\r\n * *\r\n * 充值申请api\r\n * *\r\n */\n walletRecharge: productionUrlApi + 'wallet/recharge',\n\n /**\r\n * *\r\n * 提现申请api\r\n * *\r\n */\n walletWithdraw: productionUrlApi + 'wallet/withdraw',\n\n /**\r\n * *\r\n * 充值提现单据详细api\r\n * *\r\n */\n rechargeWithdrawOrderIfo: productionUrlApi + 'wallet/orderinfo',\n\n /**\r\n * *\r\n * 跳转及支付码api\r\n * *\r\n */\n payTodo: productionUrlApi + 'pay/todo',\n\n /**\r\n * *\r\n * 查看订单信息api\r\n * *\r\n */\n orderInfo: productionUrlApi + 'order/info',\n\n /*****关于我们顶部配置*/\n getAboutUsData: productionUrl + 'api/aboutData',\n\n /****自营现货 */\n searchZy: zyApi + '/search/ZiYing/zy',\n\n /****联营 */\n searchLy: lyApi + '/search/getData/index',\n\n /****联营es */\n searchLyEs: lyApi + '/search/es/index',\n\n /**供应商接口**/\n supplierApi: productionUrl + 'api/supplierApi',\n\n /****获取弹出商品信息 */\n goodDetail: productionUrlApi + '/goods/detail',\n\n /****获取zy默认class查询 */\n defaultClass: productionUrl + 'api/defaultClass',\n\n /******添加到购物车或者下单 */\n addGood: productionUrlApi + '/cart/add',\n\n /******自营样片订单提交接口 */\n selfSampleCreate: productionUrlApi + '/order/selfsamplecreate',\n\n /** 获取用户领取机会、邀约人数*/\n getusersampleinfo: productionUrlApi + '/user/getusersampleinfo',\n\n /** 获取用户领取机会、邀约人数*/\n getUserSpecialInfo: productionUrlApi + '/user/getUserSpecialInfo',\n\n /** 自营样片邀约登录接口*/\n loginsampleaction: productionUrlApi + '/login/sampleaction',\n\n /** 获取样片列表*/\n samplelist: productionUrlApi + '/sample/list',\n\n /** 获取样片分类列表*/\n sampleclasslist: productionUrlApi + '/sample/class/list',\n\n /** 获取单个样片信息*/\n getsampleinfo: url + 'getsampleinfo',\n\n /**\r\n *\r\n * 会员中心接口\r\n *\r\n * **/\n\n /**获取个人信息**/\n getUserType: productionUrlApi + '/user/getUserType',\n\n /**获取个人订单数量**/\n orderCount: productionUrlApi + '/order/count',\n\n /**获取个人账号绑定信息**/\n getBindInfo: productionUrlApi + '/user/getBindInfo',\n\n /**解绑个人账号绑定信息**/\n unbindPhone: productionUrlApi + '/user/unbind',\n\n /**退出当前账号**/\n logout: productionUrlApi + '/login/logout',\n\n /**获取省市区**/\n allAddress: productionUrlApi + '/address/allpcd',\n\n /**修改个人信息**/\n changeUserInfo: productionUrlApi + '/user/changeUserInfo',\n\n /**优惠券数量**/\n ucouponCount: productionUrlApi + '/ucoupon/count',\n\n /**获取优惠券**/\n issue: productionUrlApi + '/coupon/issue',\n\n /**优惠券列表**/\n ucouponLists: productionUrlApi + '/ucoupon/lists',\n\n /***订单列表**/\n orderLists: productionUrlApi + 'order/lists',\n\n /***消息列表**/\n getMessageListsByUserId: productionUrlApi + 'msg/getMessageListsByUserId',\n\n /***改变消息状态**/\n changeMessageStatus: productionUrlApi + 'msg/changeMessageStatus',\n\n /***删除消息**/\n changeMessageStatusByH5: productionUrlApi + 'msg/changeMessageStatusByH5',\n\n /***订单物流**/\n shipping: productionUrlApi + '/order/shipping',\n\n /***最新物流**/\n lastshipping: productionUrlApi + '/order/lastshipping',\n\n /**再次购买***/\n rebuy: productionUrlApi + 'cart/rebuy',\n\n /***下载订单合同检测**/\n checkPdf: productionUrlApi + '/contract/checkPdf',\n\n /***提醒发货**/\n sendTips: productionUrlApi + '/crm/remindDelivery',\n\n /***确认收货**/\n sureSend: productionUrlApi + '/order/recive',\n\n /***取消订单**/\n orderCancel: productionUrlApi + '/order/cancel',\n\n /***历史浏览**/\n getHistory: productionUrlApi + 'home/behavior/get_view_goods_history',\n\n /***询价单记录**/\n getInqueryList: productionUrlApi + 'help/help/feedback_list',\n\n /**品牌分类**/\n brandList: productionUrl + 'api/brandList',\n\n /**品牌详细**/\n brandInfo: productionUrl + 'api/brandInfo',\n\n /**SKU公用接口**/\n skuList: productionUrlApi + 'sku/info',\n\n /**获取排行榜接口**/\n getlxuserrank: productionUrlApi + 'activity/getlxuserrank',\n\n /**\r\n * 资料下载(banner)\r\n */\n getfileuploadbanner: productionUrl + 'news/getfileuploadbanner',\n\n /**\r\n * 资料下载\r\n */\n articleShowData: productionUrlApi + 'article/showData',\n\n /**\r\n * 资料下载(地址)\r\n */\n downloadFile: productionUrlApi + 'article/DownloadFile',\n\n /**\r\n * 发送验证码\r\n */\n smsVerifys: productionUrlApi + 'public/smsVerify',\n\n /**\r\n * 资料下载分类获取\r\n */\n showClass: productionUrlApi + 'article/show_class',\n\n /**\r\n * 自营样品分类统计\r\n */\n aggSample: zyApi + '/search/ZiYing/aggSample',\n\n /**\r\n * 自营属性输出\r\n */\n aggs: zyApi + '/search/ZiYing/aggs',\n\n /**\r\n * 自营搜索\r\n */\n ZiYingIndex: zyApi + '/search/ZiYing/index',\n\n /**\r\n *
获取banner\r\n */\n getsamplebanner: url + '/getsamplebanner',\n\n /**\r\n * 示波器页面访问数据统计\r\n */\n invited: urlApi + '/activity/invited',\n\n /**\r\n * 示波器页面广告文字轮播数据\r\n */\n rotation: urlApi + '/activity/rotation',\n\n /**\r\n * 示波器页面奖品信息\r\n */\n yaoHaoYouJP: urlApi + '/activity/yaoHaoYouJP',\n\n /**\r\n * 示波器页面获取示波器商品id\r\n */\n getYaoHaoYouGoodId: urlApi + '/activity/getYaoHaoYouGoodId',\n\n /**\r\n * 图片上传\r\n */\n uploadImg: urlApi + '/oss/upload',\n\n /**\r\n * 留言信息\r\n */\n addMessage: urlApi + '/help/help/add_message'\n};\nvar services = {\n index: function index(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.index, params);\n },\n loginCheck: function loginCheck(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.get(apis.loginCheck, {\n params: _objectSpread({}, params)\n });\n },\n addMessage: function addMessage(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.addMessage, params);\n },\n smsVerify: function smsVerify(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.smsVerify, params);\n },\n smsVerifys: function smsVerifys(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.smsVerifys, params);\n },\n actionLogin: function actionLogin(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.actionLogin, params);\n },\n actionLogins: function actionLogins(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.actionLogins, params);\n },\n feedback: function feedback(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.feedback, params);\n },\n cartCount: function cartCount(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.get(apis.cartCount, {\n params: _objectSpread({}, params)\n });\n },\n getCartMZInfo: function getCartMZInfo(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.getCartMZInfo, params);\n },\n customsrService: function customsrService(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.get(apis.customsrService, {\n params: _objectSpread({}, params)\n });\n },\n getCommonParams: function getCommonParams(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.getCommonParams, params);\n },\n wxaccess: function wxaccess(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.wxaccess, params);\n },\n checkAccountExists: function checkAccountExists(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.checkAccountExists, params);\n },\n customSmsVerify: function customSmsVerify(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.customSmsVerify, params);\n },\n chainFind: function chainFind(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.chainFind, params);\n },\n wechatArticle: function wechatArticle(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.wechatArticle, params);\n },\n newsArticle: function newsArticle(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.newsArticle, params);\n },\n newsArticleDetail: function newsArticleDetail(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.newsArticleDetail, params);\n },\n newsArticleDetailAd: function newsArticleDetailAd(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.newsArticleDetailAd, params);\n },\n getUserCurrentPoint: function getUserCurrentPoint(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.getUserCurrentPoint, params);\n },\n isSignInToday: function isSignInToday(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.isSignInToday, params);\n },\n signIn: function signIn(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.signIn, params);\n },\n checkMktScore: function checkMktScore(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.checkMktScore, params);\n },\n getPointPrize: function getPointPrize(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.getPointPrize, params);\n },\n exchangePrize: function exchangePrize(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.exchangePrize, params);\n },\n recvlist: function recvlist(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.recvlist, params);\n },\n createAddress: function createAddress(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.createAddress, params);\n },\n updateAddress: function updateAddress(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.updateAddress, params);\n },\n changeReceivePrizeAddress: function changeReceivePrizeAddress(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.changeReceivePrizeAddress, params);\n },\n setdefault: function setdefault(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.setdefault, params);\n },\n deleteAddress: function deleteAddress(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.deleteAddress, params);\n },\n infoAddress: function infoAddress(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.infoAddress, params);\n },\n getOverseaMsgArea: function getOverseaMsgArea(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.getOverseaMsgArea, params);\n },\n getUserPointExchangeDetail: function getUserPointExchangeDetail(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.getUserPointExchangeDetail, params);\n },\n pointruleApi: function pointruleApi(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.pointruleApi, params);\n },\n getUserPointDetail: function getUserPointDetail(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.getUserPointDetail, params);\n },\n getUserPointExchangeList: function getUserPointExchangeList(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.getUserPointExchangeList, params);\n },\n getAboutUsData: function getAboutUsData(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.getAboutUsData, params);\n },\n getWalletInfo: function getWalletInfo(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.get(apis.getWalletInfo, {\n params: _objectSpread({}, params)\n });\n },\n activateWallet: function activateWallet(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.activateWallet, params);\n },\n sendSafesms: function sendSafesms(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.sendSafesms, params);\n },\n verifyResetsms: function verifyResetsms(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.verifyResetsms, params);\n },\n walletListLog: function walletListLog(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.walletListLog, params);\n },\n changeWalletpwd: function changeWalletpwd(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.changeWalletpwd, params);\n },\n walletRecordList: function walletRecordList(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.walletRecordList, params);\n },\n verifySafeMobile: function verifySafeMobile(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.verifySafeMobile, params);\n },\n getBindBankmsg: function getBindBankmsg(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.getBindBankmsg, params);\n },\n bindBankCard: function bindBankCard(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.bindBankCard, params);\n },\n walletRecharge: function walletRecharge(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.walletRecharge, params);\n },\n walletWithdraw: function walletWithdraw(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.walletWithdraw, params);\n },\n rechargeWithdrawOrderIfo: function rechargeWithdrawOrderIfo(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.rechargeWithdrawOrderIfo, params);\n },\n payTodo: function payTodo(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.payTodo, params);\n },\n orderInfo: function orderInfo(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.orderInfo, params);\n },\n getZyData: function getZyData(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.searchZy, params);\n },\n getLyData: function getLyData(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.searchLy, params);\n },\n getLyEsData: function getLyEsData(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.searchLyEs, params);\n },\n supplierApi: function supplierApi(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.supplierApi, params);\n },\n goodDetail: function goodDetail(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.goodDetail, params);\n },\n defaultClass: function defaultClass(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.defaultClass, params);\n },\n addGood: function addGood(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.addGood, params);\n },\n cartList: function cartList(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.cartList, params);\n },\n cartDelete: function cartDelete(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.cartDelete, params);\n },\n allcount: function allcount(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.allcount, params);\n },\n confirmBehavior: function confirmBehavior(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.confirmBehavior, params);\n },\n changenum: function changenum(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.changenum, params);\n },\n getUserType: function getUserType(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.getUserType, params);\n },\n orderCount: function orderCount(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.orderCount, params);\n },\n getBindInfo: function getBindInfo(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.getBindInfo, params);\n },\n ucouponCount: function ucouponCount(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.ucouponCount, params);\n },\n ucouponLists: function ucouponLists(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.ucouponLists, params);\n },\n issue: function issue(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.issue, params);\n },\n orderLists: function orderLists(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.orderLists, params);\n },\n getMessageListsByUserId: function getMessageListsByUserId(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.getMessageListsByUserId, params);\n },\n changeMessageStatus: function changeMessageStatus(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.changeMessageStatus, params);\n },\n changeMessageStatusByH5: function changeMessageStatusByH5(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.changeMessageStatusByH5, params);\n },\n shipping: function shipping(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.shipping, params);\n },\n lastshipping: function lastshipping(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.lastshipping, params);\n },\n rebuy: function rebuy(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.rebuy, params);\n },\n checkPdf: function checkPdf(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.checkPdf, params);\n },\n sendTips: function sendTips(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.sendTips, params);\n },\n sureSend: function sureSend(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.sureSend, params);\n },\n orderCancel: function orderCancel(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.orderCancel, params);\n },\n unbindPhone: function unbindPhone(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.unbindPhone, params);\n },\n logout: function logout(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.logout, params);\n },\n allAddress: function allAddress(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.allAddress, params);\n },\n changeUserInfo: function changeUserInfo(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.changeUserInfo, params);\n },\n getHistory: function getHistory(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.getHistory, params);\n },\n getInqueryList: function getInqueryList(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.getInqueryList, params);\n },\n brandList: function brandList(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.brandList, params);\n },\n brandInfo: function brandInfo(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.get(apis.brandInfo, {\n params: _objectSpread({}, params)\n });\n },\n skuList: function skuList(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.skuList, params);\n },\n getlxuserrank: function getlxuserrank(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.getlxuserrank, params);\n },\n getfileuploadbanner: function getfileuploadbanner(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.getfileuploadbanner, params);\n },\n articleShowData: function articleShowData(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.articleShowData, params);\n },\n downloadFile: function downloadFile(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.downloadFile, params);\n },\n wxShare: function wxShare(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.wxShare, params);\n },\n selfSampleCreate: function selfSampleCreate(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.selfSampleCreate, params);\n },\n sampleClassList: function sampleClassList(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.get(apis.sampleclasslist, {\n params: _objectSpread({}, params)\n });\n },\n sampleList: function sampleList(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.get(apis.samplelist, {\n params: _objectSpread({}, params)\n });\n },\n getUserSampleInfo: function getUserSampleInfo(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.get(apis.getusersampleinfo, {\n params: _objectSpread({}, params)\n });\n },\n getUserSpecialInfo: function getUserSpecialInfo(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.get(apis.getUserSpecialInfo, {\n params: _objectSpread({}, params)\n });\n },\n getSampleInfo: function getSampleInfo(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.getsampleinfo, params);\n },\n showClass: function showClass(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.showClass, params);\n },\n aggSample: function aggSample(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.aggSample, params);\n },\n aggs: function aggs(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.aggs, params);\n },\n ZiYingIndex: function ZiYingIndex(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.ZiYingIndex
, params);\n },\n getsamplebanner: function getsamplebanner(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.getsamplebanner, params);\n },\n oscilloscopeinvited: function oscilloscopeinvited(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.invited, params);\n },\n getBannerData: function getBannerData(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.rotation, params);\n },\n yaoHaoYouJP: function yaoHaoYouJP(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.yaoHaoYouJP, params);\n },\n getQuestionInfo: function getQuestionInfo(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.getQuestionInfo, params);\n },\n getHelpCenterCatList: function getHelpCenterCatList(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.getHelpCenterCatList, params);\n },\n getYaoHaoYouGoodId: function getYaoHaoYouGoodId(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.get(apis.getYaoHaoYouGoodId, {\n params: _objectSpread({}, params)\n });\n }\n};\n\n//# sourceURL=webpack:///./src/api/index.js?"
);
eval
(
"__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"productionUrlPc\", function() { return productionUrlPc; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"productionUrl\", function() { return productionUrl; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"productionUrlApi\", function() { return productionUrlApi; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"apis\", function() { return apis; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"services\", function() { return services; });\n/* harmony import */ var core_js_modules_es7_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es7.object.get-own-property-descriptors */ \"./node_modules/_core-js@2.6.12@core-js/modules/es7.object.get-own-property-descriptors.js\");\n/* harmony import */ var core_js_modules_es7_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es7_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/web.dom.iterable */ \"./node_modules/_core-js@2.6.12@core-js/modules/web.dom.iterable.js\");\n/* harmony import */ var core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es6.array.iterator */ \"./node_modules/_core-js@2.6.12@core-js/modules/es6.array.iterator.js\");\n/* harmony import */ var core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es6.object.keys */ \"./node_modules/_core-js@2.6.12@core-js/modules/es6.object.keys.js\");\n/* harmony import */ var core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var D_lxWork_h5_node_modules_babel_runtime_7_12_5_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.12.5@@babel/runtime/helpers/esm/defineProperty */ \"./node_modules/_@babel_runtime@7.12.5@@babel/runtime/helpers/esm/defineProperty.js\");\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! axios */ \"./node_modules/_axios@0.18.1@axios/index.js\");\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_5__);\n\n\n\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { Object(D_lxWork_h5_node_modules_babel_runtime_7_12_5_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n\n/**\r\n * www.ichunt.com 正式环境\r\n * sz.ichunt.com 测试环境\r\n * t.ichunt.com 预发布环境\r\n * www.liexin.com 本地环境\r\n * urlApi api环境\r\n * url 3.0环境\r\n * urlMarketing marketing营销系统接口\r\n */\n\nvar urlApi, url, urlPc, zyApi, lyApi;\n\nswitch (window.location.hostname) {\n case \"m.ichunt.com\":\n urlPc = 'https://www.ichunt.com/v3/';\n url = 'https://m.ichunt.com/v3/';\n urlApi = 'https://api.ichunt.com/';\n zyApi = 'https://so12.ichunt.com'; //搜索自营的域名\n\n lyApi = 'https://so12.ichunt.com'; //搜索联营的域名\n\n break;\n\n case \"szm.ichunt.com\":\n urlApi = 'https://szapi.ichunt.com/';\n url = 'https://szm.ichunt.com/v3/';\n urlPc = 'https://sz.ichunt.com/v3/';\n zyApi = 'https://szso.ichunt.com';\n lyApi = 'https://szso.ichunt.com';\n break;\n\n case \"tm.ichunt.com\":\n url = 'https://tm.ichunt.com/v3/';\n urlApi = 'https://api.ichunt.com/';\n urlPc = 'https://t.ichunt.com/v3/';\n zyApi = 'https://so12.ichunt.com';\n lyApi = 'https://so12.ichunt.com';\n break;\n\n case \"m.liexin.com\":\n url = 'http://m.liexin.com/v3/';\n urlApi = 'http://api.liexin.com/';\n urlPc = 'http://www.liexin.com/v3/';\n zyApi = 'http://soso12.liexin.com';\n lyApi = 'http://soso12.ichunt.com';\n break;\n\n default:\n //本地proxy配置参考vue.config.js\n url = '/m/v3/';\n urlApi = '/apis/';\n}\n\nvar productionUrlPc = urlPc;\nvar productionUrl = url;\nvar productionUrlApi = urlApi;\nvar apis = {\n /**wx分享签名接口**/\n wxShare: url + 'shareparams',\n\n /**\r\n /**\r\n * 首页\r\n */\n index: productionUrl + 'index',\n\n /***获取帮助中心列表***/\n getHelpCenterCatList: productionUrl + 'help/getHelpCenterCatList',\n\n /***获取帮助中心指定文章***/\n getQuestionInfo: productionUrl + 'help/getQuestionInfo',\n\n /**\r\n * 获取登录状态\r\n */\n loginCheck: productionUrlApi + 'login/check',\n\n /**\r\n * 获取购物车内赠品\r\n */\n getCartMZInfo: productionUrlApi + 'cart/getCartMZInfo',\n\n /**\r\n * 获取购物车数量\r\n */\n cartCount: productionUrlApi + 'cart/count',\n\n /**\r\n * 去结算行为统计\r\n */\n confirmBehavior: productionUrlApi + '/public/confirmBehavior',\n\n /**\r\n * 获取购物车列表\r\n */\n cartList: productionUrlApi + 'cart/lists',\n\n /**\r\n * 删除购物车\r\n */\n cartDelete: productionUrlApi + 'cart/delete',\n\n /**\r\n * 获取购物各种类型数量\r\n */\n allcount: productionUrlApi + 'cart/allcount',\n\n /**\r\n * 改变购物车商品数量\r\n */\n changenum: productionUrlApi + '/cart/changenum',\n\n /**\r\n * 客服统计处理\r\n */\n customsrService: productionUrlApi + 'public/customsrservice',\n\n /**\r\n * 获取php常量客服qq\r\n */\n getCommonParams: productionUrl + 'getcommonparams',\n\n /**\r\n * 微信授权\r\n */\n wxaccess: productionUrl + 'api/wxaccess',\n\n /**\r\n * 验证用户是否存在\r\n */\n checkAccountExists: productionUrlApi + 'public/checkAccountExists',\n\n /**\r\n * 获取sms验证码\r\n */\n customSmsVerify: productionUrlApi + 'public/customSmsVerify',\n\n /**\r\n * 提交报关信息\r\n */\n chainFind: productionUrl + 'Service/chainFind',\n\n /**\r\n *微信菜单文章锦集api\r\n */\n wechatArticle: productionUrlApi + 'Wechat/WechatArticleJinJi/article',\n\n /**\r\n *新闻列表api\r\n */\n newsArticle: productionUrlApi + 'Article/Article/index',\n\n /**\r\n * *\r\n * 新闻详情api\r\n * *\r\n */\n newsArticleDetail: productionUrlApi + 'Article/Article/details',\n\n /**\r\n * *\r\n * 新闻详情api\r\n * *\r\n */\n newsArticleDetailAd: productionUrl + 'api/newsdetailad',\n\n /**\r\n * *\r\n * 登录接口api\r\n * *\r\n */\n actionLogin: productionUrlApi + 'login/action',\n\n /**\r\n * *\r\n * 登录接口api\r\n * *\r\n */\n actionLogins: productionUrlApi + 'login/action',\n\n /**\r\n * *\r\n * 获取短信api\r\n * *\r\n */\n smsVerify: productionUrlApi + 'public/smsVerify',\n\n /**\r\n * *\r\n * 提交反馈api\r\n * *\r\n */\n feedback: productionUrlApi + 'help/help/feedback',\n\n /**\r\n * *\r\n * 获取当前积分api\r\n * *\r\n */\n getUserCurrentPoint: productionUrlApi + '/point/getUserCurrentPoint',\n\n /**\r\n * *\r\n * 是否签到api\r\n * *\r\n */\n isSignInToday: productionUrlApi + 'signIn/isSignInToday',\n\n /**\r\n * *\r\n * 签到api\r\n * *\r\n */\n signIn: productionUrlApi + 'signIn/signIn',\n\n /**\r\n * *\r\n * 积分商城是否填写信息完成api\r\n * *\r\n */\n checkMktScore: productionUrlApi + 'user/checkMktScore',\n\n /**\r\n * *\r\n * 积分商城是所有奖品api\r\n * *\r\n */\n getPointPrize: productionUrlApi + 'point/getPointPrize',\n\n /**\r\n * *\r\n * 积分商城兑换奖品api\r\n * *\r\n */\n exchangePrize: productionUrlApi + 'point/exchangePrize',\n\n /**\r\n * *\r\n * 积分商城积分明细api\r\n * *\r\n */\n getUserPointExchangeDetail: productionUrlApi + 'point/getUserPointExchangeDetail',\n\n /**\r\n * *\r\n * 收货地址api\r\n * *\r\n */\n recvlist: productionUrlApi + 'address/recvlist',\n\n /**\r\n * *\r\n * 新增收货地址api\r\n * *\r\n */\n createAddress: productionUrlApi + 'address/create',\n\n /**\r\n * *\r\n * 编辑收货地址api\r\n * *\r\n */\n updateAddress: productionUrlApi + 'address/update',\n\n /**\r\n * *\r\n * 选择兑换奖地址api\r\n * *\r\n */\n changeReceivePrizeAddress: productionUrlApi + 'point/changeReceivePrizeAddress',\n\n /**\r\n * *\r\n * 收货地址api\r\n * *\r\n */\n setdefault: productionUrlApi + 'address/setdefault',\n\n /**\r\n * *\r\n * 收货地址api\r\n * *\r\n */\n deleteAddress: productionUrlApi + 'address/delete',\n\n /**\r\n * *\r\n *单个 收货地址api\r\n * *\r\n */\n infoAddress: productionUrlApi + 'address/info',\n\n /**\r\n * *\r\n *获取港澳台地址选项\r\n * *\r\n */\n getOverseaMsgArea: productionUrlApi + '/reg/getOverseaMsgArea',\n\n /**\r\n * *\r\n * 积分规则api\r\n * *\r\n */\n pointruleApi: productionUrl + 'api/pointrule',\n\n /**\r\n * *\r\n * 积分收入支出明细api\r\n * *\r\n */\n getUserPointDetail: productionUrlApi + 'point/getUserPointDetail',\n\n /**\r\n * *\r\n * 积分兑换明细api\r\n * *\r\n */\n getUserPointExchangeList: productionUrlApi + 'point/getUserPointExchangeList',\n\n /**\r\n * 获取钱包信息api\r\n */\n getWalletInfo: productionUrlApi + 'wallet/info',\n\n /**\r\n * *\r\n * 激活钱包api\r\n * *\r\n */\n activateWallet: productionUrlApi + 'wallet/activate',\n\n /**\r\n * *\r\n * 发送安全手机验证码api\r\n * *\r\n */\n sendSafesms: productionUrlApi + 'wallet/safesms',\n\n /**\r\n * *\r\n * 重置支付密码验证环节api\r\n * *\r\n */\n verifyResetsms: productionUrlApi + 'wallet/verifyresetsms',\n\n /**\r\n * *\r\n * 修改钱包密码api\r\n * *\r\n */\n changeWalletpwd: productionUrlApi + 'wallet/changepwd',\n\n /**\r\n * *\r\n * 钱包明细列表api\r\n * *\r\n */\n walletListLog: productionUrlApi + 'wallet/log',\n\n /**\r\n * *\r\n * 钱包充值提现列表api\r\n * *\r\n */\n walletRecordList: productionUrlApi + 'wallet/lists',\n\n /**\r\n * *\r\n * 手机安全验证校验api\r\n * *\r\n */\n verifySafeMobile: productionUrlApi + 'wallet/verifysafe',\n\n /**\r\n * *\r\n * 校验银行卡获取短信验证码api\r\n * *\r\n */\n getBindBankmsg: productionUrlApi + 'wallet/getbankmsg',\n\n /**\r\n * *\r\n * 绑定银行卡api\r\n * *\r\n */\n bindBankCard: productionUrlApi + 'wallet/bindbankcard',\n\n /**\r\n * *\r\n * 充值申请api\r\n * *\r\n */\n walletRecharge: productionUrlApi + 'wallet/recharge',\n\n /**\r\n * *\r\n * 提现申请api\r\n * *\r\n */\n walletWithdraw: productionUrlApi + 'wallet/withdraw',\n\n /**\r\n * *\r\n * 充值提现单据详细api\r\n * *\r\n */\n rechargeWithdrawOrderIfo: productionUrlApi + 'wallet/orderinfo',\n\n /**\r\n * *\r\n * 跳转及支付码api\r\n * *\r\n */\n payTodo: productionUrlApi + 'pay/todo',\n\n /**\r\n * *\r\n * 查看订单信息api\r\n * *\r\n */\n orderInfo: productionUrlApi + 'order/info',\n\n /*****关于我们顶部配置*/\n getAboutUsData: productionUrl + 'api/aboutData',\n\n /****自营现货 */\n searchZy: zyApi + '/search/ZiYing/zy',\n\n /****联营 */\n searchLy: lyApi + '/search/getData/index',\n\n /****联营es */\n searchLyEs: lyApi + '/search/es/index',\n\n /**供应商接口**/\n supplierApi: productionUrl + 'api/supplierApi',\n\n /****获取弹出商品信息 */\n goodDetail: productionUrlApi + '/goods/detail',\n\n /****获取zy默认class查询 */\n defaultClass: productionUrl + 'api/defaultClass',\n\n /******添加到购物车或者下单 */\n addGood: productionUrlApi + '/cart/add',\n\n /******自营样片订单提交接口 */\n selfSampleCreate: productionUrlApi + '/order/selfsamplecreate',\n\n /** 获取用户领取机会、邀约人数*/\n getusersampleinfo: productionUrlApi + '/user/getusersampleinfo',\n\n /** 获取用户领取机会、邀约人数*/\n getUserSpecialInfo: productionUrlApi + '/user/getUserSpecialInfo',\n\n /** 自营样片邀约登录接口*/\n loginsampleaction: productionUrlApi + '/login/sampleaction',\n\n /** 获取样片列表*/\n samplelist: productionUrlApi + '/sample/list',\n\n /** 获取样片分类列表*/\n sampleclasslist: productionUrlApi + '/sample/class/list',\n\n /** 获取单个样片信息*/\n getsampleinfo: url + 'getsampleinfo',\n\n /**\r\n *\r\n * 会员中心接口\r\n *\r\n * **/\n\n /**获取个人信息**/\n getUserType: productionUrlApi + '/user/getUserType',\n\n /**获取个人订单数量**/\n orderCount: productionUrlApi + '/order/count',\n\n /**获取个人账号绑定信息**/\n getBindInfo: productionUrlApi + '/user/getBindInfo',\n\n /**解绑个人账号绑定信息**/\n unbindPhone: productionUrlApi + '/user/unbind',\n\n /**退出当前账号**/\n logout: productionUrlApi + '/login/logout',\n\n /**获取省市区**/\n allAddress: productionUrlApi + '/address/allpcd',\n\n /**修改个人信息**/\n changeUserInfo: productionUrlApi + '/user/changeUserInfo',\n\n /**优惠券数量**/\n ucouponCount: productionUrlApi + '/ucoupon/count',\n\n /**获取优惠券**/\n issue: productionUrlApi + '/coupon/issue',\n\n /**优惠券列表**/\n ucouponLists: productionUrlApi + '/ucoupon/lists',\n\n /***订单列表**/\n orderLists: productionUrlApi + 'order/lists',\n\n /***消息列表**/\n getMessageListsByUserId: productionUrlApi + 'msg/getMessageListsByUserId',\n\n /***改变消息状态**/\n changeMessageStatus: productionUrlApi + 'msg/changeMessageStatus',\n\n /***删除消息**/\n changeMessageStatusByH5: productionUrlApi + 'msg/changeMessageStatusByH5',\n\n /***订单物流**/\n shipping: productionUrlApi + '/order/shipping',\n\n /***最新物流**/\n lastshipping: productionUrlApi + '/order/lastshipping',\n\n /**再次购买***/\n rebuy: productionUrlApi + 'cart/rebuy',\n\n /***下载订单合同检测**/\n checkPdf: productionUrlApi + '/contract/checkPdf',\n\n /***提醒发货**/\n sendTips: productionUrlApi + '/crm/remindDelivery',\n\n /***确认收货**/\n sureSend: productionUrlApi + '/order/recive',\n\n /***取消订单**/\n orderCancel: productionUrlApi + '/order/cancel',\n\n /***历史浏览**/\n getHistory: productionUrlApi + 'home/behavior/get_view_goods_history',\n\n /***询价单记录**/\n getInqueryList: productionUrlApi + 'help/help/feedback_list',\n\n /**品牌分类**/\n brandList: productionUrl + 'api/brandList',\n\n /**品牌详细**/\n brandInfo: productionUrl + 'api/brandInfo',\n\n /**SKU公用接口**/\n skuList: productionUrlApi + 'sku/info',\n\n /**获取排行榜接口**/\n getlxuserrank: productionUrlApi + 'activity/getlxuserrank',\n\n /**\r\n * 资料下载(banner)\r\n */\n getfileuploadbanner: productionUrl + 'news/getfileuploadbanner',\n\n /**\r\n * 资料下载\r\n */\n articleShowData: productionUrlApi + 'article/showData',\n\n /**\r\n * 资料下载(地址)\r\n */\n downloadFile: productionUrlApi + 'article/DownloadFile',\n\n /**\r\n * 发送验证码\r\n */\n smsVerifys: productionUrlApi + 'public/smsVerify',\n\n /**\r\n * 资料下载分类获取\r\n */\n showClass: productionUrlApi + 'article/show_class',\n\n /**\r\n * 自营样品分类统计\r\n */\n aggSample: zyApi + '/search/ZiYing/aggSample',\n\n /**\r\n * 自营属性输出\r\n */\n aggs: zyApi + '/search/ZiYing/aggs',\n\n /**\r\n * 自营搜索\r\n */\n ZiYingIndex: zyApi + '/search/ZiYing/index',\n\n /**\r\n *
自营搜索样片\r\n */\n ZiYingIndexYp: zyApi + '/search/Sample/zyh',\n\n /**\r\n * 获取banner\r\n */\n getsamplebanner: url + '/getsamplebanner',\n\n /**\r\n * 示波器页面访问数据统计\r\n */\n invited: urlApi + '/activity/invited',\n\n /**\r\n * 示波器页面广告文字轮播数据\r\n */\n rotation: urlApi + '/activity/rotation',\n\n /**\r\n * 示波器页面奖品信息\r\n */\n yaoHaoYouJP: urlApi + '/activity/yaoHaoYouJP',\n\n /**\r\n * 示波器页面获取示波器商品id\r\n */\n getYaoHaoYouGoodId: urlApi + '/activity/getYaoHaoYouGoodId',\n\n /**\r\n * 图片上传\r\n */\n uploadImg: urlApi + '/oss/upload',\n\n /**\r\n * 留言信息\r\n */\n addMessage: urlApi + '/help/help/add_message'\n};\nvar services = {\n index: function index(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.index, params);\n },\n loginCheck: function loginCheck(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.get(apis.loginCheck, {\n params: _objectSpread({}, params)\n });\n },\n addMessage: function addMessage(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.addMessage, params);\n },\n smsVerify: function smsVerify(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.smsVerify, params);\n },\n smsVerifys: function smsVerifys(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.smsVerifys, params);\n },\n actionLogin: function actionLogin(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.actionLogin, params);\n },\n actionLogins: function actionLogins(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.actionLogins, params);\n },\n feedback: function feedback(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.feedback, params);\n },\n cartCount: function cartCount(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.get(apis.cartCount, {\n params: _objectSpread({}, params)\n });\n },\n getCartMZInfo: function getCartMZInfo(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.getCartMZInfo, params);\n },\n customsrService: function customsrService(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.get(apis.customsrService, {\n params: _objectSpread({}, params)\n });\n },\n getCommonParams: function getCommonParams(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.getCommonParams, params);\n },\n wxaccess: function wxaccess(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.wxaccess, params);\n },\n checkAccountExists: function checkAccountExists(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.checkAccountExists, params);\n },\n customSmsVerify: function customSmsVerify(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.customSmsVerify, params);\n },\n chainFind: function chainFind(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.chainFind, params);\n },\n wechatArticle: function wechatArticle(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.wechatArticle, params);\n },\n newsArticle: function newsArticle(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.newsArticle, params);\n },\n newsArticleDetail: function newsArticleDetail(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.newsArticleDetail, params);\n },\n newsArticleDetailAd: function newsArticleDetailAd(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.newsArticleDetailAd, params);\n },\n getUserCurrentPoint: function getUserCurrentPoint(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.getUserCurrentPoint, params);\n },\n isSignInToday: function isSignInToday(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.isSignInToday, params);\n },\n signIn: function signIn(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.signIn, params);\n },\n checkMktScore: function checkMktScore(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.checkMktScore, params);\n },\n getPointPrize: function getPointPrize(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.getPointPrize, params);\n },\n exchangePrize: function exchangePrize(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.exchangePrize, params);\n },\n recvlist: function recvlist(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.recvlist, params);\n },\n createAddress: function createAddress(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.createAddress, params);\n },\n updateAddress: function updateAddress(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.updateAddress, params);\n },\n changeReceivePrizeAddress: function changeReceivePrizeAddress(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.changeReceivePrizeAddress, params);\n },\n setdefault: function setdefault(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.setdefault, params);\n },\n deleteAddress: function deleteAddress(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.deleteAddress, params);\n },\n infoAddress: function infoAddress(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.infoAddress, params);\n },\n getOverseaMsgArea: function getOverseaMsgArea(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.getOverseaMsgArea, params);\n },\n getUserPointExchangeDetail: function getUserPointExchangeDetail(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.getUserPointExchangeDetail, params);\n },\n pointruleApi: function pointruleApi(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.pointruleApi, params);\n },\n getUserPointDetail: function getUserPointDetail(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.getUserPointDetail, params);\n },\n getUserPointExchangeList: function getUserPointExchangeList(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.getUserPointExchangeList, params);\n },\n getAboutUsData: function getAboutUsData(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.getAboutUsData, params);\n },\n getWalletInfo: function getWalletInfo(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.get(apis.getWalletInfo, {\n params: _objectSpread({}, params)\n });\n },\n activateWallet: function activateWallet(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.activateWallet, params);\n },\n sendSafesms: function sendSafesms(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.sendSafesms, params);\n },\n verifyResetsms: function verifyResetsms(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.verifyResetsms, params);\n },\n walletListLog: function walletListLog(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.walletListLog, params);\n },\n changeWalletpwd: function changeWalletpwd(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.changeWalletpwd, params);\n },\n walletRecordList: function walletRecordList(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.walletRecordList, params);\n },\n verifySafeMobile: function verifySafeMobile(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.verifySafeMobile, params);\n },\n getBindBankmsg: function getBindBankmsg(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.getBindBankmsg, params);\n },\n bindBankCard: function bindBankCard(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.bindBankCard, params);\n },\n walletRecharge: function walletRecharge(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.walletRecharge, params);\n },\n walletWithdraw: function walletWithdraw(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.walletWithdraw, params);\n },\n rechargeWithdrawOrderIfo: function rechargeWithdrawOrderIfo(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.rechargeWithdrawOrderIfo, params);\n },\n payTodo: function payTodo(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.payTodo, params);\n },\n orderInfo: function orderInfo(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.orderInfo, params);\n },\n getZyData: function getZyData(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.searchZy, params);\n },\n getLyData: function getLyData(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.searchLy, params);\n },\n getLyEsData: function getLyEsData(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.searchLyEs, params);\n },\n supplierApi: function supplierApi(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.supplierApi, params);\n },\n goodDetail: function goodDetail(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.goodDetail, params);\n },\n defaultClass: function defaultClass(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.defaultClass, params);\n },\n addGood: function addGood(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.addGood, params);\n },\n cartList: function cartList(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.cartList, params);\n },\n cartDelete: function cartDelete(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.cartDelete, params);\n },\n allcount: function allcount(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.allcount, params);\n },\n confirmBehavior: function confirmBehavior(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.confirmBehavior, params);\n },\n changenum: function changenum(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.changenum, params);\n },\n getUserType: function getUserType(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.getUserType, params);\n },\n orderCount: function orderCount(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.orderCount, params);\n },\n getBindInfo: function getBindInfo(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.getBindInfo, params);\n },\n ucouponCount: function ucouponCount(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.ucouponCount, params);\n },\n ucouponLists: function ucouponLists(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.ucouponLists, params);\n },\n issue: function issue(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.issue, params);\n },\n orderLists: function orderLists(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.orderLists, params);\n },\n getMessageListsByUserId: function getMessageListsByUserId(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.getMessageListsByUserId, params);\n },\n changeMessageStatus: function changeMessageStatus(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.changeMessageStatus, params);\n },\n changeMessageStatusByH5: function changeMessageStatusByH5(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.changeMessageStatusByH5, params);\n },\n shipping: function shipping(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.shipping, params);\n },\n lastshipping: function lastshipping(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.lastshipping, params);\n },\n rebuy: function rebuy(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.rebuy, params);\n },\n checkPdf: function checkPdf(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.checkPdf, params);\n },\n sendTips: function sendTips(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.sendTips, params);\n },\n sureSend: function sureSend(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.sureSend, params);\n },\n orderCancel: function orderCancel(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.orderCancel, params);\n },\n unbindPhone: function unbindPhone(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.unbindPhone, params);\n },\n logout: function logout(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.logout, params);\n },\n allAddress: function allAddress(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.allAddress, params);\n },\n changeUserInfo: function changeUserInfo(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.changeUserInfo, params);\n },\n getHistory: function getHistory(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.getHistory, params);\n },\n getInqueryList: function getInqueryList(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.getInqueryList, params);\n },\n brandList: function brandList(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.brandList, params);\n },\n brandInfo: function brandInfo(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.get(apis.brandInfo, {\n params: _objectSpread({}, params)\n });\n },\n skuList: function skuList(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.skuList, params);\n },\n getlxuserrank: function getlxuserrank(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.getlxuserrank, params);\n },\n getfileuploadbanner: function getfileuploadbanner(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.getfileuploadbanner, params);\n },\n articleShowData: function articleShowData(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.articleShowData, params);\n },\n downloadFile: function downloadFile(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.downloadFile, params);\n },\n wxShare: function wxShare(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.wxShare, params);\n },\n selfSampleCreate: function selfSampleCreate(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.selfSampleCreate, params);\n },\n sampleClassList: function sampleClassList(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.get(apis.sampleclasslist, {\n params: _objectSpread({}, params)\n });\n },\n sampleList: function sampleList(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.get(apis.samplelist, {\n params: _objectSpread({}, params)\n });\n },\n getUserSampleInfo: function getUserSampleInfo(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.get(apis.getusersampleinfo, {\n params: _objectSpread({}, params)\n });\n },\n getUserSpecialInfo: function getUserSpecialInfo(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.get(apis.getUserSpecialInfo, {\n params: _objectSpread({}, params)\n });\n },\n getSampleInfo: function getSampleInfo(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.getsampleinfo, params);\n },\n showClass: function showClass(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.showClass, params);\n },\n aggSample: function aggSample(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.aggSample, params);\n },\n aggs: function aggs(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.aggs, params);\n },\n ZiYingIndex: function ZiYingIndex(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.ZiYingIndex, params);\n },\n ZiYingIndexYp: function ZiYingIndexYp(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.ZiYingIndexYp
, params);\n },\n getsamplebanner: function getsamplebanner(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.getsamplebanner, params);\n },\n oscilloscopeinvited: function oscilloscopeinvited(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.invited, params);\n },\n getBannerData: function getBannerData(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.rotation, params);\n },\n yaoHaoYouJP: function yaoHaoYouJP(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.yaoHaoYouJP, params);\n },\n getQuestionInfo: function getQuestionInfo(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.getQuestionInfo, params);\n },\n getHelpCenterCatList: function getHelpCenterCatList(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.post(apis.getHelpCenterCatList, params);\n },\n getYaoHaoYouGoodId: function getYaoHaoYouGoodId(params) {\n return axios__WEBPACK_IMPORTED_MODULE_5___default.a.get(apis.getYaoHaoYouGoodId, {\n params: _objectSpread({}, params)\n });\n }\n};\n\n//# sourceURL=webpack:///./src/api/index.js?"
);
/***/
}),
/***/
}),
...
@@ -4709,7 +4709,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vue_
...
@@ -4709,7 +4709,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vue_
/***/
(
function
(
module
,
__webpack_exports__
,
__webpack_require__
)
{
/***/
(
function
(
module
,
__webpack_exports__
,
__webpack_require__
)
{
"use strict"
;
"use strict"
;
eval
(
"__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es7_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es7.object.get-own-property-descriptors */ \"./node_modules/_core-js@2.6.12@core-js/modules/es7.object.get-own-property-descriptors.js\");\n/* harmony import */ var core_js_modules_es7_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es7_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/web.dom.iterable */ \"./node_modules/_core-js@2.6.12@core-js/modules/web.dom.iterable.js\");\n/* harmony import */ var core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es6.array.iterator */ \"./node_modules/_core-js@2.6.12@core-js/modules/es6.array.iterator.js\");\n/* harmony import */ var core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es6.object.keys */ \"./node_modules/_core-js@2.6.12@core-js/modules/es6.object.keys.js\");\n/* harmony import */ var core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es6.object.assign */ \"./node_modules/_core-js@2.6.12@core-js/modules/es6.object.assign.js\");\n/* harmony import */ var core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var D_lxWork_h5_node_modules_babel_runtime_7_12_5_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.12.5@@babel/runtime/helpers/esm/defineProperty */ \"./node_modules/_@babel_runtime@7.12.5@@babel/runtime/helpers/esm/defineProperty.js\");\n/* harmony import */ var core_js_modules_es6_regexp_split__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/es6.regexp.split */ \"./node_modules/_core-js@2.6.12@core-js/modules/es6.regexp.split.js\");\n/* harmony import */ var core_js_modules_es6_regexp_split__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_regexp_split__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.6.12@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var vant__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! vant */ \"./node_modules/_vant@2.11.2@vant/es/index.js\");\n/* harmony import */ var _api_index__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../api/index */ \"./src/api/index.js\");\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../util */ \"./src/util/index.js\");\n\n\n\n\n\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { Object(D_lxWork_h5_node_modules_babel_runtime_7_12_5_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n\n\n\n\nvue__WEBPACK_IMPORTED_MODULE_7__[\"default\"].use(vant__WEBPACK_IMPORTED_MODULE_8__[\"Toast\"]);\nvar state = {\n classList: [],\n goodList: [],\n loading: false,\n finished: false,\n goodCount: 0,\n aggSample: [],\n aggs: {},\n aggsFlag: [],\n ziYingIndex: [],\n smaple_class_id: '',\n getsamplebanner: []\n};\nvar mutations = {\n ziYingIndex: function ziYingIndex(state, payload) {\n var arr = [];\n\n for (var k in payload.data.data.data_list) {\n arr.push(payload.data.data.data_list[k]);\n }\n\n state.ziYingIndex = state.ziYingIndex.concat(arr);\n },\n aggs: function aggs(state, payload) {\n var arr = [];\n\n if (payload.id) {\n arr = payload.id.split(\",\");\n }\n\n for (var k in payload.data.aggs) {\n for (var i = 0; i < payload.data.aggs[k].list.length; i++) {\n payload.data.aggs[k].list[i].check = false;\n\n for (var j = 0; j < arr.length; j++) {\n if (payload.data.aggs[k].list[i].id == arr[j]) {\n payload.data.aggs[k].list[i].check = !payload.data.aggs[k].list[i].check;\n payload.data.aggs[k].list[i].flag = !payload.data.aggs[k].list[i].flag;\n }\n }\n }\n }\n\n state.aggs = payload.data;\n },\n aggSample: function aggSample(state, payload) {\n state.smaple_class_id = payload.data[0].smaple_class_id;\n state.aggSample = payload.data;\n },\n classListM: function classListM(state, payload) {\n state.classList = payload.data;\n },\n goodList: function goodList(state, payload) {\n var arr = [];\n\n for (var k in payload.data) {\n arr.push(payload.data[k]);\n }\n\n state.goodList = state.goodList.concat(arr);\n },\n getsamplebanner: function getsamplebanner(state, payload) {\n state.getsamplebanner = payload.data;\n }\n};\nvar actions = {\n ziYingIndex: function ziYingIndex(_ref, payload) {\n var commit = _ref.commit;\n vant__WEBPACK_IMPORTED_MODULE_8__[\"Toast\"].loading({\n message: '加载中...',\n forbidClick: true,\n loadingType: 'spinner'\n });\n state.loading = true;\n state.finished = false;\n\n if (payload.params.p == 1) {\n state.ziYingIndex = [];\n }\n\n var obj = _objectSpread(_objectSpread({}, payload.params), {}, {\n 'offset': 10,\n 'sample_status/eq': 1\n });\n\n var params = _util__WEBPACK_IMPORTED_MODULE_10__[\"default\"].getParams(obj);\n _api_index__WEBPACK_IMPORTED_MODULE_9__[\"services\"].ZiYingIndex(params).then(function (res) {\n vant__WEBPACK_IMPORTED_MODULE_8__[\"Toast\"].clear();\n var data = res.data;\n state.loading = false;\n\n if (data.error_code == 0) {\n var totalPage = 0;\n\n if (data.data.total) {\n totalPage = Math.ceil(data.data.total * 1 / 10);\n }\n\n if (payload.params.p >= totalPage || !totalPage) {\n state.finished = true;\n }\n\n commit({\n type: 'ziYingIndex',\n data: data.data\n });\n } else {\n state.loading = false;\n state.finished = true;\n }\n }).catch(function (err) {\n vant__WEBPACK_IMPORTED_MODULE_8__[\"Toast\"].clear();\n state.loading = false;\n state.finished = true;\n });\n },\n aggs: function aggs(_ref2, payload) {\n var commit = _ref2.commit;\n vant__WEBPACK_IMPORTED_MODULE_8__[\"Toast\"].loading({\n message: '加载中...',\n forbidClick: true,\n loadingType: 'spinner'\n });\n var param = {\n 'sample_status/eq': 1\n };\n var obj = Object.assign({}, param, payload.params);\n var params = _util__WEBPACK_IMPORTED_MODULE_10__[\"default\"].getParams(obj);\n _api_index__WEBPACK_IMPORTED_MODULE_9__[\"services\"].aggs(params).then(function (res) {\n vant__WEBPACK_IMPORTED_MODULE_8__[\"Toast\"].clear();\n var data = res.data;\n\n if (data.error_code == 0) {\n commit({\n type: 'aggs',\n data: data.data,\n reset: payload.params.reset,\n id: payload.params.id\n });\n } else {\n Object(vant__WEBPACK_IMPORTED_MODULE_8__[\"Toast\"])({\n message: data.error_msg,\n duration: 3000\n });\n }\n }).catch(function (err) {\n vant__WEBPACK_IMPORTED_MODULE_8__[\"Toast\"].clear();\n });\n },\n aggSample: function aggSample(_ref3, payload) {\n var commit = _ref3.commit;\n var params = _util__WEBPACK_IMPORTED_MODULE_10__[\"default\"].getParams();\n _api_index__WEBPACK_IMPORTED_MODULE_9__[\"services\"].aggSample(params).then(function (res) {\n var data = res.data;\n\n if (data.error_code == 0) {\n commit({\n type: 'aggSample',\n data: data.data\n });\n } else {\n Object(vant__WEBPACK_IMPORTED_MODULE_8__[\"Toast\"])({\n message: data.error_msg,\n duration: 3000\n });\n }\n }).catch(function (err) {});\n },\n getClasslist: function getClasslist(_ref4, payload) {\n var commit = _ref4.commit;\n _api_index__WEBPACK_IMPORTED_MODULE_9__[\"services\"].sampleClassList().then(function (res) {\n var data = res.data;\n\n if (data.err_code == 0) {\n commit(\"classListM\", {\n data: data.data || []\n });\n } else {\n commit(\"classListM\", {\n data: []\n });\n }\n }).catch(function (err) {\n commit(\"classListM\", {\n data: []\n });\n });\n },\n getGoodList: function getGoodList(_ref5, payload) {\n var commit = _ref5.commit;\n state.loading = true;\n state.finished = false;\n var p = payload.data.p;\n\n if (p == 1) {\n state.goodList = [];\n }\n\n var params = _objectSpread(_objectSpread({}, payload.data), {}, {\n limit: 10\n });\n\n _api_index__WEBPACK_IMPORTED_MODULE_9__[\"services\"].sampleList(params).then(function (res) {\n state.loading = false;\n var data = res.data;\n\n if (data.err_code == 0) {\n var totalPage = 0;\n\n if (data.data.total) {\n totalPage = Math.ceil(data.data.total / 10);\n }\n\n if (p == totalPage || !totalPage) {\n state.finished = true;\n }\n\n if (data.data.total) {\n commit('goodList', {\n data: data.data.data\n });\n }\n } else {\n state.loading = false;\n state.finished = true;\n }\n }).catch(function (err) {\n state.loading = false;\n state.finished = true;\n });\n },\n getsamplebanner: function getsamplebanner(_ref6, payload) {\n var commit = _ref6.commit;\n var params = _util__WEBPACK_IMPORTED_MODULE_10__[\"default\"].getParams();\n _api_index__WEBPACK_IMPORTED_MODULE_9__[\"services\"].getsamplebanner(params).then(function (res) {\n state.loading = false;\n var data = res.data;\n\n if (data.err_code == 0) {\n commit({\n type: 'getsamplebanner',\n data: data.data\n });\n } else {\n Object(vant__WEBPACK_IMPORTED_MODULE_8__[\"Toast\"])({\n message: data.error_msg,\n duration: 3000\n });\n }\n }).catch(function (err) {});\n }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n state: state,\n actions: actions,\n mutations: mutations\n});\n\n//# sourceURL=webpack:///./src/store/modules/sample/index.js?"
);
eval
(
"__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es7_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es7.object.get-own-property-descriptors */ \"./node_modules/_core-js@2.6.12@core-js/modules/es7.object.get-own-property-descriptors.js\");\n/* harmony import */ var core_js_modules_es7_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es7_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/web.dom.iterable */ \"./node_modules/_core-js@2.6.12@core-js/modules/web.dom.iterable.js\");\n/* harmony import */ var core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es6.array.iterator */ \"./node_modules/_core-js@2.6.12@core-js/modules/es6.array.iterator.js\");\n/* harmony import */ var core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es6.object.keys */ \"./node_modules/_core-js@2.6.12@core-js/modules/es6.object.keys.js\");\n/* harmony import */ var core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es6.object.assign */ \"./node_modules/_core-js@2.6.12@core-js/modules/es6.object.assign.js\");\n/* harmony import */ var core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var D_lxWork_h5_node_modules_babel_runtime_7_12_5_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.12.5@@babel/runtime/helpers/esm/defineProperty */ \"./node_modules/_@babel_runtime@7.12.5@@babel/runtime/helpers/esm/defineProperty.js\");\n/* harmony import */ var core_js_modules_es6_regexp_split__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/es6.regexp.split */ \"./node_modules/_core-js@2.6.12@core-js/modules/es6.regexp.split.js\");\n/* harmony import */ var core_js_modules_es6_regexp_split__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_regexp_split__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.6.12@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var vant__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! vant */ \"./node_modules/_vant@2.11.2@vant/es/index.js\");\n/* harmony import */ var _api_index__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../api/index */ \"./src/api/index.js\");\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../util */ \"./src/util/index.js\");\n\n\n\n\n\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { Object(D_lxWork_h5_node_modules_babel_runtime_7_12_5_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n\n\n\n\nvue__WEBPACK_IMPORTED_MODULE_7__[\"default\"].use(vant__WEBPACK_IMPORTED_MODULE_8__[\"Toast\"]);\nvar state = {\n classList: [],\n goodList: [],\n loading: false,\n finished: false,\n goodCount: 0,\n aggSample: [],\n aggs: {},\n aggsFlag: [],\n ziYingIndex: [],\n smaple_class_id: '',\n getsamplebanner: []\n};\nvar mutations = {\n ziYingIndex: function ziYingIndex(state, payload) {\n var arr = [];\n\n for (var k in payload.data.data.data_list) {\n arr.push(payload.data.data.data_list[k]);\n }\n\n state.ziYingIndex = state.ziYingIndex.concat(arr);\n },\n aggs: function aggs(state, payload) {\n var arr = [];\n\n if (payload.id) {\n arr = payload.id.split(\",\");\n }\n\n for (var k in payload.data.aggs) {\n for (var i = 0; i < payload.data.aggs[k].list.length; i++) {\n payload.data.aggs[k].list[i].check = false;\n\n for (var j = 0; j < arr.length; j++) {\n if (payload.data.aggs[k].list[i].id == arr[j]) {\n payload.data.aggs[k].list[i].check = !payload.data.aggs[k].list[i].check;\n payload.data.aggs[k].list[i].flag = !payload.data.aggs[k].list[i].flag;\n }\n }\n }\n }\n\n state.aggs = payload.data;\n },\n aggSample: function aggSample(state, payload) {\n state.smaple_class_id = payload.data[0].smaple_class_id;\n state.aggSample = payload.data;\n },\n classListM: function classListM(state, payload) {\n state.classList = payload.data;\n },\n goodList: function goodList(state, payload) {\n var arr = [];\n\n for (var k in payload.data) {\n arr.push(payload.data[k]);\n }\n\n state.goodList = state.goodList.concat(arr);\n },\n getsamplebanner: function getsamplebanner(state, payload) {\n state.getsamplebanner = payload.data;\n }\n};\nvar actions = {\n ziYingIndex: function ziYingIndex(_ref, payload) {\n var commit = _ref.commit;\n vant__WEBPACK_IMPORTED_MODULE_8__[\"Toast\"].loading({\n message: '加载中...',\n forbidClick: true,\n loadingType: 'spinner'\n });\n state.loading = true;\n state.finished = false;\n\n if (payload.params.p == 1) {\n state.ziYingIndex = [];\n }\n\n var obj = _objectSpread(_objectSpread({}, payload.params), {}, {\n 'offset': 10,\n 'sample_status/eq': 1\n });\n\n var params = _util__WEBPACK_IMPORTED_MODULE_10__[\"default\"].getParams(obj);\n _api_index__WEBPACK_IMPORTED_MODULE_9__[\"services\"].ZiYingIndex
Yp
(params).then(function (res) {\n vant__WEBPACK_IMPORTED_MODULE_8__[\"Toast\"].clear();\n var data = res.data;\n state.loading = false;\n\n if (data.error_code == 0) {\n var totalPage = 0;\n\n if (data.data.total) {\n totalPage = Math.ceil(data.data.total * 1 / 10);\n }\n\n if (payload.params.p >= totalPage || !totalPage) {\n state.finished = true;\n }\n\n commit({\n type: 'ziYingIndex',\n data: data.data\n });\n } else {\n state.loading = false;\n state.finished = true;\n }\n }).catch(function (err) {\n vant__WEBPACK_IMPORTED_MODULE_8__[\"Toast\"].clear();\n state.loading = false;\n state.finished = true;\n });\n },\n aggs: function aggs(_ref2, payload) {\n var commit = _ref2.commit;\n vant__WEBPACK_IMPORTED_MODULE_8__[\"Toast\"].loading({\n message: '加载中...',\n forbidClick: true,\n loadingType: 'spinner'\n });\n var param = {\n 'sample_status/eq': 1\n };\n var obj = Object.assign({}, param, payload.params);\n var params = _util__WEBPACK_IMPORTED_MODULE_10__[\"default\"].getParams(obj);\n _api_index__WEBPACK_IMPORTED_MODULE_9__[\"services\"].aggs(params).then(function (res) {\n vant__WEBPACK_IMPORTED_MODULE_8__[\"Toast\"].clear();\n var data = res.data;\n\n if (data.error_code == 0) {\n commit({\n type: 'aggs',\n data: data.data,\n reset: payload.params.reset,\n id: payload.params.id\n });\n } else {\n Object(vant__WEBPACK_IMPORTED_MODULE_8__[\"Toast\"])({\n message: data.error_msg,\n duration: 3000\n });\n }\n }).catch(function (err) {\n vant__WEBPACK_IMPORTED_MODULE_8__[\"Toast\"].clear();\n });\n },\n aggSample: function aggSample(_ref3, payload) {\n var commit = _ref3.commit;\n var params = _util__WEBPACK_IMPORTED_MODULE_10__[\"default\"].getParams();\n _api_index__WEBPACK_IMPORTED_MODULE_9__[\"services\"].aggSample(params).then(function (res) {\n var data = res.data;\n\n if (data.error_code == 0) {\n commit({\n type: 'aggSample',\n data: data.data\n });\n } else {\n Object(vant__WEBPACK_IMPORTED_MODULE_8__[\"Toast\"])({\n message: data.error_msg,\n duration: 3000\n });\n }\n }).catch(function (err) {});\n },\n getClasslist: function getClasslist(_ref4, payload) {\n var commit = _ref4.commit;\n _api_index__WEBPACK_IMPORTED_MODULE_9__[\"services\"].sampleClassList().then(function (res) {\n var data = res.data;\n\n if (data.err_code == 0) {\n commit(\"classListM\", {\n data: data.data || []\n });\n } else {\n commit(\"classListM\", {\n data: []\n });\n }\n }).catch(function (err) {\n commit(\"classListM\", {\n data: []\n });\n });\n },\n getGoodList: function getGoodList(_ref5, payload) {\n var commit = _ref5.commit;\n state.loading = true;\n state.finished = false;\n var p = payload.data.p;\n\n if (p == 1) {\n state.goodList = [];\n }\n\n var params = _objectSpread(_objectSpread({}, payload.data), {}, {\n limit: 10\n });\n\n _api_index__WEBPACK_IMPORTED_MODULE_9__[\"services\"].sampleList(params).then(function (res) {\n state.loading = false;\n var data = res.data;\n\n if (data.err_code == 0) {\n var totalPage = 0;\n\n if (data.data.total) {\n totalPage = Math.ceil(data.data.total / 10);\n }\n\n if (p == totalPage || !totalPage) {\n state.finished = true;\n }\n\n if (data.data.total) {\n commit('goodList', {\n data: data.data.data\n });\n }\n } else {\n state.loading = false;\n state.finished = true;\n }\n }).catch(function (err) {\n state.loading = false;\n state.finished = true;\n });\n },\n getsamplebanner: function getsamplebanner(_ref6, payload) {\n var commit = _ref6.commit;\n var params = _util__WEBPACK_IMPORTED_MODULE_10__[\"default\"].getParams();\n _api_index__WEBPACK_IMPORTED_MODULE_9__[\"services\"].getsamplebanner(params).then(function (res) {\n state.loading = false;\n var data = res.data;\n\n if (data.err_code == 0) {\n commit({\n type: 'getsamplebanner',\n data: data.data\n });\n } else {\n Object(vant__WEBPACK_IMPORTED_MODULE_8__[\"Toast\"])({\n message: data.error_msg,\n duration: 3000\n });\n }\n }).catch(function (err) {});\n }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n state: state,\n actions: actions,\n mutations: mutations\n});\n\n//# sourceURL=webpack:///./src/store/modules/sample/index.js?"
);
/***/
}),
/***/
}),
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment