Commit 44dc05e5 by 肖康

seo页面开发

parent d8906786
...@@ -10,30 +10,34 @@ import axios from 'axios' ...@@ -10,30 +10,34 @@ import axios from 'axios'
* urlMarketing marketing营销系统接口 * urlMarketing marketing营销系统接口
*/ */
var urlApi, url; var urlApi, url,urlPc;
switch (window.location.hostname) { switch (window.location.hostname) {
case "m.ichunt.com": case "m.ichunt.com":
urlPc='https://www.ichunt.com/v3/';
url = 'https://m.ichunt.com/v3/'; url = 'https://m.ichunt.com/v3/';
urlApi = 'https://api.ichunt.com/'; urlApi = 'https://api.ichunt.com/';
break; break;
case "szm.ichunt.com": case "szm.ichunt.com":
urlApi = 'https://szapi.ichunt.com/'; urlApi = 'https://szapi.ichunt.com/';
url = 'https://szm.ichunt.com/v3/'; url = 'https://szm.ichunt.com/v3/';
urlPc='https://sz.ichunt.com/v3/';
break; break;
case "tm.ichunt.com": case "tm.ichunt.com":
url = 'https://tm.ichunt.com/v3/'; url = 'https://tm.ichunt.com/v3/';
urlApi = 'https://api.ichunt.com/'; urlApi = 'https://api.ichunt.com/';
urlPc='https://t.ichunt.com/v3/';
break; break;
case "m.liexin.com": case "m.liexin.com":
url = 'http://m.liexin.com/v3/'; url = 'http://m.liexin.com/v3/';
urlApi = 'http://api.liexin.com/'; urlApi = 'http://api.liexin.com/';
urlPc='http://www.liexin.com/v3/';
break; break;
default: default:
//本地proxy配置参考vue.config.js //本地proxy配置参考vue.config.js
url = '/m/v3/' url = '/m/v3/'
urlApi = '/apis/'; urlApi = '/apis/';
} }
export const productionUrlPc = urlPc;
export const productionUrl = url; export const productionUrl = url;
export const productionUrlApi = urlApi; export const productionUrlApi = urlApi;
export const apis = { export const apis = {
...@@ -92,7 +96,25 @@ export const apis = { ...@@ -92,7 +96,25 @@ export const apis = {
* 新闻详情api * 新闻详情api
* * * *
*/ */
newsArticleDetailAd: productionUrl + 'api/newsdetailad' newsArticleDetailAd: productionUrlApi + 'api/newsdetailad',
/**
* *
* 登录接口api
* *
*/
actionLogin: productionUrlApi + 'login/action',
/**
* *
* 获取短信api
* *
*/
smsVerify: productionUrlApi + 'public/smsVerify',
/**
* *
* 提交反馈api
* *
*/
feedback: productionUrlApi + 'help/help/feedback',
} }
export const services = { export const services = {
index(params) { index(params) {
...@@ -105,6 +127,15 @@ export const services = { ...@@ -105,6 +127,15 @@ export const services = {
} }
}) })
}, },
smsVerify(params) {
return axios.post(apis.smsVerify, params)
},
actionLogin(params) {
return axios.post(apis.actionLogin, params)
},
feedback(params) {
return axios.post(apis.feedback, params)
},
cartCount(params) { cartCount(params) {
return axios.get(apis.cartCount, { return axios.get(apis.cartCount, {
params: { params: {
......
...@@ -79,7 +79,7 @@ body { overflow-x: hidden; } ...@@ -79,7 +79,7 @@ body { overflow-x: hidden; }
.navigator ul li.curr .ico-5 { background: url("../images/home/i5_s.png") no-repeat center center; background-size: cover; } .navigator ul li.curr .ico-5 { background: url("../images/home/i5_s.png") no-repeat center center; background-size: cover; }
.navigator ul li.curr p { color: #4e8eee; } .navigator ul li.curr p { color: #4e8eee; }
.loading-background { background: transparent; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: flex; justify-content: center; flex-direction: column; z-index: 99; } .loading-background { background: transparent; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); display: flex; justify-content: center; flex-direction: column; z-index: 99; }
.slide-bar { position: fixed; right: 0; bottom: 23%; z-index: 3000; } .slide-bar { position: fixed; right: 0; bottom: 23%; z-index: 3000; }
.slide-bar .customer-service { width: 1.053rem; height: 1.053rem; border-radius: 4px; background: rgba(78, 142, 238, 0.8); display: flex; align-items: center; justify-content: center; } .slide-bar .customer-service { width: 1.053rem; height: 1.053rem; border-radius: 4px; background: rgba(78, 142, 238, 0.8); display: flex; align-items: center; justify-content: center; }
......
...@@ -116,7 +116,7 @@ $imgUrl: '../images/'; ...@@ -116,7 +116,7 @@ $imgUrl: '../images/';
.loading-background { .loading-background {
background: transparent; background: transparent;
position: absolute; position: fixed;
top: 50%; top: 50%;
left: 50%; left: 50%;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
......
...@@ -57,10 +57,13 @@ body{padding-top:0px; background: #10141d;} ...@@ -57,10 +57,13 @@ body{padding-top:0px; background: #10141d;}
float:left; float:left;
height:100%; height:100%;
} }
.code{position: absolute;right:0px;height:0.747rem;width:2rem;top:0px;cursor: pointer;color:#1080d0;text-align: center;line-height:0.747rem; font-size: 12px;}
.code.dis{color:#ccc;}
.img-code{position: absolute;right:0px;height:0.747rem;width:2rem;top:0px;cursor: pointer;} .img-code{position: absolute;right:0px;height:0.747rem;width:2rem;top:0px;cursor: pointer;}
} }
} }
.submit-button{ .submit-button{
width:7.013rem;height:0.747rem;text-align: center;line-height: 0.747rem; width:7.013rem;height:0.747rem;text-align: center;line-height: 0.747rem;
margin:0 auto; margin:0 auto;
...@@ -70,6 +73,7 @@ body{padding-top:0px; background: #10141d;} ...@@ -70,6 +73,7 @@ body{padding-top:0px; background: #10141d;}
cursor: pointer; cursor: pointer;
color:#181c27; color:#181c27;
} }
.form1-tips{text-align: center;color:#fff;font-size: 14px;}
} }
.img-show-static{ .img-show-static{
height:14.706rem; height:14.706rem;
...@@ -133,12 +137,15 @@ body{padding-top:0px; background: #10141d;} ...@@ -133,12 +137,15 @@ body{padding-top:0px; background: #10141d;}
float:left; float:left;
height:100%; height:100%;
} }
.code{position: absolute;right:0px;height:0.747rem;width:2rem;top:0px;cursor: pointer;color:#1080d0;text-align: center;line-height:0.747rem; font-size: 12px;}
.code.dis{color:#ccc;}
.img-code{position: absolute;right:0px;height: 0.693rem;width:2rem;top:0px;cursor: pointer;} .img-code{position: absolute;right:0px;height: 0.693rem;width:2rem;top:0px;cursor: pointer;}
} }
} }
} }
.submit-button{ .form2-tips{text-align: center;color:#fff;font-size: 14px;}
.submit-button1{
width: 7.627rem; width: 7.627rem;
height: 0.707rem; height: 0.707rem;
background-color: #eecea4; background-color: #eecea4;
......
{"version":3,"sources":["index.less"],"names":[],"mappings":"AAAA,KAAK,eAAA,CAAkB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A,mBA9JN,YAkBE,aA8II,WAYE,aAAA,CACA,eAAgB,sCAAhB,CACA,yBAAA,CACA,cA/KR,YAkBE,aA8II,UACE,cACE,WAAA,CACA,gBAAA,CACA,wBAAA,CACA,iBAAA,CACA,cAAA,CACA,cAvKV,YAkBE,aA8II,UACE,aAQE,GAAE,yBAzKZ,YAkBE,aA8II,UACE,aASE,GAAG,aAAA","file":"index.min.css"}
\ No newline at end of file \ No newline at end of file
export default { export default {
bind(el, binding) { bind(el, binding) {
el.addEventListener('click', function () { el.addEventListener('click', function () {
document.body.scrollTop = 0; var t = document.querySelector('.container-wrap').scrollTop
document.documentElement.scrollTop = 0; var step=(t/100).toFixed(0);
document.querySelector('.container-wrap').scrollTop = 0; var timer=setInterval(function(){
t=t-step;
if(t<=0){
t=0;
clearInterval(timer);
}
document.querySelector('.container-wrap').scrollTop = t;
},1)
}, false); }, false);
} }
} }
\ No newline at end of file
...@@ -31,6 +31,30 @@ Vue.use(directive); ...@@ -31,6 +31,30 @@ Vue.use(directive);
Vue.prototype.$http = axios; Vue.prototype.$http = axios;
axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded'; axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';
axios.defaults.withCredentials = true; axios.defaults.withCredentials = true;
axios.interceptors.request.use(function (config) {
if(config.method=='post'){
if(config.data){
if(config.data.indexOf("&pf=2")==-1){
config.data+="&pf=2";
}
}else{
config.data="pf=2"
}
}else if(config.method=='get'){
if(config.params.data){
if( config.params.data.indexOf("&pf=2")==-1){
config.params.data+="&pf=2";
}
}else{
config.params.data="pf=2"
}
}
return config;
}, function (error) {
return Promise.reject(error);
});
//本地初始化uid //本地初始化uid
var Yo4teW_gid = Util.getCookie('Yo4teW_gid'); var Yo4teW_gid = Util.getCookie('Yo4teW_gid');
......
...@@ -53,7 +53,7 @@ const routes=[ ...@@ -53,7 +53,7 @@ const routes=[
name:'Seo', name:'Seo',
component: Seo, component: Seo,
meta: { meta: {
title: '猎芯网-Seo落地' title: '猎芯网-Seo'
} }
}, },
{ {
......
...@@ -7,36 +7,131 @@ var qs = require('qs'); ...@@ -7,36 +7,131 @@ var qs = require('qs');
Vue.use(Toast); Vue.use(Toast);
const state = { const state = {
loadStatus: false loading: false,
form1ImgShow:false,
form2ImgShow:false,
form1CodeStatus:false,//短信是否发送成功
form2CodeStatus:false,
isRegLogin:false//是否登录注册成功 进行下一步
} }
const mutations = { const mutations = {
newsArticle(state, payload) { smsVerify(state, payload) {
} }
} }
const actions = { const actions = {
newsArticle({commit}, payload) { smsVerify({commit}, payload) {
state.loadStatus = true; state.form1CodeStatus=false;
state.loading = true;
var params = { var params = {
cat_id: payload.cat_id, mobile: payload.mobile,
p: payload.p, verify: payload.verify,
limit:payload.limit channel:1
}
Services.smsVerify(qs.stringify(params)).then((res) => {
let data = res.data;
state.loading = false;
let form_=(payload.types=="form2")?"form2":"form1";
state[form_+'ImgShow']=false;
if (data.err_code == 0) {
Toast({
message: data.err_msg,
duration: 2000
});
state[form_+'CodeStatus']=true;
commit({
type: 'smsVerify',
data: data.data
});
}else if(data.err_code==23019||data.err_code==11008||data.err_code==11011){
Toast({
message: data.err_msg,
duration: 2000
});
state[form_+'ImgShow']=true;
}else {
Toast({
message: data.err_msg,
duration: 3000
});
}
}).catch(function (err) {
state.loading = false;
});
},
actionLogin({commit}, payload) {
state.loading = true;
state.isRegLogin=false;
var params = {
account: payload.account,
sms_verify: payload.sms_verify
} }
Services.newsArticle(qs.stringify(params)).then((res) => { Services.actionLogin(qs.stringify(params)).then((res) => {
let data = res.data; let data = res.data;
state.loadStatus = false; state.loading = false;
if (data.err_code == 0) { if (data.err_code == 0) {
if(payload.form_name=="form1"){
Toast({
message: "提交成功",
duration: 2000
});
setTimeout(function(){
window.location.href="/";
},2000)
return;
}
state.isRegLogin=true;
commit({ commit({
type: 'newsArticle', type: 'actionLogin',
data: data.data data: data.data
});
}else {
Toast({
message: data.err_msg,
duration: 3000
});
}
}).catch(function (err) {
state.loading = false;
});
},
feedback({commit}, payload) {
state.loading = true;
var params = {
type: payload.types,
content: payload.content,
mobile: payload.mobile,
source:(window.location.href)
}
Services.feedback(qs.stringify(params)).then((res) => {
let data = res.data;
state.loading = false;
if (data.err_code == 0) {
Toast({
message: "需求已提交成功,客服人员会尽快与您联系",
duration: 3000
});
setTimeout(function(){
window.location.href="/";
},3000)
commit({
type: 'feedback',
data: data.data
});
}else {
Toast({
message: data.err_msg,
duration: 3000
}); });
} }
}).catch(function (err) { }).catch(function (err) {
state.loadStatus = false; state.loading = false;
}); });
} }
} }
......
...@@ -4,9 +4,17 @@ ...@@ -4,9 +4,17 @@
<div class="customer-service" @click="recordFn" v-if="kefuishow"> <div class="customer-service" @click="recordFn" v-if="kefuishow">
<i class="iconfont icon-kefu"></i> <i class="iconfont icon-kefu"></i>
</div> </div>
<div class="backtop" v-backTop v-if="show"> <template v-if="isWindow">
<i class="iconfont icon-xiangshang1"></i> <div class="backtop" v-backTopWindow v-show="show">
</div> <i class="iconfont icon-xiangshang1"></i>
</div>
</template>
<template v-else>
<div class="backtop" v-backTop v-show="show">
<i class="iconfont icon-xiangshang1"></i>
</div>
</template>
</div> </div>
<!--客服弹出框--> <!--客服弹出框-->
<van-dialog v-model="flag" :showConfirmButton="showButton" :showCancelButton="showButton" :closeOnClickOverlay="closeOnClickOverlay"> <van-dialog v-model="flag" :showConfirmButton="showButton" :showCancelButton="showButton" :closeOnClickOverlay="closeOnClickOverlay">
...@@ -63,10 +71,8 @@ ...@@ -63,10 +71,8 @@
}), }),
mounted() { mounted() {
if(this.isWindow){ if(this.isWindow){
this.scrollFnWindow(); this.scrollFnWindow();
}else{ }else{
this.scrollFn(); this.scrollFn();
} }
......
...@@ -101,17 +101,6 @@ eval("// all enumerable object keys, includes symbols\nvar getKeys = __webpack_r ...@@ -101,17 +101,6 @@ eval("// all enumerable object keys, includes symbols\nvar getKeys = __webpack_r
/***/ }), /***/ }),
/***/ "./node_modules/_core-js@2.6.5@core-js/library/modules/_html.js":
/*!**********************************************************************!*\
!*** ./node_modules/_core-js@2.6.5@core-js/library/modules/_html.js ***!
\**********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
eval("var document = __webpack_require__(/*! ./_global */ \"./node_modules/_core-js@2.6.5@core-js/library/modules/_global.js\").document;\nmodule.exports = document && document.documentElement;\n\n\n//# sourceURL=webpack:///./node_modules/_core-js@2.6.5@core-js/library/modules/_html.js?");
/***/ }),
/***/ "./node_modules/_core-js@2.6.5@core-js/library/modules/_is-array.js": /***/ "./node_modules/_core-js@2.6.5@core-js/library/modules/_is-array.js":
/*!**************************************************************************!*\ /*!**************************************************************************!*\
!*** ./node_modules/_core-js@2.6.5@core-js/library/modules/_is-array.js ***! !*** ./node_modules/_core-js@2.6.5@core-js/library/modules/_is-array.js ***!
...@@ -134,28 +123,6 @@ eval("var META = __webpack_require__(/*! ./_uid */ \"./node_modules/_core-js@2.6 ...@@ -134,28 +123,6 @@ eval("var META = __webpack_require__(/*! ./_uid */ \"./node_modules/_core-js@2.6
/***/ }), /***/ }),
/***/ "./node_modules/_core-js@2.6.5@core-js/library/modules/_object-create.js":
/*!*******************************************************************************!*\
!*** ./node_modules/_core-js@2.6.5@core-js/library/modules/_object-create.js ***!
\*******************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
eval("// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\nvar anObject = __webpack_require__(/*! ./_an-object */ \"./node_modules/_core-js@2.6.5@core-js/library/modules/_an-object.js\");\nvar dPs = __webpack_require__(/*! ./_object-dps */ \"./node_modules/_core-js@2.6.5@core-js/library/modules/_object-dps.js\");\nvar enumBugKeys = __webpack_require__(/*! ./_enum-bug-keys */ \"./node_modules/_core-js@2.6.5@core-js/library/modules/_enum-bug-keys.js\");\nvar IE_PROTO = __webpack_require__(/*! ./_shared-key */ \"./node_modules/_core-js@2.6.5@core-js/library/modules/_shared-key.js\")('IE_PROTO');\nvar Empty = function () { /* empty */ };\nvar PROTOTYPE = 'prototype';\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar createDict = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = __webpack_require__(/*! ./_dom-create */ \"./node_modules/_core-js@2.6.5@core-js/library/modules/_dom-create.js\")('iframe');\n var i = enumBugKeys.length;\n var lt = '<';\n var gt = '>';\n var iframeDocument;\n iframe.style.display = 'none';\n __webpack_require__(/*! ./_html */ \"./node_modules/_core-js@2.6.5@core-js/library/modules/_html.js\").appendChild(iframe);\n iframe.src = 'javascript:'; // eslint-disable-line no-script-url\n // createDict = iframe.contentWindow.Object;\n // html.removeChild(iframe);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);\n iframeDocument.close();\n createDict = iframeDocument.F;\n while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];\n return createDict();\n};\n\nmodule.exports = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n Empty[PROTOTYPE] = anObject(O);\n result = new Empty();\n Empty[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = createDict();\n return Properties === undefined ? result : dPs(result, Properties);\n};\n\n\n//# sourceURL=webpack:///./node_modules/_core-js@2.6.5@core-js/library/modules/_object-create.js?");
/***/ }),
/***/ "./node_modules/_core-js@2.6.5@core-js/library/modules/_object-dps.js":
/*!****************************************************************************!*\
!*** ./node_modules/_core-js@2.6.5@core-js/library/modules/_object-dps.js ***!
\****************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
eval("var dP = __webpack_require__(/*! ./_object-dp */ \"./node_modules/_core-js@2.6.5@core-js/library/modules/_object-dp.js\");\nvar anObject = __webpack_require__(/*! ./_an-object */ \"./node_modules/_core-js@2.6.5@core-js/library/modules/_an-object.js\");\nvar getKeys = __webpack_require__(/*! ./_object-keys */ \"./node_modules/_core-js@2.6.5@core-js/library/modules/_object-keys.js\");\n\nmodule.exports = __webpack_require__(/*! ./_descriptors */ \"./node_modules/_core-js@2.6.5@core-js/library/modules/_descriptors.js\") ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var keys = getKeys(Properties);\n var length = keys.length;\n var i = 0;\n var P;\n while (length > i) dP.f(O, P = keys[i++], Properties[P]);\n return O;\n};\n\n\n//# sourceURL=webpack:///./node_modules/_core-js@2.6.5@core-js/library/modules/_object-dps.js?");
/***/ }),
/***/ "./node_modules/_core-js@2.6.5@core-js/library/modules/_object-gopd.js": /***/ "./node_modules/_core-js@2.6.5@core-js/library/modules/_object-gopd.js":
/*!*****************************************************************************!*\ /*!*****************************************************************************!*\
!*** ./node_modules/_core-js@2.6.5@core-js/library/modules/_object-gopd.js ***! !*** ./node_modules/_core-js@2.6.5@core-js/library/modules/_object-gopd.js ***!
...@@ -189,28 +156,6 @@ eval("// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)\nvar $keys = __webpac ...@@ -189,28 +156,6 @@ eval("// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)\nvar $keys = __webpac
/***/ }), /***/ }),
/***/ "./node_modules/_core-js@2.6.5@core-js/library/modules/_redefine.js":
/*!**************************************************************************!*\
!*** ./node_modules/_core-js@2.6.5@core-js/library/modules/_redefine.js ***!
\**************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
eval("module.exports = __webpack_require__(/*! ./_hide */ \"./node_modules/_core-js@2.6.5@core-js/library/modules/_hide.js\");\n\n\n//# sourceURL=webpack:///./node_modules/_core-js@2.6.5@core-js/library/modules/_redefine.js?");
/***/ }),
/***/ "./node_modules/_core-js@2.6.5@core-js/library/modules/_set-to-string-tag.js":
/*!***********************************************************************************!*\
!*** ./node_modules/_core-js@2.6.5@core-js/library/modules/_set-to-string-tag.js ***!
\***********************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
eval("var def = __webpack_require__(/*! ./_object-dp */ \"./node_modules/_core-js@2.6.5@core-js/library/modules/_object-dp.js\").f;\nvar has = __webpack_require__(/*! ./_has */ \"./node_modules/_core-js@2.6.5@core-js/library/modules/_has.js\");\nvar TAG = __webpack_require__(/*! ./_wks */ \"./node_modules/_core-js@2.6.5@core-js/library/modules/_wks.js\")('toStringTag');\n\nmodule.exports = function (it, tag, stat) {\n if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });\n};\n\n\n//# sourceURL=webpack:///./node_modules/_core-js@2.6.5@core-js/library/modules/_set-to-string-tag.js?");
/***/ }),
/***/ "./node_modules/_core-js@2.6.5@core-js/library/modules/_wks-define.js": /***/ "./node_modules/_core-js@2.6.5@core-js/library/modules/_wks-define.js":
/*!****************************************************************************!*\ /*!****************************************************************************!*\
!*** ./node_modules/_core-js@2.6.5@core-js/library/modules/_wks-define.js ***! !*** ./node_modules/_core-js@2.6.5@core-js/library/modules/_wks-define.js ***!
...@@ -233,17 +178,6 @@ eval("exports.f = __webpack_require__(/*! ./_wks */ \"./node_modules/_core-js@2. ...@@ -233,17 +178,6 @@ eval("exports.f = __webpack_require__(/*! ./_wks */ \"./node_modules/_core-js@2.
/***/ }), /***/ }),
/***/ "./node_modules/_core-js@2.6.5@core-js/library/modules/_wks.js":
/*!*********************************************************************!*\
!*** ./node_modules/_core-js@2.6.5@core-js/library/modules/_wks.js ***!
\*********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
eval("var store = __webpack_require__(/*! ./_shared */ \"./node_modules/_core-js@2.6.5@core-js/library/modules/_shared.js\")('wks');\nvar uid = __webpack_require__(/*! ./_uid */ \"./node_modules/_core-js@2.6.5@core-js/library/modules/_uid.js\");\nvar Symbol = __webpack_require__(/*! ./_global */ \"./node_modules/_core-js@2.6.5@core-js/library/modules/_global.js\").Symbol;\nvar USE_SYMBOL = typeof Symbol == 'function';\n\nvar $exports = module.exports = function (name) {\n return store[name] || (store[name] =\n USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));\n};\n\n$exports.store = store;\n\n\n//# sourceURL=webpack:///./node_modules/_core-js@2.6.5@core-js/library/modules/_wks.js?");
/***/ }),
/***/ "./node_modules/_core-js@2.6.5@core-js/library/modules/es6.object.define-property.js": /***/ "./node_modules/_core-js@2.6.5@core-js/library/modules/es6.object.define-property.js":
/*!*******************************************************************************************!*\ /*!*******************************************************************************************!*\
!*** ./node_modules/_core-js@2.6.5@core-js/library/modules/es6.object.define-property.js ***! !*** ./node_modules/_core-js@2.6.5@core-js/library/modules/es6.object.define-property.js ***!
......
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment